bugged
stringlengths
6
599k
fixed
stringlengths
10
599k
__index_level_0__
int64
0
1.13M
public void setEditable(boolean value0) { // TODO } // setEditable()
public void setEditable(boolean value0) { // TODO } // setEditable()
22,736
public void setEditor(ComboBoxEditor value0) { // TODO } // setEditor()
public void setEditor(ComboBoxEditor value0) { // TODO } // setEditor()
22,737
public void setEnabled(boolean value0) { // TODO } // setEnabled()
public void setEnabled(boolean value0) { // TODO } // setEnabled()
22,738
public void setKeySelectionManager(KeySelectionManager value0) { // TODO } // setKeySelectionManager()
public void setKeySelectionManager(KeySelectionManager value0) { // TODO } // setKeySelectionManager()
22,739
public void setLightWeightPopupEnabled(boolean value0) { // TODO } // setLightWeightPopupEnabled()
public void setLightWeightPopupEnabled(boolean value0) { // TODO } // setLightWeightPopupEnabled()
22,740
public void setMaximumRowCount(int value0) { // TODO } // setMaximumRowCount()
public void setMaximumRowCount(int value0) { // TODO } // setMaximumRowCount()
22,741
public void setModel(ComboBoxModel value0) { // TODO } // setModel()
public void setModel(ComboBoxModel value0) { // TODO } // setModel()
22,742
public void setPopupVisible(boolean value0) { // TODO } // setPopupVisible()
public void setPopupVisible(boolean value0) { // TODO } // setPopupVisible()
22,743
public void setRenderer(ListCellRenderer value0) { // TODO } // setRenderer()
public void setRenderer(ListCellRenderer value0) { // TODO } // setRenderer()
22,744
public void setSelectedIndex(int value0) { // TODO } // setSelectedIndex()
public void setSelectedIndex(int value0) { // TODO } // setSelectedIndex()
22,745
public void setSelectedItem(Object value0) { // TODO } // setSelectedItem()
public void setSelectedItem(Object value0) { // TODO } // setSelectedItem()
22,746
public void showPopup() { // TODO } // showPopup()
public void showPopup() { // TODO } // showPopup()
22,747
public void updateUI() { setUI((ComboBoxUI) UIManager.get(this)); invalidate(); } // updateUI()
public void updateUI() { setUI((ComboBoxUI) UIManager.get(this)); invalidate(); } // updateUI()
22,748
public JTextComponent() { enableEvents(AWTEvent.KEY_EVENT_MASK); updateUI(); }
public JTextComponent() { enableEvents(AWTEvent.KEY_EVENT_MASK); updateUI(); if (creatingKeymap) loadKeymap(defkeymap, new KeyBinding[] { new KeyBinding(KeyStroke.getKeyStroke(KeyEvent.VK_LEFT, 0), DefaultEditorKit.backwardAction), new KeyBinding(KeyStroke.getKeyStroke(KeyEvent.VK_RIGHT, 0), Defau...
22,749
public Insets getMargin() { // FIXME: Not implemented. return null; }
public Insets getMargin() { // FIXME: Not implemented. return margin; }
22,750
public synchronized void replaceSelection(String content) { int dot = caret.getDot(); int mark = caret.getMark(); // If content is empty delete selection. if (content == null) { caret.setDot(dot); return; } try { // Remove selected text. if (dot != mark) doc.remove(Math.min(dot, mark)...
public synchronized void replaceSelection(String content) { int dot = caret.getDot(); int mark = caret.getMark(); // If content is empty delete selection. if (content == null) { caret.setDot(dot); return; } try { // Remove selected text. if (dot != mark) doc.remove(start, end - start)...
22,751
public synchronized void replaceSelection(String content) { int dot = caret.getDot(); int mark = caret.getMark(); // If content is empty delete selection. if (content == null) { caret.setDot(dot); return; } try { // Remove selected text. if (dot != mark) doc.remove(Math.min(dot, mark)...
public synchronized void replaceSelection(String content) { int dot = caret.getDot(); int mark = caret.getMark(); // If content is empty delete selection. if (content == null) { caret.setDot(dot); return; } try { // Remove selected text. if (dot != mark) doc.remove(Math.min(dot, mark)...
22,752
public void setCaret(Caret newCaret) { firePropertyChange("caret", caret, newCaret); caret = newCaret; }
public void setCaret(Caret newCaret) { if (caret != null) caret.deinstall(this); Caret oldCaret = caret; caret = newCaret; }
22,753
public void setCaretColor(Color newColor) { firePropertyChange("caretColor", caretColor, newColor); caretColor = newColor; }
public void setCaretColor(Color newColor) { Color oldCaretColor = caretColor; caretColor = newColor; }
22,755
public void setDisabledTextColor(Color newColor) { firePropertyChange("disabledTextColor", caretColor, newColor); disabledTextColor = newColor; }
public void setDisabledTextColor(Color newColor) { Color oldColor = disabledTextColor; disabledTextColor = newColor; }
22,757
public void setDocument(Document s) { doc = s; revalidate(); repaint(); }
public void setDocument(Document s) { doc = s; revalidate(); repaint(); }
22,759
public void setHighlighter(Highlighter newHighlighter) { firePropertyChange("highlighter", highlighter, newHighlighter); highlighter = newHighlighter; }
public void setHighlighter(Highlighter newHighlighter) { if (highlighter != null) highlighter.deinstall(this); Highlighter oldHighlighter = highlighter; highlighter = newHighlighter; }
22,760
public void setSelectedTextColor(Color newColor) { firePropertyChange("selectedTextColor", caretColor, newColor); selectedTextColor = newColor; }
public void setSelectedTextColor(Color newColor) { Color oldColor = selectedTextColor; selectedTextColor = newColor; }
22,762
public void setSelectionColor(Color newColor) { firePropertyChange("selectionColor", caretColor, newColor); selectionColor = newColor; }
public void setSelectionColor(Color newColor) { Color oldColor = selectionColor; selectionColor = newColor; }
22,764
public void setText(String text) { try { getDocument().remove(0, doc.getLength()); getDocument().insertString(0, text, null); } catch (BadLocationException e) { } }
public void setText(String text) { try { getDocument().remove(0, doc.getLength()); getDocument().insertString(0, text, null); } catch (BadLocationException e) { } }
22,766
public String getLineNr(Address address) { if (this.bytecode != null) { final int offset = (int) Address.distance(nativeCode, address); final int pc = addressTable.findPC(offset); return String.valueOf(bytecode.getLineNr(pc)) + ";" + pc + ";0x" + NumberUtil...
public String getLineNr(Address address) { if (this.bytecode != null) { final int offset = (int) Address.distance(nativeCode, address); final int pc = addressTable.findPC(offset); return String.valueOf(bytecode.getLineNr(pc)) + ";" + pc + ";0x" + NumberUtil...
22,768
public AccessibleRole getAccessibleRole() { return null; }
public AccessibleRole getAccessibleRole() { return AccessibleRole.OPTION_PANE; }
22,769
private final void quoteString (StringBuffer dest, String text) { int max = text.length(); for (int i = 0; i < max; ++i) { char c = text.charAt(i); if (c == '\'') { dest.append(c); dest.append(c); } else if (c == '#' || c == '|' || c == '\u2064' || c == '<') { dest.append('\''); dest...
private void quoteString (StringBuffer dest, String text) { int max = text.length(); for (int i = 0; i < max; ++i) { char c = text.charAt(i); if (c == '\'') { dest.append(c); dest.append(c); } else if (c == '#' || c == '|' || c == '\u2064' || c == '<') { dest.append('\''); dest.appen...
22,770
public Caret createCaret() { return null; }
public Caret createCaret() { return new DefaultCaret(); }
22,772
public Action[] getActions() { return null; }
public Action[] getActions() { return defaultActions; }
22,773
public char current() { return array[getIndex()]; }
public char current() { if (count == 0 || current >= getEndIndex()) return DONE; return array[current]; }
22,774
public char first() { offset = getBeginIndex(); return array[offset]; }
public char first() { offset = getBeginIndex(); return array[offset]; }
22,775
public int getIndex() { return offset; }
public int getIndex() { return current; }
22,776
public char last() { offset = getEndIndex() - 1; return array[offset]; }
public char last() { offset = getEndIndex() - 1; return array[offset]; }
22,777
public char previous() { offset--; return array[offset]; }
public char previous() { offset--; return array[offset]; }
22,778
public char setIndex(int position) { offset = position; return array[offset]; }
public char setIndex(int position) { offset = position; return array[offset]; }
22,779
public Currency getCurrency () { return Currency.getInstance (currencySymbol); }
public Currency getCurrency () { return currency; }
22,780
public void setCurrency (Currency currency) { setCurrencySymbol (currency.getSymbol()); }
public void setCurrency (Currency currency) { this.currency = currency; intlCurrencySymbol = currency.getCurrencyCode(); currencySymbol = currency.getSymbol(); }
22,781
public void setInternationalCurrencySymbol (String currency) { intlCurrencySymbol = currency; }
public void setInternationalCurrencySymbol (String currencyCode) { intlCurrencySymbol = currency; }
22,782
public void setInternationalCurrencySymbol (String currency) { intlCurrencySymbol = currency; }
public void setInternationalCurrencySymbol (String currency) { intlCurrencySymbol = currencyCode; try { currency = Currency.getInstance(currencyCode); } catch (IllegalArgumentException exception) { currency = null; } if (currency != null) { setCurrencySymbol(currency.getSymbol(locale)); } }
22,783
HeaderFieldHelper(){ this(10);}
HeaderFieldHelper(){ this(10);}
22,784
addHeaderField(String key, String value){ headerFieldKeys.addElement(key); headerFieldValues.addElement(value);}
addHeaderField(String key, String value){ headerFieldKeys.addElement(key); headerFieldValues.addElement(value);}
22,785
getHeaderFieldKeyByIndex(int index){ String key = null; try { key = (String)headerFieldKeys.elementAt(index); } catch(ArrayIndexOutOfBoundsException e) { } return(key);}
getHeaderFieldKeyByIndex(int index){ String key = null; try { key = (String)headerFieldKeys.elementAt(index); } catch(ArrayIndexOutOfBoundsException e) { } return(key);}
22,786
getHeaderFieldKeyByIndex(int index){ String key = null; try { key = (String)headerFieldKeys.elementAt(index); } catch(ArrayIndexOutOfBoundsException e) { } return(key);}
getHeaderFieldKeyByIndex(int index){ String key = null; try { key = (String)headerFieldKeys.elementAt(index); } catch(ArrayIndexOutOfBoundsException e) { } return(key);}
22,787
getHeaderFieldValueByIndex(int index){ String value = null; try { value = (String)headerFieldValues.elementAt(index); } catch(ArrayIndexOutOfBoundsException e) { } return(value);}
getHeaderFieldValueByIndex(int index){ String value = null; try { value = (String)headerFieldValues.elementAt(index); } catch(ArrayIndexOutOfBoundsException e) { } return(value);}
22,788
getHeaderFieldValueByIndex(int index){ String value = null; try { value = (String)headerFieldValues.elementAt(index); } catch(ArrayIndexOutOfBoundsException e) { } return(value);}
getHeaderFieldValueByIndex(int index){ String value = null; try { value = (String)headerFieldValues.elementAt(index); } catch(ArrayIndexOutOfBoundsException e) { } return(value);}
22,789
getNumberOfEntries(){ return(headerFieldKeys.size());}
getNumberOfEntries(){ return(headerFieldKeys.size());}
22,790
protected PrivateKey engineGeneratePrivate(KeySpec keySpec) throws InvalidKeySpecException { if (keySpec instanceof RSAPrivateCrtKeySpec) { RSAPrivateCrtKeySpec spec = (RSAPrivateCrtKeySpec) keySpec; BigInteger n = spec.getModulus(); BigInteger e = spec.getPublicExponent(); B...
protected PrivateKey engineGeneratePrivate(KeySpec keySpec) throws InvalidKeySpecException { if (keySpec instanceof RSAPrivateCrtKeySpec) { RSAPrivateCrtKeySpec spec = (RSAPrivateCrtKeySpec) keySpec; BigInteger n = spec.getModulus(); BigInteger e = spec.getPublicExponent(); B...
22,791
protected PublicKey engineGeneratePublic(KeySpec keySpec) throws InvalidKeySpecException { if (keySpec instanceof RSAPublicKeySpec) { RSAPublicKeySpec spec = (RSAPublicKeySpec) keySpec; BigInteger n = spec.getModulus(); BigInteger e = spec.getPublicExponent(); return new GnuR...
protected PublicKey engineGeneratePublic(KeySpec keySpec) throws InvalidKeySpecException { if (keySpec instanceof RSAPublicKeySpec) { RSAPublicKeySpec spec = (RSAPublicKeySpec) keySpec; BigInteger n = spec.getModulus(); BigInteger e = spec.getPublicExponent(); return new GnuR...
22,792
public OutputStream _invoke(String method, InputStream input, ResponseHandler r_handler ) throws SystemException { try { CookieHolder cookie = null; activeObjectMap.Obj self = poa.aom.get(Id); if (poa.servant_...
public OutputStream _invoke(String method, InputStream input, ResponseHandler r_handler ) { try { CookieHolder cookie = null; activeObjectMap.Obj self = poa.aom.get(Id); if (poa.servant_locator != null) ...
22,793
public OutputStream _invoke(String method, InputStream input, ResponseHandler r_handler ) throws SystemException { try { CookieHolder cookie = null; activeObjectMap.Obj self = poa.aom.get(Id); if (poa.servant_...
public OutputStream _invoke(String method, InputStream input, ResponseHandler r_handler ) throws SystemException { try { CookieHolder cookie = null; activeObjectMap.Obj self = poa.aom.get(Id); if (poa.servant_...
22,794
public OutputStream _invoke(String method, InputStream input, ResponseHandler r_handler ) throws SystemException { try { CookieHolder cookie = null; activeObjectMap.Obj self = poa.aom.get(Id); if (poa.servant_...
public OutputStream _invoke(String method, InputStream input, ResponseHandler r_handler ) throws SystemException { try { CookieHolder cookie = null; activeObjectMap.Obj self = poa.aom.get(Id); if (poa.servant_...
22,795
public InvokeHandler servantToHandler(Servant servant) { if (servant instanceof InvokeHandler) return (InvokeHandler) servant; else if (servant instanceof DynamicImplementation) return new dynImpHandler((DynamicImplementation) servant); else throw new BAD_OPERATION(servant + " must be either ...
public InvokeHandler servantToHandler(Servant a_servant) { if (servant instanceof InvokeHandler) return (InvokeHandler) servant; else if (servant instanceof DynamicImplementation) return new dynImpHandler((DynamicImplementation) servant); else throw new BAD_OPERATION(servant + " must be eithe...
22,800
public InvokeHandler servantToHandler(Servant servant) { if (servant instanceof InvokeHandler) return (InvokeHandler) servant; else if (servant instanceof DynamicImplementation) return new dynImpHandler((DynamicImplementation) servant); else throw new BAD_OPERATION(servant + " must be either ...
public InvokeHandler servantToHandler(Servant servant) { if (servant instanceof InvokeHandler) return (InvokeHandler) servant; else if (servant instanceof DynamicImplementation) return new dynImpHandler((DynamicImplementation) servant); else throw new BAD_OPERATION(servant + " must be either ...
22,801
public InvokeHandler servantToHandler(Servant servant) { if (servant instanceof InvokeHandler) return (InvokeHandler) servant; else if (servant instanceof DynamicImplementation) return new dynImpHandler((DynamicImplementation) servant); else throw new BAD_OPERATION(servant + " must be either ...
public InvokeHandler servantToHandler(Servant servant) { if (servant instanceof InvokeHandler) return (InvokeHandler) servant; else if (servant instanceof DynamicImplementation) return new dynImpHandler((DynamicImplementation) servant); else throw new BAD_OPERATION(servant + " must be either ...
22,802
public void dispatch() { if (catchExceptions) try { runnable.run(); } catch (Exception e) { exception = e; } else runnable.run(); Object o = notifier; if (o != null) synchronized(o) { o.notifyAll(); } }
public void dispatch() { if (catchExceptions) try { runnable.run(); } catch (Throwable t) { exception = e; } else runnable.run(); Object o = notifier; if (o != null) synchronized(o) { o.notifyAll(); } }
22,804
public void dispatch() { if (catchExceptions) try { runnable.run(); } catch (Exception e) { exception = e; } else runnable.run(); Object o = notifier; if (o != null) synchronized(o) { o.notifyAll(); } }
public void dispatch() { if (catchExceptions) try { runnable.run(); } catch (Exception e) { throwable = t; if (t instanceof Exception) exception = (Exception)t; } else runnable.run(); Object o = notifier; if (o != null) synchronized(o) { ...
22,805
public final Class getCategory() { return PrintQuality.class; }
public Class getCategory() { return PrintQuality.class; }
22,806
public final String getName() { return "print-quality"; }
public String getName() { return "print-quality"; }
22,807
public TextArea() { this("", 1, 1, SCROLLBARS_BOTH); }
public TextArea() { this("", 1, 1, SCROLLBARS_BOTH); }
22,808
public void addNotify() { if (getPeer() != null) return; setPeer((ComponentPeer) getToolkit().createTextArea(this)); }
public void addNotify() { if (getPeer() != null) return; setPeer((ComponentPeer) getToolkit().createTextArea(this)); }
22,809
public void append(String str) { TextAreaPeer tap = (TextAreaPeer) getPeer(); if (tap == null) return; tap.insert(str, tap.getText().length()); }
public void append(String str) { TextAreaPeer tap = (TextAreaPeer) getPeer(); if (tap == null) return; tap.insert(str, tap.getText().length()); }
22,810
public void appendText(String text) { append(text); }
public void appendText(String text) { append(text); }
22,811
public int getColumns() { return (columns); }
public int getColumns() { return (columns); }
22,812
public Dimension getMinimumSize() { return (getMinimumSize(getRows(), getColumns())); }
public Dimension getMinimumSize() { return (getMinimumSize(getRows(), getColumns())); }
22,813
public Dimension getPreferredSize() { return (getPreferredSize(getRows(), getColumns())); }
public Dimension getPreferredSize() { return (getPreferredSize(getRows(), getColumns())); }
22,814
public int getRows() { return (rows); }
public int getRows() { return (rows); }
22,815
public int getScrollbarVisibility() { return (scrollbarVisibility); }
public int getScrollbarVisibility() { return (scrollbarVisibility); }
22,816
public void insert(String text, int pos) { TextAreaPeer tap = (TextAreaPeer) getPeer(); if (tap == null) return; tap.insert(text, pos); }
public void insert(String text, int pos) { TextAreaPeer tap = (TextAreaPeer) getPeer(); if (tap == null) return; tap.insert(text, pos); }
22,817
public void insertText(String text, int pos) { insert(text, pos); }
public void insertText(String text, int pos) { insert(text, pos); }
22,818
public Dimension minimumSize() { return (getMinimumSize(getRows(), getColumns())); }
public Dimension minimumSize() { return (getMinimumSize(getRows(), getColumns())); }
22,819
protected String paramString() { return (getClass().getName() + "(rows=" + getRows() + ",columns=" + getColumns() + ",scrollbars=" + getScrollbarVisibility() + ")"); }
protected String paramString() { return (getClass().getName() + "(rows=" + getRows() + ",columns=" + getColumns() + ",scrollbars=" + getScrollbarVisibility() + ")"); }
22,820
public Dimension preferredSize() { return (getPreferredSize(getRows(), getColumns())); }
public Dimension preferredSize() { return (getPreferredSize(getRows(), getColumns())); }
22,822
public void replaceRange(String text, int start, int end) { TextAreaPeer tap = (TextAreaPeer) getPeer(); if (tap == null) return; tap.replaceRange(text, start, end); }
public void replaceRange(String text, int start, int end) { TextAreaPeer tap = (TextAreaPeer) getPeer(); if (tap == null) return; tap.replaceRange(text, start, end); }
22,823
public void replaceText(String text, int start, int end) { replaceRange(text, start, end); }
public void replaceText(String text, int start, int end) { replaceRange(text, start, end); }
22,824
public static Properties getInitProperties() { final String arch; final Vm vm = Vm.getVm(); arch = Unsafe.getCurrentProcessor().getArchitecture().getName(); Unsafe.debug("arch="); Unsafe.debug(arch); final Properties res = new Properties(); res.put("java.version", "1...
public static Properties getInitProperties() { final String arch; final Vm vm = Vm.getVm(); arch = Unsafe.getCurrentProcessor().getArchitecture().getName(); Unsafe.debug("arch="); Unsafe.debug(arch); final Properties res = new Properties(); res.put("java.version", "1...
22,825
public PrivateKey decodePrivateKey(byte[] input) { throw new IllegalArgumentException("Wrong format for private keys"); }
public PrivateKey decodePrivateKey(byte[] input) { throw new InvalidParameterException("Wrong format for private keys"); }
22,826
public byte[] encodePrivateKey(PrivateKey key) { throw new IllegalArgumentException("Wrong format for private keys"); }
public byte[] encodePrivateKey(PrivateKey key) { throw new InvalidParameterException("Wrong format for private keys"); }
22,827
public static TypeCode type() { ORB orb = Restricted_ORB.Singleton; return orb.create_alias_tc(id(), "RepositoryId", orb.create_string_tc(0)); }
public static TypeCode type() { ORB orb = OrbRestricted.Singleton; return orb.create_alias_tc(id(), "RepositoryId", orb.create_string_tc(0)); }
22,828
public Date parse (String source) throws ParseException { ParsePosition pos = new ParsePosition(0); Date result = parse (source, pos); if (result == null) { int index = pos.getErrorIndex(); if (index < 0) index = pos.getIndex(); throw new ParseException("invalid Date syntax", index); } return...
public Date parse (String source) throws ParseException { ParsePosition pos = new ParsePosition(0); Date result = parse (source, pos); if (result == null) { int index = pos.getErrorIndex(); if (index < 0) index = pos.getIndex(); throw new ParseException("invalid Date syntax in \"" + source + '\"', in...
22,829
public void setSelectionModel(SingleSelectionModel model) { if (selectionModel != model) { SingleSelectionModel oldModel = this.selectionModel; } }
public void setSelectionModel(SingleSelectionModel model) { if (selectionModel != model) { SingleSelectionModel oldModel = this.selectionModel; } }
22,830
public Attr createAttribute(String name) { if (checkingCharacters) { checkName(name, "1.1".equals(version)); } if (name.startsWith("xml:")) { return createAttributeNS(XMLConstants.XML_NS_URI, name); } else if (XMLConstants.XMLNS_ATTRIBUTE.equals(name) || name.st...
public Attr createAttribute(String name) { if (checkingCharacters) { checkName(name, "1.1".equals(version)); } if (name.startsWith("xml:")) { return createAttributeNS(XMLConstants.XML_NS_URI, name); } else if (XMLConstants.XMLNS_ATTRIBUTE.equals(name) || name.st...
22,831
public Element createElement(String name) { Element element; if (checkingCharacters) { checkName(name, "1.1".equals(version)); } if (name.startsWith("xml:")) { element = createElementNS(null, name); } else { element = new DomElement(this, null, name); ...
public Element createElement(String name) { Element element; if (checkingCharacters) { checkName(name, "1.1".equals(version)); } if (name.startsWith("xml:")) { element = createElementNS(null, name); } else { DomElement domElement = new DomElement(this, nu...
22,832
public int compare(Object o1, Object o2) { if (o1 instanceof JComponent && o2 instanceof JComponent) { JComponent c1 = (JComponent) o1; JComponent c2 = (JComponent) o2; return getDepth(c1) - getDepth(c2); } else throw new ClassCastException("This comparat...
public int compare(Object o1, Object o2) { if (o1 instanceof JComponent && o2 instanceof JComponent) { JComponent c1 = (JComponent) o1; JComponent c2 = (JComponent) o2; Rectangle d2 = (Rectangle) dirtyComponents.get(c2); return d2.width * d2.height - d1.width * d1.height; ...
22,833
public int compare(Object o1, Object o2) { if (o1 instanceof JComponent && o2 instanceof JComponent) { JComponent c1 = (JComponent) o1; JComponent c2 = (JComponent) o2; return getDepth(c1) - getDepth(c2); } else throw new ClassCastException("This comparat...
public int compare(Object o1, Object o2) { if (o1 instanceof JComponent && o2 instanceof JComponent) { JComponent c1 = (JComponent) o1; JComponent c2 = (JComponent) o2; return getDepth(c1) - getDepth(c2); } throw new ClassCastException("This comparator c...
22,834
public void run() { ThreadGroup threadGroup = Thread.currentThread().getThreadGroup(); RepaintManager rm = (RepaintManager) currentRepaintManagers.get(threadGroup); setLive(false); rm.validateInvalidComponents(); rm.paintDirtyRegions(); }
public void run() { ThreadGroup threadGroup = Thread.currentThread().getThreadGroup(); RepaintManager rm = (RepaintManager) currentRepaintManagers.get(threadGroup); rm.validateInvalidComponents(); rm.paintDirtyRegions(); }
22,835
public RepaintManager() { dirtyComponents = new HashMap(); workDirtyComponents = new HashMap(); repaintOrder = new ArrayList(); workRepaintOrder = new ArrayList(); invalidComponents = new ArrayList(); workInvalidComponents = new ArrayList(); repaintWorker = new RepaintWorker(); doubleBufferMa...
public RepaintManager() { dirtyComponents = new HashMap(); workDirtyComponents = new HashMap(); repaintOrder = new ArrayList(); workRepaintOrder = new ArrayList(); invalidComponents = new ArrayList(); workInvalidComponents = new ArrayList(); repaintWorker = new RepaintWorker(); doubleBufferMa...
22,837
public RepaintManager() { dirtyComponents = new HashMap(); workDirtyComponents = new HashMap(); repaintOrder = new ArrayList(); workRepaintOrder = new ArrayList(); invalidComponents = new ArrayList(); workInvalidComponents = new ArrayList(); repaintWorker = new RepaintWorker(); doubleBufferMa...
public RepaintManager() { dirtyComponents = new HashMap(); workDirtyComponents = new HashMap(); repaintOrder = new ArrayList(); workRepaintOrder = new ArrayList(); invalidComponents = new ArrayList(); repaintWorker = new RepaintWorker(); doubleBufferMaximumSize = new Dimension(2000,2000); ...
22,838
public synchronized void addDirtyRegion(JComponent component, int x, int y, int w, int h) { if (w == 0 || h == 0 || !component.isShowing()) return; Rectangle r = new Rectangle(x, y, w, h); if (dirtyComponents.containsKey(component)) r = r.union((Rectangle)d...
public void addDirtyRegion(JComponent component, int x, int y, int w, int h) { if (w == 0 || h == 0 || !component.isShowing()) return; Rectangle r = new Rectangle(x, y, w, h); if (dirtyComponents.containsKey(component)) r = r.union((Rectangle)dirtyComponent...
22,839
public synchronized void addDirtyRegion(JComponent component, int x, int y, int w, int h) { if (w == 0 || h == 0 || !component.isShowing()) return; Rectangle r = new Rectangle(x, y, w, h); if (dirtyComponents.containsKey(component)) r = r.union((Rectangle)d...
public synchronized void addDirtyRegion(JComponent component, int x, int y, int w, int h) { if (w <= 0 || h <= 0 || !component.isShowing()) return; Rectangle r = new Rectangle(x, y, w, h); if (dirtyComponents.containsKey(component)) r = r.union((Rectangle)d...
22,840
public synchronized void addDirtyRegion(JComponent component, int x, int y, int w, int h) { if (w == 0 || h == 0 || !component.isShowing()) return; Rectangle r = new Rectangle(x, y, w, h); if (dirtyComponents.containsKey(component)) r = r.union((Rectangle)d...
public synchronized void addDirtyRegion(JComponent component, int x, int y, int w, int h) { if (w == 0 || h == 0 || !component.isShowing()) return; Rectangle r = new Rectangle(x, y, w, h); if (dirtyComponents.containsKey(component)) r = r.union((Rectangle)d...
22,841
public synchronized void addInvalidComponent(JComponent component) { Component ancestor = component.getParent(); while (ancestor != null && (! (ancestor instanceof JComponent) || ! ((JComponent) ancestor).isValidateRoot() )) ancestor = ancestor.getParent(); if (ancestor != null ...
public void addInvalidComponent(JComponent component) { Component ancestor = component.getParent(); while (ancestor != null && (! (ancestor instanceof JComponent) || ! ((JComponent) ancestor).isValidateRoot() )) ancestor = ancestor.getParent(); if (ancestor != null && anc...
22,843
public void markCompletelyClean(JComponent component) { synchronized (this) { dirtyComponents.remove(component); } component.isCompletelyDirty = false; }
public void markCompletelyClean(JComponent component) { synchronized (dirtyComponents) { dirtyComponents.remove(component); } component.isCompletelyDirty = false; }
22,845
public synchronized void paintDirtyRegions() { // In order to keep the blocking of application threads minimal, we switch // the dirtyComponents field with the workdirtyComponents field and the // repaintOrder field with the workRepaintOrder field and work with the // work* fields. synchronized(th...
public void paintDirtyRegions() { // In order to keep the blocking of application threads minimal, we switch // the dirtyComponents field with the workdirtyComponents field and the // repaintOrder field with the workRepaintOrder field and work with the // work* fields. synchronized(this) { ...
22,846
public synchronized void paintDirtyRegions() { // In order to keep the blocking of application threads minimal, we switch // the dirtyComponents field with the workdirtyComponents field and the // repaintOrder field with the workRepaintOrder field and work with the // work* fields. synchronized(th...
public synchronized void paintDirtyRegions() { // In order to keep the blocking of application threads minimal, we switch // the dirtyComponents field with the workdirtyComponents field and the // repaintOrder field with the workRepaintOrder field and work with the // work* fields. synchronized(th...
22,847
public synchronized void paintDirtyRegions() { // In order to keep the blocking of application threads minimal, we switch // the dirtyComponents field with the workdirtyComponents field and the // repaintOrder field with the workRepaintOrder field and work with the // work* fields. synchronized(th...
public synchronized void paintDirtyRegions() { // In order to keep the blocking of application threads minimal, we switch // the dirtyComponents field with the workdirtyComponents field and the // repaintOrder field with the workRepaintOrder field and work with the // work* fields. synchronized(th...
22,848
public synchronized void paintDirtyRegions() { // In order to keep the blocking of application threads minimal, we switch // the dirtyComponents field with the workdirtyComponents field and the // repaintOrder field with the workRepaintOrder field and work with the // work* fields. synchronized(th...
public synchronized void paintDirtyRegions() { // In order to keep the blocking of application threads minimal, we switch // the dirtyComponents field with the workdirtyComponents field and the // repaintOrder field with the workRepaintOrder field and work with the // work* fields. synchronized(th...
22,849
public synchronized void removeInvalidComponent(JComponent component) { invalidComponents.remove(component); }
public void removeInvalidComponent(JComponent component) { synchronized (invalidComponents) { invalidComponents.remove(component); }
22,850
public void validateInvalidComponents() { // In order to keep the blocking of application threads minimal, we switch // the invalidComponents field with the workInvalidComponents field and // work with the workInvalidComponents field. synchronized(this) { ArrayList swap = invalidComponents; ...
public void validateInvalidComponents() { // In order to keep the blocking of application threads minimal, we switch // the invalidComponents field with the workInvalidComponents field and // work with the workInvalidComponents field. synchronized(this) { ArrayList swap = invalidComponents; ...
22,852
public void validateInvalidComponents() { // In order to keep the blocking of application threads minimal, we switch // the invalidComponents field with the workInvalidComponents field and // work with the workInvalidComponents field. synchronized(this) { ArrayList swap = invalidComponents; ...
public void validateInvalidComponents() { // In order to keep the blocking of application threads minimal, we switch // the invalidComponents field with the workInvalidComponents field and // work with the workInvalidComponents field. synchronized(this) { ArrayList swap = invalidComponents; ...
22,853