bugged
stringlengths
6
599k
fixed
stringlengths
6
40.8M
__index_level_0__
int64
0
3.24M
public final Collection generateCertificates(InputStream inStream) throws CertificateException { return certFacSpi.engineGenerateCertificates( inStream ); }
public final Collection generateCertificates(InputStream inStream) throws CertificateException { return certFacSpi.engineGenerateCertificates(inStream); }
18,627
private void hideTip() { if (currentTip == null || ! currentTip.isVisible() || ! enabled) return; currentTip.setVisible(false); if (containerPanel != null) { Container parent = containerPanel.getParent(); if (parent == null) return; parent.remove(containerPanel); parent.invalidate(); parent.vali...
void hideTip() { if (currentTip == null || ! currentTip.isVisible() || ! enabled) return; currentTip.setVisible(false); if (containerPanel != null) { Container parent = containerPanel.getParent(); if (parent == null) return; parent.remove(containerPanel); parent.invalidate(); parent.validate(); ...
18,629
private void showTip() { if (! enabled || currentComponent == null) return; if (currentTip == null || currentTip.getComponent() != currentComponent && currentComponent instanceof JComponent) currentTip = ((JComponent) currentComponent).createToolTip(); Point p = currentPoint; Dime...
void showTip() { if (! enabled || currentComponent == null) return; if (currentTip == null || currentTip.getComponent() != currentComponent && currentComponent instanceof JComponent) currentTip = ((JComponent) currentComponent).createToolTip(); Point p = currentPoint; Dimension di...
18,630
public void setVgap (int vgap) { if (vgap < 0) throw new IllegalArgumentException ("vertical gap must be nonnegative"); this.vgap = vgap; }
public void setVgap (int vgap) { if (vgap < 0) throw new IllegalArgumentException ("vertical gap must be nonnegative"); this.vgap = vgap; }
18,631
public void setHgap (int hgap) { if (hgap < 0) throw new IllegalArgumentException ("horizontal gap must be nonnegative"); this.hgap = hgap; }
public void setHgap (int hgap) { if (hgap < 0) throw new IllegalArgumentException ("horizontal gap must be nonnegative"); this.hgap = hgap; }
18,632
public String getCurrencyCode () { try { return res.getString ("intlCurrencySymbol"); } catch (Exception _) { return null; } }
public String getCurrencyCode () { try { return res.getString ("intlCurrencySymbol"); } catch (Exception _) { return null; } }
18,633
public String toString() { try { return res.getString ("intlCurrencySymbol"); } catch (Exception _) { return "(unknown currency)"; } }
public String toString() { try { return res.getString ("intlCurrencySymbol"); } catch (Exception _) { return "(unknown currency)"; } }
18,634
public String toString() { try { return res.getString ("intlCurrencySymbol"); } catch (Exception _) { return "(unknown currency)"; } }
public String toString() { try { return res.getString ("intlCurrencySymbol"); } catch (Exception _) { return "(unknown currency)"; } }
18,635
public String toString() { StringBuilder b = new StringBuilder(32); b.append('['); b.append(getBootIndicator() ? 'A' : ' '); b.append(' '); b.append(NumberUtils.hex(getSystemIndicator(), 2)); b.append(' '); b.append("s:"+getStartLba()); b.append(' '); long tmp = getStartLba() + getNrSectors(); b.ap...
public String toString() { StringBuilder b = new StringBuilder(32); b.append('['); b.append(getBootIndicator() ? 'A' : ' '); b.append(' '); b.append(NumberUtils.hex(getSystemIndicator(), 2)); b.append(' '); b.append("s:"+getStartLba()); b.append(' '); long tmp = getStartLba() + getNrSectors(); b.ap...
18,636
public final void clear() { isTimeSet = false; areFieldsSet = false; int zoneOffs = zone.getRawOffset(); int hour = zoneOffs / (60 * 60 * 1000); int minute = (zoneOffs - 60 * 60 * 1000 * hour) / (60 * 1000); int seconds = (zoneOffs - 60 * 60 * 1000 * hour - 60 * 1000 * minute) / 1000; int millis = z...
public final void clear() { isTimeSet = false; areFieldsSet = false; int zoneOffs = zone.getRawOffset(); int hour = zoneOffs / (60 * 60 * 1000); int minute = (zoneOffs - 60 * 60 * 1000 * hour) / (60 * 1000); int seconds = (zoneOffs - 60 * 60 * 1000 * hour - 60 * 1000 * minute) / 1000; int millis = z...
18,637
public final void clear() { isTimeSet = false; areFieldsSet = false; int zoneOffs = zone.getRawOffset(); int hour = zoneOffs / (60 * 60 * 1000); int minute = (zoneOffs - 60 * 60 * 1000 * hour) / (60 * 1000); int seconds = (zoneOffs - 60 * 60 * 1000 * hour - 60 * 1000 * minute) / 1000; int millis = z...
public final void clear() { isTimeSet = false; areFieldsSet = false; int zoneOffs = zone.getRawOffset(); int hour = zoneOffs / (60 * 60 * 1000); int minute = (zoneOffs - 60 * 60 * 1000 * hour) / (60 * 1000); int seconds = (zoneOffs - 60 * 60 * 1000 * hour - 60 * 1000 * minute) / 1000; int millis = z...
18,638
private void checkDiscarding() throws TRANSIENT { if (m_manager.get_state() == State.DISCARDING) throw new TRANSIENT("Discarding mode", 1, CompletionStatus.COMPLETED_MAYBE); }
void checkDiscarding() throws TRANSIENT { if (m_manager.get_state() == State.DISCARDING) throw new TRANSIENT("Discarding mode", 1, CompletionStatus.COMPLETED_MAYBE); }
18,639
public void connect(org.omg.CORBA.Object object, byte[] key) { int a_port = getFreePort(); Connected_objects.cObject ref = connected_objects.add(key, object, a_port, null); IOR ior = createIOR(ref); prepareObject(object, ior); if (running) startService(ior); }
public void connect(org.omg.CORBA.Object object) { int a_port = getFreePort(); Connected_objects.cObject ref = connected_objects.add(key, object, a_port, null); IOR ior = createIOR(ref); prepareObject(object, ior); if (running) startService(ior); }
18,640
public void connect(org.omg.CORBA.Object object, byte[] key) { int a_port = getFreePort(); Connected_objects.cObject ref = connected_objects.add(key, object, a_port, null); IOR ior = createIOR(ref); prepareObject(object, ior); if (running) startService(ior); }
public void connect(org.omg.CORBA.Object object, byte[] key) { int a_port = getFreePort(); Connected_objects.cObject ref = connected_objects.add(key, object, a_port, null); IOR ior = createIOR(ref); prepareObject(object, ior); if (running) startService(ior); }
18,641
public AdapterAlreadyExists(String why) { super(why); }
public AdapterAlreadyExists() { super(why); }
18,642
public AdapterAlreadyExists(String why) { super(why); }
public AdapterAlreadyExists(String why) { }
18,643
public Obj add(ServantDelegateImpl delegate) { Obj rec = new Obj(delegate.object, delegate.servant_id, delegate.servant, delegate.poa ); objects.put(delegate.servant_id, rec); return rec; }
public Obj add(gnuServantObject object, Servant servant, gnuPOA poa) { Obj rec = new Obj(delegate.object, delegate.servant_id, delegate.servant, delegate.poa ); objects.put(delegate.servant_id, rec); return rec; }
18,644
public Obj add(ServantDelegateImpl delegate) { Obj rec = new Obj(delegate.object, delegate.servant_id, delegate.servant, delegate.poa ); objects.put(delegate.servant_id, rec); return rec; }
public Obj add(ServantDelegateImpl delegate) { Obj rec = new Obj(delegate.object, delegate.servant_id, delegate.servant, delegate.poa ); objects.put(delegate.servant_id, rec); return rec; }
18,645
public Obj findObject(org.omg.CORBA.Object stored_object) { if (stored_object == null) return null; Map.Entry item; Iterator iter = objects.entrySet().iterator(); Obj ref; while (iter.hasNext()) { item = (Map.Entry) iter.next(); ref = (Obj) item.getValue(); if (stored_ob...
public Obj findObject(org.omg.CORBA.Object stored_object) { if (stored_object == null) return null; Map.Entry item; Iterator iter; Obj ref; while (iter.hasNext()) { item = (Map.Entry) iter.next(); ref = (Obj) item.getValue(); if (stored_object.equals(ref.object)) ...
18,646
public OBJ_ADAPTER(String reason, int minor, CompletionStatus completed) { super(reason, minor, completed); }
public OBJ_ADAPTER(String message) { super(reason, minor, completed); }
18,648
public OBJ_ADAPTER(String reason, int minor, CompletionStatus completed) { super(reason, minor, completed); }
public OBJ_ADAPTER(String reason, int minor, CompletionStatus completed) { super(message, 0, CompletionStatus.COMPLETED_NO); }
18,649
public void paint(Graphics g, JComponent c) { AbstractButton b = (AbstractButton) c; Rectangle tr = new Rectangle(); Rectangle ir = new Rectangle(); Rectangle vr = new Rectangle(); Font f = c.getFont(); g.setFont(f); Icon currentIcon = null; if (b.isSelected()) currentIcon = b.getSelecte...
public void paint(Graphics g, JComponent c) { AbstractButton b = (AbstractButton) c; Rectangle tr = new Rectangle(); Rectangle ir = new Rectangle(); Rectangle vr = new Rectangle(); Font f = c.getFont(); g.setFont(f); Icon currentIcon = null; if (b.isSelected() && b.isEnabled()) currentIc...
18,651
public void paint(Graphics g, JComponent c) { AbstractButton b = (AbstractButton) c; Rectangle tr = new Rectangle(); Rectangle ir = new Rectangle(); Rectangle vr = new Rectangle(); Font f = c.getFont(); g.setFont(f); Icon currentIcon = null; if (b.isSelected()) currentIcon = b.getSelecte...
public void paint(Graphics g, JComponent c) { AbstractButton b = (AbstractButton) c; Rectangle tr = new Rectangle(); Rectangle ir = new Rectangle(); Rectangle vr = new Rectangle(); Font f = c.getFont(); g.setFont(f); Icon currentIcon = null; if (b.isSelected()) currentIcon = b.getSelecte...
18,652
public void paint(Graphics g, JComponent c) { AbstractButton b = (AbstractButton) c; Rectangle tr = new Rectangle(); Rectangle ir = new Rectangle(); Rectangle vr = new Rectangle(); Font f = c.getFont(); g.setFont(f); Icon currentIcon = null; if (b.isSelected()) currentIcon = b.getSelecte...
public void paint(Graphics g, JComponent c) { AbstractButton b = (AbstractButton) c; Rectangle tr = new Rectangle(); Rectangle ir = new Rectangle(); Rectangle vr = new Rectangle(); Font f = c.getFont(); g.setFont(f); Icon currentIcon = null; if (b.isSelected()) currentIcon = b.getSelecte...
18,653
public void setSelectedIcon(Icon selectedIcon) { // Sets the selected icon for the button. }
public void setSelectedIcon(Icon selectedIcon) { // Sets the selected icon for the button. }
18,654
public void setDisabledIcon(Icon disabledIcon) { disabled_button = disabledIcon; revalidate(); repaint(); }
public void setDisabledIcon(Icon disabledIcon) { disabled_button = disabledIcon; revalidate(); repaint(); }
18,655
public void setDisabledSelectedIcon(Icon disabledSelectedIcon) { // Sets the disabled selection icon for the button. }
public void setDisabledSelectedIcon(Icon disabledSelectedIcon) { // Sets the disabled selection icon for the button. }
18,656
public final void resolveCpRefs(VmClassLoader clc) { if (!resolvedCpRefs) { prepare(); if (superClass != null) { superClass.resolveCpRefs(clc); } /** * Step 2b: Load the classes of my fields */ final int fcnt = getNoDeclaredFields(); for (int i = 0; i < fcnt; i++) { final VmField fs = fieldTab...
public final void resolveCpRefs(VmClassLoader clc) { if (!resolvedCpRefs) { prepare(); if (superClass != null) { superClass.resolveCpRefs(clc); } /** * Step 2b: Load the classes of my fields */ final int fcnt = getNoDeclaredFields(); for (int i = 0; i < fcnt; i++) { final VmField fs = fieldTab...
18,657
public final void resolveCpRefs(VmClassLoader clc) { if (!resolvedCpRefs) { prepare(); if (superClass != null) { superClass.resolveCpRefs(clc); } /** * Step 2b: Load the classes of my fields */ final int fcnt = getNoDeclaredFields(); for (int i = 0; i < fcnt; i++) { final VmField fs = fieldTab...
public final void resolveCpRefs(VmClassLoader clc) { if (!resolvedCpRefs) { prepare(); if (superClass != null) { superClass.resolveCpRefs(clc); } /** * Step 2b: Load the classes of my fields */ final int fcnt = getNoDeclaredFields(); for (int i = 0; i < fcnt; i++) { final VmField fs = fieldTab...
18,658
public final void resolveCpRefs(VmClassLoader clc) { if (!resolvedCpRefs) { prepare(); if (superClass != null) { superClass.resolveCpRefs(clc); } /** * Step 2b: Load the classes of my fields */ final int fcnt = getNoDeclaredFields(); for (int i = 0; i < fcnt; i++) { final VmField fs = fieldTab...
public final void resolveCpRefs(VmClassLoader clc) { if (!resolvedCpRefs) { prepare(); if (superClass != null) { superClass.resolveCpRefs(clc); } /** * Step 2b: Load the classes of my fields */ final int fcnt = getNoDeclaredFields(); for (int i = 0; i < fcnt; i++) { final VmField fs = fieldTab...
18,659
public final void resolveCpRefs(VmClassLoader clc) { if (!resolvedCpRefs) { prepare(); if (superClass != null) { superClass.resolveCpRefs(clc); } /** * Step 2b: Load the classes of my fields */ final int fcnt = getNoDeclaredFields(); for (int i = 0; i < fcnt; i++) { final VmField fs = fieldTab...
public final void resolveCpRefs(VmClassLoader clc) { if (!resolvedCpRefs) { prepare(); if (superClass != null) { superClass.resolveCpRefs(clc); } /** * Step 2b: Load the classes of my fields */ final int fcnt = getNoDeclaredFields(); for (int i = 0; i < fcnt; i++) { final VmField fs = fieldTab...
18,660
public final void resolveCpRefs(VmClassLoader clc) { if (!resolvedCpRefs) { prepare(); if (superClass != null) { superClass.resolveCpRefs(clc); } /** * Step 2b: Load the classes of my fields */ final int fcnt = getNoDeclaredFields(); for (int i = 0; i < fcnt; i++) { final VmField fs = fieldTab...
public final void resolveCpRefs(VmClassLoader clc) { if (!resolvedCpRefs) { prepare(); if (superClass != null) { superClass.resolveCpRefs(clc); } /** * Step 2b: Load the classes of my fields */ final int fcnt = getNoDeclaredFields(); for (int i = 0; i < fcnt; i++) { final VmField fs = fieldTab...
18,661
public ExceptionInInitializerError(Throwable t) { super(null); initCause(t); exception = t; }
public ExceptionInInitializerError() { super(null); initCause(t); exception = t; }
18,662
public ExceptionInInitializerError(Throwable t) { super(null); initCause(t); exception = t; }
public ExceptionInInitializerError(Throwable t) { super(null); initCause(t); exception = t; }
18,663
protected void resolve(VmClassLoader clc) throws ClassNotFoundException { final Object data = this.data; if (data instanceof String) { final String className = (String)data; final VmType<?> type = clc.loadClass(className, true); if (type instanceof VmInterfaceClass) { this.data = (VmInterfac...
protected void resolve(VmClassLoader clc) throws ClassNotFoundException { final Object data = this.data; if (data instanceof String) { final String className = (String)data; final VmType<?> type = clc.loadClass(className, true); if (type instanceof VmInterfaceClass) { this.data = (VmInterfac...
18,664
protected synchronized void resolve(VmClassLoader cl) { try { type = new Signature(getSignature(), declaringClass.getLoader()).getType(); } catch (ClassNotFoundException ex) { throw (Error)new NoClassDefFoundError().initCause(ex); } }
protected synchronized void resolve(VmClassLoader cl) { try { type = new Signature(getSignature(), declaringClass.getLoader()).getType(); } catch (ClassNotFoundException ex) { throw (Error)new NoClassDefFoundError().initCause(ex); } }
18,665
protected void resolve(VmClassLoader cl) { resolveTypes(); }
protected final void resolve() { resolveTypes(); }
18,666
public Object get(int index) { if (index < 0 || index >= size()) { throw new IndexOutOfBoundsException("index=" + index + ", size=" + size()); } return sequence[index]; }
public Object get(int index) { if (index < 0 || index >= size()) { throw new IndexOutOfBoundsException("index=" + index + ", size=" + size()); } return sequence[index]; }
18,667
CallTemplateNode(TemplateNode children, TemplateNode next, QName name, List withParams) { super(children, next); this.name = name; this.withParams = withParams; }
CallTemplateNode(TemplateNode children, TemplateNode next, QName name, List withParams) { super(children, next); this.name = name; this.withParams = withParams; }
18,668
CallTemplateNode(TemplateNode children, TemplateNode next, QName name, List withParams) { super(children, next); this.name = name; this.withParams = withParams; }
CallTemplateNode(TemplateNode children, TemplateNode next, QName name, List withParams) { this.name = name; this.withParams = withParams; }
18,669
TemplateNode clone(Stylesheet stylesheet) { int len = withParams.size(); List withParams2 = new ArrayList(len); for (int i = 0; i < len; i++) { withParams2.add(((WithParam) withParams.get(i)).clone(stylesheet)); } return new CallTemplateNode((children == null) ? null : ...
TemplateNode clone(Stylesheet stylesheet) { int len = withParams.size(); List withParams2 = new ArrayList(len); for (int i = 0; i < len; i++) { withParams2.add(((WithParam) withParams.get(i)).clone(stylesheet)); } return new CallTemplateNode((children == null) ? null : ...
18,670
public void updateUI() { setUI((SeparatorUI) UIManager.getUI(this)); invalidate(); }
public void updateUI() { setUI((SeparatorUI) UIManager.getUI(this)); }
18,671
public boolean add (Object targetChild) { throw new Error ("Not implemented"); }
public boolean add (Object targetChild) { if (targetChild == null) throw new IllegalArgumentException(); if (children.containsKey(targetChild)) return false; children.put(targetChild, targetChild); return true; }
18,672
public boolean addAll (Collection c) { throw new Error ("Not implemented"); }
public boolean addAll (Collection c) { throw new UnsupportedOperationException(); }
18,673
public void addBeanContextMembershipListener (BeanContextMembershipListener bcml) { throw new Error ("Not implemented"); }
public void addBeanContextMembershipListener (BeanContextMembershipListener listener) { throw new Error ("Not implemented"); }
18,674
public void addBeanContextMembershipListener (BeanContextMembershipListener bcml) { throw new Error ("Not implemented"); }
public void addBeanContextMembershipListener (BeanContextMembershipListener bcml) { if (! bcmListeners.contains(listener)) bcmListeners.add(listener); }
18,675
public void clear () { throw new Error ("Not implemented"); }
public void clear () { throw new UnsupportedOperationException(); }
18,676
public Locale getLocale () { throw new Error ("Not implemented"); }
public Locale getLocale () { return locale; }
18,677
protected void initialize () { throw new Error ("Not implemented"); }
protected void initialize () { bcmListeners = new ArrayList(); children = new HashMap(); }
18,678
public Iterator iterator () { throw new Error ("Not implemented"); }
public Iterator iterator () { return children.keySet().iterator(); }
18,679
public boolean remove (Object targetChild) { throw new Error ("Not implemented"); }
public boolean remove (Object targetChild) { return remove(targetChild, true); }
18,680
public boolean removeAll (Collection c) { throw new Error ("Not implemented"); }
public boolean removeAll (Collection c) { throw new UnsupportedOperationException(); }
18,681
public boolean retainAll (Collection c) { throw new Error ("Not implemented"); }
public boolean retainAll (Collection c) { throw new UnsupportedOperationException(); }
18,682
public Object[] toArray () { throw new Error ("Not implemented"); }
public Object[] toArray () { return children.keySet().toArray(); }
18,683
public int getLeafCount() { // Variables Enumeration enum; int count; TreeNode current; // Get Enumeration of all descendants enum = depthFirstEnumeration(); // Process Nodes count = 0; while (enum.hasMoreElements() == true) { current = (TreeNode) enum.nextElement(); if (current.isLeaf() == true) { c...
public int getLeafCount() { // Variables Enumeration enum; int count; TreeNode current; // Get Enumeration of all descendants enum = depthFirstEnumeration(); // Process Nodes count = 0; while (enum.hasMoreElements() == true) { current = (TreeNode) enum.nextElement(); if (current.isLeaf() == true) { c...
18,684
public int getLeafCount() { // Variables Enumeration enum; int count; TreeNode current; // Get Enumeration of all descendants enum = depthFirstEnumeration(); // Process Nodes count = 0; while (enum.hasMoreElements() == true) { current = (TreeNode) enum.nextElement(); if (current.isLeaf() == true) { c...
public int getLeafCount() { // Variables Enumeration enum; int count; TreeNode current; // Get Enumeration of all descendants enum = depthFirstEnumeration(); // Process Nodes count = 0; while (enum.hasMoreElements() == true) { current = (TreeNode) enum.nextElement(); if (current.isLeaf() == true) { c...
18,685
public int getLeafCount() { // Variables Enumeration enum; int count; TreeNode current; // Get Enumeration of all descendants enum = depthFirstEnumeration(); // Process Nodes count = 0; while (enum.hasMoreElements() == true) { current = (TreeNode) enum.nextElement(); if (current.isLeaf() == true) { c...
public int getLeafCount() { // Variables Enumeration enum; int count; TreeNode current; // Get Enumeration of all descendants enum = depthFirstEnumeration(); // Process Nodes count = 0; while (enum.hasMoreElements() == true) { current = (TreeNode) enum.nextElement(); if (current.isLeaf() == true) { c...
18,686
protected void installDefaults() { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); list.setForeground(defaults.getColor("List.foreground")); list.setBackground(defaults.getColor("List.background")); list.setSelectionForeground(defaults.getColor("List.selectionForeground")); list.setSelection...
protected void installDefaults() { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); list.setForeground(defaults.getColor("List.foreground")); list.setBackground(defaults.getColor("List.background")); list.setSelectionForeground(defaults.getColor("List.selectionForeground")); list.setSelection...
18,688
public int getLastVisibleIndex() { ComponentOrientation or = getComponentOrientation(); Rectangle r = getVisibleRect(); r.translate(0, (int) r.getHeight()); if (or == ComponentOrientation.LEFT_TO_RIGHT) r.translate((int) r.getWidth(), 0); return getUI().locationToIndex(this, r.getLocation()); ...
public int getLastVisibleIndex() { ComponentOrientation or = getComponentOrientation(); Rectangle r = getVisibleRect(); r.translate(0, (int) r.getHeight() - 1); if (or == ComponentOrientation.LEFT_TO_RIGHT) r.translate((int) r.getWidth(), 0); return getUI().locationToIndex(this, r.getLocation());...
18,689
public int getLastVisibleIndex() { ComponentOrientation or = getComponentOrientation(); Rectangle r = getVisibleRect(); r.translate(0, (int) r.getHeight()); if (or == ComponentOrientation.LEFT_TO_RIGHT) r.translate((int) r.getWidth(), 0); return getUI().locationToIndex(this, r.getLocation()); ...
public int getLastVisibleIndex() { ComponentOrientation or = getComponentOrientation(); Rectangle r = getVisibleRect(); r.translate(0, (int) r.getHeight()); if (or == ComponentOrientation.LEFT_TO_RIGHT) r.translate((int) r.getWidth() - 1, 0); return getUI().locationToIndex(this, r.getLocation());...
18,690
public void addNotify() { super.addNotify(); /* FontMetrics fm = getGraphics().getFontMetrics(); w = fm.getMaxAdvance(); h = fm.getHeight() + 1; */ w = 7; h = 15; screen.setSize(screen.getMaximumSize()); }
public void addNotify() { super.addNotify(); /* FontMetrics fm = getGraphics().getFontMetrics(); w = fm.getMaxAdvance(); h = fm.getHeight() + 1; */ w = 7; h = 15; screen.setSize(screen.getMaximumSize()); }
18,691
public void close(){ frame.dispose(); }
public void close() { frame.dispose(); }
18,692
public VmProcess(String mainClassName, String[] args, InputStream in, PrintStream out, PrintStream err) { synchronized (getClass()) { this.id = lastId++; } this.running = true; this.threadGroup = new ThreadGroup("Process-" + id, this); this.mainClassName = mainClassName; if (args == null) { this.args = new S...
public VmProcess(String mainClassName, String[] args, InputStream in, PrintStream out, PrintStream err) { synchronized (getClass()) { this.id = lastId++; } this.running = true; this.threadGroup = new ThreadGroup("Process-" + id, this); this.mainClassName = mainClassName; if (args == null) { this.args = new S...
18,693
JMenuBar() { }
JMenuBar() { }
18,694
FileDescriptor(ByteChannel channel) { this.channel = channel; }
public FileDescriptor() { this.channel = channel; }
18,695
FileDescriptor(ByteChannel channel) { this.channel = channel; }
FileDescriptor(ByteChannel channel) { channel = null; }
18,696
public void paintBorder(Component c, Graphics g, int x, int y, int w, int h) { JTextComponent tc = (JTextComponent) c; if (tc.isEnabled() && tc.isEditable()) super.paintBorder(c, g, x, y, w, h); else { Color savedColor = g.getColor(); g.setColor(MetalLookAnd...
public void paintBorder(Component c, Graphics g, int x, int y, int w, int h) { JTextComponent tc = (JTextComponent) c; enabledTextBorder = tc.isEnabled() && tc.isEditable(); } else enabledTextBorder = false; if (enabledTextBorder) super.paintBorder(c, g, x, y, w, h); else { ...
18,697
final static void compare(AbstractX86Stream os, EmitterContext ec, VirtualStack vstack, boolean gt, int type, Label curInstrLabel) { final Item v2 = vstack.pop(type); final Item v1 = vstack.pop(type); // Prepare operands final FPUStack fpuStack = vstack.fpuStack; final Register reg; reg = prepareForOperation(o...
final static void compare(AbstractX86Stream os, EmitterContext ec, VirtualStack vstack, boolean gt, int type, Label curInstrLabel) { final Item v2 = vstack.pop(type); final Item v1 = vstack.pop(type); // Prepare operands final FPUStack fpuStack = vstack.fpuStack; final Register reg; reg = prepareForOperation(o...
18,698
public void run() { TimerTask task; while ((task = queue.serve()) != null) { // If this task has not been canceled if (task.scheduled >= 0) { // Mark execution time task.lastExecutionTime = task.scheduled; // Repeatable task? if (task.period < 0) { // Last time this ...
public void run() { TimerTask task; while ((task = queue.serve()) != null) { // If this task has not been canceled if (task.scheduled >= 0) { // Mark execution time task.lastExecutionTime = task.scheduled; // Repeatable task? if (task.period < 0) { // Last time this ...
18,699
public void write(final byte[] b, final int off, final int len) throws IOException, NullPointerException, IndexOutOfBoundsException { try { AccessController.doPrivileged(new PrivilegedExceptionAction() { public Object run() throws IOException { final DatagramPacket p = new DatagramPacket(b, off, ...
public void write(final byte[] b, final int off, final int len) throws IOException, NullPointerException, IndexOutOfBoundsException { try { AccessController.doPrivileged(new PrivilegedExceptionAction() { public Object run() throws IOException { final DatagramPacket p = new DatagramPacket(b, off, ...
18,700
public int showDialog(Component parent, String approveButtonText) throws HeadlessException { JDialog d = createDialog(parent); setApproveButtonText(approveButtonText); setDialogType(CUSTOM_DIALOG); retval = ERROR_OPTION; d.pack(); d.show(); return retval; }
public int showDialog(Component parent, String approveButtonText) throws HeadlessException { JDialog d = createDialog(parent); setApproveButtonText(approveButtonText); setDialogType(CUSTOM_DIALOG); retval = ERROR_OPTION; Insets i = d.getInsets(); d.setSize(500 + i.top + i.bottom, d.get...
18,701
public int showOpenDialog(Component parent) throws HeadlessException { JDialog d = createDialog(parent); // FIXME: Remove when we get ancestor property d.setTitle("Open"); setDialogType(OPEN_DIALOG); retval = ERROR_OPTION; d.pack(); d.show(); return retval; }
public int showOpenDialog(Component parent) throws HeadlessException { JDialog d = createDialog(parent); // FIXME: Remove when we get ancestor property d.setTitle("Open"); setDialogType(OPEN_DIALOG); retval = ERROR_OPTION; Insets i = d.getInsets(); d.setSize(500 + i.top + i.bottom, d.getPreferredSi...
18,702
public int showSaveDialog(Component parent) throws HeadlessException { JDialog d = createDialog(parent); setDialogType(SAVE_DIALOG); retval = ERROR_OPTION; d.pack(); d.show(); return retval; }
public int showSaveDialog(Component parent) throws HeadlessException { JDialog d = createDialog(parent); setDialogType(SAVE_DIALOG); retval = ERROR_OPTION; Insets i = d.getInsets(); d.setSize(500 + i.top + i.bottom, d.getPreferredSize().height); d.show(); return retval; }
18,703
public void paintComponent(Graphics g) { Color savedColor = g.getColor(); if (isPalette) paintPalette(g); else { paintTitleBackground(g); paintChildren(g); Dimension d = getSize(); if (frame.isSelected()) g.setColor(MetalLookAndFeel.getPrimaryControlDarkShadow(...
public void paintComponent(Graphics g) { Color savedColor = g.getColor(); if (isPalette) paintPalette(g); else { paintTitleBackground(g); paintChildren(g); Dimension d = getSize(); if (frame.isSelected()) g.setColor(MetalLookAndFeel.getPrimaryControlDarkShadow(...
18,704
public void paintPalette(Graphics g) { Color savedColor = g.getColor(); Rectangle b = SwingUtilities.getLocalBounds(this); g.setColor(MetalLookAndFeel.getPrimaryControlShadow()); g.fillRect(b.x, b.y, b.width, b.height); MetalUtils.fillMetalPattern(g, b.x + 4, b.y + 2, b.width - paletteClos...
public void paintPalette(Graphics g) { Color savedColor = g.getColor(); Rectangle b = SwingUtilities.getLocalBounds(this); g.setColor(MetalLookAndFeel.getPrimaryControlShadow()); g.fillRect(b.x, b.y, b.width, b.height); MetalUtils.fillMetalPattern(this, g, b.x + 4, b.y + 2, b.width - palet...
18,705
public static ComponentUI createUI(JComponent component) { if (instances == null) instances = new HashMap(); Object o = instances.get(component); MetalTextFieldUI instance; if (o == null) { instance = new MetalTextFieldUI(); instances.put(component, instance); } else instance ...
public static ComponentUI createUI(JComponent component) { if (instances == null) instances = new HashMap(); Object o = instances.get(component); MetalTextFieldUI instance; if (o == null) { instance = new MetalTextFieldUI(); instances.put(component, instance); } else instance ...
18,706
protected void addImpl(Component comp, Object constraints, int index) { super.addImpl(comp, constraints, index); comp.validate(); comp.repaint(); }
protected void addImpl(Component comp, Object constraints, int index) { super.addImpl(comp, constraints, index); comp.validate(); comp.repaint(); }
18,707
protected void addImpl(Component comp, Object constraints, int index) { super.addImpl(comp, constraints, index); comp.validate(); comp.repaint(); }
protected void addImpl(Component comp, Object constraints, int index) { super.addImpl(comp, constraints, index); comp.validate(); comp.repaint(); }
18,708
public AbstractAction() { this(""); // TODO: default name }
public AbstractAction() { this(null); // TODO: default name }
18,709
public void removePropertyChangeListener(PropertyChangeListener listener);
public void removePropertyChangeListener(PropertyChangeListener listener);
18,710
private static NameSpace getNameSpace() { if(namespace == null) { namespace = new DefaultNameSpace(); } return namespace; }
private static NameSpace getNameSpace() { if(namespace == null) { namespace = new DefaultNameSpace(); } return namespace; }
18,711
public static Set nameSet() { return getNameSpace().nameSet(); }
public static Set nameSet() { return getNameSpace().nameSet(); }
18,712
public static void setNameSpace(NameSpace namespace) { if(InitialNaming.namespace != null) { throw new SecurityException("namespace can't be modified after first initialization"); } InitialNaming.namespace = namespace; }
public static void setNameSpace(NameSpace namespace) { if(InitialNaming.namespace != null) { throw new SecurityException("namespace can't be modified after first initialization"); } InitialNaming.namespace = namespace; }
18,713
public NameAlreadyBoundException (String msg) { super (msg); }
public NameAlreadyBoundException () { super (msg); }
18,714
public NameAlreadyBoundException (String msg) { super (msg); }
public NameAlreadyBoundException (String msg) { super (); }
18,715
public static CompoundBorder createCompoundBorder() { /* Create a compound border with a null inside edge and a null outside edge. Returns: the CompoundBorder object createCompoundBorder */ return null; }
public static CompoundBorder createCompoundBorder() { /* Create a compound border with a null inside edge and a null outside edge. Returns: the CompoundBorder object createCompoundBorder */ return null; }
18,716
public static Border createEtchedBorder() { /* Create a border with an "etched" look using the component's current background color for highlighting and shading. Returns: the Border object createEtchedBorder */ return null; }
public static Border createEtchedBorder() { /* Create a border with an "etched" look using the component's current background color for highlighting and shading. Returns: the Border object createEtchedBorder */ return null; }
18,717
public static Border createLoweredBevelBorder() { /* Created a border with a lowered beveled edge, using brighter shades of the component's current background color for highlighting, and darker shading for shadows. (In a lowered border, shadows are on top and highlights are underneath.) Returns: the Border ...
public static Border createLoweredBevelBorder() { /* Created a border with a lowered beveled edge, using brighter shades of the component's current background color for highlighting, and darker shading for shadows. (In a lowered border, shadows are on top and highlights are underneath.) Returns: the Border ...
18,718
public static MatteBorder createMatteBorder( int top, int left, int bottom, int right, Color color) { /* Create a matte-look border using a solid color. (The difference between this border and a line border is that you can specify the individual border dimensions.) Parameters: top - an int specifying t...
public static MatteBorder createMatteBorder( int top, int left, int bottom, int right, Color color) { /* Create a matte-look border using a solid color. (The difference between this border and a line border is that you can specify the individual border dimensions.) Parameters: top - an int specifying t...
18,719
public static Border createRaisedBevelBorder() { /* Created a border with a raised beveled edge, using brighter shades of the component's current background color for highlighting, and darker shading for shadows. (In a raised border, highlights are on top and shadows are underneath.) Returns: the Border obj...
public static Border createRaisedBevelBorder() { /* Created a border with a raised beveled edge, using brighter shades of the component's current background color for highlighting, and darker shading for shadows. (In a raised border, highlights are on top and shadows are underneath.) Returns: the Border obj...
18,720
public static TitledBorder createTitledBorder(String title) { /* Create a new title border specifying the text of the title, using the default border (etched), using the default text position (sitting on the top line) and default justification (left) and using the default font and text color determined by the curre...
public static TitledBorder createTitledBorder(String title) { /* Create a new title border specifying the text of the title, using the default border (etched), using the default text position (sitting on the top line) and default justification (left) and using the default font and text color determined by the curre...
18,721
public String format(LogRecord record) { StringBuffer buf = new StringBuffer(180); if (dateFormat == null) dateFormat = DateFormat.getDateTimeInstance(); buf.append(dateFormat.format(new Date(record.getMillis()))); buf.append(' '); buf.append(record.getLoggerName()); buf.append(lineSep); bu...
public String format(LogRecord record) { StringBuffer buf = new StringBuffer(180); if (dateFormat == null) dateFormat = DateFormat.getDateTimeInstance(); buf.append(dateFormat.format(new Date(record.getMillis()))); buf.append(' '); buf.append(record.getSourceClassName()); buf.append(' '); buf.app...
18,722
Menu(String label){ this(label, false);}
Menu(String label){ this(label, false);}
18,723
Menu(String label){ this(label, false);}
Menu(String label){ this(label, false);}
18,724
add(MenuItem item){ items.addElement(item); if (item.parent != null) { item.parent.remove(item); } item.parent = this; if (peer != null) { MenuPeer mp = (MenuPeer) peer; mp.addItem(item); } return item;}
add(MenuItem item){ items.addElement(item); if (item.parent != null) { item.parent.remove(item); } item.parent = this; if (peer != null) { MenuPeer mp = (MenuPeer) peer; mp.addItem(item); } return item;}
18,725
public boolean valid () { return channel != null && channel.isOpen(); }
public boolean valid () { ByteChannel c = channel; return (c != null) && (c.isOpen()); }
18,727
public Certificate[] certificates() { Certificate certs[] = new Certificate[certificates.size()]; int max = certificates.size(); for (int i = 0; i < max; i++) certs[i] = (Certificate) certificates.elementAt(i); return certs; }
public Certificate[] certificates() { Certificate[] certs = new Certificate[certificates.size()]; int max = certificates.size(); for (int i = 0; i < max; i++) certs[i] = (Certificate) certificates.elementAt(i); return certs; }
18,728
JaxpParser () { }
JaxpParser () { }
18,729
public Parser getParser () throws SAXException { if (parser == null) parser = new XMLReaderAdapter (ae2); return parser; }
public Parser getParser () throws SAXException { if (parser == null) parser = new XMLReaderAdapter (ae2); return parser; }
18,730
public Parser getParser () throws SAXException { if (parser == null) parser = new XMLReaderAdapter (ae2); return parser; }
public Parser getParser () throws SAXException { if (parser == null) parser = new XMLReaderAdapter (ae2); return parser; }
18,731