bugged
stringlengths
6
599k
fixed
stringlengths
6
40.8M
__index_level_0__
int64
0
3.24M
public void show() { Rectangle cbBounds = comboBox.getBounds(); // popup should have same width as the comboBox and should be hight anough // to display number of rows equal to 'maximumRowCount' property int popupHeight = getPopupHeightForRowCount(comboBox.getMaximumRowCount()); scroller.setPreferredS...
public void show() { Dimension size = comboBox.getSize(); size.height = getPopupHeightForRowCount(comboBox.getMaximumRowCount()); Insets i = getInsets(); size.width -= i.left + i.right; Rectangle bounds = computePopupBounds(0, comboBox.getBounds().height, size.width, size.height); // popup should have same wid...
27,452
public void show() { Rectangle cbBounds = comboBox.getBounds(); // popup should have same width as the comboBox and should be hight anough // to display number of rows equal to 'maximumRowCount' property int popupHeight = getPopupHeightForRowCount(comboBox.getMaximumRowCount()); scroller.setPreferredS...
public void show() { Rectangle cbBounds = comboBox.getBounds(); // popup should have same width as the comboBox and should be hight anough // to display number of rows equal to 'maximumRowCount' property scroller.setMaximumSize(bounds.getSize()); scroller.setPreferredSize(bounds.getSize()); scroller.setMin...
27,453
public void show() { Rectangle cbBounds = comboBox.getBounds(); // popup should have same width as the comboBox and should be hight anough // to display number of rows equal to 'maximumRowCount' property int popupHeight = getPopupHeightForRowCount(comboBox.getMaximumRowCount()); scroller.setPreferredS...
public void show() { Rectangle cbBounds = comboBox.getBounds(); // popup should have same width as the comboBox and should be hight anough // to display number of rows equal to 'maximumRowCount' property int popupHeight = getPopupHeightForRowCount(comboBox.getMaximumRowCount()); scroller.setPreferredS...
27,454
public void show() { Rectangle cbBounds = comboBox.getBounds(); // popup should have same width as the comboBox and should be hight anough // to display number of rows equal to 'maximumRowCount' property int popupHeight = getPopupHeightForRowCount(comboBox.getMaximumRowCount()); scroller.setPreferredS...
public void show() { Rectangle cbBounds = comboBox.getBounds(); // popup should have same width as the comboBox and should be hight anough // to display number of rows equal to 'maximumRowCount' property int popupHeight = getPopupHeightForRowCount(comboBox.getMaximumRowCount()); scroller.setPreferredS...
27,455
protected void togglePopup() { if (BasicComboPopup.this.isVisible()) hide(); else show(); }
protected void togglePopup() { if (isVisible()) hide(); else show(); }
27,456
private void uninstallComboBoxListeners() { comboBox.removeMouseListener(mouseListener); mouseListener = null; comboBox.removeMouseMotionListener(mouseMotionListener); mouseMotionListener = null; comboBox.removeItemListener(itemListener); itemListener = null; comboBox.removePropertyChangeListene...
private void uninstallComboBoxListeners() { comboBox.removeMouseListener(mouseListener); mouseListener = null; comboBox.removeMouseMotionListener(mouseMotionListener); mouseMotionListener = null; comboBox.removeItemListener(itemListener); itemListener = null; comboBox.removePropertyChangeListene...
27,457
private void uninstallListeners() { uninstallListListeners(); uninstallComboBoxListeners(); uninstallComboBoxModelListeners(comboBox.getModel()); }
private void uninstallListeners() { uninstallComboBoxListeners(); uninstallComboBoxModelListeners(comboBox.getModel()); }
27,458
public void uninstallingUI() { uninstallComboBoxModelListeners(comboBox.getModel()); uninstallListeners(); uninstallKeyboardActions(); }
publicvoiduninstallingUI(){uninstallComboBoxModelListeners(comboBox.getModel());uninstallListeners();uninstallKeyboardActions();}
27,459
protected void updateListBoxSelectionForEvent(MouseEvent anEvent, boolean shouldScroll) { // TODO: We need to handle the shouldScroll parameter somehow. int index = list.locationToIndex(anEvent.getPoint()); // Check for valid index. if (index >= 0) list...
protected void updateListBoxSelectionForEvent(MouseEvent anEvent, boolean shouldScroll) { // TODO: We need to handle the shouldScroll parameter somehow. int index = list.locationToIndex(anEvent.getPoint()); // Check for valid index. if (index >= 0) list...
27,460
public boolean contains(Point p) { return width > 0 && height > 0 && p.x >= x && p.x < x + width && p.y >= y && p.y < y + height; }
public boolean contains(Point p) { return width > 0 && height > 0 && p.x >= x && p.x < x + width && p.y >= y && p.y < y + height; }
27,462
public Dimension getSize() { return new Dimension(width, height); }
public Dimension getSize() { return new Dimension(width, height); }
27,463
public RemoteException(String s) { this(s, null); }
public RemoteException() { this(s, null); }
27,464
public RemoteException(String s) { this(s, null); }
public RemoteException(String s) { this(null, null); }
27,465
public void acceptDrag (int dragOperation) { // FIXME: implement this }
context.acceptDrag (dragOperation); context.acceptDrag (dragOperation); publiccontext.acceptDrag (dragOperation); voidcontext.acceptDrag (dragOperation); acceptDragcontext.acceptDrag (dragOperation); (intcontext.acceptDrag (dragOperation); dragOperation)context.acceptDrag (dragOperation); context.acceptDrag (dragOperat...
27,467
public DataFlavor[] getCurrentDataFlavors () { // FIXME: implement this return null; }
public DataFlavor[] getCurrentDataFlavors () { // FIXME: implement this return context.getCurrentDataFlavors (); }
27,468
public List getCurrentDataFlavorsAsList () { // FIXME: implement this return null; }
public List getCurrentDataFlavorsAsList () { // FIXME: implement this return context.getCurrentDataFlavorsAsList (); }
27,469
public boolean isDataFlavorSupported (DataFlavor df) { // FIXME: implement this return true; }
public boolean isDataFlavorSupported (DataFlavor df) { // FIXME: implement this return context.isDataFlavorSupported (df); }
27,470
public void rejectDrag () { // FIXME: implement this }
context.rejectDrag (); context.rejectDrag (); publiccontext.rejectDrag (); voidcontext.rejectDrag (); rejectDragcontext.rejectDrag (); ()context.rejectDrag (); context.rejectDrag (); {context.rejectDrag (); context.rejectDrag (); context.rejectDrag (); context.rejectDrag (); //context.rejectDrag (); FIXME:context.rejec...
27,471
final int getValue() { return (primary << 16) + (secondary << 8) + tertiary; }
int getValue() { return (primary << 16) + (secondary << 8) + tertiary; }
27,472
public static final int primaryOrder(int order) { // From the JDK 1.2 spec. return order >>> 16; }
public static int primaryOrder(int order) { // From the JDK 1.2 spec. return order >>> 16; }
27,473
public static final short secondaryOrder(int order) { // From the JDK 1.2 spec. return (short) ((order >>> 8) & 255); }
public static short secondaryOrder(int order) { // From the JDK 1.2 spec. return (short) ((order >>> 8) & 255); }
27,474
public static final short tertiaryOrder(int order) { // From the JDK 1.2 spec. return (short) (order & 255); }
public static short tertiaryOrder(int order) { // From the JDK 1.2 spec. return (short) (order & 255); }
27,475
public FormatMismatch(String why) { super(why); }
public FormatMismatch() { super(why); }
27,476
public FormatMismatch(String why) { super(why); }
public FormatMismatch(String why) { }
27,477
public static AudioInputStream getAudioInputStream(InputStream is) throws UnsupportedAudioFileException, IOException { Iterator i = ServiceFactory.lookupProviders(AudioFileReader.class); while (i.hasNext()) { AudioFileReader reader = (AudioFileReader) i.next(); try { r...
public static AudioInputStream getAudioInputStream(InputStream is) throws UnsupportedAudioFileException, IOException { Iterator i = ServiceFactory.lookupProviders(AudioFileReader.class); while (i.hasNext()) { AudioFileReader reader = (AudioFileReader) i.next(); try { r...
27,478
public static AudioInputStream getAudioInputStream(InputStream is) throws UnsupportedAudioFileException, IOException { Iterator i = ServiceFactory.lookupProviders(AudioFileReader.class); while (i.hasNext()) { AudioFileReader reader = (AudioFileReader) i.next(); try { r...
public static AudioInputStream getAudioInputStream(InputStream is) throws UnsupportedAudioFileException, IOException { HashSet result = new HashSet(); Iterator i = ServiceFactory.lookupProviders(FormatConversionProvider.class); while (i.hasNext()) { AudioFileReader reader = (AudioFileReader) i.n...
27,479
public static AudioInputStream getAudioInputStream(InputStream is) throws UnsupportedAudioFileException, IOException { Iterator i = ServiceFactory.lookupProviders(AudioFileReader.class); while (i.hasNext()) { AudioFileReader reader = (AudioFileReader) i.next(); try { r...
public static AudioInputStream getAudioInputStream(InputStream is) throws UnsupportedAudioFileException, IOException { Iterator i = ServiceFactory.lookupProviders(AudioFileReader.class); while (i.hasNext()) { AudioFileReader reader = (AudioFileReader) i.next(); try { r...
27,480
public static AudioInputStream getAudioInputStream(InputStream is) throws UnsupportedAudioFileException, IOException { Iterator i = ServiceFactory.lookupProviders(AudioFileReader.class); while (i.hasNext()) { AudioFileReader reader = (AudioFileReader) i.next(); try { r...
public static AudioInputStream getAudioInputStream(InputStream is) throws UnsupportedAudioFileException, IOException { Iterator i = ServiceFactory.lookupProviders(AudioFileReader.class); while (i.hasNext()) { AudioFileReader reader = (AudioFileReader) i.next(); try { r...
27,481
boolean isComponentPartOfCurrentMenu (Component c) { MenuElement[] subElements; for (int i = 0; i < selection.size (); i++) { subElements = ((MenuElement) selection.get (i)).getSubElements (); for (int j = 0; j < subElements.length; j++) { if ((subElements[j].getComponent...
boolean isComponentPartOfCurrentMenu(Component c) { MenuElement[] subElements; for (int i = 0; i < selection.size (); i++) { subElements = ((MenuElement) selection.get (i)).getSubElements (); for (int j = 0; j < subElements.length; j++) { if ((subElements[j].getComponent ...
27,482
boolean isComponentPartOfCurrentMenu (Component c) { MenuElement[] subElements; for (int i = 0; i < selection.size (); i++) { subElements = ((MenuElement) selection.get (i)).getSubElements (); for (int j = 0; j < subElements.length; j++) { if ((subElements[j].getComponent...
boolean isComponentPartOfCurrentMenu (Component c) { MenuElement[] subElements; for (int i = 0; i < selectedPath.size(); i++) { subElements = ((MenuElement) selection.get (i)).getSubElements (); for (int j = 0; j < subElements.length; j++) { if ((subElements[j].getCompone...
27,483
boolean isComponentPartOfCurrentMenu (Component c) { MenuElement[] subElements; for (int i = 0; i < selection.size (); i++) { subElements = ((MenuElement) selection.get (i)).getSubElements (); for (int j = 0; j < subElements.length; j++) { if ((subElements[j].getComponent...
boolean isComponentPartOfCurrentMenu (Component c) { MenuElement[] subElements; for (int i = 0; i < selection.size (); i++) { subElements = ((MenuElement) selectedPath.get(i)).getSubElements(); for (int j = 0; j < subElements.length; j++) { if ((subElements[j].getComponen...
27,484
boolean isComponentPartOfCurrentMenu (Component c) { MenuElement[] subElements; for (int i = 0; i < selection.size (); i++) { subElements = ((MenuElement) selection.get (i)).getSubElements (); for (int j = 0; j < subElements.length; j++) { if ((subElements[j].getComponent...
boolean isComponentPartOfCurrentMenu (Component c) { MenuElement[] subElements; for (int i = 0; i < selection.size (); i++) { subElements = ((MenuElement) selection.get (i)).getSubElements (); for (int j = 0; j < subElements.length; j++) { if ((subElements[j].getComponent...
27,485
public static Border createBevelBorder (int type, Color highlightOuter, Color highlightInner, Color shadowOuter, Color shadowInner) { return new BevelBorder (type, highlightOuter, highlightInner, shadowOuter, shadowInner); }
public static Border createBevelBorder (int type, Color highlightOuter, Color highlightInner, Color shadowOuter, Color shadowInner) { return new BevelBorder (type, highlightOuter, highlightInner, shadowOuter, shadowInner); }
27,486
public static Border createBevelBorder (int type, Color highlightOuter, Color highlightInner, Color shadowOuter, Color shadowInner) { return new BevelBorder (type, highlightOuter, highlightInner, shadowOuter, shadowInner); }
public static Border createBevelBorder (int type, Color highlightOuter, Color highlightInner, Color shadowOuter, Color shadowInner) { return new BevelBorder (type, highlightOuter, highlightInner, shadowOuter, shadowInner); }
27,487
public DGCImpl() throws RemoteException { super(new ObjID(ObjID.DGC_ID), 0, RMISocketFactory.getSocketFactory());}
public DGCImpl() throws RemoteException { super(new ObjID(ObjID.DGC_ID), 0, RMISocketFactory.getSocketFactory());}
27,488
public abstract long get ();
public abstract long get ();
27,490
public abstract LongBuffer put (long b);
public abstract LongBuffer put (long b);
27,491
public Location(byte tag, Class clazz, Method meth, int index) throws JdwpException { this.tag = tag; this.crti = (ClassReferenceTypeId) VMIdManager.getDefault().getReferenceTypeId(clazz); this.mid = VMIdManager.getDefault().getObjectId(meth); this.index = index; }
public Location(byte tag, Class clazz, Method meth, int index) throws JdwpException { this.tag = tag; this.crti = (ClassReferenceTypeId) VMIdManager.getDefault().getReferenceTypeId(clazz); this.mid = VMIdManager.getDefault().getObjectId(meth); this.index = index; }
27,492
public Location(byte tag, Class clazz, Method meth, int index) throws JdwpException { this.tag = tag; this.crti = (ClassReferenceTypeId) VMIdManager.getDefault().getReferenceTypeId(clazz); this.mid = VMIdManager.getDefault().getObjectId(meth); this.index = index; }
public Location(byte tag, Class clazz, Method meth, int index) throws JdwpException { this.tag = tag; this.crti = (ClassReferenceTypeId) VMIdManager.getDefault().getReferenceTypeId(clazz); this.mid = VMIdManager.getDefault().getObjectId(meth); this.index = index; }
27,493
public void write(DataOutputStream os) throws IOException { os.writeByte(tag); crti.write(os); mid.write(os); os.writeInt(index); }
public void write(DataOutputStream os) throws IOException { os.writeByte(tag); crti.write(os); mid.write(os); os.writeInt(index); }
27,494
public void write(DataOutputStream os) throws IOException { os.writeByte(tag); crti.write(os); mid.write(os); os.writeInt(index); }
public void write(DataOutputStream os) throws IOException { os.writeByte(tag); crti.write(os); mid.write(os); os.writeInt(index); }
27,495
public void append(String toAppend) { setText(getText() + toAppend); }
public void append(String toAppend) { try { getDocument().insertString(getText().length(), toAppend, null); } catch (BadLocationException exception) { /* This shouldn't happen in theory -- but, if it does... */ throw new RuntimeException("Unexpected exception occurred.", exception); } }
27,496
public boolean getLineWrap() { return wrapping; }
public boolean getLineWrap() { return lineWrap; }
27,497
public boolean getScrollableTracksViewportWidth() { return wrapping ? true : super.getScrollableTracksViewportWidth(); }
public boolean getScrollableTracksViewportWidth() { return lineWrap ? true : super.getScrollableTracksViewportWidth(); }
27,498
public void setLineWrap(boolean flag) { if (wrapping == flag) return; boolean oldValue = wrapping; wrapping = flag; firePropertyChange("lineWrap", oldValue, wrapping); }
public void setLineWrap(boolean flag) { if (lineWrap == flag) return; boolean oldValue = wrapping; wrapping = flag; firePropertyChange("lineWrap", oldValue, wrapping); }
27,499
public void setLineWrap(boolean flag) { if (wrapping == flag) return; boolean oldValue = wrapping; wrapping = flag; firePropertyChange("lineWrap", oldValue, wrapping); }
public void setLineWrap(boolean flag) { if (wrapping == flag) return; boolean oldValue = wrapping; wrapping = flag; firePropertyChange("lineWrap", oldValue, wrapping); }
27,500
AttributedString(AttributedCharacterIterator aci){ this(aci, aci.getBeginIndex(), aci.getEndIndex(), null);}
AttributedString(AttributedCharacterIterator aci){ this(aci, aci.getBeginIndex(), aci.getEndIndex(), null);}
27,501
AttributedString(AttributedCharacterIterator aci){ this(aci, aci.getBeginIndex(), aci.getEndIndex(), null);}
AttributedString(AttributedCharacterIterator aci){ this(aci, aci.getBeginIndex(), aci.getEndIndex(), null);}
27,502
int getRunLimit (AttributedCharacterIterator.Attribute attrib);
int getRunLimit (AttributedCharacterIterator.Attribute attrib);
27,503
int getRunStart (AttributedCharacterIterator.Attribute attrib);
int getRunStart (AttributedCharacterIterator.Attribute attrib);
27,504
public String[] split(String regex) { return Pattern.compile(regex).split(this, 0); }
public String[] split(String regex, int limit) { return Pattern.compile(regex).split(this, 0); }
27,505
public String[] split(String regex) { return Pattern.compile(regex).split(this, 0); }
public String[] split(String regex) { return Pattern.compile(regex).split(this, limit); }
27,506
public Length(String val) { value = val; int i = value.indexOf("px"); floatValue = 0.0F; if (i != -1) { String sub = value.substring(0, i); floatValue = Float.parseFloat(sub); } else { // TODO: Implement other length options. floatValue = Float.parseFloat(val...
publicLength(Stringval){value=val;inti=value.indexOf("px");floatValue=0.0F;if(i!=-1){Stringsub=value.substring(0,i);floatValue=Float.parseFloat(sub);}else{//TODO:Implementotherlengthoptions.floatValue=Float.parseFloat(value);}}
27,507
public TreePath(Object element) { // Create Path path = new Object[1]; path[0] = element; }
public TreePath(Object[] path) { // Create Path path = new Object[1]; path[0] = element; }
27,509
public TreePath(Object element) { // Create Path path = new Object[1]; path[0] = element; }
public TreePath(Object element) { // Create Path path = new Object[1]; path[0] = element; }
27,510
public String toString() { return null; // TODO }
public String toString() { if (path.length == 1) return String.valueOf(path[0]); else return Arrays.asList(path).toString(); // TODO }
27,511
public void read(cdrInput in) { service_context = ServiceContext.readSequence(in); request_id = in.read_ulong(); response_expected = in.read_boolean(); object_key = in.read_sequence(); operation = in.read_string(); requesting_principal = in.read_sequence(); in.setCodeSet(cxCodeSet.find(service_c...
public void read(AbstractCdrInput in) { service_context = ServiceContext.readSequence(in); request_id = in.read_ulong(); response_expected = in.read_boolean(); object_key = in.read_sequence(); operation = in.read_string(); requesting_principal = in.read_sequence(); in.setCodeSet(cxCodeSet.find(s...
27,512
public void read(cdrInput in) { service_context = ServiceContext.readSequence(in); request_id = in.read_ulong(); response_expected = in.read_boolean(); object_key = in.read_sequence(); operation = in.read_string(); requesting_principal = in.read_sequence(); in.setCodeSet(cxCodeSet.find(service_c...
public void read(cdrInput in) { service_context = ServiceContext.readSequence(in); request_id = in.read_ulong(); response_expected = in.read_boolean(); object_key = in.read_sequence(); operation = in.read_string(); requesting_principal = in.read_sequence(); in.setCodeSet(CodeSetServiceContext.fi...
27,513
public void write(cdrOutput out) { ServiceContext.writeSequence(out, service_context); out.write_ulong(request_id); out.write_boolean(response_expected); out.write_sequence(object_key); out.write_string(operation); out.write_sequence(requesting_principal); out.setCodeSet(cxCodeSet.find(service_c...
public void write(AbstractCdrOutput out) { ServiceContext.writeSequence(out, service_context); out.write_ulong(request_id); out.write_boolean(response_expected); out.write_sequence(object_key); out.write_string(operation); out.write_sequence(requesting_principal); out.setCodeSet(cxCodeSet.find(s...
27,514
public void write(cdrOutput out) { ServiceContext.writeSequence(out, service_context); out.write_ulong(request_id); out.write_boolean(response_expected); out.write_sequence(object_key); out.write_string(operation); out.write_sequence(requesting_principal); out.setCodeSet(cxCodeSet.find(service_c...
public void write(cdrOutput out) { ServiceContext.writeSequence(out, service_context); out.write_ulong(request_id); out.write_boolean(response_expected); out.write_sequence(object_key); out.write_string(operation); out.write_sequence(requesting_principal); out.setCodeSet(CodeSetServiceContext.fi...
27,515
public String bytes(byte[] array) { StringBuffer b = new StringBuffer(); for (int i = 0; i < array.length; i++) { b.append(Integer.toHexString(array [ i ] & 0xFF)); b.append(" "); } return b.toString(); }
public String bytes(byte[] array) { StringBuffer b = new StringBuffer(); for (int i = 0; i < array.length; i++) { b.append(Integer.toHexString(array[i] & 0xFF)); b.append(" "); } return b.toString(); }
27,516
public AbstractBorder () { // Nothing to do here. }
public AbstractBorder() { // Nothing to do here. }
27,517
public Insets getBorderInsets (Component c) { return new Insets (0, 0, 0, 0); }
public Insets getBorderInsets(Component c) { return new Insets (0, 0, 0, 0); }
27,518
public Insets getBorderInsets (Component c) { return new Insets (0, 0, 0, 0); }
public Insets getBorderInsets (Component c) { return new Insets(0, 0, 0, 0); }
27,519
public boolean isBorderOpaque () { return false; }
public boolean isBorderOpaque() { return false; }
27,520
private void readHeader() throws IOException { /* 1. Check the two magic bytes */ CRC32 headCRC = new CRC32(); int magic = in.read(); if (magic < 0) { eos = true; return; } headCRC.update(magic); if (magic != (GZIP_MAGIC >> 8)) throw new IOException("Error in GZIP header, first...
private void readHeader() throws IOException { /* 1. Check the two magic bytes */ CRC32 headCRC = new CRC32(); int magic = in.read(); if (magic < 0) { eos = true; return; } headCRC.update(magic); if (magic != (GZIP_MAGIC >> 8)) throw new IOException("Error in GZIP header, first...
27,521
public KeyManagementException(String msg) { super(msg); }
public KeyManagementException() { super(msg); }
27,522
public KeyManagementException(String msg) { super(msg); }
public KeyManagementException(String msg) { }
27,523
static void installBorder(JComponent c, String defaultBorderName) { //Convenience method for installing a component's default Border object on the specified component if either the border is currently null or already an instance of UIResource. }
public static void installBorder(JComponent c, String defaultBorderName) { //Convenience method for installing a component's default Border object on the specified component if either the border is currently null or already an instance of UIResource. }
27,524
static void installBorder(JComponent c, String defaultBorderName) { //Convenience method for installing a component's default Border object on the specified component if either the border is currently null or already an instance of UIResource. }
staticvoidinstallBorder(JComponentc,StringdefaultBorderName){ //Conveniencemethodforinstallingacomponent'sdefaultBorderobjectonthespecifiedcomponentifeithertheborderiscurrentlynulloralreadyaninstanceofUIResource.}
27,525
public static void installColorsAndFont(JComponent c, String defaultBgName, String defaultFgName, String defaultFontName) { //Convenience method for initializing a components foreground background and font properties with values from the current defaults table. }
public static void installColorsAndFont(JComponent component, String defaultBgName, String defaultFgName, String defaultFontName) { //Convenience method for initializing a components foreground background and font properties with values from the current defaults table. }
27,526
public static void installColorsAndFont(JComponent c, String defaultBgName, String defaultFgName, String defaultFontName) { //Convenience method for initializing a components foreground background and font properties with values from the current defaults table. }
publicstaticvoidinstallColorsAndFont(JComponentc,StringdefaultBgName,StringdefaultFgName,StringdefaultFontName){ //Conveniencemethodforinitializingacomponentsforegroundbackgroundandfontpropertieswithvaluesfromthecurrentdefaultstable.}
27,527
public abstract Dimension getMinimumSize(int len);
public abstract Dimension getMinimumSize(int len);
27,528
public abstract Dimension getPreferredSize(int len);
public abstract Dimension getPreferredSize(int len);
27,529
public abstract Dimension minimumSize(int len);
public abstract Dimension minimumSize(int len);
27,530
public abstract Dimension preferredSize(int len);
public abstract Dimension preferredSize(int len);
27,531
public abstract void setEchoChar(char echo_char);
public abstract void setEchoChar(char echo_char);
27,532
public abstract void setEchoCharacter(char echo_char);
public abstract void setEchoCharacter(char echo_char);
27,533
protected Object clone() throws CloneNotSupportedException { AbstractMap copy = (AbstractMap) super.clone(); // Clear out the caches; they are stale. copy.keys = null; copy.values = null; return copy; }
protected Object clone() throws CloneNotSupportedException { AbstractMap<K, V> copy = (AbstractMap<K, V>) super.clone(); // Clear out the caches; they are stale. copy.keys = null; copy.values = null; return copy; }
27,534
public abstract Set entrySet();
public abstract Set entrySet();
27,535
public boolean equals(Object o) { return (o == this || (o instanceof Map && entrySet().equals(((Map) o).entrySet()))); }
public boolean equals(Object o) { return (o == this || (o instanceof Map && entrySet().equals(((Map<K, V>) o).entrySet()))); }
27,536
public Set<K> keySet() { if (keys == null) keys = new AbstractSet<K>() { /** * Retrieves the number of keys in the backing map. * * @return The number of keys. */ public int size() { return AbstractMap.this.size(); } /** * Returns true if the backing map contains the ...
public Set<K> keySet() { if (keys == null) keys = new AbstractSet<K>() { /** * Retrieves the number of keys in the backing map. * * @return The number of keys. */ public int size() { return AbstractMap.this.size(); } /** * Returns true if the backing map contains the ...
27,537
public Iterator<K> iterator() { return new Iterator() { /** * The iterator returned by <code>entrySet()</code>. */ private final Iterator<Map.Entry<K, V>> map_iterator = entrySet().iterator(); /** * Returns true if a call to <code>next()</code> wi...
public Iterator<K> iterator() { return new Iterator<K>() { /** * The iterator returned by <code>entrySet()</code>. */ private final Iterator<Map.Entry<K, V>> map_iterator = entrySet().iterator(); /** * Returns true if a call to <code>next()</code>...
27,538
public void putAll(Map<? extends K, ? extends V> m) { Iterator<Map.Entry<K, V>> entries = ((Map<K,V>) m).entrySet().iterator(); int pos = m.size(); while (--pos >= 0) { Map.Entry<K, V> entry = entries.next(); put(entry.getKey(), entry.getValue()); } }
public void putAll(Map<? extends K, ? extends V> m) { Iterator entries2 = m.entrySet().iterator(); Iterator<Map.Entry<? extends K, ? extends V>> entries = (Iterator<Map.Entry<? extends K, ? extends V>>) entries2; int pos = m.size(); while (--pos >= 0) { Map.Entry<K, V> entry = entries.next(); ...
27,539
public void putAll(Map<? extends K, ? extends V> m) { Iterator<Map.Entry<K, V>> entries = ((Map<K,V>) m).entrySet().iterator(); int pos = m.size(); while (--pos >= 0) { Map.Entry<K, V> entry = entries.next(); put(entry.getKey(), entry.getValue()); } }
public void putAll(Map<? extends K, ? extends V> m) { Iterator<Map.Entry<K, V>> entries = ((Map<K,V>) m).entrySet().iterator(); int pos = m.size(); while (--pos >= 0) { Map.Entry<? extends K, ? extends V> entry = entries.next(); put(entry.getKey(), entry.getValue()); } }
27,540
public Collection<V> values() { if (values == null) values = new AbstractCollection<V>() { /** * Returns the number of values stored in * the backing map. * * @return The number of values. */ public int size() { return AbstractMap.this.size(); } /** * Returns true if ...
public Collection<V> values() { if (values == null) values = new AbstractCollection<V>() { /** * Returns the number of values stored in * the backing map. * * @return The number of values. */ public int size() { return AbstractMap.this.size(); } /** * Returns true if ...
27,541
public Iterator<V> iterator() { return new Iterator() { /** * The iterator returned by <code>entrySet()</code>. */ private final Iterator<Map.Entry<K, V>> map_iterator = entrySet().iterator(); /** * Returns true if a call to <code>next()</call> ...
public Iterator<V> iterator() { return new Iterator<V>() { /** * The iterator returned by <code>entrySet()</code>. */ private final Iterator<Map.Entry<K, V>> map_iterator = entrySet().iterator(); /** * Returns true if a call to <code>next()</cal...
27,542
public AbstractCellEditor() { listenerList = new EventListenerList(); changeEvent = new ChangeEvent(this); } // AbstractCellEditor()
public AbstractCellEditor() { listenerList = new EventListenerList(); changeEvent = new ChangeEvent(this); } // AbstractCellEditor()
27,543
public AbstractCellEditor() { listenerList = new EventListenerList(); changeEvent = new ChangeEvent(this); } // AbstractCellEditor()
public AbstractCellEditor() { listenerList = new EventListenerList(); changeEvent = new ChangeEvent(this); } // AbstractCellEditor()
27,544
public final Class getCategory() { return PagesPerMinuteColor.class; }
public Class getCategory() { return PagesPerMinuteColor.class; }
27,545
public final String getName() { return "pages-per-minute-color"; }
public String getName() { return "pages-per-minute-color"; }
27,546
protected void addImpl(Component component, Object constraints, int index) { // XXX: Sun says disable button but test cases show otherwise. super.addImpl(component, constraints, index); // if we added a Swing Button then adjust this a little if (component instanceof AbstractButton) { Abstract...
protected void addImpl(Component component, Object constraints, int index) { // XXX: Sun says disable button but test cases show otherwise. super.addImpl(component, constraints, index); // if we added a Swing Button then adjust this a little if (component instanceof AbstractButton) { Abstract...
27,547
void moveDotImpl(int dot) { if (dot >= 0) { Document doc = textComponent.getDocument(); if (doc != null) this.dot = Math.min(dot, doc.getLength()); this.dot = Math.max(this.dot, 0); handleHighlight(); appear(); adjustVisibility(this); } }
void moveDotImpl(int dot) { if (dot >= 0) { Document doc = textComponent.getDocument(); if (doc != null) this.dot = Math.min(dot, doc.getLength()); this.dot = Math.max(this.dot, 0); handleHighlight(); appear(); } }
27,549
void setDotImpl(int dot) { if (dot >= 0) { Document doc = textComponent.getDocument(); if (doc != null) this.dot = Math.min(dot, doc.getLength()); this.dot = Math.max(this.dot, 0); this.mark = this.dot; clearHighlight(); appear(); ...
void setDotImpl(int dot) { if (dot >= 0) { Document doc = textComponent.getDocument(); if (doc != null) this.dot = Math.min(dot, doc.getLength()); this.dot = Math.max(this.dot, 0); this.mark = this.dot; clearHighlight(); appear(); ...
27,550
public void scrollRectToVisible(Rectangle r) { Component p = getParent(); if (p != null && p instanceof JComponent) ((JComponent) p).scrollRectToVisible(r); }
public void scrollRectToVisible(Rectangle r) { Component p = getParent(); if (p instanceof JComponent) ((JComponent) p).scrollRectToVisible(r); }
27,551
public void setRepeats(boolean flag) { repeat_ticks = flag; }
public void setRepeats(boolean r) { repeat_ticks = flag; }
27,552
public void setRepeats(boolean flag) { repeat_ticks = flag; }
public void setRepeats(boolean flag) { repeats = r; }
27,553
public abstract void add(String item, int index);
public abstract void add(String item, int index);
27,554
public abstract void removeAll();
public abstract void removeAll();
27,555
public abstract void delItems(int start_index, int end_index);
public abstract void delItems(int start_index, int end_index);
27,556