rem
stringlengths
0
477k
add
stringlengths
0
313k
context
stringlengths
6
599k
sessions.setSelectionMode(ListSelectionModel.SINGLE_SELECTION); sessions.setPreferredScrollableViewportSize(new Dimension(500,200)); sessions.setShowGrid(false);
scrollPane = new JScrollPane(sessions); scrollPane.setVerticalScrollBarPolicy( JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED); scrollPane.setHorizontalScrollBarPolicy( JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED);
private void createSessionsPanel() { // get an instance of our table model ctm = new ConfigureTableModel(); // create a table using our custom table model sessions = new JSortTable(ctm); // Add enter as default key for connect with this session Action connect = new AbstractAction("conne...
scrollPane = new JScrollPane(sessions); scrollPane.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED); scrollPane.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED);
sessions.addMouseListener(new MouseAdapter() {
private void createSessionsPanel() { // get an instance of our table model ctm = new ConfigureTableModel(); // create a table using our custom table model sessions = new JSortTable(ctm); // Add enter as default key for connect with this session Action connect = new AbstractAction("conne...
sessions.addMouseListener(new MouseAdapter() {
public void mouseClicked(MouseEvent event) { if (event.getClickCount() == 2) { doActionConnect(); } }
private void createSessionsPanel() { // get an instance of our table model ctm = new ConfigureTableModel(); // create a table using our custom table model sessions = new JSortTable(ctm); // Add enter as default key for connect with this session Action connect = new AbstractAction("conne...
public void mouseClicked(MouseEvent event) { if (event.getClickCount() == 2) { doActionConnect(); } }
});
private void createSessionsPanel() { // get an instance of our table model ctm = new ConfigureTableModel(); // create a table using our custom table model sessions = new JSortTable(ctm); // Add enter as default key for connect with this session Action connect = new AbstractAction("conne...
});
if (e.getValueIsAdjusting()) return;
private void createSessionsPanel() { // get an instance of our table model ctm = new ConfigureTableModel(); // create a table using our custom table model sessions = new JSortTable(ctm); // Add enter as default key for connect with this session Action connect = new AbstractAction("conne...
rowSM = sessions.getSelectionModel(); rowSM.addListSelectionListener(new ListSelectionListener() { public void valueChanged(ListSelectionEvent e) {
ListSelectionModel lsm = (ListSelectionModel) e.getSource();
private void createSessionsPanel() { // get an instance of our table model ctm = new ConfigureTableModel(); // create a table using our custom table model sessions = new JSortTable(ctm); // Add enter as default key for connect with this session Action connect = new AbstractAction("conne...
if (e.getValueIsAdjusting()) return;
if (lsm.isSelectionEmpty()) { editButton.setEnabled(false); removeButton.setEnabled(false); connectButton.setEnabled(false); } else {
private void createSessionsPanel() { // get an instance of our table model ctm = new ConfigureTableModel(); // create a table using our custom table model sessions = new JSortTable(ctm); // Add enter as default key for connect with this session Action connect = new AbstractAction("conne...
ListSelectionModel lsm = (ListSelectionModel)e.getSource();
int selectedRow = lsm.getMinSelectionIndex(); editButton.setEnabled(true); removeButton.setEnabled(true); connectButton.setEnabled(true); } } });
private void createSessionsPanel() { // get an instance of our table model ctm = new ConfigureTableModel(); // create a table using our custom table model sessions = new JSortTable(ctm); // Add enter as default key for connect with this session Action connect = new AbstractAction("conne...
if (lsm.isSelectionEmpty()) { editButton.setEnabled(false); removeButton.setEnabled(false); connectButton.setEnabled(false); } else {
configOptions.setLayout(borderLayout);
private void createSessionsPanel() { // get an instance of our table model ctm = new ConfigureTableModel(); // create a table using our custom table model sessions = new JSortTable(ctm); // Add enter as default key for connect with this session Action connect = new AbstractAction("conne...
int selectedRow = lsm.getMinSelectionIndex(); editButton.setEnabled(true); removeButton.setEnabled(true); connectButton.setEnabled(true); } } });
sessionPanel.setLayout(borderLayout);
private void createSessionsPanel() { // get an instance of our table model ctm = new ConfigureTableModel(); // create a table using our custom table model sessions = new JSortTable(ctm); // Add enter as default key for connect with this session Action connect = new AbstractAction("conne...
configOptions.setLayout(borderLayout);
configOptions.add(sessionPanel, BorderLayout.CENTER);
private void createSessionsPanel() { // get an instance of our table model ctm = new ConfigureTableModel(); // create a table using our custom table model sessions = new JSortTable(ctm); // Add enter as default key for connect with this session Action connect = new AbstractAction("conne...
sessionPanel.setLayout(borderLayout);
sessionOpts.setBorder(BorderFactory.createEmptyBorder(10, 0, 0, 0)); sessionOpts.add(scrollPane, BorderLayout.CENTER);
private void createSessionsPanel() { // get an instance of our table model ctm = new ConfigureTableModel(); // create a table using our custom table model sessions = new JSortTable(ctm); // Add enter as default key for connect with this session Action connect = new AbstractAction("conne...
configOptions.add(sessionPanel, BorderLayout.CENTER);
sessionPanel.add(sessionOpts, BorderLayout.NORTH); sessionPanel.add(sessionOptPanel, BorderLayout.SOUTH);
private void createSessionsPanel() { // get an instance of our table model ctm = new ConfigureTableModel(); // create a table using our custom table model sessions = new JSortTable(ctm); // Add enter as default key for connect with this session Action connect = new AbstractAction("conne...
sessionOpts.add(scrollPane, BorderLayout.CENTER);
addOptButton(LangTool.getString("ss.optAdd"), "ADD", sessionOptPanel);
private void createSessionsPanel() { // get an instance of our table model ctm = new ConfigureTableModel(); // create a table using our custom table model sessions = new JSortTable(ctm); // Add enter as default key for connect with this session Action connect = new AbstractAction("conne...
sessionPanel.add(sessionOpts, BorderLayout.NORTH); sessionPanel.add(sessionOptPanel, BorderLayout.SOUTH); sessionPanel.setBorder(BorderFactory.createRaisedBevelBorder());
removeButton = addOptButton( LangTool.getString("ss.optDelete"), "REMOVE", sessionOptPanel, false);
private void createSessionsPanel() { // get an instance of our table model ctm = new ConfigureTableModel(); // create a table using our custom table model sessions = new JSortTable(ctm); // Add enter as default key for connect with this session Action connect = new AbstractAction("conne...
addOptButton(LangTool.getString("ss.optAdd"),"ADD",sessionOptPanel);
editButton = addOptButton( LangTool.getString("ss.optEdit"), "EDIT", sessionOptPanel, false);
private void createSessionsPanel() { // get an instance of our table model ctm = new ConfigureTableModel(); // create a table using our custom table model sessions = new JSortTable(ctm); // Add enter as default key for connect with this session Action connect = new AbstractAction("conne...
removeButton = addOptButton(LangTool.getString("ss.optDelete"), "REMOVE", sessionOptPanel, false); editButton = addOptButton(LangTool.getString("ss.optEdit"), "EDIT", sessionOptPanel, false); }
}
private void createSessionsPanel() { // get an instance of our table model ctm = new ConfigureTableModel(); // create a table using our custom table model sessions = new JSortTable(ctm); // Add enter as default key for connect with this session Action connect = new AbstractAction("conne...
setResizable(true);
setResizable(false);
void jbInit() throws Exception { // make it non resizable setResizable(true); this.setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE); // create sessions panel createSessionsPanel(); // create emulator options panel createEmulatorOptionsPanel(); // create the button options ...
JTabbedPane p = (JTabbedPane)e.getSource(); int index = p.getSelectedIndex(); if (!p.getTitleAt(index).equals(LangTool.getString("ss.labelConnections"))) connectButton.setEnabled(false); else connectButton.setEnabled(true); }
JTabbedPane p = (JTabbedPane) e.getSource(); int index = p.getSelectedIndex(); if (!p .getTitleAt(index) .equals(LangTool.getString("ss.labelConnections"))) { connectButton.setEnabled(false); this.setTitle(LangTool.getString("ss.title") + " - " + LangTool.getString("ss.labelOptions1")); } else { this.setTitle(LangTool....
public void stateChanged(ChangeEvent e) { JTabbedPane p = (JTabbedPane)e.getSource(); int index = p.getSelectedIndex(); if (!p.getTitleAt(index).equals(LangTool.getString("ss.labelConnections"))) connectButton.setEnabled(false); else connectButton.setEnabled(true); }
public abstract void startSystemPlugins() throws PluginException;
public abstract void startSystemPlugins(List descriptors) throws PluginException;
public abstract void startSystemPlugins() throws PluginException;
if (instance == null)
if (instances == null) instances = new HashMap(); Object o = instances.get(component); MetalTreeUI instance; if (o == null) {
public static ComponentUI createUI(JComponent component) { if (instance == null) instance = new MetalTreeUI(); return instance; }
instances.put(component, instance); } else instance = (MetalTreeUI) o;
public static ComponentUI createUI(JComponent component) { if (instance == null) instance = new MetalTreeUI(); return instance; }
String text = "";
public void paintComponent(Graphics g) { super.paintComponent(g); if (iconOnly) { Rectangle bounds = getBounds(); int x = (bounds.width - comboIcon.getIconWidth()) / 2; int y = (bounds.height - comboIcon.getIconHeight()) / 2; comboIcon.paintIcon(comboBox, g, x, y); } ...
if (selected != null) text = selected.toString();
if (selected == null) selected = "";
public void paintComponent(Graphics g) { super.paintComponent(g); if (iconOnly) { Rectangle bounds = getBounds(); int x = (bounds.width - comboIcon.getIconWidth()) / 2; int y = (bounds.height - comboIcon.getIconHeight()) / 2; comboIcon.paintIcon(comboBox, g, x, y); } ...
Insets insets = comboBox.getInsets();
public void paintComponent(Graphics g) { super.paintComponent(g); if (iconOnly) { Rectangle bounds = getBounds(); int x = (bounds.width - comboIcon.getIconWidth()) / 2; int y = (bounds.height - comboIcon.getIconHeight()) / 2; comboIcon.paintIcon(comboBox, g, x, y); } ...
if (comboBox.isEnabled()) g.setColor(MetalLookAndFeel.getBlack()); else g.setColor(MetalLookAndFeel.getControlDisabled()); Rectangle viewArea = new Rectangle(innerArea.x, innerArea.y, innerArea.width - comboIcon.getIconWidth() - 7, innerArea.height); FontMetrics fm = g.getFontMetrics(comboBox.getFont()); Rectangle text...
} }
public void paintComponent(Graphics g) { super.paintComponent(g); if (iconOnly) { Rectangle bounds = getBounds(); int x = (bounds.width - comboIcon.getIconWidth()) / 2; int y = (bounds.height - comboIcon.getIconHeight()) / 2; comboIcon.paintIcon(comboBox, g, x, y); } ...
}
private void updateSelection(boolean controlPressed) { // Update the rows int lo_row = table.rowAtPoint(begin); int hi_row = table.rowAtPoint(curr); ListSelectionModel rowModel = table.getSelectionModel(); if (lo_row != -1 && hi_row != -1) { if (controlPressed &&...
}
void advanceMultipleSelection (ListSelectionModel firstModel, int firstMin, int firstMax, ListSelectionModel secondModel, int secondMin, int secondMax, boolean reverse, boolean eventIsTab) { // If eventIsTab...
if (gap != null) y += gap.height;
public void paint(Graphics gfx, JComponent ignored) { int ncols = table.getColumnCount(); int nrows = table.getRowCount(); if (nrows == 0 || ncols == 0) return; Rectangle clip = gfx.getClipBounds(); TableColumnModel cols = table.getColumnModel(); int height = table.getRowHeight(); int x0 =...
if (gap != null) x += gap.width;
public void paint(Graphics gfx, JComponent ignored) { int ncols = table.getColumnCount(); int nrows = table.getRowCount(); if (nrows == 0 || ncols == 0) return; Rectangle clip = gfx.getClipBounds(); TableColumnModel cols = table.getColumnModel(); int height = table.getRowHeight(); int x0 =...
x += cols.getColumn(c).getWidth();; if (gap != null) x += gap.width; gfx.drawLine(x, y0, x, ymax);
x += cols.getColumn(c).getWidth(); gfx.drawLine(x - gap.width, y0, x - gap.width, ymax);
public void paint(Graphics gfx, JComponent ignored) { int ncols = table.getColumnCount(); int nrows = table.getRowCount(); if (nrows == 0 || ncols == 0) return; Rectangle clip = gfx.getClipBounds(); TableColumnModel cols = table.getColumnModel(); int height = table.getRowHeight(); int x0 =...
Object.class.getProtectionDomain() };
protDomain };
Class generate(ClassLoader loader) { byte[] bytecode = new byte[pool.length() + stream.length()]; // More efficient to bypass calling charAt() repetitively. char[] c = pool.toString().toCharArray(); int i = c.length; while (--i >= 0) bytecode[i] = (byte) c[...
public Throwable getException() { return getCause();
public Throwable getException() { return exception;
public Throwable getException() { return getCause(); }
super();
public Separator() { }
Dimension size = this.getPreferredSize();
Dimension size = this.getSize();
public void setVisible(boolean visible) { if (visible == isVisible()) return; boolean old = isVisible(); this.visible = visible; if (old != isVisible()) { firePropertyChange("visible", old, isVisible()); if (visible) { firePopupMenuWillBecomeVisible(); ...
;
protected void loadImage(Image image) { try { tracker.addImage(image, id); id++; tracker.waitForID(id - 1); } catch (InterruptedException ex) { ; // ignore this for now } finally { loadStatus = tracker.statusID(id - 1, false); } }
resolvedStyles = new HashMap();
public StyleSheet() { super(); baseFontSize = 4; // Default font size from CSS }
attr.addAttribute(key, value);
Object val = CSS.getValue(key, value); attr.addAttribute(key, val);
public void addCSSAttribute(MutableAttributeSet attr, CSS.Attribute key, String value) { attr.addAttribute(key, value); }
CssParser cp = new CssParser(); try { cp.parse(base, new StringReader(rule), false, false); } catch (IOException io) { }
public void addRule(String rule) { CssParser cp = new CssParser(); try { cp.parse(base, new StringReader(rule), false, false); } catch (IOException io) { // Do nothing here. } }
return super.getBackground(a);
CSSColor c = (CSSColor) a.getAttribute(CSS.Attribute.BACKGROUND_COLOR); Color color = null; if (c != null) color = c.getValue(); return color;
public Color getBackground(AttributeSet a) { return super.getBackground(a); }
return super.getFont(a);
FontSize size = (FontSize) a.getAttribute(CSS.Attribute.FONT_SIZE); int realSize = 12; if (size != null) realSize = size.getValue(); Object valign = a.getAttribute(CSS.Attribute.VERTICAL_ALIGN); if (valign != null) { String v = valign.toString(); if (v.contains("sup") || v.contains("sub")) realSize -= 2; } String f...
public Font getFont(AttributeSet a) { return super.getFont(a); }
return super.getForeground(a);
CSSColor c = (CSSColor) a.getAttribute(CSS.Attribute.COLOR); Color color = null; if (c != null) color = c.getValue(); return color;
public Color getForeground(AttributeSet a) { return super.getForeground(a); }
return null;
ArrayList path = new ArrayList(); Element el; AttributeSet atts; for (el = e; el != null; el = el.getParentElement()) path.add(el); StringBuilder selector = new StringBuilder(); int count = path.size(); for (int i = count - 1; i > 0; i--) { el = (Element) path.get(i); atts = el.getAttributes(); Object name = atts.ge...
public Style getRule(HTML.Tag t, Element e) { // FIXME: Not implemented. return null; }
return null;
return new ViewAttributeSet(v, this);
public AttributeSet getViewAttributes(View v) { // FIXME: Not implemented. return null; }
CssParser cp = new CssParser(); cp.parse(ref, in, false, false);
CSSStyleSheetParserCallback cb = new CSSStyleSheetParserCallback(); CSSParser parser = new CSSParser(in, cb); parser.parse();
public void loadRules(Reader in, URL ref) throws IOException { CssParser cp = new CssParser(); cp.parse(ref, in, false, false); }
public Color stringToColor(String color)
public Color stringToColor(String colorName)
public Color stringToColor(String color) { color = color.toLowerCase(); if (color.equals("black") || color.equals("#000000")) return Color.BLACK; else if (color.equals("aqua") || color.equals("#00FFFF")) return new Color(127, 255, 212); else if (color.equals("gray") || color.equals("#808080")) ...
color = color.toLowerCase(); if (color.equals("black") || color.equals("#000000")) return Color.BLACK; else if (color.equals("aqua") || color.equals("#00FFFF")) return new Color(127, 255, 212); else if (color.equals("gray") || color.equals("#808080")) return Color.GRAY; else if (color.equals("navy") || color.equals("#0...
return CSSColor.convertValue(colorName);
public Color stringToColor(String color) { color = color.toLowerCase(); if (color.equals("black") || color.equals("#000000")) return Color.BLACK; else if (color.equals("aqua") || color.equals("#00FFFF")) return new Color(127, 255, 212); else if (color.equals("gray") || color.equals("#808080")) ...
return null;
AttributeSet cssAttr = htmlAttrSet.copyAttributes(); MutableAttributeSet cssStyle = addStyle(null, null); cssStyle.addAttributes(cssAttr); return cssStyle;
public AttributeSet translateHTMLToCSS(AttributeSet htmlAttrSet) { // FIXME: Not implemented. return null; }
JMenu jMenuFile = new JMenu("File"); jMenuFile.setMnemonic('F'); JMenuItem exit = new JMenuItem("Exit"); exit.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent ae_) {
JMenu jMenuFile = new JMenu( "File" ); jMenuFile.setMnemonic( 'F' ); JMenuItem exit = new JMenuItem( "Exit" ); exit.addActionListener( new ActionListener() { public void actionPerformed( ActionEvent ae_ ) { Thread t = new Thread( new Runnable() { public void run() { done(); } } );
private void addMenuBar() { JMenuBar menubar = new JMenuBar(); JMenu jMenuFile = new JMenu("File"); jMenuFile.setMnemonic('F'); JMenuItem exit = new JMenuItem("Exit"); exit.addActionListener(new ActionListener() { public void actionPerformed(...
JMenuItem eval = new JMenuItem("Evaluate"); eval.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent ae_) {
JMenuItem reqSh = new JMenuItem( "Request Shell" ); reqSh.addActionListener( new ActionListener() { public void actionPerformed( ActionEvent ae_ ) { requestShell(); } } ); JMenuItem eval = new JMenuItem( "Evaluate" ); eval.addActionListener( new ActionListener() { public void actionPerformed( ActionEvent ae_ ) {
private void addMenuBar() { JMenuBar menubar = new JMenuBar(); JMenu jMenuFile = new JMenu("File"); jMenuFile.setMnemonic('F'); JMenuItem exit = new JMenuItem("Exit"); exit.addActionListener(new ActionListener() { public void actionPerformed(...
}); menubar.add(jMenuFile); jMenuFile.add(eval); jMenuFile.add(exit);
} ); menubar.add( jMenuFile ); jMenuFile.add( eval ); jMenuFile.add( exit ); jMenuFile.add( reqSh );
private void addMenuBar() { JMenuBar menubar = new JMenuBar(); JMenu jMenuFile = new JMenu("File"); jMenuFile.setMnemonic('F'); JMenuItem exit = new JMenuItem("Exit"); exit.addActionListener(new ActionListener() { public void actionPerformed(...
public void actionPerformed(ActionEvent ae_) {
public void actionPerformed( ActionEvent ae_ ) { Thread t = new Thread( new Runnable() { public void run() { done(); } } );
public void actionPerformed(ActionEvent ae_) { done(); }
Toolkit.getDefaultToolkit().waitTillFinished(); System.err.println("Finished Charva Shell");
System.err.println( "Finished with Done" ); pause();
void done() { hide(); Toolkit.getDefaultToolkit().close(); Toolkit.getDefaultToolkit().waitTillFinished(); System.err.println("Finished Charva Shell"); }
Object out = interpreter.eval(sourcecode); if (out != null) { bottomLabel.setText("Result=" + out); } else { bottomLabel.setText("Null Result.");
Object out = interpreter.eval( sourcecode ); if( out != null ) { bottomLabel.setText( "Result=" + out );
private void evaluateText() { String sourcecode = editor.getText(); System.out.println("Evaluating source string=" + sourcecode); topLabel.setText("Evaluating..."); repaint();// Interpreter interpreter = new Interpreter(); try { Ob...
topLabel.setText("Press F12 to Evaluate.");
else { bottomLabel.setText( "Null Result." ); } topLabel.setText( "Press F12 to Evaluate." );
private void evaluateText() { String sourcecode = editor.getText(); System.out.println("Evaluating source string=" + sourcecode); topLabel.setText("Evaluating..."); repaint();// Interpreter interpreter = new Interpreter(); try { Ob...
public static void main(String[] args) { System.err.println("Starting Charva Shell"); CharvaShell testwin = new CharvaShell(); testwin.show(); Toolkit.getDefaultToolkit().waitTillFinished(); System.err.println("Finished Charva Shell");
public static void main( String[] args ) { System.out.println( "args = " + Arrays.asList( args ) ); if( args.length == 1 && args[0].toLowerCase().equals( "debug1" ) ) { debug1(); } else { Toolkit.getDefaultToolkit().register(); System.err.println( "Starting Charva Shell" ); CharvaShell testwin = new CharvaShell(); tes...
public static void main(String[] args) { System.err.println("Starting Charva Shell"); CharvaShell testwin = new CharvaShell(); testwin.show(); Toolkit.getDefaultToolkit().waitTillFinished(); System.err.println("Finished Charva Shell"); }
encoding.trim();
encoding = encoding.trim();
private void pushURL(boolean isPE, String ename, ExternalIdentifiers ids, Reader reader, InputStream stream, String encoding, boolean doResolve) throws SAXException, IOException { boolean ignoreEncoding; String systemId; InputSource source; if (!isPE) { ...
dialog.show();
dialog.setVisible(true);
public static void showRunScriptDialog(SessionGUI session) { JPanel rsp = new JPanel(); rsp.setLayout(new BorderLayout()); JLabel jl = new JLabel("Enter script to run"); final JTextField rst = new JTextField(); rsp.add(jl,BorderLayout.NORTH); rsp.add(rst,BorderLayout.CENTER); Objec...
clone() {
public Object clone() {
clone(){ return(ci.clone());}
current() {
public char current() {
current(){ return(ci.current());}
first() {
public char first() {
first(){ return(ci.first());}
getAllAttributeKeys() {
public Set getAllAttributeKeys() {
getAllAttributeKeys(){ HashSet s = new HashSet(); if (attribs == null) return(s); for (int i = 0; i < attribs.length; i++) { if (attribs[i].begin_index > getEndIndex() || attribs[i].end_index <= getBeginIndex()) continue; Set key_set = attribs[i].attribs.keySet(); Iterator iter = key_set.itera...
getAttribute(AttributedCharacterIterator.Attribute attrib) {
public Object getAttribute(AttributedCharacterIterator.Attribute attrib) {
getAttribute(AttributedCharacterIterator.Attribute attrib){ if (attribs == null) return(null); for (int i = 0; i < attribs.length; i++) { Set key_set = attribs[i].attribs.keySet(); Iterator iter = key_set.iterator(); while (iter.hasNext()) { Object obj = iter.next(); // C...
getAttributes() {
public Map getAttributes() {
getAttributes(){ HashMap m = new HashMap(); if (attribs == null) return(m); for (int i = 0; i < attribs.length; i++) { if ((ci.getIndex() >= attribs[i].begin_index) && (ci.getIndex() < attribs[i].end_index)) m.putAll(attribs[i].attribs); } return(m);}
getBeginIndex() {
public int getBeginIndex() {
getBeginIndex(){ return(ci.getBeginIndex());}
getEndIndex() {
public int getEndIndex() {
getEndIndex(){ return(ci.getEndIndex());}
getIndex() {
public int getIndex() {
getIndex(){ return(ci.getIndex());}
getRunLimit() {
public int getRunLimit() {
getRunLimit(){ return(getRunLimit(getAttributes().keySet()));}
getRunStart() {
public int getRunStart() {
getRunStart(){ return(getRunStart(getAttributes().keySet()));}
last() {
public char last() {
last(){ return(ci.last());}
next() {
public char next() {
next(){ return(ci.next());}
previous() {
public char previous() {
previous(){ return(ci.previous());}
setIndex(int index) {
public char setIndex(int index) {
setIndex(int index){ return(ci.setIndex(index));}
super ("ISO-8859-1", new String[]{"ISO-LATIN-1"});
super ("ISO-8859-1", new String[] { "iso-ir-100", "ISO_8859-1", "latin1", "l1", "IBM819", "CP819", "csISOLatin1", "8859_1", "ISO8859_1", "ISO_8859_1", "ibm-819", "ISO_8859-1:1987", "819" });
ISO_8859_1 () { super ("ISO-8859-1", new String[]{"ISO-LATIN-1"}); }
final int stackSize = thread.getStackSize(); final Object stack = helper.getStack(thread); if (stack != null) { for (int i = 0; i < stackSize; i += slotSize) { final Address child = helper.getAddress(stack, i); if (child != null) { if (heapManager.isObject(child)) { processChild(child); } } } }
thread.visit(processChildVisitor, heapManager, helper);
private void markThreadStack(VmThread thread) { // For now do it stupid, but safe, just scan the whole stack. final int stackSize = thread.getStackSize(); final Object stack = helper.getStack(thread); if (stack != null) { for (int i = 0; i < stackSize; i += slotSize) { ...
private void processChild(Object child) {
final void processChild(Object child) {
private void processChild(Object child) { final int gcColor = helper.getObjectColor(child); if (gcColor <= GC_WHITE) { // Yellow or White helper.atomicChangeObjectColor(child, gcColor, GC_GREY); try { // TEST for a valid vmclass. helper.ge...
t.minor = Minor.Header;
public void send(IOR ior) { try { Socket socket = new Socket(ior.Internet.host, ior.Internet.port); OutputStream socketOutput = socket.getOutputStream(); write(socketOutput); socketOutput.close(); socket.close(); } catch (IOException ex) { MARSHAL t = ne...
ActionEvent event = new ActionEvent(this, 0, actionCommand);
String command = actionCommand != null ? actionCommand : getText(); ActionEvent event = new ActionEvent(this, 0, command);
public void postActionEvent() { ActionEvent event = new ActionEvent(this, 0, actionCommand); ActionListener[] listeners = getActionListeners(); for (int index = 0; index < listeners.length; ++index) listeners[index].actionPerformed(event); }
this.actionCommand = command;
actionCommand = command;
public void setActionCommand(String command) { this.actionCommand = command; }
public int checkImage(Image img, int width, int height, ImageObserver o) {
public final int checkImage(Image img, int width, int height, ImageObserver o) {
public int checkImage(Image img, int width, int height, ImageObserver o) { return toolkit.checkImage(img, width, height, o); }
public void coalescePaintEvent(PaintEvent e) {
public final void coalescePaintEvent(PaintEvent e) {
public void coalescePaintEvent(PaintEvent e) { //System.err.println( "coalescePaintEvent: " + e ); }
public void createBuffers(int x, BufferCapabilities bufferCapabilities) {
public final void createBuffers(int x, BufferCapabilities bufferCapabilities) {
public void createBuffers(int x, BufferCapabilities bufferCapabilities) { }
public void destroyBuffers() {
public final void destroyBuffers() {
public void destroyBuffers() { }
public void disable() {
public final void disable() {
public void disable() { setEnabled(false); }
void fireComponentEvent(final int oldWidth, int width, final int oldHeight, int height) {
final void fireComponentEvent(final int oldWidth, int width, final int oldHeight, int height) {
void fireComponentEvent(final int oldWidth, int width, final int oldHeight, int height) { if ((oldWidth != width) || (oldHeight != height)) { fireComponentEvent(ComponentEvent.COMPONENT_RESIZED); } else { fireComponentEvent(ComponentEvent.COMPONENT_MOVED); } }
public FontMetrics getFontMetrics(Font font) {
public final FontMetrics getFontMetrics(Font font) {
public FontMetrics getFontMetrics(Font font) { return toolkit.getFontMetrics(font); }
final Component parent = ((Component)component).getParent();
final Component parent = component.getParent();
public Graphics getGraphics() { //log.debug("getGraphics"); final Component parent = ((Component)component).getParent(); if (parent != null) { final int x = jComponent.getX(); final int y = jComponent.getY(); final int width = jComponent.getWidth(); final int height...
public GraphicsConfiguration getGraphicsConfiguration() {
public final GraphicsConfiguration getGraphicsConfiguration() {
public GraphicsConfiguration getGraphicsConfiguration() { return toolkit.getGraphicsConfiguration(); }
return computeLocationOnScreen(((Component)component));
return computeLocationOnScreen(component);
public Point getLocationOnScreen() { return computeLocationOnScreen(((Component)component)); }
public boolean isFocusTraversable() {
public final boolean isFocusTraversable() {
public boolean isFocusTraversable() { return jComponent.isFocusTraversable(); }
public boolean isFocusable() {
public final boolean isFocusable() {
public boolean isFocusable() { return jComponent.isFocusable(); }
public boolean prepareImage(Image img, int width, int height, ImageObserver o) {
public final boolean prepareImage(Image img, int width, int height, ImageObserver o) {
public boolean prepareImage(Image img, int width, int height, ImageObserver o) { return toolkit.prepareImage(img, width, height, o); }
SizeRequirements.calculateAlignedPositions(targetSpan, null, childReqs,
SizeRequirements total = baselineRequirements(axis, null); SizeRequirements.calculateAlignedPositions(targetSpan, total, childReqs,
protected void layoutMinorAxis(int targetSpan, int axis, int[] offsets, int[] spans) { SizeRequirements[] childReqs = getChildRequirements(axis); // Calculate the spans and offsets using the SizeRequirements uility // methods. SizeRequirements.calculateAlignedPositions(tar...
out.write(sc.getBytes());
for (int x = 0; x < sc.length(); x++) out.write(sc.charAt(x));
private void writeToFile(String sc,File file) { FileOutputStream out = null; try { out = new FileOutputStream(file); out.write(sc.getBytes()); out.flush(); out.close(); } catch (FileNotFoundException fnfe) {System.out.println("fnfe: " + fnfe.getMessage());} ca...
init(new SimpleDateFormat());
DateEditorFormatter nef = new DateEditorFormatter(); nef.setMinimum(getModel().getStart()); nef.setMaximum(getModel().getEnd()); ftf.setFormatterFactory(new DefaultFormatterFactory(nef));
public DateEditor(JSpinner spinner) { super(spinner); init(new SimpleDateFormat()); }
return dateFormat;
DateFormatter formatter = (DateFormatter) ftf.getFormatter(); return (SimpleDateFormat) formatter.getFormat();
public SimpleDateFormat getFormat() { return dateFormat; }
ftf.addPropertyChangeListener(this);
public DefaultEditor(JSpinner spinner) { super(); setLayout(this); this.spinner = spinner; ftf = new JFormattedTextField(); add(ftf); ftf.setValue(spinner.getValue()); spinner.addChangeListener(this); }
if (event.getSource() == ftf) { if (event.getPropertyName().equals("value")) spinner.getModel().setValue(event.getNewValue()); }
public void propertyChange(PropertyChangeEvent event) { // TODO: Implement this properly. }
ftf.setValue(spinner.getValue());
public void stateChanged(ChangeEvent event) { // TODO: Implement this properly. }
NumberEditorFormatter nef = new NumberEditorFormatter(); nef.setMinimum(getModel().getMinimum()); nef.setMaximum(getModel().getMaximum()); ftf.setFormatterFactory(new DefaultFormatterFactory(nef));
public NumberEditor(JSpinner spinner) { super(spinner); }