bugged
stringlengths
6
599k
fixed
stringlengths
10
599k
__index_level_0__
int64
0
1.13M
public void valueChanged(TreeSelectionEvent event) { if (tree.isEditing()) tree.cancelEditing(); }
public void valueChanged(TreeSelectionEvent event) { if (tree.isEditing()) tree.stopEditing(); }
14,284
public void cancelEditing(JTree tree) { if (isEditing(tree)) completeEditing(false, true, false); }
public void cancelEditing(JTree tree) { if (isEditing(tree)) completeEditing(false, true, false); }
14,285
protected void installDefaults() { LookAndFeel.installColorsAndFont(tree, "Tree.background", "Tree.foreground", "Tree.font"); tree.setOpaque(true); rightChildIndent = UIManager.getInt("Tree.rightChildIndent"); leftChildIndent = UIManager.getInt("Tree.leftChildIndent");...
protected void installDefaults() { LookAndFeel.installColorsAndFont(tree, "Tree.background", "Tree.foreground", "Tree.font"); tree.setOpaque(true); rightChildIndent = UIManager.getInt("Tree.rightChildIndent"); leftChildIndent = UIManager.getInt("Tree.leftChildIndent");...
14,286
protected void paintRow(Graphics g, Rectangle clipBounds, Insets insets, Rectangle bounds, TreePath path, int row, boolean isExpanded, boolean hasBeenExpanded, boolean isLeaf) { boolean selected = tree.isPathSelected(path); boolean hasI...
protected void paintRow(Graphics g, Rectangle clipBounds, Insets insets, Rectangle bounds, TreePath path, int row, boolean isExpanded, boolean hasBeenExpanded, boolean isLeaf) { boolean selected = tree.isPathSelected(path); boolean hasI...
14,287
protected void paintRow(Graphics g, Rectangle clipBounds, Insets insets, Rectangle bounds, TreePath path, int row, boolean isExpanded, boolean hasBeenExpanded, boolean isLeaf) { boolean selected = tree.isPathSelected(path); boolean hasI...
protected void paintRow(Graphics g, Rectangle clipBounds, Insets insets, Rectangle bounds, TreePath path, int row, boolean isExpanded, boolean hasBeenExpanded, boolean isLeaf) { boolean selected = tree.isPathSelected(path); boolean hasI...
14,288
protected boolean startEditing(TreePath path, MouseEvent event) { int x; int y; if (event == null) { Rectangle bounds = getPathBounds(tree, path); x = bounds.x; y = bounds.y; } else { x = event.getX(); y = event.getY(); } updateCellEditor(); Tr...
protected boolean startEditing(TreePath path, MouseEvent event) { int x; int y; if (event == null) { Rectangle bounds = getPathBounds(tree, path); x = bounds.x; y = bounds.y; } else { x = event.getX(); y = event.getY(); } updateCellEditor(); Tr...
14,289
protected boolean startEditing(TreePath path, MouseEvent event) { int x; int y; if (event == null) { Rectangle bounds = getPathBounds(tree, path); x = bounds.x; y = bounds.y; } else { x = event.getX(); y = event.getY(); } updateCellEditor(); Tr...
protected boolean startEditing(TreePath path, MouseEvent event) { int x; int y; if (event == null) { Rectangle bounds = getPathBounds(tree, path); x = bounds.x; y = bounds.y; } else { x = event.getX(); y = event.getY(); } updateCellEditor(); Tr...
14,290
protected boolean startEditing(TreePath path, MouseEvent event) { int x; int y; if (event == null) { Rectangle bounds = getPathBounds(tree, path); x = bounds.x; y = bounds.y; } else { x = event.getX(); y = event.getY(); } updateCellEditor(); Tr...
protected boolean startEditing(TreePath path, MouseEvent event) { int x; int y; if (event == null) { Rectangle bounds = getPathBounds(tree, path); x = bounds.x; y = bounds.y; } else { x = event.getX(); y = event.getY(); } updateCellEditor(); Tr...
14,291
protected boolean startEditing(TreePath path, MouseEvent event) { int x; int y; if (event == null) { Rectangle bounds = getPathBounds(tree, path); x = bounds.x; y = bounds.y; } else { x = event.getX(); y = event.getY(); } updateCellEditor(); Tr...
protected boolean startEditing(TreePath path, MouseEvent event) { int x; int y; if (event == null) { Rectangle bounds = getPathBounds(tree, path); x = bounds.x; y = bounds.y; } else { x = event.getX(); y = event.getY(); } updateCellEditor(); Tr...
14,292
protected boolean startEditing(TreePath path, MouseEvent event) { int x; int y; if (event == null) { Rectangle bounds = getPathBounds(tree, path); x = bounds.x; y = bounds.y; } else { x = event.getX(); y = event.getY(); } updateCellEditor(); Tr...
protected boolean startEditing(TreePath path, MouseEvent event) { int x; int y; if (event == null) { Rectangle bounds = getPathBounds(tree, path); x = bounds.x; y = bounds.y; } else { x = event.getX(); y = event.getY(); } updateCellEditor(); Tr...
14,293
protected boolean startEditing(TreePath path, MouseEvent event) { int x; int y; if (event == null) { Rectangle bounds = getPathBounds(tree, path); x = bounds.x; y = bounds.y; } else { x = event.getX(); y = event.getY(); } updateCellEditor(); Tr...
protected boolean startEditing(TreePath path, MouseEvent event) { int x; int y; if (event == null) { Rectangle bounds = getPathBounds(tree, path); x = bounds.x; y = bounds.y; } else { x = event.getX(); y = event.getY(); } updateCellEditor(); Tr...
14,294
public boolean stopEditing(JTree tree) { if (isEditing(tree)) completeEditing(true, false, false); return !isEditing(tree); }
public boolean stopEditing(JTree tree) { if (isEditing(tree)) { completeEditing(false, false, true); finish(); } return !isEditing(tree); }
14,295
public void openFrame(JInternalFrame frame);
void openFrame(JInternalFrame frame);
14,297
public void setBoundsForFrame(JComponent frame, int x, int y, int width, int height);
void setBoundsForFrame(JComponent frame, int x, int y, int width, int height);
14,298
public void mouseDragged(MouseEvent e) { curr = new Point(e.getX(), e.getY()); updateSelection(); }
public void mouseDragged(MouseEvent e) { curr = new Point(e.getX(), e.getY()); updateSelection(e.isControlDown()); }
14,299
public void mousePressed(MouseEvent e) { begin = new Point(e.getX(), e.getY()); curr = new Point(e.getX(), e.getY()); updateSelection(); }
public void mousePressed(MouseEvent e) { begin = new Point(e.getX(), e.getY()); curr = new Point(e.getX(), e.getY()); updateSelection(e.isControlDown()); }
14,300
private void updateSelection() { if (table.getRowSelectionAllowed()) { int lo_row = table.rowAtPoint(begin); int hi_row = table.rowAtPoint(curr); ListSelectionModel rowModel = table.getSelectionModel(); if (lo_row != -1 && hi_row != -1) rowModel.setSele...
private void updateSelection(boolean controlPressed) { if (table.getRowSelectionAllowed()) { int lo_row = table.rowAtPoint(begin); int hi_row = table.rowAtPoint(curr); ListSelectionModel rowModel = table.getSelectionModel(); if (lo_row != -1 && hi_row != -1) ...
14,301
protected static String toIDL(String cn) { if (cn.startsWith(JAVA_PREFIX)) cn = cn.substring(JAVA_PREFIX.length()); cn = cn.replace('.', '/'); return "IDL:" + OMG_PREFIX + cn + ":1.0"; }
public static String toIDL(String cn) { if (cn.startsWith(JAVA_PREFIX)) cn = cn.substring(JAVA_PREFIX.length()); cn = cn.replace('.', '/'); return "IDL:" + OMG_PREFIX + cn + ":1.0"; }
14,305
protected static String toIDL(String cn) { if (cn.startsWith(JAVA_PREFIX)) cn = cn.substring(JAVA_PREFIX.length()); cn = cn.replace('.', '/'); return "IDL:" + OMG_PREFIX + cn + ":1.0"; }
protected static String toIDL(String cn) { if (cn.startsWith(JAVA_PREFIX)) cn = OMG_PREFIX + cn.substring(JAVA_PREFIX.length()).replace('.', '/'); else if (cn.startsWith(CLASSPATH_PREFIX)) cn = OMG_PREFIX + cn.substring(CLASSPATH_PREFIX.length()).replace('.', '/'); cn = cn.replace('.', '/'); return "ID...
14,306
protected static String toIDL(String cn) { if (cn.startsWith(JAVA_PREFIX)) cn = cn.substring(JAVA_PREFIX.length()); cn = cn.replace('.', '/'); return "IDL:" + OMG_PREFIX + cn + ":1.0"; }
protected static String toIDL(String cn) { if (cn.startsWith(JAVA_PREFIX)) cn = cn.substring(JAVA_PREFIX.length()); cn = cn.replace('.', '/'); return "IDL:" + OMG_PREFIX + cn + ":1.0"; }
14,307
private void addDirectoryRecord(Ext2DirectoryRecord dr) throws IOException, FileSystemException{ //synchronize to the inode cache to make sure that the inode does not get //flushed between reading it and locking it synchronized(((Ext2FileSystem)getFileSystem()).getInodeCache()) { //reread the inode before synchro...
private void addDirectoryRecord(Ext2DirectoryRecord dr) throws IOException, FileSystemException{ //synchronize to the inode cache to make sure that the inode does not get //flushed between reading it and locking it synchronized(((Ext2FileSystem)getFileSystem()).getInodeCache()) { //reread the inode before synchro...
14,308
private void addDirectoryRecord(Ext2DirectoryRecord dr) throws IOException, FileSystemException{ //synchronize to the inode cache to make sure that the inode does not get //flushed between reading it and locking it synchronized(((Ext2FileSystem)getFileSystem()).getInodeCache()) { //reread the inode before synchro...
private void addDirectoryRecord(Ext2DirectoryRecord dr) throws IOException, FileSystemException{ //synchronize to the inode cache to make sure that the inode does not get //flushed between reading it and locking it synchronized(((Ext2FileSystem)getFileSystem()).getInodeCache()) { //reread the inode before synchro...
14,309
protected FSEntry addINode(int iNodeNr, String linkName, int fileType) throws IOException { if(!canWrite()) throw new IOException("Filesystem or directory is mounted read-only!"); //TODO: access rights, file type, UID and GID should be passed through the FSDirectory interface Ext2DirectoryRecord dr; Ext2FileS...
protected FSEntry addINode(int iNodeNr, String linkName, int fileType) throws IOException { if(!canWrite()) throw new IOException("Filesystem or directory is mounted read-only!"); //TODO: access rights, file type, UID and GID should be passed through the FSDirectory interface Ext2DirectoryRecord dr; Ext2FileS...
14,310
protected FSEntry addINode(int iNodeNr, String linkName, int fileType) throws IOException { if(!canWrite()) throw new IOException("Filesystem or directory is mounted read-only!"); //TODO: access rights, file type, UID and GID should be passed through the FSDirectory interface Ext2DirectoryRecord dr; Ext2FileS...
protected FSEntry addINode(int iNodeNr, String linkName, int fileType) throws IOException { if(!canWrite()) throw new IOException("Filesystem or directory is mounted read-only!"); //TODO: access rights, file type, UID and GID should be passed through the FSDirectory interface Ext2DirectoryRecord dr; Ext2FileS...
14,311
public FSEntry createDirectoryEntry(String name) throws IOException { if(!canWrite()) throw new IOException("Filesystem or directory is mounted read-only!"); //create a new iNode for the file //TODO: access rights, file type, UID and GID should be passed through the FSDirectory interface INode newINode; Ext2Dir...
public FSEntry createDirectoryEntry(String name) throws IOException { if(!canWrite()) throw new IOException("Filesystem or directory is mounted read-only!"); //create a new iNode for the file //TODO: access rights, file type, UID and GID should be passed through the FSDirectory interface INode newINode; Ext2Dir...
14,312
public FSEntry createDirectoryEntry(String name) throws IOException { if(!canWrite()) throw new IOException("Filesystem or directory is mounted read-only!"); //create a new iNode for the file //TODO: access rights, file type, UID and GID should be passed through the FSDirectory interface INode newINode; Ext2Dir...
public FSEntry createDirectoryEntry(String name) throws IOException { if(!canWrite()) throw new IOException("Filesystem or directory is mounted read-only!"); //create a new iNode for the file //TODO: access rights, file type, UID and GID should be passed through the FSDirectory interface INode newINode; Ext2Dir...
14,313
public FSEntry createDirectoryEntry(String name) throws IOException { if(!canWrite()) throw new IOException("Filesystem or directory is mounted read-only!"); //create a new iNode for the file //TODO: access rights, file type, UID and GID should be passed through the FSDirectory interface INode newINode; Ext2Dir...
public FSEntry createDirectoryEntry(String name) throws IOException { if(!canWrite()) throw new IOException("Filesystem or directory is mounted read-only!"); //create a new iNode for the file //TODO: access rights, file type, UID and GID should be passed through the FSDirectory interface INode newINode; Ext2Dir...
14,314
public FSEntry createFileEntry(String name) throws IOException { if(!canWrite()) throw new IOException("Filesystem or directory is mounted read-only!"); //create a new iNode for the file //TODO: access rights, file type, UID and GID should be passed through the FSDirectory interface INode newINode; Ext2Director...
public FSEntry createFileEntry(String name) throws IOException { if(!canWrite()) throw new IOException("Filesystem or directory is mounted read-only!"); //create a new iNode for the file //TODO: access rights, file type, UID and GID should be passed through the FSDirectory interface INode newINode; Ext2Director...
14,315
public FSEntry createFileEntry(String name) throws IOException { if(!canWrite()) throw new IOException("Filesystem or directory is mounted read-only!"); //create a new iNode for the file //TODO: access rights, file type, UID and GID should be passed through the FSDirectory interface INode newINode; Ext2Director...
public FSEntry createFileEntry(String name) throws IOException { if(!canWrite()) throw new IOException("Filesystem or directory is mounted read-only!"); //create a new iNode for the file //TODO: access rights, file type, UID and GID should be passed through the FSDirectory interface INode newINode; Ext2Director...
14,316
public FSEntry createFileEntry(String name) throws IOException { if(!canWrite()) throw new IOException("Filesystem or directory is mounted read-only!"); //create a new iNode for the file //TODO: access rights, file type, UID and GID should be passed through the FSDirectory interface INode newINode; Ext2Director...
public FSEntry createFileEntry(String name) throws IOException { if(!canWrite()) throw new IOException("Filesystem or directory is mounted read-only!"); //create a new iNode for the file //TODO: access rights, file type, UID and GID should be passed through the FSDirectory interface INode newINode; Ext2Director...
14,317
public void installUI(JComponent c) { super.installUI(c); c.setLayout(new ViewportLayout()); installListeners(c); }
public void installUI(JComponent c) { super.installUI(c); installListeners(c); }
14,318
protected void installDefaults() { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); menuItem.setBackground(defaults.getColor("Menu.background")); menuItem.setBorder(defaults.getBorder("Menu.border")); menuItem.setFont(defaults.getFont("Menu.font")); menuItem.setForeground(defaults.getColor("M...
protected void installDefaults() { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); menuItem.setBackground(defaults.getColor("Menu.background")); menuItem.setBorder(defaults.getBorder("Menu.border")); menuItem.setFont(defaults.getFont("Menu.font")); menuItem.setForeground(defaults.getColor("M...
14,319
public ColorModel(int bits) { this(bits * 4, // total bits, sRGB, four channels nArray(bits, 4), // bits for each channel ColorSpace.getInstance(ColorSpace.CS_sRGB), // sRGB true, // has alpha false, // not premultiplied TRANSLUCENT, Buffers.smallestAppropriateTransferType(bits * 4)); }
public ColorModel(int bits) { this(bits * 4, // total bits, sRGB, four channels nArray(bits, 4), // bits for each channel ColorSpace.getInstance(ColorSpace.CS_sRGB), // sRGB true, // has alpha false, // not premultiplied TRANSLUCENT, Buffers.smallestAppropriateTransferType(bits * 4)); }
14,320
protected void initialize(Address start, Address end, int slotSize) { //Unsafe.debug("bootheap.initialize"); //Unsafe.debug("start"); Unsafe.debug(Unsafe.addressToInt(start)); //Unsafe.debug("end"); Unsafe.debug(Unsafe.addressToInt(end)); this.start = start; this.end = end; ...
protected void initialize(Address start, Address end, int slotSize) { //Unsafe.debug("bootheap.initialize"); //Unsafe.debug("start"); Unsafe.debug(Unsafe.addressToInt(start)); //Unsafe.debug("end"); Unsafe.debug(Unsafe.addressToInt(end)); this.start = start; this.end = end; ...
14,321
protected void initialize(Address start, Address end, int slotSize) { //Unsafe.debug("bootheap.initialize"); //Unsafe.debug("start"); Unsafe.debug(Unsafe.addressToInt(start)); //Unsafe.debug("end"); Unsafe.debug(Unsafe.addressToInt(end)); this.start = start; this.end = end; ...
protected void initialize(Address start, Address end, int slotSize) { //Unsafe.debug("bootheap.initialize"); //Unsafe.debug("start"); Unsafe.debug(Unsafe.addressToInt(start)); //Unsafe.debug("end"); Unsafe.debug(Unsafe.addressToInt(end)); this.start = start; this.end = end; ...
14,322
public void show() { synchronized (getTreeLock()) { if (parent != null && !parent.isDisplayable()) parent.addNotify(); if (peer == null) addNotify(); // Show visible owned windows. Iterator e = ownedWindows.iterator(); while(e.hasNext()) { Window w = (Window)(((Reference) e.next()).get...
public void show() { synchronized (getTreeLock()) { if (parent != null && !parent.isDisplayable()) parent.addNotify(); if (peer == null) addNotify(); // Show visible owned windows. Iterator e = ownedWindows.iterator(); while(e.hasNext()) { Window w = (Window)(((Reference) e.next()).get...
14,323
public void show() { synchronized (getTreeLock()) { if (parent != null && !parent.isDisplayable()) parent.addNotify(); if (peer == null) addNotify(); // Show visible owned windows. Iterator e = ownedWindows.iterator(); while(e.hasNext()) { Window w = (Window)(((Reference) e.next()).get...
public void show() { synchronized (getTreeLock()) { if (parent != null && !parent.isDisplayable()) parent.addNotify(); if (peer == null) addNotify(); // Show visible owned windows. Iterator e = ownedWindows.iterator(); while(e.hasNext()) { Window w = (Window)(((Reference) e.next()).get...
14,324
public boolean prepareImage(Image img, int width, int height, ImageObserver ob) { Component parent = awtComponent.getParent(); ComponentPeer parentPeer = parent.getPeer(); return parentPeer.prepareImage(img, width, height, ob); }
public boolean prepareImage(Image img, int width, int height, ImageObserver ob) { Component parent = awtComponent.getParent(); ComponentPeer parentPeer = parent.getPeer(); res = parentPeer.prepareImage(img, width, height, ob); } else { res = Toolkit.getDefaultToolkit().prepareImage(img, width, height, ob); ...
14,325
public DefaultTreeCellRenderer() { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); setLeafIcon(getDefaultLeafIcon()); setOpenIcon(getDefaultOpenIcon()); setClosedIcon(getDefaultClosedIcon()); setTextNonSelectionColor(defaults.getColor("Tree.textForegro...
public DefaultTreeCellRenderer() { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); setLeafIcon(getDefaultLeafIcon()); setOpenIcon(getDefaultOpenIcon()); setClosedIcon(getDefaultClosedIcon()); setTextNonSelectionColor(defaults.getColor("Tree.textForegro...
14,326
public Component getTreeCellRendererComponent(JTree tree, Object val, boolean selected, boolean expanded, boolean leaf, int row, boolean hasFocus) { this.selected = selected; this.hasFocus = hasFocus; setText(val.toString()); setHorizontalAlignment(LEFT); setOpaque(true); ...
public Component getTreeCellRendererComponent(JTree tree, Object val, boolean selected, boolean expanded, boolean leaf, int row, boolean hasFocus) { this.selected = selected; this.hasFocus = hasFocus; setText(val.toString()); setHorizontalAlignment(LEFT); setOpaque(true); ...
14,327
public Component getTreeCellRendererComponent(JTree tree, Object val, boolean selected, boolean expanded, boolean leaf, int row, boolean hasFocus) { this.selected = selected; this.hasFocus = hasFocus; setText(val.toString()); setHorizontalAlignment(LEFT); setOpaque(true); ...
public Component getTreeCellRendererComponent(JTree tree, Object val, boolean selected, boolean expanded, boolean leaf, int row, boolean hasFocus) { this.selected = selected; this.hasFocus = hasFocus; setText(val.toString()); setHorizontalAlignment(LEFT); setOpaque(true); ...
14,328
public void paint(Graphics g, JComponent c) { JLabel b = (JLabel) c; Font saved_font = g.getFont(); Rectangle tr = new Rectangle(); Rectangle ir = new Rectangle(); Rectangle vr = new Rectangle(); Font f = c.getFont(); g.setFont(f); FontMetrics fm = g.getFontMetrics(f); vr = SwingUtilities....
public void paint(Graphics g, JComponent c) { JLabel b = (JLabel) c; Font saved_font = g.getFont(); Rectangle tr = new Rectangle(); Rectangle ir = new Rectangle(); Rectangle vr = new Rectangle(); Font f = c.getFont(); g.setFont(f); FontMetrics fm = g.getFontMetrics(f); vr = SwingUtilities....
14,330
public Dimension getMaximumSize(JComponent c) { return null; }
public Dimension getMaximumSize(JComponent c) { return c.getPreferredSize(); }
14,332
protected void installKeyboardActions(JScrollPane sp) throws NotImplementedException { // TODO: Is this only a hook method or should we actually do something // here? If the latter, than figure out what and implement this. }
protected void installKeyboardActions(JScrollPane sp) { // TODO: Is this only a hook method or should we actually do something // here? If the latter, than figure out what and implement this. }
14,333
protected void uninstallKeyboardActions(JScrollPane sp) throws NotImplementedException { // TODO: Is this only a hook method or should we actually do something // here? If the latter, than figure out what and implement this. }
protected void uninstallKeyboardActions(JScrollPane sp) { // TODO: Is this only a hook method or should we actually do something // here? If the latter, than figure out what and implement this. }
14,335
private IIORegistry() { super(defaultCategories.iterator()); // XXX: Register built-in Spis here. ((ClasspathToolkit)Toolkit.getDefaultToolkit()).registerImageIOSpis(this); registerApplicationClasspathSpis(); }
private IIORegistry() { super(defaultCategories.iterator()); // XXX: Register built-in Spis here. Toolkit toolkit = Toolkit.getDefaultToolkit(); if (toolkit instanceof ClasspathToolkit) ((ClasspathToolkit)toolkit).registerImageIOSpis(this); registerApplicationClasspathSpis(); }
14,338
public PolicyListHolder(Policy[] initialValue) { value = initialValue; }
public PolicyListHolder() { value = initialValue; }
14,340
public PolicyListHolder(Policy[] initialValue) { value = initialValue; }
public PolicyListHolder(Policy[] initialValue) { }
14,341
public static SortedMap availableCharsets() { TreeMap charsets = new TreeMap(String.CASE_INSENSITIVE_ORDER); CharsetProvider[] providers = providers(); for (int j = 0; j < providers.length; j++) { for (Iterator i = providers[j].charsets(); i.hasNext(); ) { Charset cs = (Charset) i.ne...
public static SortedMap availableCharsets() { TreeMap charsets = new TreeMap(String.CASE_INSENSITIVE_ORDER); CharsetProvider[] providers = providers2(); for (int j = 0; j < providers.length; j++) { for (Iterator i = providers[j].charsets(); i.hasNext(); ) { Charset cs = (Charset) i.n...
14,342
private static Charset charsetForName(String charsetName) { checkName (charsetName); Charset cs = null; CharsetProvider[] providers = providers(); for (int i = 0; i < providers.length; i++) { cs = providers[i].charsetForName(charsetName); if (cs != null) break; } return cs; }
private static Charset charsetForName(String charsetName) { checkName (charsetName); Charset cs = null; CharsetProvider[] providers = providers2(); for (int i = 0; i < providers.length; i++) { cs = providers[i].charsetForName(charsetName); if (cs != null) break; } return cs; }
14,343
public static Charset defaultCharset() { String encoding; try { encoding = System.getProperty("file.encoding"); } catch(SecurityException e) { encoding = "ISO-8859-1"; } catch(IllegalArgumentException e) { encoding = "ISO-8859-1"; } try { return forName(encoding); } catch(Unsu...
public static Charset defaultCharset() { String encoding; try { encoding = System.getProperty("file.encoding"); } catch(SecurityException e) { encoding = "ISO-8859-1"; } catch(IllegalArgumentException e) { encoding = "ISO-8859-1"; } try { return forName(encoding); } catch(Unsu...
14,344
public static Charset defaultCharset() { String encoding; try { encoding = System.getProperty("file.encoding"); } catch(SecurityException e) { encoding = "ISO-8859-1"; } catch(IllegalArgumentException e) { encoding = "ISO-8859-1"; } try { return forName(encoding); } catch(Unsu...
public static Charset defaultCharset() { String encoding; try { encoding = System.getProperty("file.encoding"); } catch(SecurityException e) { encoding = "ISO-8859-1"; } catch(IllegalArgumentException e) { encoding = "ISO-8859-1"; } try { return forName(encoding); } catch(Unsu...
14,345
static Object allocateObject (Class clazz) throws InstantiationException { // TODO implement me return null; }
static Object allocateObject (Class clazzClass, Class constr_clazz, Constructor constructor) throws InstantiationException { // TODO implement me return null; }
14,348
protected void paintFocus(Graphics g, Rectangle t, Dimension d) { g.setColor(focusColor); g.drawRect(t.x - 1, t.y + 2, t.width + 2, t.height - 4); }
protected void paintFocus(Graphics g, Rectangle t, Dimension d) { g.setColor(focusColor); g.drawRect(t.x - 1, t.y - 1, t.width + 2, t.height + 2); }
14,349
public Component getComponentAfter (Container root, Component current) { if (root == null) throw new IllegalArgumentException ("focus cycle root is null"); if (current == null) throw new IllegalArgumentException ("current component is null"); if (!root.isFocusCycleRoot ()) throw new IllegalAr...
public Component getComponentAfter (Container root, Component current) { if (root == null) throw new IllegalArgumentException ("focus cycle root is null"); if (current == null) throw new IllegalArgumentException ("current component is null"); if (!root.isFocusCycleRoot ()) throw new IllegalAr...
14,350
public Component getComponentAfter (Container root, Component current) { if (root == null) throw new IllegalArgumentException ("focus cycle root is null"); if (current == null) throw new IllegalArgumentException ("current component is null"); if (!root.isFocusCycleRoot ()) throw new IllegalAr...
public Component getComponentAfter (Container root, Component current) { if (root == null) throw new IllegalArgumentException ("focus cycle root is null"); if (current == null) throw new IllegalArgumentException ("current component is null"); if (!root.isFocusCycleRoot ()) throw new IllegalAr...
14,351
public Component getComponentAfter (Container root, Component current) { if (root == null) throw new IllegalArgumentException ("focus cycle root is null"); if (current == null) throw new IllegalArgumentException ("current component is null"); if (!root.isFocusCycleRoot ()) throw new IllegalAr...
public Component getComponentAfter (Container root, Component current) { if (root == null) throw new IllegalArgumentException ("focus cycle root is null"); if (current == null) throw new IllegalArgumentException ("current component is null"); if (!root.isFocusCycleRoot ()) throw new IllegalAr...
14,352
public Component getComponentBefore (Container root, Component current) { if (root == null) throw new IllegalArgumentException ("focus cycle root is null"); if (current == null) throw new IllegalArgumentException ("current component is null"); if (!root.isFocusCycleRoot ()) throw new IllegalA...
public Component getComponentBefore (Container root, Component current) { if (root == null) throw new IllegalArgumentException ("focus cycle root is null"); if (current == null) throw new IllegalArgumentException ("current component is null"); if (!root.isFocusCycleRoot ()) throw new IllegalA...
14,353
public Component getComponentBefore (Container root, Component current) { if (root == null) throw new IllegalArgumentException ("focus cycle root is null"); if (current == null) throw new IllegalArgumentException ("current component is null"); if (!root.isFocusCycleRoot ()) throw new IllegalA...
public Component getComponentBefore (Container root, Component current) { if (root == null) throw new IllegalArgumentException ("focus cycle root is null"); if (current == null) throw new IllegalArgumentException ("current component is null"); if (!root.isFocusCycleRoot ()) throw new IllegalA...
14,354
public Component getFirstComponent(Container root) { if (root == null) throw new IllegalArgumentException (); if (!root.isVisible () || !root.isDisplayable ()) return null; if (accept (root)) return root; Component[] componentArray = root.getComponents (); for (int i = 0; i < c...
public Component getFirstComponent(Container root) { if (root == null) throw new IllegalArgumentException (); if (!root.isVisible () || !root.isDisplayable ()) return null; if (root.visible && root.isDisplayable() && root.enabled && root.focusable) return root; Component[] componentAr...
14,355
public Component getFirstComponent(Container root) { if (root == null) throw new IllegalArgumentException (); if (!root.isVisible () || !root.isDisplayable ()) return null; if (accept (root)) return root; Component[] componentArray = root.getComponents (); for (int i = 0; i < c...
public Component getFirstComponent(Container root) { if (root == null) throw new IllegalArgumentException (); if (!root.isVisible () || !root.isDisplayable ()) return null; if (accept (root)) return root; Component[] componentArray = root.getComponents (); for (int i = 0; i < c...
14,356
public Component getFirstComponent(Container root) { if (root == null) throw new IllegalArgumentException (); if (!root.isVisible () || !root.isDisplayable ()) return null; if (accept (root)) return root; Component[] componentArray = root.getComponents (); for (int i = 0; i < c...
public Component getFirstComponent(Container root) { if (root == null) throw new IllegalArgumentException (); if (!root.isVisible () || !root.isDisplayable ()) return null; if (accept (root)) return root; Component[] componentArray = root.getComponents (); for (int i = 0; i < c...
14,357
public Component getLastComponent (Container root) { if (root == null) throw new IllegalArgumentException (); if (!root.isVisible () || !root.isDisplayable ()) return null; if (accept (root)) return root; Component[] componentArray = root.getComponents (); for (int i = compon...
public Component getLastComponent (Container root) { if (root == null) throw new IllegalArgumentException (); if (!root.isVisible () || !root.isDisplayable ()) return null; if (root.visible && root.isDisplayable() && root.enabled && root.focusable) return root; Component[] component...
14,358
public Component getLastComponent (Container root) { if (root == null) throw new IllegalArgumentException (); if (!root.isVisible () || !root.isDisplayable ()) return null; if (accept (root)) return root; Component[] componentArray = root.getComponents (); for (int i = compon...
public Component getLastComponent (Container root) { if (root == null) throw new IllegalArgumentException (); if (!root.isVisible () || !root.isDisplayable ()) return null; if (accept (root)) return root; Component[] componentArray = root.getComponents (); for (int i = compon...
14,359
public Component getLastComponent (Container root) { if (root == null) throw new IllegalArgumentException (); if (!root.isVisible () || !root.isDisplayable ()) return null; if (accept (root)) return root; Component[] componentArray = root.getComponents (); for (int i = compon...
public Component getLastComponent (Container root) { if (root == null) throw new IllegalArgumentException (); if (!root.isVisible () || !root.isDisplayable ()) return null; if (accept (root)) return root; Component[] componentArray = root.getComponents (); for (int i = compon...
14,360
public String getMessage() { return super.getMessage() + (index >= 0 ? " at index " + index : "") + ": " + input; }
public String getMessage() { return super.getMessage() + (index >= 0 ? " at index " + index : "") + ": " + input; }
14,361
public ServiceContextListHolder(ServiceContext[] initialValue) { value = initialValue; }
public ServiceContextListHolder() { value = initialValue; }
14,362
public ServiceContextListHolder(ServiceContext[] initialValue) { value = initialValue; }
public ServiceContextListHolder(ServiceContext[] initialValue) { }
14,363
public int getViewIndex(int pos, Position.Bias b) { return getElement().getElementIndex(pos); }
public int getViewIndex(int pos, Position.Bias b) { int index = -1; int i = 0; for (Iterator it = children.iterator(); it.hasNext(); i++) { View child = (View) it.next(); if (child.getStartOffset() >= pos && child.getEndOffset() < pos) { index = i; break; } } return index; }
14,366
protected int getViewIndexAtPosition(int pos) { // We have one child view allocated for each child element in // loadChildren(), so this should work. Element el = getElement(); int index = el.getElementIndex(pos); return index; }
protected int getViewIndexAtPosition(int pos) { // We have one child view allocated for each child element in // loadChildren(), so this should work. Element el = getElement(); int index = el.getElementIndex(pos); return index; }
14,367
public void update(Graphics g, JComponent c) { if (c.isOpaque()) { g.setColor(c.getBackground()); g.fillRect(0, 0, c.getWidth(), c.getHeight()); } paint(g, c); }
public void update(Graphics g, JComponent c) { if (c.isOpaque()) { g.setColor(c.getBackground()); Rectangle clip = g.getClipBounds(); g.fillRect(clip.x, clip.y, clip.width, clip.height); } paint(g, c); }
14,368
public int getCrossFeedResolution(int units) { if (units < 1) throw new IllegalArgumentException("units may not be less then 1"); int rount = units / 2; return (crossFeedResolution + units) / units; }
public int getCrossFeedResolution(int units) { if (units < 1) throw new IllegalArgumentException("units may not be less then 1"); return (crossFeedResolution + units) / units; }
14,369
public int getFeedResolution(int units) { if (units < 1) throw new IllegalArgumentException("units may not be less then 1"); int rount = units / 2; return (crossFeedResolution + units) / units; }
public int getFeedResolution(int units) { if (units < 1) throw new IllegalArgumentException("units may not be less then 1"); return (crossFeedResolution + units) / units; }
14,370
protected void fireValueChanged(int firstIndex, int lastIndex) { fireValueChanged(firstIndex, lastIndex, getValueIsAdjusting()); }
protected void fireValueChanged(boolean isAdjusting) { fireValueChanged(firstIndex, lastIndex, getValueIsAdjusting()); }
14,371
protected void fireValueChanged(int firstIndex, int lastIndex) { fireValueChanged(firstIndex, lastIndex, getValueIsAdjusting()); }
protected void fireValueChanged(int firstIndex, int lastIndex) { fireValueChanged(getMinSelectionIndex(), getMaxSelectionIndex(), isAdjusting); }
14,372
public static Border createLineBorder(Color color) { return null; }
public static Border createLineBorder(Color color) { return createLineBorder(color, 1); }
14,374
private void installNewProvider() { log.entering("Main", "installNewProvider"); String providerName = provider.getName(); log.info("About to install new provider: " + providerName); // we need to override security checks Boolean result = (Boolean) AccessController.doPrivileged(new PrivilegedAction() ...
private void installNewProvider() { log.entering(this.getClass().getName(), "installNewProvider"); String providerName = provider.getName(); log.info("About to install new provider: " + providerName); // we need to override security checks Boolean result = (Boolean) AccessController.doPrivileged(new P...
14,375
private void installNewProvider() { log.entering("Main", "installNewProvider"); String providerName = provider.getName(); log.info("About to install new provider: " + providerName); // we need to override security checks Boolean result = (Boolean) AccessController.doPrivileged(new PrivilegedAction() ...
private void installNewProvider() { log.entering("Main", "installNewProvider"); String providerName = provider.getName(); log.info("About to install new provider: " + providerName); // we need to override security checks Boolean result = (Boolean) AccessController.doPrivileged(new PrivilegedAction() ...
14,376
private void installNewProvider() { log.entering("Main", "installNewProvider"); String providerName = provider.getName(); log.info("About to install new provider: " + providerName); // we need to override security checks Boolean result = (Boolean) AccessController.doPrivileged(new PrivilegedAction() ...
private void installNewProvider() { log.entering("Main", "installNewProvider"); String providerName = provider.getName(); log.info("About to install new provider: " + providerName); // we need to override security checks Boolean result = (Boolean) AccessController.doPrivileged(new PrivilegedAction() ...
14,377
public static final void main(String[] args) { log.entering("Main", "main", args); Main tool = new Main(); try { tool.processArgs(args); tool.start(); } catch (SecurityException x) { log.throwing("Main", "main", x); System.err.println("jarsigner: " + x.getMessag...
public static final void main(String[] args) { log.entering(Main.class.getName(), "main", args); Main tool = new Main(); try { tool.processArgs(args); tool.start(); } catch (SecurityException x) { log.throwing("Main", "main", x); System.err.println("jarsigner: "...
14,378
public static final void main(String[] args) { log.entering("Main", "main", args); Main tool = new Main(); try { tool.processArgs(args); tool.start(); } catch (SecurityException x) { log.throwing("Main", "main", x); System.err.println("jarsigner: " + x.getMessag...
public static final void main(String[] args) { log.entering("Main", "main", args); Main tool = new Main(); try { tool.processArgs(args); tool.start(); } catch (SecurityException x) { log.throwing("Main", "main", x); System.err.println("jarsigner: " + x.getMessag...
14,379
public static final void main(String[] args) { log.entering("Main", "main", args); Main tool = new Main(); try { tool.processArgs(args); tool.start(); } catch (SecurityException x) { log.throwing("Main", "main", x); System.err.println("jarsigner: " + x.getMessag...
public static final void main(String[] args) { log.entering("Main", "main", args); Main tool = new Main(); try { tool.processArgs(args); tool.start(); } catch (SecurityException x) { log.throwing("Main", "main", x); System.err.println("jarsigner: " + x.getMessag...
14,380
public static final void main(String[] args) { log.entering("Main", "main", args); Main tool = new Main(); try { tool.processArgs(args); tool.start(); } catch (SecurityException x) { log.throwing("Main", "main", x); System.err.println("jarsigner: " + x.getMessag...
public static final void main(String[] args) { log.entering("Main", "main", args); Main tool = new Main(); try { tool.processArgs(args); tool.start(); } catch (SecurityException x) { log.throwing("Main", "main", x); System.err.println("jarsigner: " + x.getMessag...
14,381
private void processArgs(String[] args) throws Exception { log.entering("Main", "processArgs", args); HelpPrinter.checkHelpKey(args, HELP_PATH); if (args == null || args.length == 0) HelpPrinter.printHelpAndExit(HELP_PATH); int limit = args.length; log.finest("args.length=" + limit); int i = 0...
private void processArgs(String[] args) throws Exception { log.entering(this.getClass().getName(), "processArgs", args); HelpPrinter.checkHelpKey(args, HELP_PATH); if (args == null || args.length == 0) HelpPrinter.printHelpAndExit(HELP_PATH); int limit = args.length; log.finest("args.length=" + l...
14,382
private void processArgs(String[] args) throws Exception { log.entering("Main", "processArgs", args); HelpPrinter.checkHelpKey(args, HELP_PATH); if (args == null || args.length == 0) HelpPrinter.printHelpAndExit(HELP_PATH); int limit = args.length; log.finest("args.length=" + limit); int i = 0...
private void processArgs(String[] args) throws Exception { log.entering("Main", "processArgs", args); HelpPrinter.checkHelpKey(args, HELP_PATH); if (args == null || args.length == 0) HelpPrinter.printHelpAndExit(HELP_PATH); int limit = args.length; log.finest("args.length=" + limit); int i = 0...
14,383
private void processArgs(String[] args) throws Exception { log.entering("Main", "processArgs", args); HelpPrinter.checkHelpKey(args, HELP_PATH); if (args == null || args.length == 0) HelpPrinter.printHelpAndExit(HELP_PATH); int limit = args.length; log.finest("args.length=" + limit); int i = 0...
private void processArgs(String[] args) throws Exception { log.entering("Main", "processArgs", args); HelpPrinter.checkHelpKey(args, HELP_PATH); if (args == null || args.length == 0) HelpPrinter.printHelpAndExit(HELP_PATH); int limit = args.length; log.finest("args.length=" + limit); int i = 0...
14,384
private void processArgs(String[] args) throws Exception { log.entering("Main", "processArgs", args); HelpPrinter.checkHelpKey(args, HELP_PATH); if (args == null || args.length == 0) HelpPrinter.printHelpAndExit(HELP_PATH); int limit = args.length; log.finest("args.length=" + limit); int i = 0...
private void processArgs(String[] args) throws Exception { log.entering("Main", "processArgs", args); HelpPrinter.checkHelpKey(args, HELP_PATH); if (args == null || args.length == 0) HelpPrinter.printHelpAndExit(HELP_PATH); int limit = args.length; log.finest("args.length=" + limit); int i = 0...
14,385
private void processArgs(String[] args) throws Exception { log.entering("Main", "processArgs", args); HelpPrinter.checkHelpKey(args, HELP_PATH); if (args == null || args.length == 0) HelpPrinter.printHelpAndExit(HELP_PATH); int limit = args.length; log.finest("args.length=" + limit); int i = 0...
private void processArgs(String[] args) throws Exception { log.entering("Main", "processArgs", args); HelpPrinter.checkHelpKey(args, HELP_PATH); if (args == null || args.length == 0) HelpPrinter.printHelpAndExit(HELP_PATH); int limit = args.length; log.finest("args.length=" + limit); int i = 0...
14,386
private void setupCommonParams() throws InstantiationException, IllegalAccessException, ClassNotFoundException, IOException { log.entering("Main", "setupCommonParams"); if (jarFileName == null) HelpPrinter.printHelpAndExit(HELP_PATH); File jar = new File(jarFileName); if (! jar.exists()) t...
private void setupCommonParams() throws InstantiationException, IllegalAccessException, ClassNotFoundException, IOException { log.entering("Main", "setupCommonParams"); if (jarFileName == null) HelpPrinter.printHelpAndExit(HELP_PATH); File jar = new File(jarFileName); if (! jar.exists()) t...
14,387
private void setupCommonParams() throws InstantiationException, IllegalAccessException, ClassNotFoundException, IOException { log.entering("Main", "setupCommonParams"); if (jarFileName == null) HelpPrinter.printHelpAndExit(HELP_PATH); File jar = new File(jarFileName); if (! jar.exists()) t...
private void setupCommonParams() throws InstantiationException, IllegalAccessException, ClassNotFoundException, IOException { log.entering("Main", "setupCommonParams"); if (jarFileName == null) HelpPrinter.printHelpAndExit(HELP_PATH); File jar = new File(jarFileName); if (! jar.exists()) t...
14,388
private void setupCommonParams() throws InstantiationException, IllegalAccessException, ClassNotFoundException, IOException { log.entering("Main", "setupCommonParams"); if (jarFileName == null) HelpPrinter.printHelpAndExit(HELP_PATH); File jar = new File(jarFileName); if (! jar.exists()) t...
private void setupCommonParams() throws InstantiationException, IllegalAccessException, ClassNotFoundException, IOException { log.entering("Main", "setupCommonParams"); if (jarFileName == null) HelpPrinter.printHelpAndExit(HELP_PATH); File jar = new File(jarFileName); if (! jar.exists()) t...
14,389
private void setupCommonParams() throws InstantiationException, IllegalAccessException, ClassNotFoundException, IOException { log.entering("Main", "setupCommonParams"); if (jarFileName == null) HelpPrinter.printHelpAndExit(HELP_PATH); File jar = new File(jarFileName); if (! jar.exists()) t...
private void setupCommonParams() throws InstantiationException, IllegalAccessException, ClassNotFoundException, IOException { log.entering("Main", "setupCommonParams"); if (jarFileName == null) HelpPrinter.printHelpAndExit(HELP_PATH); File jar = new File(jarFileName); if (! jar.exists()) t...
14,390
private void setupCommonParams() throws InstantiationException, IllegalAccessException, ClassNotFoundException, IOException { log.entering("Main", "setupCommonParams"); if (jarFileName == null) HelpPrinter.printHelpAndExit(HELP_PATH); File jar = new File(jarFileName); if (! jar.exists()) t...
private void setupCommonParams() throws InstantiationException, IllegalAccessException, ClassNotFoundException, IOException { log.entering("Main", "setupCommonParams"); if (jarFileName == null) HelpPrinter.printHelpAndExit(HELP_PATH); File jar = new File(jarFileName); if (! jar.exists()) t...
14,391
private void setupCommonParams() throws InstantiationException, IllegalAccessException, ClassNotFoundException, IOException { log.entering("Main", "setupCommonParams"); if (jarFileName == null) HelpPrinter.printHelpAndExit(HELP_PATH); File jar = new File(jarFileName); if (! jar.exists()) t...
private void setupCommonParams() throws InstantiationException, IllegalAccessException, ClassNotFoundException, IOException { log.entering("Main", "setupCommonParams"); if (jarFileName == null) HelpPrinter.printHelpAndExit(HELP_PATH); File jar = new File(jarFileName); if (! jar.exists()) t...
14,392
private void setupSigningParams() throws KeyStoreException, IOException, NoSuchAlgorithmException, CertificateException, UnsupportedCallbackException, UnrecoverableKeyException { log.entering("Main", "setupSigningParams"); if (ksURL == null || ksURL.trim().length() == 0) { String userHome...
private void setupSigningParams() throws KeyStoreException, IOException, NoSuchAlgorithmException, CertificateException, UnsupportedCallbackException, UnrecoverableKeyException { log.entering(this.getClass().getName(), "setupSigningParams"); if (ksURL == null || ksURL.trim().length() == 0) { ...
14,393
private void setupSigningParams() throws KeyStoreException, IOException, NoSuchAlgorithmException, CertificateException, UnsupportedCallbackException, UnrecoverableKeyException { log.entering("Main", "setupSigningParams"); if (ksURL == null || ksURL.trim().length() == 0) { String userHome...
private void setupSigningParams() throws KeyStoreException, IOException, NoSuchAlgorithmException, CertificateException, UnsupportedCallbackException, UnrecoverableKeyException { log.entering("Main", "setupSigningParams"); if (ksURL == null || ksURL.trim().length() == 0) { String userHome...
14,394
private void setupSigningParams() throws KeyStoreException, IOException, NoSuchAlgorithmException, CertificateException, UnsupportedCallbackException, UnrecoverableKeyException { log.entering("Main", "setupSigningParams"); if (ksURL == null || ksURL.trim().length() == 0) { String userHome...
private void setupSigningParams() throws KeyStoreException, IOException, NoSuchAlgorithmException, CertificateException, UnsupportedCallbackException, UnrecoverableKeyException { log.entering("Main", "setupSigningParams"); if (ksURL == null || ksURL.trim().length() == 0) { String userHome...
14,395
private void setupSigningParams() throws KeyStoreException, IOException, NoSuchAlgorithmException, CertificateException, UnsupportedCallbackException, UnrecoverableKeyException { log.entering("Main", "setupSigningParams"); if (ksURL == null || ksURL.trim().length() == 0) { String userHome...
private void setupSigningParams() throws KeyStoreException, IOException, NoSuchAlgorithmException, CertificateException, UnsupportedCallbackException, UnrecoverableKeyException { log.entering("Main", "setupSigningParams"); if (ksURL == null || ksURL.trim().length() == 0) { String userHome...
14,396
private void setupSigningParams() throws KeyStoreException, IOException, NoSuchAlgorithmException, CertificateException, UnsupportedCallbackException, UnrecoverableKeyException { log.entering("Main", "setupSigningParams"); if (ksURL == null || ksURL.trim().length() == 0) { String userHome...
private void setupSigningParams() throws KeyStoreException, IOException, NoSuchAlgorithmException, CertificateException, UnsupportedCallbackException, UnrecoverableKeyException { log.entering("Main", "setupSigningParams"); if (ksURL == null || ksURL.trim().length() == 0) { String userHome...
14,397
private void setupSigningParams() throws KeyStoreException, IOException, NoSuchAlgorithmException, CertificateException, UnsupportedCallbackException, UnrecoverableKeyException { log.entering("Main", "setupSigningParams"); if (ksURL == null || ksURL.trim().length() == 0) { String userHome...
private void setupSigningParams() throws KeyStoreException, IOException, NoSuchAlgorithmException, CertificateException, UnsupportedCallbackException, UnrecoverableKeyException { log.entering("Main", "setupSigningParams"); if (ksURL == null || ksURL.trim().length() == 0) { String userHome...
14,398