bugged
stringlengths
6
599k
fixed
stringlengths
6
40.8M
__index_level_0__
int64
0
3.24M
public static final byte[] trim(BigInteger n) { byte[] in = n.toByteArray(); if (in.length == 0 || in[0] != 0) { return in; } int len = in.length; int i = 1; while (in[i] == 0 && i < len) { ++i; } byte[] result = new byte[len - i]; System.arraycopy(in, i, result...
public static final byte[] trim(BigInteger n) { byte[] in = n.toByteArray(); if (in.length == 0 || in[0] != 0) { return in; int len = in.length; int i = 1; while (in[i] == 0 && i < len) { ++i; byte[] result = new byte[len - i]; System.arraycopy(in, i, result, 0,...
16,144
public static final byte[] trim(BigInteger n) { byte[] in = n.toByteArray(); if (in.length == 0 || in[0] != 0) { return in; } int len = in.length; int i = 1; while (in[i] == 0 && i < len) { ++i; } byte[] result = new byte[len - i]; System.arraycopy(in, i, result...
public static final byte[] trim(BigInteger n) byte[] in = n.toByteArray(); if (in.length == 0 || in[0] != 0) return in; } int len = in.length; int i = 1; while (in[i] == 0 && i < len) ++i; } byte[] result = new byte[len - i]; System.arraycopy(in, i, result, 0, l...
16,145
public static final byte[] trim(BigInteger n) { byte[] in = n.toByteArray(); if (in.length == 0 || in[0] != 0) { return in; } int len = in.length; int i = 1; while (in[i] == 0 && i < len) { ++i; } byte[] result = new byte[len - i]; System.arraycopy(in, i, result...
public static final byte[] trim(BigInteger n) { byte[] in = n.toByteArray(); if (in.length == 0 || in[0] != 0) { return in; int len = in.length; int i = 1; while (in[i] == 0 && i < len) { ++i; byte[] result = new byte[len - i]; System.arraycopy(in, i, result, 0,...
16,146
public NumberFormatException(String s) { super(s); }
public NumberFormatException(String s) { super(s); }
16,147
public BasicStroke() { this(1, CAP_SQUARE, JOIN_MITER, 10, null, 0); }
public BasicStroke(float width, int cap, int join, float miterlimit, float[] dash, float dashPhase) { this(1, CAP_SQUARE, JOIN_MITER, 10, null, 0); }
16,148
public BasicStroke() { this(1, CAP_SQUARE, JOIN_MITER, 10, null, 0); }
public BasicStroke() { if (width < 0.0f ) throw new IllegalArgumentException("width " + width + " < 0"); else if (cap < CAP_BUTT || cap > CAP_SQUARE) throw new IllegalArgumentException("cap " + cap + " out of range [" + CAP_BUTT + ".." + CAP_SQUARE + "]"); else if (miterlimit < 1.0f && join == JOIN_MITER) throw n...
16,149
public int hashCode() { throw new Error("not implemented"); }
public int hashCode() { int hash = Float.floatToIntBits(width); hash ^= cap; hash ^= join; hash ^= Float.floatToIntBits(limit); for (int i = 0; i < dash.length; i++) hash ^= Float.floatToIntBits(dash[i]); hash ^= Float.floatToIntBits(phase); return hash; }
16,150
void setRangeProperties(int value, int extent, int min, int max, boolean adjusting);
void setRangeProperties(int value, int extent, int min, int max, boolean adjusting);
16,151
dispatchEventImpl(AWTEvent e){ if (e.id <= ItemEvent.ITEM_LAST && e.id >= ItemEvent.ITEM_FIRST && (item_listeners != null || (eventMask & AWTEvent.ITEM_EVENT_MASK) != 0)) processEvent(e); else super.dispatchEventImpl(e);}
dispatchEventImpl(AWTEvent e){ if (e.id <= ItemEvent.ITEM_LAST && e.id >= ItemEvent.ITEM_FIRST && (item_listeners != null || (eventMask & AWTEvent.ITEM_EVENT_MASK) != 0)) processEvent(e); else super.dispatchEventImpl(e);}
16,152
public void update(byte[] buf, int off, int len) { int c = ~crc; while (--len >= 0) c = crc_table[(c ^ buf[off++]) & 0xff] ^ (c >>> 8); crc = ~c; }
public void update(byte[] buf, int off, int len) { int c = ~crc; while (--len >= 0) c = crc_table[(c ^ buf[off++]) & 0xff] ^ (c >>> 8); crc = ~c; }
16,155
public void update(byte[] buf, int off, int len) { int c = ~crc; while (--len >= 0) c = crc_table[(c ^ buf[off++]) & 0xff] ^ (c >>> 8); crc = ~c; }
public void update(byte[] buf, int off, int len) { int c = ~crc; while (--len >= 0) c = crc_table[(c ^ buf[off++]) & 0xff] ^ (c >>> 8); crc = ~c; }
16,156
public long getValue() { return (long)crc & 0xffffffffL; }
public long getValue() { return (long)crc & 0xffffffffL; }
16,157
public AnySeqHolder(Any [] a_value) { value = a_value; }
public AnySeqHolder() { value = a_value; }
16,160
public AnySeqHolder(Any [] a_value) { value = a_value; }
public AnySeqHolder(Any [] a_value) { }
16,161
StreamHandler( OutputStream out, String propertyPrefix, Level defaultLevel, Formatter formatter, Class defaultFormatterClass) { this.level = LogManager.getLevelProperty(propertyPrefix + ".level", defaultLevel); this.filter = (Filter) LogManager.getInstanceProperty( propertyPrefix + "....
StreamHandler( OutputStream out, String propertyPrefix, Level defaultLevel, Formatter formatter, Class defaultFormatterClass) { this.level = LogManager.getLevelProperty(propertyPrefix + ".level", defaultLevel); this.filter = (Filter) LogManager.getInstanceProperty( propertyPrefix + "....
16,162
StreamHandler( OutputStream out, String propertyPrefix, Level defaultLevel, Formatter formatter, Class defaultFormatterClass) { this.level = LogManager.getLevelProperty(propertyPrefix + ".level", defaultLevel); this.filter = (Filter) LogManager.getInstanceProperty( propertyPrefix + "....
StreamHandler( OutputStream out, String propertyPrefix, Level defaultLevel, Formatter formatter, Class defaultFormatterClass) { this.level = LogManager.getLevelProperty(propertyPrefix + ".level", defaultLevel); this.filter = (Filter) LogManager.getInstanceProperty( propertyPrefix + "....
16,163
public final Class getCategory() { return PrinterMakeAndModel.class; }
public Class getCategory() { return PrinterMakeAndModel.class; }
16,164
public final String getName() { return "printer-make-and-model"; }
public String getName() { return "printer-make-and-model"; }
16,165
public void setLeadSelectionIndex(int leadIndex) { int oldLeadIndex = leadSelectionIndex; leadSelectionIndex = leadIndex; if (anchorSelectionIndex == -1) return; int R1 = Math.min(anchorSelectionIndex, oldLeadIndex); int R2 = Math.max(anchorSelectionIndex, oldLeadIndex); int S1 = Math.min(anch...
public void setLeadSelectionIndex(int leadIndex) int oldLeadIndex = leadSelectionIndex; leadSelectionIndex = leadIndex; if (anchorSelectionIndex == -1) return; int R1 = Math.min(anchorSelectionIndex, oldLeadIndex); int R2 = Math.max(anchorSelectionIndex, oldLeadIndex); int S1 = Math.min(anchor...
16,168
public void setLeadSelectionIndex(int leadIndex) { int oldLeadIndex = leadSelectionIndex; leadSelectionIndex = leadIndex; if (anchorSelectionIndex == -1) return; int R1 = Math.min(anchorSelectionIndex, oldLeadIndex); int R2 = Math.max(anchorSelectionIndex, oldLeadIndex); int S1 = Math.min(anch...
public void setLeadSelectionIndex(int leadIndex) { int oldLeadIndex = leadSelectionIndex; leadSelectionIndex = leadIndex; if (anchorSelectionIndex == -1) return; int R1 = Math.min(anchorSelectionIndex, oldLeadIndex); int R2 = Math.max(anchorSelectionIndex, oldLeadIndex); int S1 = Math.min(anch...
16,169
public void set(int from, int to) { if (from < 0 || from > to) throw new IndexOutOfBoundsException(); if (from == to) return; int lo_offset = from >>> 6; int hi_offset = to >>> 6; ensure(hi_offset); if (lo_offset == hi_offset) { bits[hi_offset] |= (-1L << from) & ((1L << to) -...
public void set(int pos) { if (from < 0 || from > to) throw new IndexOutOfBoundsException(); if (from == to) return; int lo_offset = from >>> 6; int hi_offset = to >>> 6; ensure(hi_offset); if (lo_offset == hi_offset) { bits[hi_offset] |= (-1L << from) & ((1L << to) - 1); ...
16,171
public void set(int from, int to) { if (from < 0 || from > to) throw new IndexOutOfBoundsException(); if (from == to) return; int lo_offset = from >>> 6; int hi_offset = to >>> 6; ensure(hi_offset); if (lo_offset == hi_offset) { bits[hi_offset] |= (-1L << from) & ((1L << to) -...
public void set(int from, int to) { if (from < 0 || from > to) throw new IndexOutOfBoundsException(); if (from == to) return; int lo_offset = from >>> 6; int hi_offset = to >>> 6; ensure(hi_offset); if (lo_offset == hi_offset) { bits[hi_offset] |= (-1L << from) & ((1L << to) -...
16,172
public BitSet get(int from, int to) { if (from < 0 || from > to) throw new IndexOutOfBoundsException(); BitSet bs = new BitSet(to - from); int lo_offset = from >>> 6; if (lo_offset >= bits.length) return bs; int lo_bit = from & LONG_MASK; int hi_offset = to >>> 6; if (lo_bit == 0) ...
public boolean get(int pos) { if (from < 0 || from > to) throw new IndexOutOfBoundsException(); BitSet bs = new BitSet(to - from); int lo_offset = from >>> 6; if (lo_offset >= bits.length) return bs; int lo_bit = from & LONG_MASK; int hi_offset = to >>> 6; if (lo_bit == 0) { ...
16,173
public BitSet get(int from, int to) { if (from < 0 || from > to) throw new IndexOutOfBoundsException(); BitSet bs = new BitSet(to - from); int lo_offset = from >>> 6; if (lo_offset >= bits.length) return bs; int lo_bit = from & LONG_MASK; int hi_offset = to >>> 6; if (lo_bit == 0) ...
public BitSet get(int from, int to) { if (from < 0 || from > to) throw new IndexOutOfBoundsException(); BitSet bs = new BitSet(to - from); int lo_offset = from >>> 6; if (lo_offset >= bits.length) return bs; int lo_bit = from & LONG_MASK; int hi_offset = to >>> 6; if (lo_bit == 0) ...
16,174
public static Registry getRegistry(int port) throws RemoteException { return (getRegistry("localhost", port));}
public static Registry getRegistry(int port) throws RemoteException { return (getRegistry("localhost", port));}
16,175
public ULongLongSeqHolder(long[] initial_value) { value = initial_value; typecode.setLength(value.length); }
public ULongLongSeqHolder() { value = initial_value; typecode.setLength(value.length); }
16,176
public ULongLongSeqHolder(long[] initial_value) { value = initial_value; typecode.setLength(value.length); }
public ULongLongSeqHolder(long[] initial_value) { value = initial_value; typecode.setLength(value.length); }
16,177
public void waitForIdle() { if (state == State.ACTIVE) throw new BAD_INV_ORDER("The state is active"); Iterator iter = POAs.iterator(); while (iter.hasNext()) { gnuPOA poa = (gnuPOA) iter.next(); poa.waitWhileRunning(); } }
public void waitForIdle() { if (state == State.ACTIVE) throw new BAD_INV_ORDER("The state is active"); Iterator iter = POAs.iterator(); while (iter.hasNext()) { poa = (gnuPOA) iter.next(); poa.waitWhileRunning(); } }
16,182
public double distance(Point2D p) { return distance(getX(), p.getX(), getY(), p.getY()); }
public static double distance(double x1, double y1, double x2, double y2) { return distance(getX(), p.getX(), getY(), p.getY()); }
16,183
public double distance(Point2D p) { return distance(getX(), p.getX(), getY(), p.getY()); }
public double distance(Point2D p) { return Math.sqrt(distanceSq(x1, y1, x2, y2)); }
16,184
boolean contains(Point2D p);
boolean contains(Point2D p);
16,185
public void layoutContainer(Container parent) { // The way to interpret this function is basically to ignore the names // of methods it calls, and focus on the variable names here. getViewRect // doesn't, for example, return the view; it returns the port bounds in // view space. Likwise setViewPosition ...
public void layoutContainer(Container parent) { // The way to interpret this function is basically to ignore the names // of methods it calls, and focus on the variable names here. getViewRect // doesn't, for example, return the view; it returns the port bounds in // view space. Likwise setViewPosition ...
16,186
public void layoutContainer(Container parent) { // The way to interpret this function is basically to ignore the names // of methods it calls, and focus on the variable names here. getViewRect // doesn't, for example, return the view; it returns the port bounds in // view space. Likwise setViewPosition ...
public void layoutContainer(Container parent) { // The way to interpret this function is basically to ignore the names // of methods it calls, and focus on the variable names here. getViewRect // doesn't, for example, return the view; it returns the port bounds in // view space. Likwise setViewPosition ...
16,187
public BoxLayout(JComponent p, int way) { int width = 0; int height = 0; this.way = way; if (way == X_AXIS) { width = 1; } else { height = 1; } gridbag = new GridLayout(width, height); }
public BoxLayout(JComponent p, int way) { int width = 0; int height = 0; this.way = way; if (way == X_AXIS) { width = 1; } else { height = 1; } gridbag = new GridLayout(width, height); }
16,188
public BoxLayout(JComponent p, int way) { int width = 0; int height = 0; this.way = way; if (way == X_AXIS) { width = 1; } else { height = 1; } gridbag = new GridLayout(width, height); }
public BoxLayout(JComponent p, int way) { int width = 0; int height = 0; this.way = way; if (way == X_AXIS) { width = 1; } else { height = 1; } gridbag = new GridLayout(width, height); }
16,189
public BoxLayout(JComponent p, int way) { int width = 0; int height = 0; this.way = way; if (way == X_AXIS) { width = 1; } else { height = 1; } gridbag = new GridLayout(width, height); }
public BoxLayout(JComponent p, int way) { int width = 0; int height = 0; this.way = way; if (way == X_AXIS) { width = 1; } else { height = 1; } gridbag = new GridLayout(width, height); }
16,190
public BoxLayout(JComponent p, int way) { int width = 0; int height = 0; this.way = way; if (way == X_AXIS) { width = 1; } else { height = 1; } gridbag = new GridLayout(width, height); }
public BoxLayout(JComponent p, int way) { int width = 0; int height = 0; this.way = way; if (way == X_AXIS) { width = 1; } else { height = 1; } gridbag = new GridLayout(width, height); }
16,191
public BoxLayout(JComponent p, int way) { int width = 0; int height = 0; this.way = way; if (way == X_AXIS) { width = 1; } else { height = 1; } gridbag = new GridLayout(width, height); }
public BoxLayout(JComponent p, int way) { int width = 0; int height = 0; this.way = way; if (way == X_AXIS) { width = 1; } else { height = 1; } gridbag = new GridLayout(width, height); }
16,192
public void addLayoutComponent(String name, Component comp) { if (way == X_AXIS) { gridbag.setColumns( gridbag.getColumns() + 1); } else { gridbag.setRows( gridbag.getRows() + 1); } }
public void addLayoutComponent(String name, Component comp) { if (way == X_AXIS) { gridbag.setColumns( gridbag.getColumns() + 1); } else { gridbag.setRows( gridbag.getRows() + 1); } }
16,193
public float getLayoutAlignmentX ( Container parent ) { return 0; }
public float getLayoutAlignmentX ( Container parent ) { return 0; }
16,194
public float getLayoutAlignmentY ( Container parent ) { return 0; }
public float getLayoutAlignmentY ( Container parent ) { return 0; }
16,195
public void invalidateLayout ( Container parent ) { }
public void invalidateLayout ( Container parent ) { }
16,196
public void layoutContainer(Container parent) { gridbag.layoutContainer(parent); }
public void layoutContainer(Container parent) { gridbag.layoutContainer(parent); }
16,197
public Dimension maximumLayoutSize ( Container parent ) { return preferredLayoutSize(parent); }
public Dimension maximumLayoutSize ( Container parent ) { return preferredLayoutSize(parent); }
16,198
public Dimension minimumLayoutSize(Container parent) { return gridbag.minimumLayoutSize(parent); }
public Dimension minimumLayoutSize(Container parent) { return gridbag.minimumLayoutSize(parent); }
16,199
public Dimension preferredLayoutSize(Container parent) { return gridbag.preferredLayoutSize(parent); }
public Dimension preferredLayoutSize(Container parent) { return gridbag.preferredLayoutSize(parent); }
16,200
public void removeLayoutComponent(Component comp) { gridbag.removeLayoutComponent(comp); if (way == X_AXIS) { gridbag.setColumns( gridbag.getColumns() - 1); } else { gridbag.setRows( gridbag.getRows() - 1); } }
public void removeLayoutComponent(Component comp) { gridbag.removeLayoutComponent(comp); if (way == X_AXIS) { gridbag.setColumns( gridbag.getColumns() - 1); } else { gridbag.setRows( gridbag.getRows() - 1); } }
16,201
public GridLayout (int rows, int cols) { this (rows, cols, 0, 0); }
public GridLayout () { this (rows, cols, 0, 0); }
16,202
public GridLayout (int rows, int cols) { this (rows, cols, 0, 0); }
public GridLayout (int rows, int cols) { this (1, 0, 0, 0); }
16,203
public static State from_int(int code) { try { return enume [ code ]; } catch (ArrayIndexOutOfBoundsException ex) { BAD_OPERATION bad = new BAD_OPERATION("Invalid state " + code); bad.minor = Minor.Enumeration; throw bad; } }
public static State from_int(int code) { try { return enume[code]; } catch (ArrayIndexOutOfBoundsException ex) { BAD_OPERATION bad = new BAD_OPERATION("Invalid state " + code); bad.minor = Minor.Enumeration; throw bad; } }
16,204
public Dimension preferredLayoutSize(Container parent) { if (parent != container) throw new AWTError("invalid parent"); Insets insets = parent.getInsets(); int x = insets.left + insets.right; int y = insets.bottom + insets.top; Component[] children = parent.getComponents(); if (isHorizonta...
public Dimension preferredLayoutSize(Container parent) { if (parent != container) throw new AWTError("invalid parent"); Insets insets = parent.getInsets(); int x = insets.left + insets.right; int y = insets.bottom + insets.top; Component[] children = parent.getComponents(); if (isHorizonta...
16,205
private static void makeModal(JDialog dialog) { try { synchronized (dialog) { while (dialog.isVisible()) dialog.wait(); } } catch (InterruptedException e) { } }
static void makeModal(JDialog dialog) { try { synchronized (dialog) { while (dialog.isVisible()) dialog.wait(); } } catch (InterruptedException e) { } }
16,207
JDialog(Frame owner, String s) { this(owner, s, true); }
JDialog(Frame owner, String s) { this(owner, s, true); }
16,208
public DefaultColorSelectionModel() { // TODO } // DefaultColorSelectionModel()
public DefaultColorSelectionModel() { // TODO } // DefaultColorSelectionModel()
16,209
Container getContentPane() { return getRootPane().getContentPane(); }
Container getContentPane() { return getRootPane().getContentPane(); }
16,210
public abstract Color getSelectedColor();
public abstract Color getSelectedColor();
16,211
public abstract void setSelectedColor(Color color);
public abstract void setSelectedColor(Color color);
16,212
Window() { setVisible(false); setLayout((LayoutManager) new BorderLayout()); }
Window() { setVisible(false); setLayout((LayoutManager) new BorderLayout()); }
16,213
public void addNotify() { if (peer == null) peer = getToolkit().createWindow(this); super.addNotify(); }
public void addNotify() { if (peer == null) peer = getToolkit().createWindow(this); super.addNotify(); }
16,214
public synchronized void addWindowListener(WindowListener listener) { windowListener = AWTEventMulticaster.add(windowListener, listener); }
public synchronized void addWindowListener(WindowListener listener) { windowListener = AWTEventMulticaster.add(windowListener, listener); }
16,215
public void applyResourceBundle(ResourceBundle rb) { // FIXME }
public void applyResourceBundle(ResourceBundle rb) { // FIXME }
16,216
void dispatchEventImpl(AWTEvent e) { // Make use of event id's in order to avoid multiple instanceof tests. if (e.id <= WindowEvent.WINDOW_LAST && e.id >= WindowEvent.WINDOW_FIRST && (windowListener != null || (eventMask & AWTEvent.WINDOW_EVENT_MASK) != 0)) processEvent(e); else super.dispatchEventImpl(e); }
void dispatchEventImpl(AWTEvent e) { // Make use of event id's in order to avoid multiple instanceof tests. if (e.id <= WindowEvent.WINDOW_LAST && e.id >= WindowEvent.WINDOW_FIRST && (windowListener != null || (eventMask & AWTEvent.WINDOW_EVENT_MASK) != 0)) processEvent(e); else super.dispatchEventImpl(e); }
16,217
public void dispose() { hide(); Window[] list = getOwnedWindows(); for (int i = 0; i < list.length; i++) list[i].dispose(); for (int i = 0; i < ncomponents; ++i) component[i].removeNotify(); this.removeNotify(); }
public void dispose() { hide(); Window[] list = getOwnedWindows(); for (int i = 0; i < list.length; i++) list[i].dispose(); for (int i = 0; i < ncomponents; ++i) component[i].removeNotify(); this.removeNotify(); }
16,218
public void dispose() { hide(); Window[] list = getOwnedWindows(); for (int i = 0; i < list.length; i++) list[i].dispose(); for (int i = 0; i < ncomponents; ++i) component[i].removeNotify(); this.removeNotify(); }
public void dispose() { hide(); Window[] list = getOwnedWindows(); for (int i = 0; i < list.length; i++) list[i].dispose(); for (int i = 0; i < ncomponents; ++i) component[i].removeNotify(); this.removeNotify(); }
16,219
public void dispose() { hide(); Window[] list = getOwnedWindows(); for (int i = 0; i < list.length; i++) list[i].dispose(); for (int i = 0; i < ncomponents; ++i) component[i].removeNotify(); this.removeNotify(); }
public void dispose() { hide(); Window[] list = getOwnedWindows(); for (int i = 0; i < list.length; i++) list[i].dispose(); for (int i = 0; i < ncomponents; ++i) component[i].removeNotify(); this.removeNotify(); }
16,220
public Component getFocusOwner() { // FIXME return null; }
public Component getFocusOwner() { // FIXME return null; }
16,221
public GraphicsConfiguration getGraphicsConfiguration() { if (graphicsConfiguration != null) return graphicsConfiguration; if (peer != null) return peer.getGraphicsConfiguration(); return null; }
public GraphicsConfiguration getGraphicsConfiguration() { if (graphicsConfiguration != null) return graphicsConfiguration; if (peer != null) return peer.getGraphicsConfiguration(); return null; }
16,222
GraphicsConfiguration getGraphicsConfigurationImpl() { if (graphicsConfiguration != null) return graphicsConfiguration; return super.getGraphicsConfigurationImpl(); }
GraphicsConfiguration getGraphicsConfigurationImpl() { if (graphicsConfiguration != null) return graphicsConfiguration; return super.getGraphicsConfigurationImpl(); }
16,223
GraphicsConfiguration getGraphicsConfigurationImpl() { if (graphicsConfiguration != null) return graphicsConfiguration; return super.getGraphicsConfigurationImpl(); }
GraphicsConfiguration getGraphicsConfigurationImpl() { if (graphicsConfiguration != null) return graphicsConfiguration; return super.getGraphicsConfigurationImpl(); }
16,224
public EventListener[] getListeners(Class listenerType) { if (listenerType == WindowListener.class) return getWindowListeners(); return super.getListeners(listenerType); }
public EventListener[] getListeners(Class listenerType) { if (listenerType == WindowListener.class) return getWindowListeners(); return super.getListeners(listenerType); }
16,225
public Locale getLocale() { return locale == null ? Locale.getDefault() : locale; }
public Locale getLocale() { return locale == null ? Locale.getDefault() : locale; }
16,226
public Window[] getOwnedWindows() { // FIXME: return array containing all the windows this window currently // owns. return new Window[0]; }
public Window[] getOwnedWindows() { // FIXME: return array containing all the windows this window currently // owns. return new Window[0]; }
16,227
public Window getOwner() { return (Window) parent; }
public Window getOwner() { return (Window) parent; }
16,228
public Toolkit getToolkit() { return Toolkit.getDefaultToolkit(); }
public Toolkit getToolkit() { return Toolkit.getDefaultToolkit(); }
16,229
public final String getWarningString() { boolean secure = true; /* boolean secure = SecurityManager.checkTopLevelWindow(...) */ if (!secure) { if (warningString != null) return warningString; else { String warning = System.getProperty("awt.appletWarning"); return warning; } } return null; }
public final String getWarningString() { boolean secure = true; /* boolean secure = SecurityManager.checkTopLevelWindow(...) */ if (!secure) { if (warningString != null) return warningString; else { String warning = System.getProperty("awt.appletWarning"); return warning; } } return null; }
16,230
public synchronized WindowListener[] getWindowListeners() { return (WindowListener[]) AWTEventMulticaster.getListeners(windowListener, WindowListener.class); }
public synchronized WindowListener[] getWindowListeners() { return (WindowListener[]) AWTEventMulticaster.getListeners(windowListener, WindowListener.class); }
16,231
public void hide() { // FIXME: call hide() on any "owned" children here. super.hide(); }
public void hide() { // FIXME: call hide() on any "owned" children here. super.hide(); }
16,232
public boolean isDisplayable() { if (super.isDisplayable()) return true; return peer != null; }
public boolean isDisplayable() { if (super.isDisplayable()) return true; return peer != null; }
16,233
public boolean isShowing() { return super.isShowing(); }
public boolean isShowing() { return super.isShowing(); }
16,234
public void pack() { if (parent != null && !parent.isDisplayable()) parent.addNotify(); if (peer == null) addNotify(); setSize(getPreferredSize()); validate(); }
public void pack() { if (parent != null && !parent.isDisplayable()) parent.addNotify(); if (peer == null) addNotify(); setSize(getPreferredSize()); validate(); }
16,235
public void pack() { if (parent != null && !parent.isDisplayable()) parent.addNotify(); if (peer == null) addNotify(); setSize(getPreferredSize()); validate(); }
public void pack() { if (parent != null && !parent.isDisplayable()) parent.addNotify(); if (peer == null) addNotify(); setSize(getPreferredSize()); validate(); }
16,236
public void pack() { if (parent != null && !parent.isDisplayable()) parent.addNotify(); if (peer == null) addNotify(); setSize(getPreferredSize()); validate(); }
public void pack() { if (parent != null && !parent.isDisplayable()) parent.addNotify(); if (peer == null) addNotify(); setSize(getPreferredSize()); validate(); }
16,237
public boolean postEvent(Event e) { // FIXME return false; }
public boolean postEvent(Event e) { // FIXME return false; }
16,238
protected void processEvent(AWTEvent evt) { if (evt instanceof WindowEvent) processWindowEvent((WindowEvent) evt); else super.processEvent(evt); }
protected void processEvent(AWTEvent evt) { if (evt instanceof WindowEvent) processWindowEvent((WindowEvent) evt); else super.processEvent(evt); }
16,239
protected void processWindowEvent(WindowEvent evt) { if (windowListener != null) { switch (evt.getID()) { case WindowEvent.WINDOW_ACTIVATED : windowListener.windowActivated(evt); break; case WindowEvent.WINDOW_CLOSED : windowListener.windowClosed(evt); break; case WindowEvent.WINDOW_CLOSING...
protected void processWindowEvent(WindowEvent evt) { if (windowListener != null) { switch (evt.getID()) { case WindowEvent.WINDOW_ACTIVATED : windowListener.windowActivated(evt); break; case WindowEvent.WINDOW_CLOSED : windowListener.windowClosed(evt); break; case WindowEvent.WINDOW_CLOSING...
16,240
public synchronized void removeWindowListener(WindowListener listener) { windowListener = AWTEventMulticaster.remove(windowListener, listener); }
public synchronized void removeWindowListener(WindowListener listener) { windowListener = AWTEventMulticaster.remove(windowListener, listener); }
16,241
public void setCursor(Cursor cursor) { super.setCursor(cursor); }
public void setCursor(Cursor cursor) { super.setCursor(cursor); }
16,242
public void show() { if (parent != null && !parent.isDisplayable()) parent.addNotify(); if (peer == null) addNotify(); validate(); super.show(); toFront(); }
public void show() { if (parent != null && !parent.isDisplayable()) parent.addNotify(); if (peer == null) addNotify(); validate(); super.show(); toFront(); }
16,243
public void show() { if (parent != null && !parent.isDisplayable()) parent.addNotify(); if (peer == null) addNotify(); validate(); super.show(); toFront(); }
public void show() { if (parent != null && !parent.isDisplayable()) parent.addNotify(); if (peer == null) addNotify(); validate(); super.show(); toFront(); }
16,244
public void toBack() { if (peer != null) { WindowPeer wp = (WindowPeer) peer; wp.toBack(); } }
public void toBack() { if (peer != null) { WindowPeer wp = (WindowPeer) peer; wp.toBack(); } }
16,245
public void toFront() { if (peer != null) { WindowPeer wp = (WindowPeer) peer; wp.toFront(); } }
public void toFront() { if (peer != null) { WindowPeer wp = (WindowPeer) peer; wp.toFront(); } }
16,246
void dispatchEventImpl(AWTEvent e) { // Give lightweight dispatcher a chance to handle it. if (dispatcher != null && dispatcher.handleEvent (e)) return; if ((e.id <= ContainerEvent.CONTAINER_LAST && e.id >= ContainerEvent.CONTAINER_FIRST) && (containerListener != null || (...
void dispatchEventImpl(AWTEvent e) { // Give lightweight dispatcher a chance to handle it. if (dispatcher != null && dispatcher.handleEvent (e)) return; if ((e.id <= ContainerEvent.CONTAINER_LAST && e.id >= ContainerEvent.CONTAINER_FIRST) && (containerListener != null || (...
16,247
public WindowEvent(Window source, int id) { this(source, id, null, 0, 0); }
public WindowEvent(Window source, int id, Window opposite, int oldState, int newState) { this(source, id, null, 0, 0); }
16,249
public WindowEvent(Window source, int id) { this(source, id, null, 0, 0); }
public WindowEvent(Window source, int id) { super(source, id); this.opposite = opposite; this.oldState = oldState; this.newState = newState; }
16,250
public void ensureFileIsVisible(JFileChooser chooser, File file) { Iterator iterator = uis.iterator(); while (iterator.hasNext()) { FileChooserUI ui = (FileChooserUI) iterator.next(); ui.ensureFileIsVisible(chooser, file); } }
public void ensureFileIsVisible(JFileChooser chooser, File file) { Iterator iterator = uis.iterator(); while (iterator.hasNext()) { FileChooserUI ui = (FileChooserUI) iterator.next(); ui.ensureFileIsVisible(chooser, file); } }
16,252
public FileFilter getAcceptAllFileFilter(JFileChooser chooser) { FileFilter result = null; Iterator iterator = uis.iterator(); // first UI delegate provides the return value if (iterator.hasNext()) { FileChooserUI ui = (FileChooserUI) iterator.next(); result = ui.getAcceptAllFileFilter...
public FileFilter getAcceptAllFileFilter(JFileChooser chooser) { FileFilter result = null; Iterator iterator = uis.iterator(); // first UI delegate provides the return value if (iterator.hasNext()) { FileChooserUI ui = (FileChooserUI) iterator.next(); result = ui.getAcceptAllFileFilter...
16,253
public String getApproveButtonText(JFileChooser chooser) { String result = null; Iterator iterator = uis.iterator(); // first UI delegate provides the return value if (iterator.hasNext()) { FileChooserUI ui = (FileChooserUI) iterator.next(); result = ui.getApproveButtonText(chooser); ...
public String getApproveButtonText(JFileChooser chooser) { String result = null; Iterator iterator = uis.iterator(); // first UI delegate provides the return value if (iterator.hasNext()) { FileChooserUI ui = (FileChooserUI) iterator.next(); result = ui.getApproveButtonText(chooser); ...
16,254
public String getDialogTitle(JFileChooser chooser) { String result = null; Iterator iterator = uis.iterator(); // first UI delegate provides the return value if (iterator.hasNext()) { FileChooserUI ui = (FileChooserUI) iterator.next(); result = ui.getDialogTitle(chooser); } // ...
public String getDialogTitle(JFileChooser chooser) { String result = null; Iterator iterator = uis.iterator(); // first UI delegate provides the return value if (iterator.hasNext()) { FileChooserUI ui = (FileChooserUI) iterator.next(); result = ui.getDialogTitle(chooser); } // ...
16,255
public FileView getFileView(JFileChooser chooser) { FileView result = null; Iterator iterator = uis.iterator(); // first UI delegate provides the return value if (iterator.hasNext()) { FileChooserUI ui = (FileChooserUI) iterator.next(); result = ui.getFileView(chooser); } // re...
public FileView getFileView(JFileChooser chooser) { FileView result = null; Iterator iterator = uis.iterator(); // first UI delegate provides the return value if (iterator.hasNext()) { FileChooserUI ui = (FileChooserUI) iterator.next(); result = ui.getFileView(chooser); } // re...
16,256
public void rescanCurrentDirectory(JFileChooser chooser) { Iterator iterator = uis.iterator(); while (iterator.hasNext()) { FileChooserUI ui = (FileChooserUI) iterator.next(); ui.rescanCurrentDirectory(chooser); } }
public void rescanCurrentDirectory(JFileChooser chooser) { Iterator iterator = uis.iterator(); while (iterator.hasNext()) { FileChooserUI ui = (FileChooserUI) iterator.next(); ui.rescanCurrentDirectory(chooser); } }
16,257