bugged stringlengths 6 599k | fixed stringlengths 10 599k | __index_level_0__ int64 0 1.13M |
|---|---|---|
protected String paramString() { if (layoutMgr != null) return super.paramString(); StringBuffer sb = new StringBuffer(); sb.append(super.paramString()); sb.append(",layout="); sb.append(layoutMgr.getClass().getName()); return sb.toString(); } | protected String paramString() { if (layoutMgr == null) return super.paramString(); StringBuffer sb = new StringBuffer(); sb.append(super.paramString()); sb.append(",layout="); sb.append(layoutMgr.getClass().getName()); return sb.toString(); } | 11,601 |
protected void installListeners(JScrollPane sp) { if (spPropertyChangeListener == null) spPropertyChangeListener = createPropertyChangeListener(); sp.addPropertyChangeListener(spPropertyChangeListener); if (hsbChangeListener == null) hsbChangeListener = createHSBChangeListener(); sp.getHorizont... | protected void installListeners(JScrollPane sp) { if (spPropertyChangeListener == null) spPropertyChangeListener = createPropertyChangeListener(); sp.addPropertyChangeListener(spPropertyChangeListener); if (hsbChangeListener == null) hsbChangeListener = createHSBChangeListener(); sp.getHorizont... | 11,602 |
void addAttributeSet(Stylesheet stylesheet, QName mode, Node context, int pos, int len, Node parent, Node nextSibling, String attributeSet) throws TransformerException { for (Iterator i = stylesheet.attributeSets.iterator(); i.hasNext(); ) { AttributeSet ... | void addAttributeSet(Stylesheet stylesheet, QName mode, Node context, int pos, int len, Node parent, Node nextSibling, String attributeSet) throws TransformerException for (Iterator i = stylesheet.attributeSets.iterator(); i.hasNext(); ) AttributeSet as... | 11,603 |
void addAttributeSet(Stylesheet stylesheet, QName mode, Node context, int pos, int len, Node parent, Node nextSibling, String attributeSet) throws TransformerException { for (Iterator i = stylesheet.attributeSets.iterator(); i.hasNext(); ) { AttributeSet ... | void addAttributeSet(Stylesheet stylesheet, QName mode, Node context, int pos, int len, Node parent, Node nextSibling, String attributeSet) throws TransformerException { for (Iterator i = stylesheet.attributeSets.iterator(); i.hasNext(); ) { AttributeSet ... | 11,604 |
TemplateNode clone(Stylesheet stylesheet) { TemplateNode ret = new CopyNode(uas); if (children != null) { ret.children = children.clone(stylesheet); } if (next != null) { ret.next = next.clone(stylesheet); } return ret; } | TemplateNode clone(Stylesheet stylesheet) TemplateNode ret = new CopyNode(uas); if (children != null) ret.children = children.clone(stylesheet); } if (next != null) ret.next = next.clone(stylesheet); } return ret; } | 11,605 |
TemplateNode clone(Stylesheet stylesheet) { TemplateNode ret = new CopyNode(uas); if (children != null) { ret.children = children.clone(stylesheet); } if (next != null) { ret.next = next.clone(stylesheet); } return ret; } | TemplateNode clone(Stylesheet stylesheet) { TemplateNode ret = new CopyNode(uas); if (children != null) { ret.children = children.clone(stylesheet); if (next != null) { ret.next = next.clone(stylesheet); return ret; | 11,606 |
void doApply(Stylesheet stylesheet, QName mode, Node context, int pos, int len, Node parent, Node nextSibling) throws TransformerException { Node copy = parent; switch (context.getNodeType()) { case Node.TEXT_NODE: case Node.ATTRIBUTE_NODE: case Node.ELEMENT_N... | void doApply(Stylesheet stylesheet, QName mode, Node context, int pos, int len, Node parent, Node nextSibling) throws TransformerException Node copy = parent; switch (context.getNodeType()) case Node.TEXT_NODE: case Node.ATTRIBUTE_NODE: case Node.ELEMENT_NOD... | 11,607 |
void doApply(Stylesheet stylesheet, QName mode, Node context, int pos, int len, Node parent, Node nextSibling) throws TransformerException { Node copy = parent; switch (context.getNodeType()) { case Node.TEXT_NODE: case Node.ATTRIBUTE_NODE: case Node.ELEMENT_N... | void doApply(Stylesheet stylesheet, QName mode, Node context, int pos, int len, Node parent, Node nextSibling) throws TransformerException { Node copy = parent; switch (context.getNodeType()) { case Node.TEXT_NODE: case Node.ATTRIBUTE_NODE: case Node.ELEMENT_N... | 11,608 |
public String toString() { StringBuffer buf = new StringBuffer(getClass().getName()); buf.append('['); buf.append(']'); return buf.toString(); } | public String toString() { StringBuffer buf = new StringBuffer("copy"); if (uas != null) { buf.append('['); buf.append(']'); return buf.toString(); } | 11,609 |
private final void compileClasses(NativeStream os, VmArchitecture arch) throws ClassNotFoundException { final NativeCodeCompiler[] compilers = arch.getCompilers(); final int optLevel = compilers.length - 1; // Use the most optimizing compiler here final NativeCodeCompiler comp... | private final void compileClasses(NativeStream os, VmArchitecture arch) throws ClassNotFoundException { final NativeCodeCompiler[] compilers = arch.getCompilers(); final int optLevel = compilers.length - 1; // Use the most optimizing compiler here final NativeCodeCompiler comp... | 11,611 |
public void setLexicalHandler(LexicalHandler lexHandler) { this.lexhandler = lexHandler; } | public void setLexicalHandler(LexicalHandler lexHandler) { this.lexhandler = lexHandler; } | 11,612 |
public void setSystemId(String systemID) { this.systemId = systemID; } | public void setSystemId(String systemID) { this.systemId = systemID; } | 11,613 |
public boolean matches(Node node, int pos, int len) { switch (node.getNodeType()) { case Node.ATTRIBUTE_NODE: // Only match namespace attributes String uri = node.getNamespaceURI(); if (XMLConstants.XMLNS_ATTRIBUTE_NS_URI.equals(uri) || XMLConstants.XMLNS_ATTRIBUTE.equals... | public boolean matches(Node node, int pos, int len) { switch (node.getNodeType()) { case Node.ATTRIBUTE_NODE: // Only match namespace attributes String uri = node.getNamespaceURI(); if (XMLConstants.XMLNS_ATTRIBUTE_NS_URI.equals(uri) || XMLConstants.XMLNS_ATTRIBUTE.equals... | 11,614 |
public CertPathValidatorException(String msg) { super(msg); index = -1; certPath = null; } | public CertPathValidatorException() { super(msg); index = -1; certPath = null; } | 11,615 |
public CertPathValidatorException(String msg) { super(msg); index = -1; certPath = null; } | public CertPathValidatorException(String msg) { super(msg); index = -1; certPath = null; } | 11,616 |
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(); ... | 11,618 |
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... | 11,619 |
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; } | 11,620 |
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; } | 11,621 |
public String getCurrencyCode () { try { return res.getString ("intlCurrencySymbol"); } catch (Exception _) { return null; } } | public String getCurrencyCode () { try { return res.getString ("intlCurrencySymbol"); } catch (Exception _) { return null; } } | 11,622 |
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)"; } } | 11,623 |
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)"; } } | 11,624 |
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() - 1; ... | 11,625 |
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... | 11,626 |
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... | 11,627 |
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); } | 11,628 |
public AdapterAlreadyExists(String why) { super(why); } | public AdapterAlreadyExists() { super(why); } | 11,629 |
public AdapterAlreadyExists(String why) { super(why); } | public AdapterAlreadyExists(String why) { } | 11,630 |
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; } | 11,631 |
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; } | 11,632 |
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)) ... | 11,633 |
public OBJ_ADAPTER(String reason, int minor, CompletionStatus completed) { super(reason, minor, completed); } | public OBJ_ADAPTER(String message) { super(reason, minor, completed); } | 11,635 |
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); } | 11,636 |
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... | 11,638 |
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... | 11,639 |
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... | 11,640 |
public void setSelectedIcon(Icon selectedIcon) { // Sets the selected icon for the button. } | public void setSelectedIcon(Icon selectedIcon) { // Sets the selected icon for the button. } | 11,641 |
public void setDisabledIcon(Icon disabledIcon) { disabled_button = disabledIcon; revalidate(); repaint(); } | public void setDisabledIcon(Icon disabledIcon) { disabled_button = disabledIcon; revalidate(); repaint(); } | 11,642 |
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. } | 11,643 |
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() { 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 = fieldTable[i]; fs.reso... | 11,644 |
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(); } /** * Step 2b: Load the classes of my fields */ final int fcnt = getNoDeclaredFields(); for (int i = 0; i < fcnt; i++) { final VmField fs = fieldTable[... | 11,645 |
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... | 11,646 |
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... | 11,647 |
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... | 11,648 |
public ExceptionInInitializerError(Throwable t) { super(null); initCause(t); exception = t; } | public ExceptionInInitializerError() { super(null); initCause(t); exception = t; } | 11,649 |
public ExceptionInInitializerError(Throwable t) { super(null); initCause(t); exception = t; } | public ExceptionInInitializerError(Throwable t) { super(null); initCause(t); exception = t; } | 11,650 |
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... | 11,651 |
protected synchronized void resolve(VmClassLoader cl) { try { type = new Signature(getSignature(), declaringClass.getLoader()).getType(); } catch (ClassNotFoundException ex) { throw (Error)new NoClassDefFoundError().initCause(ex); } } | protected final synchronized void resolve() { try { type = new Signature(getSignature(), declaringClass.getLoader()).getType(); } catch (ClassNotFoundException ex) { throw (Error)new NoClassDefFoundError().initCause(ex); } } | 11,652 |
protected void resolve(VmClassLoader cl) { resolveTypes(); } | protected final void resolve() { resolveTypes(); } | 11,653 |
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]; } | 11,654 |
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; } | 11,655 |
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; } | 11,656 |
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 : ... | 11,657 |
public void updateUI() { setUI((SeparatorUI) UIManager.getUI(this)); invalidate(); } | public void updateUI() { setUI((SeparatorUI) UIManager.getUI(this)); } | 11,658 |
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; } | 11,659 |
public boolean addAll (Collection c) { throw new Error ("Not implemented"); } | public boolean addAll (Collection c) { throw new UnsupportedOperationException(); } | 11,660 |
public void addBeanContextMembershipListener (BeanContextMembershipListener bcml) { throw new Error ("Not implemented"); } | public void addBeanContextMembershipListener (BeanContextMembershipListener listener) { throw new Error ("Not implemented"); } | 11,661 |
public void addBeanContextMembershipListener (BeanContextMembershipListener bcml) { throw new Error ("Not implemented"); } | public void addBeanContextMembershipListener (BeanContextMembershipListener bcml) { if (! bcmListeners.contains(listener)) bcmListeners.add(listener); } | 11,662 |
public void clear () { throw new Error ("Not implemented"); } | public void clear () { throw new UnsupportedOperationException(); } | 11,663 |
public Locale getLocale () { throw new Error ("Not implemented"); } | public Locale getLocale () { return locale; } | 11,664 |
protected void initialize () { throw new Error ("Not implemented"); } | protected void initialize () { bcmListeners = new ArrayList(); children = new HashMap(); } | 11,665 |
public Iterator iterator () { throw new Error ("Not implemented"); } | public Iterator iterator () { return children.keySet().iterator(); } | 11,666 |
public boolean remove (Object targetChild) { throw new Error ("Not implemented"); } | public boolean remove (Object targetChild) { return remove(targetChild, true); } | 11,667 |
public boolean removeAll (Collection c) { throw new Error ("Not implemented"); } | public boolean removeAll (Collection c) { throw new UnsupportedOperationException(); } | 11,668 |
public boolean retainAll (Collection c) { throw new Error ("Not implemented"); } | public boolean retainAll (Collection c) { throw new UnsupportedOperationException(); } | 11,669 |
public Object[] toArray () { throw new Error ("Not implemented"); } | public Object[] toArray () { return children.keySet().toArray(); } | 11,670 |
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 e; 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) { coun... | 11,671 |
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 e = depthFirstEnumeration(); // Process Nodes count = 0; while (enum.hasMoreElements() == true) { current = (TreeNode) enum.nextElement(); if (current.isLeaf() == true) { coun... | 11,672 |
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... | 11,673 |
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... | 11,675 |
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());... | 11,676 |
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());... | 11,677 |
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.mainClassName = mainClassName; if (args == null) { this.args = new String[... | 11,678 |
JMenuBar() { } | JMenuBar() { } | 11,679 |
FileDescriptor(ByteChannel channel) { this.channel = channel; } | public FileDescriptor() { this.channel = channel; } | 11,680 |
FileDescriptor(ByteChannel channel) { this.channel = channel; } | FileDescriptor(ByteChannel channel) { channel = null; } | 11,681 |
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 { ... | 11,682 |
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... | 11,683 |
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, ... | 11,685 |
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... | 11,686 |
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... | 11,687 |
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; } | 11,688 |
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(... | 11,689 |
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... | 11,690 |
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 ... | 11,691 |
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(); } | 11,692 |
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(); } | 11,693 |
public AbstractAction() { this(""); // TODO: default name } | public AbstractAction() { this(null); // TODO: default name } | 11,694 |
public void removePropertyChangeListener(PropertyChangeListener listener); | void removePropertyChangeListener(PropertyChangeListener listener); | 11,695 |
private static NameSpace getNameSpace() { if(namespace == null) { namespace = new DefaultNameSpace(); } return namespace; } | private static NameSpace getNameSpace() { if(namespace == null) { namespace = new DefaultNameSpace(); } return namespace; } | 11,696 |
public NameAlreadyBoundException (String msg) { super (msg); } | public NameAlreadyBoundException () { super (msg); } | 11,697 |
public NameAlreadyBoundException (String msg) { super (msg); } | public NameAlreadyBoundException (String msg) { super (); } | 11,698 |
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; } | 11,699 |
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; } | 11,700 |
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 ... | 11,701 |
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... | 11,702 |
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... | 11,703 |
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... | 11,704 |
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... | 11,705 |
Menu(String label){ this(label, false);} | Menu(){ this(label, false);} | 11,706 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.