bugged
stringlengths
6
599k
fixed
stringlengths
6
40.8M
__index_level_0__
int64
0
3.24M
public void setRect(Rectangle2D r) { setRect(r.getX(), r.getY(), r.getWidth(), r.getHeight()); }
public void setRect(Rectangle2D r) { setRect(r.getX(), r.getY(), r.getWidth(), r.getHeight()); }
714
public void layoutContainer(Container parent) { synchronized(container.getTreeLock()) { if (container != parent) throw new AWTError("BoxLayout can't be shared"); checkLayout(); Component[] children = container.getComponents(); Insets in = container.getInsets(); for (int i = 0; i...
public void layoutContainer(Container parent) { synchronized(container.getTreeLock()) { if (container != parent) throw new AWTError("BoxLayout can't be shared"); checkLayout(); Component[] children = container.getComponents(); Insets in = container.getInsets(); for (int i = 0; i...
716
public static void calculateAlignedPositions(int allocated, SizeRequirements total, SizeRequirements[] children, int[] offsets, int[] spans) { calculateTiledPositions(allocated...
public static void calculateAlignedPositions(int allocated, SizeRequirements total, SizeRequirements[] children, int[] offsets, int[] spans) { calculateAlignedPositions(allocat...
718
getAlignedSizeRequirements(SizeRequirements[] children) { return null; // TODO }
getAlignedSizeRequirements(SizeRequirements[] children) { return null; // TODO }
719
public void setDividerLocation(int location) { if (ui != null && location != getDividerLocation()) { int oldLocation = getDividerLocation(); ((SplitPaneUI) ui).setDividerLocation(this, location); firePropertyChange(DIVIDER_LOCATION_PROPERTY, oldLocation, location); } }
public void setDividerLocation(double proportionalLocation) { if (ui != null && location != getDividerLocation()) { int oldLocation = getDividerLocation(); ((SplitPaneUI) ui).setDividerLocation(this, location); firePropertyChange(DIVIDER_LOCATION_PROPERTY, oldLocation, location); } }
721
public void setDividerLocation(int location) { if (ui != null && location != getDividerLocation()) { int oldLocation = getDividerLocation(); ((SplitPaneUI) ui).setDividerLocation(this, location); firePropertyChange(DIVIDER_LOCATION_PROPERTY, oldLocation, location); } }
public void setDividerLocation(int location) { if (ui != null && location != getDividerLocation()) { int oldLocation = getDividerLocation(); ((SplitPaneUI) ui).setDividerLocation(this, location); firePropertyChange(DIVIDER_LOCATION_PROPERTY, oldLocation, location); } }
722
public PlainDatagramSocketImpl() { }
public PlainDatagramSocketImpl() throws IOException { }
723
protected synchronized void bind(int port, InetAddress addr) throws SocketException { // @vm-specific no natives //TODO implement me throw new SocketException("Not implemented"); }
protected synchronized void bind(int port, InetAddress addr) throws SocketException { // @vm-specific no natives //TODO implement me try { impl.bind(new InetSocketAddress(addr, port)); } catch (SocketException se) { throw se; } catch (IOException ioe) { SocketException se = new SocketException(); se....
725
protected synchronized void close() { // @vm-specific no natives //TODO implement me throw new RuntimeException("Not implemented"); }
protected synchronized void close() { // @vm-specific no natives //TODO implement me throw new RuntimeException("Not implemented"); }
726
protected synchronized void create() throws SocketException { // @vm-specific no natives //TODO implement me throw new SocketException("Not implemented"); }
protected synchronized void create() throws SocketException { // @vm-specific no natives //TODO implement me throw new SocketException("Not implemented"); }
727
public synchronized Object getOption(int option_id) throws SocketException { // @vm-specific no natives //TODO implement me throw new SocketException("Not implemented"); }
public synchronized Object getOption(int option_id) throws SocketException { // @vm-specific no natives //TODO implement me throw new SocketException("Not implemented"); }
728
protected synchronized int getTimeToLive() throws IOException { Object obj = getOption(IP_TTL); if (! (obj instanceof Integer)) throw new IOException("Internal Error"); return ((Integer) obj).intValue(); }
protected synchronized int getTimeToLive() throws IOException { Object obj = getOption(IP_TTL); if (! (obj instanceof Integer)) throw new IOException("Internal Error"); return ((Integer) obj).intValue(); }
729
protected synchronized void join(InetAddress addr) throws IOException { // @vm-specific no natives throw new SocketException("Not implemented"); }
protected synchronized void join(InetAddress addr) throws IOException { // @vm-specific no natives throw new SocketException("Not implemented"); }
730
public void joinGroup(SocketAddress address, NetworkInterface netIf) { throw new InternalError ("PlainDatagramSocketImpl::joinGroup is not implemented"); }
public void joinGroup(SocketAddress address, NetworkInterface netIf) { throw new InternalError ("PlainDatagramSocketImpl::joinGroup is not implemented"); }
731
protected synchronized void leave(InetAddress addr) throws IOException { // @vm-specific no natives //TODO implement me throw new SocketException("Not implemented"); }
protected synchronized void leave(InetAddress addr) throws IOException { // @vm-specific no natives //TODO implement me throw new SocketException("Not implemented"); }
732
public void leaveGroup(SocketAddress address, NetworkInterface netIf) { throw new InternalError ("PlainDatagramSocketImpl::leaveGroup is not implemented"); }
public void leaveGroup(SocketAddress address, NetworkInterface netIf) { throw new InternalError ("PlainDatagramSocketImpl::leaveGroup is not implemented"); }
733
protected void receive(DatagramPacket packet) throws IOException { synchronized(RECEIVE_LOCK) { receive0(packet); } }
protected void receive(DatagramPacket packet) throws IOException { synchronized(RECEIVE_LOCK) { receive0(packet); } }
734
protected void send(DatagramPacket packet) throws IOException { synchronized(SEND_LOCK) { sendto(packet.getAddress(), packet.getPort(), packet.getData(), packet.getOffset(), packet.getLength()); } }
protected void send(DatagramPacket packet) throws IOException { synchronized (SEND_LOCK) { sendto(packet.getAddress(), packet.getPort(), packet.getData(), packet.getOffset(), packet.getLength()); } }
735
protected void send(DatagramPacket packet) throws IOException { synchronized(SEND_LOCK) { sendto(packet.getAddress(), packet.getPort(), packet.getData(), packet.getOffset(), packet.getLength()); } }
protected void send(DatagramPacket packet) throws IOException { synchronized(SEND_LOCK) { sendto(packet.getAddress(), packet.getPort(), packet.getData(), packet.getOffset(), packet.getLength()); } }
736
protected void send(DatagramPacket packet) throws IOException { synchronized(SEND_LOCK) { sendto(packet.getAddress(), packet.getPort(), packet.getData(), packet.getOffset(), packet.getLength()); } }
protectedvoidsend(DatagramPacketpacket)throwsIOException{synchronized(SEND_LOCK){sendto(packet.getAddress(),packet.getPort(),packet.getData(),packet.getOffset(),packet.getLength());}}
737
public synchronized void setOption(int option_id, Object val) throws SocketException { // @vm-specific no natives //TODO implement me throw new SocketException("Not implemented"); }
public synchronized void setOption(int option_id, Object val) throws SocketException { // @vm-specific no natives //TODO implement me throw new SocketException("Not implemented"); }
738
protected synchronized void setTimeToLive(int ttl) throws IOException { setOption(IP_TTL, new Integer(ttl)); }
protected synchronized void setTimeToLive(int ttl) throws IOException { impl.setTimeToLive(ttl); }
739
public NullPointerException() { super(); }
public NullPointerException() { super(); }
740
public synchronized byte[] getData() { return buffer; }
public synchronized byte[] getData() { return buffer; }
741
public synchronized int getOffset() { return offset; }
public synchronized int getOffset() { return offset; }
742
public synchronized int getLength() { return length; }
public synchronized int getLength() { return length; }
743
public void setSocketAddress(SocketAddress address) throws IllegalArgumentException { if (address == null) throw new IllegalArgumentException(); InetSocketAddress tmp = (InetSocketAddress) address; this.address = tmp.getAddress(); this.port = tmp.getPort(); }
public void setSocketAddress(SocketAddress address) throws IllegalArgumentException { if (address == null) throw new IllegalArgumentException(); InetSocketAddress tmp = (InetSocketAddress) address; this.address = tmp.getAddress(); this.port = tmp.getPort(); }
744
public void setSocketAddress(SocketAddress address) throws IllegalArgumentException { if (address == null) throw new IllegalArgumentException(); InetSocketAddress tmp = (InetSocketAddress) address; this.address = tmp.getAddress(); this.port = tmp.getPort(); }
public void setSocketAddress(SocketAddress address) throws IllegalArgumentException { if (address == null) throw new IllegalArgumentException(); InetSocketAddress tmp = (InetSocketAddress) address; this.address = tmp.getAddress(); this.port = tmp.getPort(); }
745
public synchronized void setLength(int length) { if (length < 0) throw new IllegalArgumentException("Invalid length: " + length); if (offset + length > buffer.length) throw new IllegalArgumentException("Potential buffer overflow - offset: " + offset + " length: " + length); this.length = length; }
public synchronized void setLength(int length) { if (length < 0) throw new IllegalArgumentException("Invalid length: " + length); if (offset + length > buffer.length) throw new IllegalArgumentException("Potential buffer overflow - offset: " + offset + " length: " + length); this.length = length; }
746
public synchronized void setLength(int length) { if (length < 0) throw new IllegalArgumentException("Invalid length: " + length); if (offset + length > buffer.length) throw new IllegalArgumentException("Potential buffer overflow - offset: " + offset + " length: " + length); this.length = length; }
public synchronized void setLength(int length) { if (length < 0) throw new IllegalArgumentException("Invalid length: " + length); if (offset + length > buffer.length) throw new IllegalArgumentException("Potential buffer overflow - offset: " + offset + " length: " + length); this.length = length; }
747
public synchronized InetAddress getAddress() { return address; }
public synchronized InetAddress getAddress() { return address; }
749
public synchronized int getPort() { return port; }
public synchronized int getPort() { return port; }
750
public String toString(){ String styleString = ""; switch (getStyle ()) { case 0: styleString = "plain"; break; case 1: styleString = "bold"; break; case 2: styleString = "italic"; break; default: styleString = "unknown"; } return getClass ().getName () + "[...
public String toString(){ String styleString = ""; switch (getStyle ()) { case 0: styleString = "plain"; break; case 1: styleString = "bold"; break; case 2: styleString = "italic"; break; default: styleString = "unknown"; } return getClass ().getName () + "[...
751
public String toString(){ String styleString = ""; switch (getStyle ()) { case 0: styleString = "plain"; break; case 1: styleString = "bold"; break; case 2: styleString = "italic"; break; default: styleString = "unknown"; } return getClass ().getName () + "[...
public String toString(){ String styleString = ""; switch (getStyle()) { case 0: styleString = "plain"; break; case 1: styleString = "bold"; break; case 2: styleString = "italic"; break; default: styleString = "unknown"; } return getClass ().getName () + "[f...
752
public String toString(){ String styleString = ""; switch (getStyle ()) { case 0: styleString = "plain"; break; case 1: styleString = "bold"; break; case 2: styleString = "italic"; break; default: styleString = "unknown"; } return getClass ().getName () + "[...
public String toString(){ String styleString = ""; switch (getStyle ()) { case 0: styleString = "plain"; break; case 1: styleString = "bold"; break; case 2: styleString = "italic"; break; default: styleString = "unknown"; } return getClass().getName() + "[fa...
753
public String toString(){ String styleString = ""; switch (getStyle ()) { case 0: styleString = "plain"; break; case 1: styleString = "bold"; break; case 2: styleString = "italic"; break; default: styleString = "unknown"; } return getClass ().getName () + "[...
public String toString(){ String styleString = ""; switch (getStyle ()) { case 0: styleString = "plain"; break; case 1: styleString = "bold"; break; case 2: styleString = "italic"; break; default: styleString = "unknown"; } return getClass ().getName () + "[...
754
public int getSize (){ return size;}
public int getSize (){ return size;}
755
public int getSize (){ return size;}
public int getSize (){ return size;}
756
public Font (String name, int style, int size) { HashMap attrs = new HashMap(); ClasspathFontPeer.copyStyleToAttrs (style, attrs); ClasspathFontPeer.copySizeToAttrs (size, attrs); this.peer = getPeerFromToolkit (name, attrs); this.size = size; this.pointSize = (float) size; if (name != null) ...
public Font(String name, int style, int size) { HashMap attrs = new HashMap(); ClasspathFontPeer.copyStyleToAttrs (style, attrs); ClasspathFontPeer.copySizeToAttrs (size, attrs); this.peer = getPeerFromToolkit (name, attrs); this.size = size; this.pointSize = (float) size; if (name != null) ...
757
public Font (String name, int style, int size) { HashMap attrs = new HashMap(); ClasspathFontPeer.copyStyleToAttrs (style, attrs); ClasspathFontPeer.copySizeToAttrs (size, attrs); this.peer = getPeerFromToolkit (name, attrs); this.size = size; this.pointSize = (float) size; if (name != null) ...
public Font (String name, int style, int size) { HashMap attrs = new HashMap(); ClasspathFontPeer.copyStyleToAttrs (style, attrs); ClasspathFontPeer.copySizeToAttrs (size, attrs); this.peer = getPeerFromToolkit (name, attrs); this.size = size; this.pointSize = (float) size; if (name != null) ...
758
public Action[] getActions () { throw new InternalError ("not implemented"); }
public Action[] getActions () { return super.getActions(); }
759
protected void processFocusEvent (FocusEvent evt) { throw new InternalError ("not implemented"); }
protected void processFocusEvent (FocusEvent evt) { super.processFocusEvent(evt); }
760
protected void initComponentDefaults(UIDefaults defaults) { super.initComponentDefaults(defaults); Object[] myDefaults = new Object[] { "Button.background", getControl(), "Button.border", MetalBorders.getButtonBorder(), "Button.darkShadow", getControlDarkShadow(), "Button.disabledText", get...
protected void initComponentDefaults(UIDefaults defaults) { super.initComponentDefaults(defaults); Object[] myDefaults = new Object[] { "Button.background", getControl(), "Button.border", MetalBorders.getButtonBorder(), "Button.darkShadow", getControlDarkShadow(), "Button.disabledText", get...
761
public void addCustomEntriesToTable(UIDefaults table) { // Do nothing here. // This method needs to be overloaded to actuall do something. }
public void addCustomEntriesToTable(UIDefaults table) { // Do nothing here. // This method needs to be overloaded to actuall do something. }
763
protected void initComponentDefaults(UIDefaults defaults) { Object[] uiDefaults; Color highLight = new Color(249, 247, 246); Color light = new Color(239, 235, 231); Color shadow = new Color(139, 136, 134); Color darkShadow = new Color(16, 16, 16); uiDefaults = new Object[] { "AbstractUndoa...
protected void initComponentDefaults(UIDefaults defaults) { Object[] uiDefaults; Color highLight = new Color(249, 247, 246); Color light = new Color(239, 235, 231); Color shadow = new Color(139, 136, 134); Color darkShadow = new Color(16, 16, 16); uiDefaults = new Object[] { "AbstractUndoa...
764
protected void initComponentDefaults(UIDefaults defaults) { Object[] uiDefaults; Color highLight = new Color(249, 247, 246); Color light = new Color(239, 235, 231); Color shadow = new Color(139, 136, 134); Color darkShadow = new Color(16, 16, 16); uiDefaults = new Object[] { "AbstractUndoa...
protected void initComponentDefaults(UIDefaults defaults) { Object[] uiDefaults; Color highLight = new Color(249, 247, 246); Color light = new Color(239, 235, 231); Color shadow = new Color(139, 136, 134); Color darkShadow = new Color(16, 16, 16); uiDefaults = new Object[] { "AbstractUndoa...
765
public static Border getButtonBorder() { if (buttonBorder == null) { Border outer = new ButtonBorder(); Border inner = getMarginBorder(); buttonBorder = new BorderUIResource.CompoundBorderUIResource (outer, inner); } return buttonBorder; }
public static Border getButtonBorder() { if (buttonBorder == null) { Border outer = new ButtonBorder(); Border inner = getMarginBorder(); buttonBorder = new BorderUIResource.CompoundBorderUIResource (outer, inner); } return buttonBorder; }
766
public static Border getTextFieldBorder() { if (textFieldBorder == null) textFieldBorder = new TextFieldBorder(); return textFieldBorder; }
public static Border getTextFieldBorder() { if (textFieldBorder == null) { Border inner = getMarginBorder(); Border outer = new TextFieldBorder(); textFieldBorder = new BorderUIResource.CompoundBorderUIResource(outer, inner); } return textFieldBorder; }
767
public Dimension getPreferredSize() { String s = getText(); Font f = getFont(); if (f != null) { FontMetrics fm = getToolkit().getFontMetrics(f); return new Dimension(SwingUtilities.computeStringWidth(fm, s), fm.getHeight()); } ret...
public Dimension getPreferredSize() { String s = getText(); Font f = getFont(); if (f != null) { FontMetrics fm = getToolkit().getFontMetrics(f); return new Dimension(SwingUtilities.computeStringWidth(fm, s), fm.getHeight()); } ret...
768
public Dimension getPreferredSize() { String s = getText(); Font f = getFont(); if (f != null) { FontMetrics fm = getToolkit().getFontMetrics(f); return new Dimension(SwingUtilities.computeStringWidth(fm, s), fm.getHeight()); } ret...
public Dimension getPreferredSize() { String s = getText(); Font f = getFont(); if (f != null) { FontMetrics fm = getToolkit().getFontMetrics(f); return new Dimension(SwingUtilities.computeStringWidth(fm, s), fm.getHeight()); } ret...
769
public void doLayout() { // The offset of the editing component. int eOffset; // Move the component to the left, leaving room for the editing icon: if (editingIcon != null) eOffset = editingIcon.getIconWidth(); else eOffset = 0; Rectangle bounds = getBounds(); Com...
public void doLayout() { // The offset of the editing component. int eOffset; // Move the component to the left, leaving room for the editing icon: if (editingIcon != null) eOffset = editingIcon.getIconWidth(); else eOffset = 0; Rectangle bounds = getBounds(); Com...
770
public void paint(Graphics g) { if (editingIcon != null) { // From the previous version, the left margin is taken as half // of the icon width. editingIcon.paintIcon(this, g, 0, 0); } super.paint(g); }
public void paint(Graphics g) { if (editingIcon != null) { // From the previous version, the left margin is taken as half // of the icon width. int y = Math.max(0, (getHeight() - editingIcon.getIconHeight()) / 2); editingIcon.paintIcon(this, g, 0, y); } Color c = g...
771
public void cancelCellEditing() { if (editingComponent != null) { tree.cancelEditing(); editingComponent = null; } stopEditingTimer(); }
public void cancelCellEditing() { if (editingComponent != null) { tree.cancelEditing(); editingComponent = null; } stopEditingTimer(); }
773
protected TreeCellEditor createTreeCellEditor() { DefaultCellEditor editor = new DefaultCellEditor(new DefaultTreeCellEditor.DefaultTextField( UIManager.getBorder("Tree.selectionBorder"))); editor.addCellEditorListener(new RealEditorListener()); editor.setClickCountToStart(C...
protected TreeCellEditor createTreeCellEditor() { DefaultCellEditor editor = new DefaultCellEditor(new DefaultTreeCellEditor.DefaultTextField( UIManager.getBorder("Tree.selectionBorder"))); editor.addCellEditorListener(new RealEditorListener()); editor.setClickCountToStart(C...
774
protected void determineOffset(JTree tree, Object value, boolean isSelected, boolean expanded, boolean leaf, int row) { renderer.getTreeCellRendererComponent(tree, value, isSelected, expanded, leaf, row, true); Icon c = renderer.getIcon(...
protected void determineOffset(JTree tree, Object value, boolean isSelected, boolean expanded, boolean leaf, int row) { renderer.getTreeCellRendererComponent(tree, value, isSelected, expanded, leaf, row, true); Icon c = renderer.getIcon(...
775
public Component getTreeCellEditorComponent(JTree tree, Object value, boolean isSelected, boolean expanded, boolean leaf, int row) { if (realEditor == null) realEditor = createTreeCellEditor(); return realEditor.getT...
public Component getTreeCellEditorComponent(JTree tree, Object value, boolean isSelected, boolean expanded, boolean leaf, int row) { if (realEditor == null) realEditor = createTreeCellEditor(); return realEditor.getT...
777
public Component getTreeCellEditorComponent(JTree tree, Object value, boolean isSelected, boolean expanded, boolean leaf, int row) { if (realEditor == null) realEditor = createTreeCellEditor(); return realEditor.getT...
public Component getTreeCellEditorComponent(JTree tree, Object value, boolean isSelected, boolean expanded, boolean leaf, int row) { if (realEditor == null) realEditor = createTreeCellEditor(); return realEditor.getT...
778
public Component getTreeCellEditorComponent(JTree tree, Object value, boolean isSelected, boolean expanded, boolean leaf, int row) { if (realEditor == null) realEditor = createTreeCellEditor(); return realEditor.getT...
public Component getTreeCellEditorComponent(JTree tree, Object value, boolean isSelected, boolean expanded, boolean leaf, int row) { if (realEditor == null) realEditor = createTreeCellEditor(); return realEditor.getT...
779
protected boolean inHitRegion(int x, int y) { Rectangle bounds = tree.getPathBounds(lastPath); return bounds.contains(x, y); }
protectedbooleaninHitRegion(intx,inty){Rectanglebounds=tree.getPathBounds(lastPath);returnbounds.contains(x,y);}
780
public boolean isCellEditable(EventObject event) { if (editingComponent == null) configureEditingComponent(tree, renderer, realEditor); if (editingComponent != null && realEditor.isCellEditable(event)) { prepareForEditing(); return true; } return false; }
public boolean isCellEditable(EventObject event) { if (editingComponent == null) configureEditingComponent(tree, renderer, realEditor); if (editingComponent != null && realEditor.isCellEditable(event)) { prepareForEditing(); return true; } return false; }
781
public boolean isCellEditable(EventObject event) { if (editingComponent == null) configureEditingComponent(tree, renderer, realEditor); if (editingComponent != null && realEditor.isCellEditable(event)) { prepareForEditing(); return true; } return false; }
public boolean isCellEditable(EventObject event) { if (editingComponent == null) configureEditingComponent(tree, renderer, realEditor); if (editingComponent != null && realEditor.isCellEditable(event)) { prepareForEditing(); return true; } return false; }
782
public boolean isCellEditable(EventObject event) { if (editingComponent == null) configureEditingComponent(tree, renderer, realEditor); if (editingComponent != null && realEditor.isCellEditable(event)) { prepareForEditing(); return true; } return false; }
public boolean isCellEditable(EventObject event) { if (editingComponent == null) configureEditingComponent(tree, renderer, realEditor); if (editingComponent != null && realEditor.isCellEditable(event)) { prepareForEditing(); return true; } } } } if (! realEditor.isCellEdi...
783
protected void prepareForEditing() { editingContainer.removeAll(); editingContainer.add(editingComponent); }
protected void prepareForEditing() { if (editingComponent != null) editingContainer.add(editingComponent); }
784
protected boolean shouldStartEditingTimer(EventObject event) { if ((event instanceof MouseEvent) && ((MouseEvent) event).getClickCount() == 1) return true; return false; }
protected boolean shouldStartEditingTimer(EventObject event) { if ((event instanceof MouseEvent) && ((MouseEvent) event).getClickCount() == 1) return true; return false; }
786
protected void startEditingTimer() { if (timer != null) timer.start(); }
protected void startEditingTimer() { if (timer == null) { timer = new Timer(1200, this); timer.setRepeats(false); } timer.start(); }
787
public boolean stopCellEditing() { if (editingComponent != null) { stopEditingTimer(); tree.stopEditing(); editingComponent = null; return true; } return false; }
public boolean stopCellEditing() { boolean ret = false; if (realEditor.stopCellEditing()) { stopEditingTimer(); tree.stopEditing(); editingComponent = null; return true; } return false; }
788
public boolean stopCellEditing() { if (editingComponent != null) { stopEditingTimer(); tree.stopEditing(); editingComponent = null; return true; } return false; }
public boolean stopCellEditing() { if (editingComponent != null) { stopEditingTimer(); tree.stopEditing(); editingComponent = null; return true; } return false; }
789
public boolean stopCellEditing() { if (editingComponent != null) { stopEditingTimer(); tree.stopEditing(); editingComponent = null; return true; } return false; }
public boolean stopCellEditing() { if (editingComponent != null) { stopEditingTimer(); tree.stopEditing(); editingComponent = null; return true; } return ret; }
790
public void valueChanged(TreeSelectionEvent e) { tPath = lastPath; lastPath = e.getNewLeadSelectionPath(); lastRow = tree.getRowForPath(lastPath); stopCellEditing(); }
public void valueChanged(TreeSelectionEvent e) { tPath = lastPath; lastPath = e.getNewLeadSelectionPath(); lastRow = tree.getRowForPath(lastPath); stopCellEditing(); }
791
public Dimension getPreferredSize() { Dimension size = super.getPreferredSize(); if (columns != 0) size.width = columns * getColumnWidth(); return size; }
public Dimension getPreferredSize() { Dimension size = super.getPreferredSize(); if (columns != 0) size.width = columns * getColumnWidth(); return size; }
792
public Dimension getPreferredSize() { Dimension size = super.getPreferredSize(); if (columns != 0) size.width = columns * getColumnWidth(); return size; }
public Dimension getPreferredSize() { Dimension size = super.getPreferredSize(); if (columns != 0) size.width = columns * getColumnWidth(); return size; }
793
public static Color getColor(Object key) { return (Color) getLookAndFeelDefaults().get(key); }
public static Color getColor(Object key) { return (Color) getLookAndFeelDefaults().get(key); }
794
public DefaultCellEditor(JTextField textfield) { // TODO } // DefaultCellEditor()
public DefaultCellEditor(JTextField textfield) { // TODO } // DefaultCellEditor()
795
public void setClickCountToStart(int count) { // TODO } // setClickCountToStart()
public void setClickCountToStart(int count) { // TODO } // setClickCountToStart()
796
public TreePath getPathForLocation(int x, int y) { TreePath path = getClosestPathForLocation(x, y); if (path != null) { Rectangle rect = getPathBounds(path); if ((rect != null) && rect.contains(x, y)) return path; } return null; }
public TreePath getPathForLocation(int x, int y) { TreePath path = getClosestPathForLocation(x, y); if (path != null) { Rectangle rect = getPathBounds(path); if ((rect != null) && rect.contains(x, y)) return path; } return null; }
797
public TreePath getPathForLocation(int x, int y) { TreePath path = getClosestPathForLocation(x, y); if (path != null) { Rectangle rect = getPathBounds(path); if ((rect != null) && rect.contains(x, y)) return path; } return null; }
public TreePath getPathForLocation(int x, int y) { TreePath path = getClosestPathForLocation(x, y); if (path != null) { Rectangle rect = getPathBounds(path); if ((rect != null) && rect.contains(x, y)) return path; } return null; }
798
public boolean equals(Object object) { Object[] treepath; int index; if (object instanceof TreePath) { treepath = ((TreePath) object).getPath(); if (treepath.length != path.length) return false; for (index = 0; index < path.length; index++) { if (!treepath[index].eq...
public boolean equals(Object object) { Object[] treepath; int index; if (object instanceof TreePath) { treepath = ((TreePath) object).getPath(); if (treepath.length != path.length) return false; for (index = 0; index < path.length; index++) { if (!treepath[index].eq...
799
public boolean isRowSelected(int row) { return selectionModel.isPathSelected(getPathForRow(row)); }
public boolean isRowSelected(int row) { return selectionModel.isPathSelected(getPathForRow(row)); }
800
public SizeRequirements() { // TODO } // SizeRequirements()
public SizeRequirements() { // TODO } // SizeRequirements()
801
public static int[] adjustSizes(int delta, SizeRequirements[] children) { return null; // TODO } // adjustSizes()
public static int[] adjustSizes(int delta, SizeRequirements[] children) { return null; // TODO } // adjustSizes()
802
public static int[] adjustSizes(int delta, SizeRequirements[] children) { return null; // TODO } // adjustSizes()
public static int[] adjustSizes(int delta, SizeRequirements[] children) { return null; // TODO } // adjustSizes()
803
public static void calculateAlignedPositions(int allocated, SizeRequirements total, SizeRequirements[] children, int[] offset, int[] spans) { // TODO } // calculateAlignedPositions()
public static void calculateAlignedPositions(int allocated, SizeRequirements total, SizeRequirements[] children, int[] offset, int[] spans) { // TODO } // calculateAlignedPositions()
804
public static void calculateTiledPositions(int allocated, SizeRequirements total, SizeRequirements[] children, int[] offset, int[] spans) { // TODO } // calculateTiledPositions()
public static void calculateTiledPositions(int allocated, SizeRequirements total, SizeRequirements[] children, int[] offset, int[] spans) { // TODO } // calculateTiledPositions()
805
public static SizeRequirements getAlignedSizeRequirements( SizeRequirements[] children) { return null; // TODO } // getAlignedSizeRequirements()
public static SizeRequirements getAlignedSizeRequirements( SizeRequirements[] children) { return null; // TODO } // getAlignedSizeRequirements()
806
public static SizeRequirements getAlignedSizeRequirements( SizeRequirements[] children) { return null; // TODO } // getAlignedSizeRequirements()
public static SizeRequirements getAlignedSizeRequirements( SizeRequirements[] children) { return null; // TODO } // getAlignedSizeRequirements()
807
public static SizeRequirements getTiledSizeRequirements( SizeRequirements[] children) { return null; // TODO } // getTiledSizeRequirements()
public static SizeRequirements getTiledSizeRequirements( SizeRequirements[] children) { return null; // TODO } // getTiledSizeRequirements()
808
public String toString() { return null; // TODO } // toString()
public String toString() { return null; // TODO } // toString()
809
public String toString() { return null; // TODO } // toString()
public String toString() { return null; // TODO } // toString()
810
public boolean isFocusCycleRoot () { return focusCycleRoot; }
public boolean isFocusCycleRoot (Container c) { return focusCycleRoot; }
811
public boolean isFocusCycleRoot () { return focusCycleRoot; }
public boolean isFocusCycleRoot () { if (this == c && isFocusCycleRoot ()) return true; Container ancestor = getFocusCycleRootAncestor (); if (c == ancestor) return true; return false; }
812
private void handleBooleanProperty(final String name) { String s = null; try { s = System.getProperty(name); } catch (SecurityException x) { if (DEBUG) debug("SecurityManager forbids reading system properties. Ignored"); } if (s != null) { s = s.trim...
private void handleBooleanProperty(final String name) { String s = null; try { s = System.getProperty(name); } catch (SecurityException x) { if (DEBUG) debug("SecurityManager forbids reading system properties. Ignored"); } if (s != null) { s = s.trim...
814
private void handleBooleanProperty(final String name) { String s = null; try { s = System.getProperty(name); } catch (SecurityException x) { if (DEBUG) debug("SecurityManager forbids reading system properties. Ignored"); } if (s != null) { s = s.trim...
private void handleBooleanProperty(final String name) { String s = null; try { s = System.getProperty(name); } catch (SecurityException x) { if (DEBUG) debug("SecurityManager forbids reading system properties. Ignored"); } if (s != null) { s = s.trim...
815
private void handleBooleanProperty(final String name) { String s = null; try { s = System.getProperty(name); } catch (SecurityException x) { if (DEBUG) debug("SecurityManager forbids reading system properties. Ignored"); } if (s != null) { s = s.trim...
private void handleBooleanProperty(final String name) { String s = null; try { s = System.getProperty(name); } catch (SecurityException x) { if (DEBUG) debug("SecurityManager forbids reading system properties. Ignored"); } if (s != null) { s = s.trim...
816
private void init() { // default values props.put(REPRODUCIBLE_PRNG, (reproducible ? "true" : "false")); props.put(CHECK_WEAK_KEYS, (checkForWeakKeys ? "true" : "false")); props.put(DO_RSA_BLINDING, (doRSABlinding ? "true" : "false")); // 1. allow site-wide override by reading a properties file Str...
privatevoidinit(){//defaultvaluesprops.put(REPRODUCIBLE_PRNG,(reproducible?"true":"false"));props.put(CHECK_WEAK_KEYS,(checkForWeakKeys?"true":"false"));props.put(DO_RSA_BLINDING,(doRSABlinding?"true":"false"));//1.allowsite-wideoverridebyreadingapropertiesfileStringpropFile=null;try{propFile=(String)AccessController.d...
817
private void init() { // default values props.put(REPRODUCIBLE_PRNG, (reproducible ? "true" : "false")); props.put(CHECK_WEAK_KEYS, (checkForWeakKeys ? "true" : "false")); props.put(DO_RSA_BLINDING, (doRSABlinding ? "true" : "false")); // 1. allow site-wide override by reading a properties file Str...
private void init() { // default values props.put(REPRODUCIBLE_PRNG, (reproducible ? "true" : "false")); props.put(CHECK_WEAK_KEYS, (checkForWeakKeys ? "true" : "false")); props.put(DO_RSA_BLINDING, (doRSABlinding ? "true" : "false")); // 1. allow site-wide override by reading a properties file Str...
818
private void init() { // default values props.put(REPRODUCIBLE_PRNG, (reproducible ? "true" : "false")); props.put(CHECK_WEAK_KEYS, (checkForWeakKeys ? "true" : "false")); props.put(DO_RSA_BLINDING, (doRSABlinding ? "true" : "false")); // 1. allow site-wide override by reading a properties file Str...
private void init() { // default values props.put(REPRODUCIBLE_PRNG, (reproducible ? "true" : "false")); props.put(CHECK_WEAK_KEYS, (checkForWeakKeys ? "true" : "false")); props.put(DO_RSA_BLINDING, (doRSABlinding ? "true" : "false")); // 1. allow site-wide override by reading a properties file Str...
819
private void init() { // default values props.put(REPRODUCIBLE_PRNG, (reproducible ? "true" : "false")); props.put(CHECK_WEAK_KEYS, (checkForWeakKeys ? "true" : "false")); props.put(DO_RSA_BLINDING, (doRSABlinding ? "true" : "false")); // 1. allow site-wide override by reading a properties file Str...
private void init() { // default values props.put(REPRODUCIBLE_PRNG, (reproducible ? "true" : "false")); props.put(CHECK_WEAK_KEYS, (checkForWeakKeys ? "true" : "false")); props.put(DO_RSA_BLINDING, (doRSABlinding ? "true" : "false")); // 1. allow site-wide override by reading a properties file Str...
820
private void init() { // default values props.put(REPRODUCIBLE_PRNG, (reproducible ? "true" : "false")); props.put(CHECK_WEAK_KEYS, (checkForWeakKeys ? "true" : "false")); props.put(DO_RSA_BLINDING, (doRSABlinding ? "true" : "false")); // 1. allow site-wide override by reading a properties file Str...
privatevoidinit(){//defaultvaluesprops.put(REPRODUCIBLE_PRNG,(reproducible?"true":"false"));props.put(CHECK_WEAK_KEYS,(checkForWeakKeys?"true":"false"));props.put(DO_RSA_BLINDING,(doRSABlinding?"true":"false"));//1.allowsite-wideoverridebyreadingapropertiesfileStringpropFile=null;try{propFile=(String)AccessController.d...
821
private void init() { // default values props.put(REPRODUCIBLE_PRNG, (reproducible ? "true" : "false")); props.put(CHECK_WEAK_KEYS, (checkForWeakKeys ? "true" : "false")); props.put(DO_RSA_BLINDING, (doRSABlinding ? "true" : "false")); // 1. allow site-wide override by reading a properties file Str...
privatevoidinit(){//defaultvaluesprops.put(REPRODUCIBLE_PRNG,(reproducible?"true":"false"));props.put(CHECK_WEAK_KEYS,(checkForWeakKeys?"true":"false"));props.put(DO_RSA_BLINDING,(doRSABlinding?"true":"false"));//1.allowsite-wideoverridebyreadingapropertiesfileStringpropFile=null;try{propFile=(String)AccessController.d...
822
private void init() { // default values props.put(REPRODUCIBLE_PRNG, (reproducible ? "true" : "false")); props.put(CHECK_WEAK_KEYS, (checkForWeakKeys ? "true" : "false")); props.put(DO_RSA_BLINDING, (doRSABlinding ? "true" : "false")); // 1. allow site-wide override by reading a properties file Str...
private void init() { // default values props.put(REPRODUCIBLE_PRNG, (reproducible ? "true" : "false")); props.put(CHECK_WEAK_KEYS, (checkForWeakKeys ? "true" : "false")); props.put(DO_RSA_BLINDING, (doRSABlinding ? "true" : "false")); // 1. allow site-wide override by reading a properties file Str...
823