bugged
stringlengths
6
599k
fixed
stringlengths
10
599k
__index_level_0__
int64
0
1.13M
protected void set_parameters(Applet app, Properties props) { useProperties(props); String[][] para = app.getParameterInfo(); if (para != null) { for (int i = 0; i < para.length; i++) { if (para [ i ] [ 0 ].equals(LISTEN_ON)) Port = Integer.parseInt(para [ i ] [ ...
protected void set_parameters(Applet app, Properties props) { useProperties(props); String[][] para = app.getParameterInfo(); if (para != null) { for (int i = 0; i < para.length; i++) { if (para [ i ] [ 0 ].equals(LISTEN_ON)) Port = Integer.parseInt(para [ i ] [ ...
15,636
private void formatInternal (double number, FormatBuffer dest, FieldPosition fieldPos) { // A very special case. if (Double.isNaN(number)) { dest.append(symbols.getNaN()); if (fieldPos != null && (fieldPos.getField() == INTEGER_FIELD || fieldPos.getFieldAttribute() == NumberFormat.Field.INTE...
private void formatInternal (double number, FormatBuffer dest, FieldPosition fieldPos) { // A very special case. if (Double.isNaN(number)) { dest.append(symbols.getNaN()); if (fieldPos != null && (fieldPos.getField() == INTEGER_FIELD || fieldPos.getFieldAttribute() == NumberFormat.Field.INTE...
15,638
public JTree() { this(createTreeModel(null)); }
public JTree() { this(getDefaultTreeModel()); }
15,640
public void setModel(TreeModel model) { if (treeModel == model) return; // add treeModelListener to the new model if (treeModelListener == null) treeModelListener = createTreeModelListener(); if (model != null) // as setModel(null) is allowed model.addTreeModelListener(treeModelListener); ...
public void setModel(TreeModel model) { if (treeModel == model) return; // add treeModelListener to the new model if (treeModelListener == null) treeModelListener = createTreeModelListener(); if (model != null) // as setModel(null) is allowed model.addTreeModelListener(treeModelListener); ...
15,641
public void add(int field, int amount) { switch (field) { case YEAR: complete(); fields[YEAR] += amount; isTimeSet = false; break; case MONTH: complete(); int months = fields[MONTH] + amount; fields[YEAR] += months / 12; fields[MONTH] = months % 12; if (fields[MONTH] < 0) ...
public void add(int field, int amount) { switch (field) { case YEAR: complete(); fields[YEAR] += amount; break; case MONTH: complete(); int months = fields[MONTH] + amount; fields[YEAR] += months / 12; fields[MONTH] = months % 12; if (fields[MONTH] < 0) { fields[MONTH...
15,642
protected synchronized void computeTime() { int millisInDay = 0; int era = fields[ERA]; int year = fields[YEAR]; int month = fields[MONTH]; int day = fields[DAY_OF_MONTH]; int minute = fields[MINUTE]; int second = fields[SECOND]; int millis = fields[MILLISECOND]; int[] month_days = { 31, 28, ...
protected synchronized void computeTime() { int millisInDay = 0; int era = fields[ERA]; int year = fields[YEAR]; int month = fields[MONTH]; int day = fields[DAY_OF_MONTH]; int minute = fields[MINUTE]; int second = fields[SECOND]; int millis = fields[MILLISECOND]; int[] month_days = { 31, 28, ...
15,644
protected synchronized void computeTime() { int millisInDay = 0; int era = fields[ERA]; int year = fields[YEAR]; int month = fields[MONTH]; int day = fields[DAY_OF_MONTH]; int minute = fields[MINUTE]; int second = fields[SECOND]; int millis = fields[MILLISECOND]; int[] month_days = { 31, 28, ...
protected synchronized void computeTime() { int millisInDay = 0; int era = fields[ERA]; int year = fields[YEAR]; int month = fields[MONTH]; int day = fields[DAY_OF_MONTH]; int minute = fields[MINUTE]; int second = fields[SECOND]; int millis = fields[MILLISECOND]; int[] month_days = { 31, 28, ...
15,645
protected synchronized void computeTime() { int millisInDay = 0; int era = fields[ERA]; int year = fields[YEAR]; int month = fields[MONTH]; int day = fields[DAY_OF_MONTH]; int minute = fields[MINUTE]; int second = fields[SECOND]; int millis = fields[MILLISECOND]; int[] month_days = { 31, 28, ...
protected synchronized void computeTime() { int millisInDay = 0; int era = fields[ERA]; int year = fields[YEAR]; int month = fields[MONTH]; int day = fields[DAY_OF_MONTH]; int minute = fields[MINUTE]; int second = fields[SECOND]; int millis = fields[MILLISECOND]; int[] month_days = { 31, 28, ...
15,646
protected synchronized void computeTime() { int millisInDay = 0; int era = fields[ERA]; int year = fields[YEAR]; int month = fields[MONTH]; int day = fields[DAY_OF_MONTH]; int minute = fields[MINUTE]; int second = fields[SECOND]; int millis = fields[MILLISECOND]; int[] month_days = { 31, 28, ...
protected synchronized void computeTime() { int millisInDay = 0; int era = fields[ERA]; int year = fields[YEAR]; int month = fields[MONTH]; int day = fields[DAY_OF_MONTH]; int minute = fields[MINUTE]; int second = fields[SECOND]; int millis = fields[MILLISECOND]; int[] month_days = { 31, 28, ...
15,647
protected synchronized void computeTime() { int millisInDay = 0; int era = fields[ERA]; int year = fields[YEAR]; int month = fields[MONTH]; int day = fields[DAY_OF_MONTH]; int minute = fields[MINUTE]; int second = fields[SECOND]; int millis = fields[MILLISECOND]; int[] month_days = { 31, 28, ...
protected synchronized void computeTime() { int millisInDay = 0; int era = fields[ERA]; int year = fields[YEAR]; int month = fields[MONTH]; int day = fields[DAY_OF_MONTH]; int minute = fields[MINUTE]; int second = fields[SECOND]; int millis = fields[MILLISECOND]; int[] month_days = { 31, 28, ...
15,648
protected synchronized void computeTime() { int millisInDay = 0; int era = fields[ERA]; int year = fields[YEAR]; int month = fields[MONTH]; int day = fields[DAY_OF_MONTH]; int minute = fields[MINUTE]; int second = fields[SECOND]; int millis = fields[MILLISECOND]; int[] month_days = { 31, 28, ...
protected synchronized void computeTime() { int millisInDay = 0; int era = fields[ERA]; int year = fields[YEAR]; int month = fields[MONTH]; int day = fields[DAY_OF_MONTH]; int minute = fields[MINUTE]; int second = fields[SECOND]; int millis = fields[MILLISECOND]; int[] month_days = { 31, 28, ...
15,649
public Color getForeground() { if (foreground != null) return foreground; return parent == null ? SystemColor.windowText : parent.getForeground(); }
public Color getForeground() { if (foreground != null) return foreground; return parent == null ? null : parent.getForeground(); }
15,652
public Dimension getMaximumSize() { return new Dimension(Integer.MAX_VALUE, Integer.MAX_VALUE); }
public Dimension getMaximumSize() { return new Dimension(Short.MAX_VALUE, Short.MAX_VALUE); }
15,653
public boolean isShowing() { if (! visible || peer == null) return false; return parent == null ? true : parent.isShowing(); }
public boolean isShowing() { if (! visible || peer == null) return false; return parent == null ? false : parent.isShowing(); }
15,656
public void requestFocus () { if (isDisplayable () && isShowing () && isFocusable ()) { synchronized (getTreeLock ()) { // Find this Component's top-level ancestor. Container parent = getParent (); while (parent != null && !(parent instanceof...
public void requestFocus () { if (isDisplayable () && isShowing () && isFocusable ()) { synchronized (getTreeLock ()) { // Find this Component's top-level ancestor. Container parent = (this instanceof Container) ? (Container) this : getParent(); while (parent ...
15,657
public void setExceptionListener(ExceptionListener listener) { exceptionListener = (listener != null) ? listener : new ExceptionListener() { public void exceptionThrown(Exception e) { System.err.println("exception thrown: " + e); e.printStackTrace(); } }; }
public void setExceptionListener(ExceptionListener listener) { exceptionListener = (listener != null) ? listener : new ExceptionListener() { public void exceptionThrown(Exception e) { System.err.println("exception thrown: " + e); } }; }
15,660
public void exceptionThrown(Exception e) { System.err.println("exception thrown: " + e); e.printStackTrace(); }
public void exceptionThrown(Exception e) { System.err.println("exception thrown: " + e); }
15,661
private static void setupDefaultPersistenceDelegates() { synchronized (delegates) { if (defaultPersistenceDelegate != null) return; delegates.put(Class.class, new ClassPersistenceDelegate()); PersistenceDelegate pd = new PrimitivePersistenceDelegate(); delegates.put(Boole...
private static void setupDefaultPersistenceDelegates() { synchronized (delegates) { if (defaultPersistenceDelegate != null) return; delegates.put(Class.class, new ClassPersistenceDelegate()); PersistenceDelegate pd = new PrimitivePersistenceDelegate(); delegates.put(Boole...
15,662
private static void setupDefaultPersistenceDelegates() { synchronized (delegates) { if (defaultPersistenceDelegate != null) return; delegates.put(Class.class, new ClassPersistenceDelegate()); PersistenceDelegate pd = new PrimitivePersistenceDelegate(); delegates.put(Boole...
private static void setupDefaultPersistenceDelegates() { synchronized (delegates) { if (defaultPersistenceDelegate != null) return; delegates.put(Class.class, new ClassPersistenceDelegate()); PersistenceDelegate pd = new PrimitivePersistenceDelegate(); delegates.put(Boole...
15,663
private static void setupDefaultPersistenceDelegates() { synchronized (delegates) { if (defaultPersistenceDelegate != null) return; delegates.put(Class.class, new ClassPersistenceDelegate()); PersistenceDelegate pd = new PrimitivePersistenceDelegate(); delegates.put(Boole...
private static void setupDefaultPersistenceDelegates() { synchronized (delegates) { if (defaultPersistenceDelegate != null) return; delegates.put(Class.class, new ClassPersistenceDelegate()); PersistenceDelegate pd = new PrimitivePersistenceDelegate(); delegates.put(Boole...
15,664
public String paramString() { StringBuffer s = new StringBuffer(); switch (id) { case MOUSE_CLICKED: s.append("MOUSE_CLICKED,("); break; case MOUSE_PRESSED: s.append("MOUSE_PRESSED,("); break; case MOUSE_RELEASED: s.append("MOUSE_RELEASED,("); break...
public String paramString() { StringBuffer s = new StringBuffer(); switch (id) { case MOUSE_CLICKED: s.append("MOUSE_CLICKED,("); break; case MOUSE_PRESSED: s.append("MOUSE_PRESSED,("); break; case MOUSE_RELEASED: s.append("MOUSE_RELEASED,("); break...
15,666
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException { s.defaultReadObject(); if ((modifiers & EventModifier.OLD_MASK) != 0) { if ((modifiers & BUTTON1_MASK) != 0) button = BUTTON1; else if ((modifiers & BUTTON2_MASK) != 0) button = BUT...
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException { s.defaultReadObject(); if ((modifiers & EventModifier.OLD_MASK) != 0) { if ((modifiers & BUTTON1_MASK) != 0) button = BUTTON1; else if ((modifiers & BUTTON2_MASK) != 0) button = BUT...
15,667
public String getUIClassID() { return "JPanel"; }
public String getUIClassID() { return "JPanel"; }
15,668
private void compileFormat(String pattern) { // Any alphabetical characters are treated as pattern characters // unless enclosed in single quotes. char thisChar; int pos; int field; FieldSizePair current = null; for (int i=0; i<pattern.length(); i++) { thisChar = pattern.charAt(i); fi...
private void compileFormat(String pattern) { // Any alphabetical characters are treated as pattern characters // unless enclosed in single quotes. char thisChar; int pos; int field; FieldSizePair current = null; for (int i=0; i<pattern.length(); i++) { thisChar = pattern.charAt(i); fi...
15,669
private void compileFormat(String pattern) { // Any alphabetical characters are treated as pattern characters // unless enclosed in single quotes. char thisChar; int pos; int field; FieldSizePair current = null; for (int i=0; i<pattern.length(); i++) { thisChar = pattern.charAt(i); fi...
private void compileFormat(String pattern) { // Any alphabetical characters are treated as pattern characters // unless enclosed in single quotes. char thisChar; int pos; int field; FieldSizePair current = null; for (int i=0; i<pattern.length(); i++) { thisChar = pattern.charAt(i); fi...
15,670
private void compileFormat(String pattern) { // Any alphabetical characters are treated as pattern characters // unless enclosed in single quotes. char thisChar; int pos; int field; FieldSizePair current = null; for (int i=0; i<pattern.length(); i++) { thisChar = pattern.charAt(i); fi...
private void compileFormat(String pattern) { // Any alphabetical characters are treated as pattern characters // unless enclosed in single quotes. char thisChar; int pos; int field; FieldSizePair current = null; for (int i=0; i<pattern.length(); i++) { thisChar = pattern.charAt(i); fi...
15,671
private void compileFormat(String pattern) { // Any alphabetical characters are treated as pattern characters // unless enclosed in single quotes. char thisChar; int pos; int field; FieldSizePair current = null; for (int i=0; i<pattern.length(); i++) { thisChar = pattern.charAt(i); fi...
private void compileFormat(String pattern) { // Any alphabetical characters are treated as pattern characters // unless enclosed in single quotes. char thisChar; int pos; int field; FieldSizePair current = null; for (int i=0; i<pattern.length(); i++) { thisChar = pattern.charAt(i); fi...
15,672
private void compileFormat(String pattern) { // Any alphabetical characters are treated as pattern characters // unless enclosed in single quotes. char thisChar; int pos; int field; FieldSizePair current = null; for (int i=0; i<pattern.length(); i++) { thisChar = pattern.charAt(i); fi...
private void compileFormat(String pattern) { // Any alphabetical characters are treated as pattern characters // unless enclosed in single quotes. char thisChar; int pos; int field; FieldSizePair current = null; for (int i=0; i<pattern.length(); i++) { thisChar = pattern.charAt(i); fi...
15,673
private void compileFormat(String pattern) { // Any alphabetical characters are treated as pattern characters // unless enclosed in single quotes. char thisChar; int pos; int field; FieldSizePair current = null; for (int i=0; i<pattern.length(); i++) { thisChar = pattern.charAt(i); fi...
private void compileFormat(String pattern) { // Any alphabetical characters are treated as pattern characters // unless enclosed in single quotes. char thisChar; int pos; int field; FieldSizePair current = null; for (int i=0; i<pattern.length(); i++) { thisChar = pattern.charAt(i); fi...
15,674
public boolean equals(Object o) { if (o == null) return false; if (!super.equals(o)) return false; if (!(o instanceof SimpleDateFormat)) return false; SimpleDateFormat sdf = (SimpleDateFormat)o; if (!toPattern().equals(sdf.toPattern())) return false; if (!get2DigitYearStart().eq...
public boolean equals(Object o) { if (o == null) return false; if (!super.equals(o)) return false; if (!(o instanceof SimpleDateFormat)) return false; SimpleDateFormat sdf = (SimpleDateFormat)o; if (!toPattern().equals(sdf.toPattern())) return false; if (!get2DigitYearStart().eq...
15,675
public boolean equals(Object o) { if (o == null) return false; if (!super.equals(o)) return false; if (!(o instanceof SimpleDateFormat)) return false; SimpleDateFormat sdf = (SimpleDateFormat)o; if (!toPattern().equals(sdf.toPattern())) return false; if (!get2DigitYearStart().eq...
public boolean equals(Object o) { if (o == null) return false; if (!super.equals(o)) return false; if (!(o instanceof SimpleDateFormat)) return false; SimpleDateFormat sdf = (SimpleDateFormat)o; if (defaultCentury != sdf.defaultCentury) return false; if (!get2DigitYearStart().eq...
15,676
public boolean equals(Object o) { if (o == null) return false; if (!super.equals(o)) return false; if (!(o instanceof SimpleDateFormat)) return false; SimpleDateFormat sdf = (SimpleDateFormat)o; if (!toPattern().equals(sdf.toPattern())) return false; if (!get2DigitYearStart().eq...
public boolean equals(Object o) { if (o == null) return false; if (!super.equals(o)) return false; if (!(o instanceof SimpleDateFormat)) return false; SimpleDateFormat sdf = (SimpleDateFormat)o; if (!toPattern().equals(sdf.toPattern())) return false; if (!toPattern().equals(sdf....
15,677
public Date parse (String dateStr, ParsePosition pos) { int fmt_index = 0; int fmt_max = pattern.length(); calendar.clear(); boolean saw_timezone = false; int quote_start = -1; boolean is2DigitYear = false; for (; fmt_index < fmt_max; ++fmt_index) { char ch = pattern.charAt(fmt_index); if (...
public Date parse (String dateStr, ParsePosition pos) { int fmt_index = 0; int fmt_max = pattern.length(); calendar.clear(); boolean saw_timezone = false; int quote_start = -1; boolean is2DigitYear = false; for (; fmt_index < fmt_max; ++fmt_index) { char ch = pattern.charAt(fmt_index); if (...
15,678
private void readObject(ObjectInputStream stream) throws IOException, ClassNotFoundException { stream.defaultReadObject(); if (serialVersionOnStream < 1) { computeCenturyStart (); serialVersionOnStream = 1; } else // Ensure that defaultCentury gets set. set2DigitYearStart(defau...
private void readObject(ObjectInputStream stream) throws IOException, ClassNotFoundException { stream.defaultReadObject(); if (serialVersionOnStream < 1) { computeCenturyStart (); serialVersionOnStream = 1; } else // Ensure that defaultCentury gets set. set2DigitYearStart(defau...
15,680
public String toString() { StringBuffer output = new StringBuffer(); Enumeration e = tokens.elements(); while (e.hasMoreElements()) { output.append(e.nextElement().toString()); } return output.toString(); }
public String toString() { StringBuffer output = new StringBuffer(); Enumeration e = tokens.elements(); while (e.hasMoreElements()) { output.append(e.nextElement().toString()); } return output.toString(); }
15,681
private void withLeadingZeros(int value, int length, StringBuffer buffer) { String valStr = String.valueOf(value); for (length -= valStr.length(); length > 0; length--) buffer.append('0'); buffer.append(valStr); }
private void withLeadingZeros(int value, int length, FormatBuffer buffer) { String valStr = String.valueOf(value); for (length -= valStr.length(); length > 0; length--) buffer.append('0'); buffer.append(valStr); }
15,682
public String getUIClassID() { return "JTree"; }
public String getUIClassID() { return "TreeUI"; }
15,684
protected void installDefaults(JSeparator s) { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); shadow = defaults.getColor("Separator.shadow"); highlight = defaults.getColor("Separator.highlight"); s.setOpaque(false); }
protected void installDefaults(JSeparator s) { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); shadow = defaults.getColor("Separator.shadow"); highlight = defaults.getColor("Separator.highlight"); s.setOpaque(false); }
15,685
public String paramString () { throw new Error ("not implemented"); }
public String paramString () { return ("scrollpane=" + sp + ", orientation=" + orientation + ", value=" + value + ", minimum=" + minimum + ", maximum=" + maximum + ", visibleAmount=" + visibleAmount + ", unitIncrement=" + unitIncrement + ", blockIncrement=" + blockIncrement); }
15,686
public int getOffset() { return 0; }
protected int getOffset() { return 0; }
15,687
public int getGlyphCharIndex (int glyphIndex) throws NotImplementedException { throw new Error ("not implemented"); }
public int getGlyphCharIndex (int glyphIndex) { throw new Error ("not implemented"); }
15,688
public int getGlyphCharIndex (int glyphIndex) throws NotImplementedException { throw new Error ("not implemented"); }
public int getGlyphCharIndex (int glyphIndex) throws NotImplementedException { return glyphIndex; }
15,689
public int[] getGlyphCharIndices (int beginGlyphIndex, int numEntries, int[] codeReturn) throws NotImplementedException { throw new Error ("not implemented"); }
public int[] getGlyphCharIndices (int beginGlyphIndex, int numEntries, int[] codeReturn) { throw new Error ("not implemented"); }
15,690
public int[] getGlyphCharIndices (int beginGlyphIndex, int numEntries, int[] codeReturn) throws NotImplementedException { throw new Error ("not implemented"); }
public int[] getGlyphCharIndices (int beginGlyphIndex, int numEntries, int[] codeReturn) throws NotImplementedException { if (codeReturn == null) codeReturn = new int[numEntries]; int i = 0; int j = beginGlyphIndex; while (j < numEntries) codeReturn[i++] = getGlyphCharIndex(...
15,691
public Rectangle getGlyphPixelBounds (int index, FontRenderContext renderFRC, float x, float y) throws NotImplementedException { throw new Error ("not implemented"); }
public Rectangle getGlyphPixelBounds (int index, FontRenderContext renderFRC, float x, float y) { throw new Error ("not implemented"); }
15,692
public Rectangle getGlyphPixelBounds (int index, FontRenderContext renderFRC, float x, float y) throws NotImplementedException { throw new Error ("not implemented"); }
public Rectangle getGlyphPixelBounds (int index, FontRenderContext renderFRC, float x, float y) throws NotImplementedException { Rectangle bounds = new Rectangle(); Rectangle2D rect = getGlyphVisualBounds(index).getBounds2D(); bounds.x = (int) (rect.getX() + x); bounds.y...
15,693
public Rectangle getPixelBounds (FontRenderContext renderFRC, float x, float y) throws NotImplementedException { throw new Error ("not implemented"); }
public Rectangle getPixelBounds (FontRenderContext renderFRC, float x, float y) { throw new Error ("not implemented"); }
15,694
public Rectangle getPixelBounds (FontRenderContext renderFRC, float x, float y) throws NotImplementedException { throw new Error ("not implemented"); }
public Rectangle getPixelBounds (FontRenderContext renderFRC, float x, float y) throws NotImplementedException { Rectangle bounds = new Rectangle(); Rectangle2D rect = getVisualBounds(); bounds.x = (int) (rect.getX() + x); bounds.y = (int) (rect.getY() + y); bounds.width = (i...
15,695
public void fillHelp(Map map) { super.fillHelp(map); map.put("n", "Next threads"); map.put("r", "Reset the list"); }
public void fillHelp(Map map) { super.fillHelp(map); map.put("n", "Next thread"); map.put("r", "Reset the list"); }
15,696
protected void activate() throws RemoteException { try { Remote self = actId.activate(false); // This will call UnicastServer.exportObject, replacing null by // the activated object (self) in the object map. exportObject(self); } catch (RemoteException rex) { ...
protected void activate() throws RemoteException { try { Remote self = actId.activate(false); // This will call UnicastServer.exportObject, replacing null by // the activated object (self) in the object map. exportObject(self); } catch (RemoteException rex) { ...
15,697
public void run() { SwingUtilities.invokeLater(new Runnable() { public void run() { final ClassLoader cl = getClass().getClassLoader(); final ExtensionPoint appsEP; if (cl instanceof PluginClassLoader) { appsEP = ((PluginClassLoader) ...
public void run() { SwingUtilities.invokeLater(new Runnable() { public void run() { final ClassLoader cl = getClass().getClassLoader(); final ExtensionPoint appsEP; if (cl instanceof PluginClassLoader) { appsEP = ((PluginClassLoader) ...
15,698
public void run() { SwingUtilities.invokeLater(new Runnable() { public void run() { final ClassLoader cl = getClass().getClassLoader(); final ExtensionPoint appsEP; if (cl instanceof PluginClassLoader) { appsEP = ((PluginClassLoader) ...
public void run() { SwingUtilities.invokeLater(new Runnable() { public void run() { final ClassLoader cl = getClass().getClassLoader(); final ExtensionPoint appsEP; if (cl instanceof PluginClassLoader) { appsEP = ((PluginClassLoader) ...
15,699
public void run() { final ClassLoader cl = getClass().getClassLoader(); final ExtensionPoint appsEP; if (cl instanceof PluginClassLoader) { appsEP = ((PluginClassLoader) cl).getDeclaringPluginDescriptor().getExtensionPoint("apps"); ...
public void run() { final ClassLoader cl = getClass().getClassLoader(); final ExtensionPoint appsEP; if (cl instanceof PluginClassLoader) { appsEP = ((PluginClassLoader) cl).getDeclaringPluginDescriptor().getExtensionPoint("apps"); ...
15,700
public void run() { final ClassLoader cl = getClass().getClassLoader(); final ExtensionPoint appsEP; if (cl instanceof PluginClassLoader) { appsEP = ((PluginClassLoader) cl).getDeclaringPluginDescriptor().getExtensionPoint("apps"); ...
public void run() { final ClassLoader cl = getClass().getClassLoader(); final ExtensionPoint appsEP; if (cl instanceof PluginClassLoader) { appsEP = ((PluginClassLoader) cl).getDeclaringPluginDescriptor().getExtensionPoint("apps"); ...
15,701
public void run() { Dimension ss = ((JNodeToolkit) Toolkit.getDefaultToolkit()).changeScreenSize(resolution); AccessController.doPrivileged(new SetPropertyAction("jnode.awt.screensize", resolution)); ctx.adjustDesktopSize(ss.width,...
public void run() { ((JNodeToolkit) Toolkit.getDefaultToolkit()).changeScreenSize(resolution); AccessController.doPrivileged(new SetPropertyAction("jnode.awt.screensize", resolution)); ctx.adjustDesktopSize(ss.width, ss.height); ...
15,702
public void run() { Dimension ss = ((JNodeToolkit) Toolkit.getDefaultToolkit()).changeScreenSize(resolution); AccessController.doPrivileged(new SetPropertyAction("jnode.awt.screensize", resolution)); ctx.adjustDesktopSize(ss.width,...
public void run() { Dimension ss = ((JNodeToolkit) Toolkit.getDefaultToolkit()).changeScreenSize(resolution); AccessController.doPrivileged(new SetPropertyAction("jnode.awt.screensize", resolution)); ctx.adjustDesktopSize(ss.width,...
15,703
public BufferCapabilities(ImageCapabilities front, ImageCapabilities back, FlipContents flip) { if (front == null || back == null) throw new IllegalArgumentException(); this.front = front; this.back = back; this.flip = flip; }
public BufferCapabilities(ImageCapabilities front, ImageCapabilities back, FlipContents flip) { if (front == null || back == null) throw new IllegalArgumentException(); this.front = front; this.back = back; this.flip = flip; }
15,704
public BufferCapabilities(ImageCapabilities front, ImageCapabilities back, FlipContents flip) { if (front == null || back == null) throw new IllegalArgumentException(); this.front = front; this.back = back; this.flip = flip; }
public BufferCapabilities(ImageCapabilities front, ImageCapabilities back, FlipContents flip) { if (frontCaps == null || backCaps == null) throw new IllegalArgumentException(); this.front = front; this.back = back; this.flip = flip; }
15,705
public BufferCapabilities(ImageCapabilities front, ImageCapabilities back, FlipContents flip) { if (front == null || back == null) throw new IllegalArgumentException(); this.front = front; this.back = back; this.flip = flip; }
public BufferCapabilities(ImageCapabilities front, ImageCapabilities back, FlipContents flip) { if (front == null || back == null) throw new IllegalArgumentException(); this.front = front; this.back = back; this.flip = flip; }
15,706
public final void dispatchEvent(AWTEvent e) { // Some subclasses in the AWT package need to override this behavior, // hence the use of dispatchEventImpl(). dispatchEventImpl(e); if (peer != null && ! e.consumed) peer.handleEvent(e); }
public final void dispatchEvent(AWTEvent e) { // Some subclasses in the AWT package need to override this behavior, // hence the use of dispatchEventImpl(). dispatchEventImpl(e); if (peer != null && ! e.consumed) peer.handleEvent(e); }
15,707
void dispatchEventImpl (AWTEvent e) { Event oldEvent = translateEvent (e); if (oldEvent != null) postEvent (oldEvent); if (eventTypeEnabled (e.id)) { // the trick we use to communicate between dispatch and redispatch // is to have KeyboardFocusManager.redispatch synchronize on the ...
void dispatchEventImpl (AWTEvent e) { Event oldEvent = translateEvent (e); if (oldEvent != null) postEvent (oldEvent); if (eventTypeEnabled (e.id)) { // the trick we use to communicate between dispatch and redispatch // is to have KeyboardFocusManager.redispatch synchronize on the ...
15,708
public boolean isDisplayable() { if (parent != null) return parent.isDisplayable(); return false; }
public boolean isDisplayable() { if (parent != null) return parent.isDisplayable(); return false; }
15,710
public void paint(Graphics g) { // Paint the heavyweight peer if (!isLightweight() && peer != null) peer.paint(g); }
public void paint(Graphics g) { // Paint the heavyweight peer if (!isLightweight() && peer != null) peer.paint(g); }
15,711
protected String paramString() { StringBuffer param = new StringBuffer(); String name = getName(); if (name != null) param.append(name).append(","); param.append(x).append(",").append(y).append(",").append(width) .append("x").append(height); if (! isValid()) param.append(",invalid"); if (! isVis...
protected String paramString() { StringBuffer param = new StringBuffer(); String name = getName(); if (name != null) param.append(name).append(","); param.append(x).append(",").append(y).append(",").append(width) .append("x").append(height); if (! isValid()) param.append(",invalid"); if (! isVis...
15,712
protected String paramString() { StringBuffer param = new StringBuffer(); String name = getName(); if (name != null) param.append(name).append(","); param.append(x).append(",").append(y).append(",").append(width) .append("x").append(height); if (! isValid()) param.append(",invalid"); if (! isVis...
protected String paramString() { StringBuffer param = new StringBuffer(); String name = getName(); if (name != null) param.append(name).append(","); param.append(x).append(",").append(y).append(",").append(width) .append("x").append(height); if (! isValid()) param.append(",invalid"); if (! isVis...
15,713
public void reshape(int x, int y, int width, int height) { int oldx = this.x; int oldy = this.y; int oldwidth = this.width; int oldheight = this.height; if (this.x == x && this.y == y && this.width == width && this.height == height) return; invalidate (); this.x = x; this.y = y; ...
public void reshape(int x, int y, int width, int height) { int oldx = this.x; int oldy = this.y; int oldwidth = this.width; int oldheight = this.height; if (this.x == x && this.y == y && this.width == width && this.height == height) return; invalidate (); this.x = x; this.y = y; ...
15,715
public void reshape(int x, int y, int width, int height) { int oldx = this.x; int oldy = this.y; int oldwidth = this.width; int oldheight = this.height; if (this.x == x && this.y == y && this.width == width && this.height == height) return; invalidate (); this.x = x; this.y = y; ...
public void reshape(int x, int y, int width, int height) { int oldx = this.x; int oldy = this.y; int oldwidth = this.width; int oldheight = this.height; if (this.x == x && this.y == y && this.width == width && this.height == height) return; invalidate (); this.x = x; this.y = y; ...
15,716
public void reshape(int x, int y, int width, int height) { int oldx = this.x; int oldy = this.y; int oldwidth = this.width; int oldheight = this.height; if (this.x == x && this.y == y && this.width == width && this.height == height) return; invalidate (); this.x = x; this.y = y; ...
public void reshape(int x, int y, int width, int height) { int oldx = this.x; int oldy = this.y; int oldwidth = this.width; int oldheight = this.height; if (this.x == x && this.y == y && this.width == width && this.height == height) return; invalidate (); this.x = x; this.y = y; ...
15,717
protected void installDefaults() { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); tabPane.setFont(defaults.getFont("TabbedPane.font")); tabPane.setForeground(defaults.getColor("TabbedPane.foreground")); tabPane.setBackground(defaults.getColor("TabbedPane.background")); tabPane.setOpaque(fal...
protected void installDefaults() { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); tabPane.setFont(defaults.getFont("TabbedPane.font")); tabPane.setForeground(defaults.getColor("TabbedPane.foreground")); tabPane.setBackground(defaults.getColor("TabbedPane.background")); tabPane.setOpaque(fal...
15,718
protected void installDefaults() { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); tabPane.setFont(defaults.getFont("TabbedPane.font")); tabPane.setForeground(defaults.getColor("TabbedPane.foreground")); tabPane.setBackground(defaults.getColor("TabbedPane.background")); tabPane.setOpaque(fal...
protected void installDefaults() { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); tabPane.setFont(defaults.getFont("TabbedPane.font")); tabPane.setForeground(defaults.getColor("TabbedPane.foreground")); tabPane.setBackground(defaults.getColor("TabbedPane.background")); tabPane.setOpaque(fal...
15,719
protected void installDefaults() { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); tabPane.setFont(defaults.getFont("TabbedPane.font")); tabPane.setForeground(defaults.getColor("TabbedPane.foreground")); tabPane.setBackground(defaults.getColor("TabbedPane.background")); tabPane.setOpaque(fal...
protected void installDefaults() { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); tabPane.setFont(defaults.getFont("TabbedPane.font")); tabPane.setForeground(defaults.getColor("TabbedPane.foreground")); tabPane.setBackground(defaults.getColor("TabbedPane.background")); tabPane.setOpaque(fal...
15,720
protected void installDefaults() { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); tabPane.setFont(defaults.getFont("TabbedPane.font")); tabPane.setForeground(defaults.getColor("TabbedPane.foreground")); tabPane.setBackground(defaults.getColor("TabbedPane.background")); tabPane.setOpaque(fal...
protected void installDefaults() { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); tabPane.setFont(defaults.getFont("TabbedPane.font")); tabPane.setForeground(defaults.getColor("TabbedPane.foreground")); tabPane.setBackground(defaults.getColor("TabbedPane.background")); tabPane.setOpaque(fal...
15,721
protected void installDefaults() { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); tabPane.setFont(defaults.getFont("TabbedPane.font")); tabPane.setForeground(defaults.getColor("TabbedPane.foreground")); tabPane.setBackground(defaults.getColor("TabbedPane.background")); tabPane.setOpaque(fal...
protected void installDefaults() { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); tabPane.setFont(defaults.getFont("TabbedPane.font")); tabPane.setForeground(defaults.getColor("TabbedPane.foreground")); tabPane.setBackground(defaults.getColor("TabbedPane.background")); tabPane.setOpaque(fal...
15,722
protected void installDefaults() { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); tabPane.setFont(defaults.getFont("TabbedPane.font")); tabPane.setForeground(defaults.getColor("TabbedPane.foreground")); tabPane.setBackground(defaults.getColor("TabbedPane.background")); tabPane.setOpaque(fal...
protected void installDefaults() { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); tabPane.setFont(defaults.getFont("TabbedPane.font")); tabPane.setForeground(defaults.getColor("TabbedPane.foreground")); tabPane.setBackground(defaults.getColor("TabbedPane.background")); tabPane.setOpaque(fal...
15,723
protected void layoutLabel(int tabPlacement, FontMetrics metrics, int tabIndex, String title, Icon icon, Rectangle tabRect, Rectangle iconRect, Rectangle textRect, boolean isSelected) { SwingUtilities.layoutCompoundLabel(metrics, ...
protected void layoutLabel(int tabPlacement, FontMetrics metrics, int tabIndex, String title, Icon icon, Rectangle tabRect, Rectangle iconRect, Rectangle textRect, boolean isSelected) { SwingUtilities.layoutCompoundLabel(metrics, ...
15,724
public GlyphJustificationInfo getJustificationInfo () throws NotImplementedException { throw new Error ("not implemented"); }
public GlyphJustificationInfo getJustificationInfo () throws NotImplementedException { throw new Error ("not implemented"); }
15,725
public GlyphJustificationInfo getJustificationInfo () throws NotImplementedException { throw new Error ("not implemented"); }
public GlyphJustificationInfo getJustificationInfo () throws NotImplementedException { float adv = getAdvance(); return new GlyphJustificationInfo(adv, false, 2, adv / 3, adv / 3, false, 1, 0, 0); }
15,726
Inet4Address(byte[] addr) { this(addr, null, null); }
Inet4Address(byte[] addr, String host) { this(addr, null, null); }
15,727
Inet4Address(byte[] addr) { this(addr, null, null); }
Inet4Address(byte[] addr) { super(addr, host); }
15,728
public String getHostAddress() { StringBuffer sbuf = new StringBuffer(40); int len = addr.length; int i = 0; for (;;) { sbuf.append(addr[i] & 0xFF); i++; if (i == len) break; sbuf.append('.'); } return sbuf.toString(); }
public String getHostAddress() { StringBuffer sbuf = new StringBuffer(40); int len = addr.length; int i = 0; for (;;) { sbuf.append(addr[i] & 0xFF); i++; if (i == len) break; sbuf.append('.'); } return sbuf.toString(); }
15,729
public boolean isAnyLocalAddress() { byte[] anylocal = { 0, 0, 0, 0 }; return Arrays.equals(addr, anylocal); }
public boolean isAnyLocalAddress() { byte[] anylocal = { 0, 0, 0, 0 }; return Arrays.equals(addr, anylocal); }
15,730
public boolean isLinkLocalAddress() { // XXX: This seems to not exist with IPv4 addresses return false; }
public boolean isLinkLocalAddress() { // XXX: This seems to not exist with IPv4 addresses return super.isLinkLocalAddress(); }
15,731
public boolean isLoopbackAddress() { return addr[0] == 0x7F; }
public boolean isLoopbackAddress() { return super.isLoopbackAddress(); }
15,732
public boolean isMCGlobal() { // XXX: This seems to net exist with IPv4 addresses return false; }
public boolean isMCGlobal() { // XXX: This seems to net exist with IPv4 addresses return super.isMCGlobal(); }
15,733
public boolean isMCLinkLocal() { if (! isMulticastAddress()) return false; return (addr[0] == 0xE0) && (addr[1] == 0x00) && (addr[2] == 0x00); }
public boolean isMCLinkLocal() { if (! isMulticastAddress()) return false; return (addr[0] == 0xE0) && (addr[1] == 0x00) && (addr[2] == 0x00); }
15,734
public boolean isMCNodeLocal() { // XXX: This seems to net exist with IPv4 addresses return false; }
public boolean isMCNodeLocal() { // XXX: This seems to net exist with IPv4 addresses return isMCNodeLocal(); }
15,735
public boolean isMCOrgLocal() { // XXX: This seems to net exist with IPv4 addresses return false; }
public boolean isMCOrgLocal() { // XXX: This seems to net exist with IPv4 addresses return isMCOrgLocal(); }
15,736
public boolean isMCSiteLocal() { // XXX: This seems to net exist with IPv4 addresses return false; }
public boolean isMCSiteLocal() { // XXX: This seems to net exist with IPv4 addresses return super.isMCSiteLocal(); }
15,737
public boolean isMulticastAddress() { return (addr[0] & 0xF0) == 0xE0; }
public boolean isMulticastAddress() { return super.isMulticastAddress(); }
15,738
public boolean isSiteLocalAddress() { // 10.0.0.0/8 if (addr[0] == 0x0A) return true; // XXX: Suns JDK 1.4.1 (on Linux) seems to have a bug here: // it says 172.16.0.0 - 172.255.255.255 are site local addresses // // 172.16.0.0/12 if (addr[0] == 0xAC && (addr[1] & 0xF0) == 0x01) return true; // 192.168.0...
public boolean isSiteLocalAddress() { // 10.0.0.0/8 if (addr[0] == 0x0A) return true; // XXX: Suns JDK 1.4.1 (on Linux) seems to have a bug here: // it says 172.16.0.0 - 172.255.255.255 are site local addresses // // 172.16.0.0/12 if (addr[0] == 0xAC && (addr[1] & 0xF0) == 0x01) return true; // 192.168.0...
15,739
private Object writeReplace() throws ObjectStreamException { return new InetAddress(addr, hostName, null); }
private Object writeReplace() throws ObjectStreamException { return new InetAddress(addr, hostName, null); }
15,740
public String toString () { return ("[" + getClass ().getName () + ",hgap=" + hgap + ",vgap=" + vgap + ",rows=" + rows + ",cols=" + cols + "]"); }
public String toString () { return (getClass ().getName () + "[" + ",hgap=" + hgap + ",vgap=" + vgap + ",rows=" + rows + ",cols=" + cols + "]"); }
15,741
private void updateSelection() { if (table.getRowSelectionAllowed()) { int lo_row = getRowForPoint(begin); int hi_row = getRowForPoint(curr); ListSelectionModel rowModel = table.getSelectionModel(); if (lo_row != -1 && hi_row != -1) rowModel.setSelectio...
private void updateSelection() { if (table.getRowSelectionAllowed()) { int lo_row = getRowForPoint(begin); int hi_row = getRowForPoint(curr); ListSelectionModel rowModel = table.getSelectionModel(); if (lo_row != -1 && hi_row != -1) rowModel.setSelectio...
15,742
private void updateSelection() { if (table.getRowSelectionAllowed()) { int lo_row = getRowForPoint(begin); int hi_row = getRowForPoint(curr); ListSelectionModel rowModel = table.getSelectionModel(); if (lo_row != -1 && hi_row != -1) rowModel.setSelectio...
private void updateSelection() { if (table.getRowSelectionAllowed()) { int lo_row = getRowForPoint(begin); int hi_row = getRowForPoint(curr); ListSelectionModel rowModel = table.getSelectionModel(); if (lo_row != -1 && hi_row != -1) rowModel.setSelectio...
15,743
Scrollbar(){ this(VERTICAL);}
Scrollbar(){ this(VERTICAL);}
15,744
addAdjustmentListener(AdjustmentListener listener){ adjustment_listeners = AWTEventMulticaster.add(adjustment_listeners, listener); enableEvents(AWTEvent.ADJUSTMENT_EVENT_MASK);}
addAdjustmentListener(AdjustmentListener listener){ adjustment_listeners = AWTEventMulticaster.add(adjustment_listeners, listener); enableEvents(AWTEvent.ADJUSTMENT_EVENT_MASK);}
15,745
addNotify(){ if (peer == null) peer = getToolkit ().createScrollbar (this); super.addNotify ();}
addNotify(){ if (peer == null) peer = getToolkit ().createScrollbar (this); super.addNotify ();}
15,746
dispatchEventImpl(AWTEvent e){ if (e.id <= AdjustmentEvent.ADJUSTMENT_LAST && e.id >= AdjustmentEvent.ADJUSTMENT_FIRST && (adjustment_listeners != null || (eventMask & AWTEvent.ADJUSTMENT_EVENT_MASK) != 0)) processEvent(e); else super.dispatchEventImpl(e);}
dispatchEventImpl(AWTEvent e){ if (e.id <= AdjustmentEvent.ADJUSTMENT_LAST && e.id >= AdjustmentEvent.ADJUSTMENT_FIRST && (adjustment_listeners != null || (eventMask & AWTEvent.ADJUSTMENT_EVENT_MASK) != 0)) processEvent(e); else super.dispatchEventImpl(e);}
15,747
getBlockIncrement(){ return getPageIncrement ();}
getBlockIncrement(){ return getPageIncrement ();}
15,748
getLineIncrement(){ return lineIncrement;}
getLineIncrement(){ return lineIncrement;}
15,749