bugged stringlengths 6 599k | fixed stringlengths 10 599k | __index_level_0__ int64 0 1.13M |
|---|---|---|
private boolean handleMouseEvent(MouseEvent ev) { Window window = (Window) ev.getSource(); Component target = window.findComponentAt(ev.getX(), ev.getY()); target = findTarget(target); if (target == null || target.isLightweight()) { // Dispatch additional MOUSE_EXITED and MOUSE_ENTERED if eve... | private boolean handleMouseEvent(MouseEvent ev) { Window window = (Window) ev.getSource(); Component target = window.findComponentAt(ev.getX(), ev.getY()); target = findTarget(target); if (target == null || target.isLightweight()) { // Dispatch additional MOUSE_EXITED and MOUSE_ENTERED if eve... | 12,259 |
void set_value(byte[] a_value); | void set_value(byte[] a_value) throws InvalidValue; | 12,260 |
Object getOption(int option_id) throws SocketException; | Object getOption(int optionId) throws SocketException; | 12,261 |
void setOption(int option_id, Object val) throws SocketException; | void setOption(int optionId, Object val) throws SocketException; | 12,262 |
public TreePath getPathForRow(int value0) { return null; // TODO } // getPathForRow() | public TreePath getPathForRow(int value0) { return null; // TODO } // getPathForRow() | 12,263 |
public InstantiationException(String s) { super(s); } | public InstantiationException(String s) { super(s); } | 12,264 |
InputEvent(Component source, int id, long when, int modifiers) { super(source, id); this.when = when; this.modifiers = EventModifier.extend(modifiers); } | InputEvent(Component source, int id, long when, int modifiers) { super(source, id); this.when = when; this.modifiers = modifiers & EventModifier.OLD_MASK; this.modifiersEx = modifiers & EventModifier.NEW_MASK; } | 12,265 |
public int getModifiers() { return EventModifier.revert(modifiers); } | public int getModifiers() { return modifiers; } | 12,266 |
public int getModifiersEx() { return modifiers; } | public int getModifiersEx() { return modifiersEx; } | 12,267 |
public boolean isAltDown() { return (modifiers & ALT_DOWN_MASK) != 0; } | public boolean isAltDown() { return ((modifiers & ALT_MASK) != 0) || ((modifiersEx & ALT_DOWN_MASK) != 0); } | 12,268 |
public boolean isAltGraphDown() { return (modifiers & ALT_GRAPH_DOWN_MASK) != 0; } | public boolean isAltGraphDown() { return ((modifiers & ALT_GRAPH_MASK) != 0) || ((modifiersEx & ALT_GRAPH_DOWN_MASK) != 0); } | 12,269 |
public boolean isControlDown() { return (modifiers & CTRL_DOWN_MASK) != 0; } | public boolean isControlDown() { return ((modifiers & CTRL_MASK) != 0) || ((modifiersEx & CTRL_DOWN_MASK) != 0); } | 12,270 |
public boolean isMetaDown() { return (modifiers & META_DOWN_MASK) != 0; } | public boolean isMetaDown() { return ((modifiers & META_MASK) != 0) || ((modifiersEx & META_DOWN_MASK) != 0); } | 12,271 |
public boolean isShiftDown() { return (modifiers & SHIFT_DOWN_MASK) != 0; } | public boolean isShiftDown() { return ((modifiers & SHIFT_MASK) != 0) || ((modifiersEx & SHIFT_DOWN_MASK) != 0); } | 12,272 |
public synchronized void registerServiceProvider(Object provider) { boolean ok = false; if (provider == null) throw new IllegalArgumentException(); for (int i = 0; i < categories.length; i++) if (categories[i].isInstance(provider)) { ok = true; registerServiceProvider(prov... | private synchronized boolean registerServiceProvider(Object provider, int cat) { boolean ok = false; if (provider == null) throw new IllegalArgumentException(); for (int i = 0; i < categories.length; i++) if (categories[i].isInstance(provider)) { ok = true; registerService... | 12,274 |
public synchronized void registerServiceProvider(Object provider) { boolean ok = false; if (provider == null) throw new IllegalArgumentException(); for (int i = 0; i < categories.length; i++) if (categories[i].isInstance(provider)) { ok = true; registerServiceProvider(prov... | public synchronized void registerServiceProvider(Object provider) { LinkedList provs; boolean result; Class category; if (provider == null) throw new IllegalArgumentException(); for (int i = 0; i < categories.length; i++) if (categories[i].isInstance(provider)) { ok = true; ... | 12,275 |
public synchronized void registerServiceProvider(Object provider) { boolean ok = false; if (provider == null) throw new IllegalArgumentException(); for (int i = 0; i < categories.length; i++) if (categories[i].isInstance(provider)) { ok = true; registerServiceProvider(prov... | public synchronized void registerServiceProvider(Object provider) { boolean ok = false; if (provider == null) throw new IllegalArgumentException(); for (int i = 0; i < categories.length; i++) if (categories[i].isInstance(provider)) { ok = true; registerServiceProvider(prov... | 12,276 |
public synchronized void registerServiceProvider(Object provider) { boolean ok = false; if (provider == null) throw new IllegalArgumentException(); for (int i = 0; i < categories.length; i++) if (categories[i].isInstance(provider)) { ok = true; registerServiceProvider(prov... | public synchronized void registerServiceProvider(Object provider) { boolean ok = false; if (provider == null) throw new IllegalArgumentException(); for (int i = 0; i < categories.length; i++) if (categories[i].isInstance(provider)) { ok = true; registerServiceProvider(prov... | 12,277 |
public String getUIClassID() { //Returns a string that specifies the name of the L&F class that renders this component. return "JCheckBox"; } | public String getUIClassID() { //Returns a string that specifies the name of the L&F class that renders this component. return "JCheckBox"; } | 12,278 |
public int getLayoutFlags () throws NotImplementedException { throw new Error ("not implemented"); } | public int getLayoutFlags () throws NotImplementedException { throw new Error ("not implemented"); } | 12,279 |
public int getLayoutFlags () throws NotImplementedException { throw new Error ("not implemented"); } | public int getLayoutFlags () throws NotImplementedException { return 0; } | 12,280 |
public BindingHolder(Binding initialValue) { value = initialValue; } | public BindingHolder() { value = initialValue; } | 12,281 |
public BindingHolder(Binding initialValue) { value = initialValue; } | public BindingHolder(Binding initialValue) { } | 12,282 |
public void paint(Graphics g) { paintComponent(g); paintBorder(g); paintChildren(g); } | public void paint(Graphics g) { paintComponent(g); paintBorder(g); paintChildren(g); } | 12,283 |
void paintDoubleBuffered(Rectangle r) { RepaintManager rm = RepaintManager.currentManager(this); // Paint on the offscreen buffer. Image buffer = rm.getOffscreenBuffer(this, getWidth(), getHeight()); Graphics g = buffer.getGraphics(); Graphics g2 = getComponentGraphics(g); g2.setClip(r.x, r.y, r.wi... | void paintDoubleBuffered(Graphics g) { RepaintManager rm = RepaintManager.currentManager(this); // Paint on the offscreen buffer. Image buffer = rm.getOffscreenBuffer(this, getWidth(), getHeight()); Graphics g = buffer.getGraphics(); Graphics g2 = getComponentGraphics(g); g2.setClip(r.x, r.y, r.wid... | 12,284 |
void paintDoubleBuffered(Rectangle r) { RepaintManager rm = RepaintManager.currentManager(this); // Paint on the offscreen buffer. Image buffer = rm.getOffscreenBuffer(this, getWidth(), getHeight()); Graphics g = buffer.getGraphics(); Graphics g2 = getComponentGraphics(g); g2.setClip(r.x, r.y, r.wi... | void paintDoubleBuffered(Rectangle r) { RepaintManager rm = RepaintManager.currentManager(this); // Paint on the offscreen buffer. Image buffer = rm.getOffscreenBuffer(this, getWidth(), getHeight()); Graphics g = buffer.getGraphics(); Graphics g2 = getComponentGraphics(g); g2.setClip(r.x, r.y, r.wi... | 12,285 |
void paintDoubleBuffered(Rectangle r) { RepaintManager rm = RepaintManager.currentManager(this); // Paint on the offscreen buffer. Image buffer = rm.getOffscreenBuffer(this, getWidth(), getHeight()); Graphics g = buffer.getGraphics(); Graphics g2 = getComponentGraphics(g); g2.setClip(r.x, r.y, r.wi... | void paintDoubleBuffered(Rectangle r) { RepaintManager rm = RepaintManager.currentManager(this); // Paint on the offscreen buffer. Image buffer = rm.getOffscreenBuffer(this, getWidth(), getHeight()); Graphics g = buffer.getGraphics(); Graphics g2 = getComponentGraphics(g); g2.setClip(r.x, r.y, r.wi... | 12,286 |
void paintImmediately2(Rectangle r) { RepaintManager rm = RepaintManager.currentManager(this); if (rm.isDoubleBufferingEnabled() && isDoubleBuffered()) paintDoubleBuffered(r); else paintSimple(r); } | void paintImmediately2(Rectangle r) { RepaintManager rm = RepaintManager.currentManager(this); if (rm.isDoubleBufferingEnabled() && isDoubleBuffered()) paintDoubleBuffered(g); else paintSimple(r); } | 12,287 |
void paintImmediately2(Rectangle r) { RepaintManager rm = RepaintManager.currentManager(this); if (rm.isDoubleBufferingEnabled() && isDoubleBuffered()) paintDoubleBuffered(r); else paintSimple(r); } | void paintImmediately2(Rectangle r) { RepaintManager rm = RepaintManager.currentManager(this); if (rm.isDoubleBufferingEnabled() && isDoubleBuffered()) paintDoubleBuffered(r); else paintSimple(g); g.dispose(); } | 12,288 |
void paintSimple(Rectangle r) { Graphics g = getGraphics(); Graphics g2 = getComponentGraphics(g); paint(g2); g2.dispose(); g2.dispose(); } | void paintSimple(Graphics g) { Graphics g = getGraphics(); Graphics g2 = getComponentGraphics(g); paint(g2); g2.dispose(); g2.dispose(); } | 12,289 |
void paintSimple(Rectangle r) { Graphics g = getGraphics(); Graphics g2 = getComponentGraphics(g); paint(g2); g2.dispose(); g2.dispose(); } | void paintSimple(Rectangle r) { Graphics g2 = getComponentGraphics(g); paint(g2); g2.dispose(); g2.dispose(); } | 12,290 |
void paintSimple(Rectangle r) { Graphics g = getGraphics(); Graphics g2 = getComponentGraphics(g); paint(g2); g2.dispose(); g2.dispose(); } | void paintSimple(Rectangle r) { Graphics g = getGraphics(); Graphics g2 = getComponentGraphics(g); paint(g2); g2.dispose(); g2.dispose(); } | 12,291 |
int getDefaultCloseOperation() { return close_action; } | public int getDefaultCloseOperation() { return close_action; } | 12,292 |
protected void processWindowEvent(WindowEvent e) { super.processWindowEvent(e); switch (e.getID()) { case WindowEvent.WINDOW_CLOSING: { switch(close_action) { case EXIT_ON_CLOSE: { System.exit(1); break; } case DISPOSE_ON_CLOSE: { dispose(); break; } ca... | protected void processWindowEvent(WindowEvent e) { super.processWindowEvent(e); switch (e.getID()) { case WindowEvent.WINDOW_CLOSING: { switch(close_action) { case EXIT_ON_CLOSE: { System.exit(0); break; } case DISPOSE_ON_CLOSE: { dispose(); break; } ca... | 12,293 |
public void setDefaultCloseOperation(int operation) { close_action = operation; } | public void setDefaultCloseOperation(int operation) { SecurityManager sm = System.getSecurityManager(); if (sm != null && operation == EXIT_ON_CLOSE) sm.checkExit(0); if (operation != EXIT_ON_CLOSE && operation != DISPOSE_ON_CLOSE && operation != HIDE_ON_CLOSE && operation != DO_NOTHING_ON_CLOSE) throw new Ille... | 12,294 |
protected void processWindowEvent(WindowEvent e) { // System.out.println("PROCESS_WIN_EV-1: " + e); super.processWindowEvent(e); // System.out.println("PROCESS_WIN_EV-2: " + e); switch (e.getID()) { case WindowEvent.WINDOW_CLOSING : { switch (close_action) { case DISPOSE_ON_CLOSE : { Sys... | protected void processWindowEvent(WindowEvent e) { // System.out.println("PROCESS_WIN_EV-1: " + e); super.processWindowEvent(e); // System.out.println("PROCESS_WIN_EV-2: " + e); switch (e.getID()) { case WindowEvent.WINDOW_CLOSING : { switch (close_action) { case DISPOSE_ON_CLOSE : { Sys... | 12,295 |
protected void processWindowEvent(WindowEvent e) { // System.out.println("PROCESS_WIN_EV-1: " + e); super.processWindowEvent(e); // System.out.println("PROCESS_WIN_EV-2: " + e); switch (e.getID()) { case WindowEvent.WINDOW_CLOSING : { switch (close_action) { case DISPOSE_ON_CLOSE : { Sys... | protected void processWindowEvent(WindowEvent e) { // System.out.println("PROCESS_WIN_EV-1: " + e); super.processWindowEvent(e); // System.out.println("PROCESS_WIN_EV-2: " + e); switch (e.getID()) { case WindowEvent.WINDOW_CLOSING : { switch (close_action) { case DISPOSE_ON_CLOSE : { Sys... | 12,296 |
public abstract BufferedImage createCompatibleImage(int w, int h, int transparency); | public abstract BufferedImage createCompatibleImage(int w, int h, int transparency); | 12,297 |
public JRadioButton(String text) { this(text, null); } | public JRadioButton(String text) { this(text, null); } | 12,298 |
public String getUIClassID() { //Returns a string that specifies the name of the L&F class that renders this component. return "JRadioButton"; } | public String getUIClassID() { //Returns a string that specifies the name of the L&F class that renders this component. return "JRadioButton"; } | 12,299 |
protected PortableRemoteObject() throws RemoteException { if(delegate != null) exportObject((Remote)this); } | protected PortableRemoteObject() throws RemoteException { if(delegate != null) exportObject((Remote)this); } | 12,300 |
public static void connect(Remote target, Remote source) throws RemoteException { if(delegate != null) delegate.connect(target, source); } | public static void connect(Remote target, Remote source) throws RemoteException { if(delegate != null) delegate.connect(target, source); } | 12,301 |
public static void exportObject(Remote obj) throws RemoteException { if(delegate != null) delegate.exportObject(obj); } | public static void exportObject(Remote object) throws RemoteException { if(delegate != null) delegate.exportObject(obj); } | 12,302 |
public static void exportObject(Remote obj) throws RemoteException { if(delegate != null) delegate.exportObject(obj); } | public static void exportObject(Remote obj) throws RemoteException { if(delegate != null) delegate.exportObject(obj); } | 12,303 |
public static Object narrow(Object narrowFrom, Class narrowTo) throws ClassCastException { if(delegate != null) return delegate.narrow(narrowFrom, narrowTo); else return null; } | public static Object narrow(Object object, Class narrowToInstaceOf) throws ClassCastException { if(delegate != null) return delegate.narrow(narrowFrom, narrowTo); else return null; } | 12,304 |
public static Object narrow(Object narrowFrom, Class narrowTo) throws ClassCastException { if(delegate != null) return delegate.narrow(narrowFrom, narrowTo); else return null; } | public static Object narrow(Object narrowFrom, Class narrowTo) throws ClassCastException { if(delegate != null) return delegate.narrow(narrowFrom, narrowTo); else return null; } | 12,305 |
public static Remote toStub(Remote obj) throws NoSuchObjectException { if(delegate != null) return delegate.toStub(obj); else return null; } | public static Remote toStub(Remote targetImpl) throws NoSuchObjectException { if(delegate != null) return delegate.toStub(obj); else return null; } | 12,306 |
public static Remote toStub(Remote obj) throws NoSuchObjectException { if(delegate != null) return delegate.toStub(obj); else return null; } | public static Remote toStub(Remote obj) throws NoSuchObjectException { if(delegate != null) return delegate.toStub(obj); else return null; } | 12,307 |
public static void unexportObject(Remote obj) throws NoSuchObjectException { if(delegate != null) delegate.unexportObject(obj); } | public static void unexportObject(Remote object) throws NoSuchObjectException { if(delegate != null) delegate.unexportObject(obj); } | 12,308 |
public static void unexportObject(Remote obj) throws NoSuchObjectException { if(delegate != null) delegate.unexportObject(obj); } | public static void unexportObject(Remote obj) throws NoSuchObjectException { if(delegate != null) delegate.unexportObject(obj); } | 12,309 |
public CharsetDecoder newDecoder () { return new UTF_16Decoder (this, UTF_16Decoder.UNKNOWN_ENDIAN); } | public CharsetDecoder newDecoder () { return new UTF_16Decoder (this, UTF_16Decoder.MAYBE_LITTLE_ENDIAN); } | 12,310 |
protected void installDefaults() { /* most of it copied from BasicLabelUI, I don't know what keys are available, so someone may want to update this. Hence: TODO */ UIDefaults defaults = UIManager.getLookAndFeelDefaults(); /* spinner.setForeground(defaults.getColor("Spinner.foreground")); spin... | protected void installDefaults() { /* most of it copied from BasicLabelUI, I don't know what keys are available, so someone may want to update this. Hence: TODO */ LookAndFeel.installColorsAndFont(spinner, "Spinner.background", "Spinner.foreground", "Spinner.font"); LookAndFeel.installBorder(spinner, ... | 12,311 |
ElementNode(TemplateNode name, TemplateNode namespace, String uas, Node source) { this.name = name; this.namespace = namespace; this.uas = uas; this.source = source; NamedNodeMap attrs = source.getAttributes(); Node attr = attrs.getNamedItemNS(Stylesheet.XSL_NS, ... | ElementNode(TemplateNode name, TemplateNode namespace, String uas, Node source) this.name = name; this.namespace = namespace; this.uas = uas; this.source = source; NamedNodeMap attrs = source.getAttributes(); Node attr = attrs.getNamedItemNS(Stylesheet.XSL_NS, ... | 12,312 |
ElementNode(TemplateNode name, TemplateNode namespace, String uas, Node source) { this.name = name; this.namespace = namespace; this.uas = uas; this.source = source; NamedNodeMap attrs = source.getAttributes(); Node attr = attrs.getNamedItemNS(Stylesheet.XSL_NS, ... | ElementNode(TemplateNode name, TemplateNode namespace, String uas, Node source) { this.name = name; this.namespace = namespace; this.uas = uas; this.source = source; NamedNodeMap attrs = source.getAttributes(); Node attr = attrs.getNamedItemNS(Stylesheet.XSL_NS, ... | 12,313 |
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 ... | 12,314 |
TemplateNode clone(Stylesheet stylesheet) { TemplateNode ret = new ElementNode(name.clone(stylesheet), (namespace == null) ? null : namespace.clone(stylesheet), uas, source); if (children != null) { ret.children = childre... | TemplateNode clone(Stylesheet stylesheet) TemplateNode ret = new ElementNode(name.clone(stylesheet), (namespace == null) ? null : namespace.clone(stylesheet), uas, source); if (children != null) ret.children = children.... | 12,315 |
TemplateNode clone(Stylesheet stylesheet) { TemplateNode ret = new ElementNode(name.clone(stylesheet), (namespace == null) ? null : namespace.clone(stylesheet), uas, source); if (children != null) { ret.children = childre... | TemplateNode clone(Stylesheet stylesheet) { TemplateNode ret = new ElementNode(name.clone(stylesheet), (namespace == null) ? null : namespace.clone(stylesheet), uas, source); if (children != null) { ret.children = childre... | 12,316 |
void doApply(Stylesheet stylesheet, QName mode, Node context, int pos, int len, Node parent, Node nextSibling) throws TransformerException { Document doc = (parent instanceof Document) ? (Document) parent : parent.getOwnerDocument(); // Create a document fragment to hold the nam... | void doApply(Stylesheet stylesheet, QName mode, Node context, int pos, int len, Node parent, Node nextSibling) throws TransformerException Document doc = (parent instanceof Document) ? (Document) parent : parent.getOwnerDocument(); // Create a document fragment to hold the name... | 12,317 |
void doApply(Stylesheet stylesheet, QName mode, Node context, int pos, int len, Node parent, Node nextSibling) throws TransformerException { Document doc = (parent instanceof Document) ? (Document) parent : parent.getOwnerDocument(); // Create a document fragment to hold the nam... | void doApply(Stylesheet stylesheet, QName mode, Node context, int pos, int len, Node parent, Node nextSibling) throws TransformerException { Document doc = (parent instanceof Document) ? (Document) parent : parent.getOwnerDocument(); // Create a document fragment to hold the nam... | 12,318 |
void doApply(Stylesheet stylesheet, QName mode, Node context, int pos, int len, Node parent, Node nextSibling) throws TransformerException { Document doc = (parent instanceof Document) ? (Document) parent : parent.getOwnerDocument(); // Create a document fragment to hold the nam... | void doApply(Stylesheet stylesheet, QName mode, Node context, int pos, int len, Node parent, Node nextSibling) throws TransformerException { Document doc = (parent instanceof Document) ? (Document) parent : parent.getOwnerDocument(); // Create a document fragment to hold the nam... | 12,319 |
void doApply(Stylesheet stylesheet, QName mode, Node context, int pos, int len, Node parent, Node nextSibling) throws TransformerException { Document doc = (parent instanceof Document) ? (Document) parent : parent.getOwnerDocument(); // Create a document fragment to hold the nam... | void doApply(Stylesheet stylesheet, QName mode, Node context, int pos, int len, Node parent, Node nextSibling) throws TransformerException { Document doc = (parent instanceof Document) ? (Document) parent : parent.getOwnerDocument(); // Create a document fragment to hold the nam... | 12,320 |
void doApply(Stylesheet stylesheet, QName mode, Node context, int pos, int len, Node parent, Node nextSibling) throws TransformerException { Document doc = (parent instanceof Document) ? (Document) parent : parent.getOwnerDocument(); // Create a document fragment to hold the nam... | void doApply(Stylesheet stylesheet, QName mode, Node context, int pos, int len, Node parent, Node nextSibling) throws TransformerException { Document doc = (parent instanceof Document) ? (Document) parent : parent.getOwnerDocument(); // Create a document fragment to hold the nam... | 12,321 |
public boolean references(QName var) { if (name != null && name.references(var)) { return true; } if (namespace != null && namespace.references(var)) { return true; } return super.references(var); } | public boolean references(QName var) if (name != null && name.references(var)) return true; } if (namespace != null && namespace.references(var)) return true; } return super.references(var); } | 12,322 |
public boolean references(QName var) { if (name != null && name.references(var)) { return true; } if (namespace != null && namespace.references(var)) { return true; } return super.references(var); } | public boolean references(QName var) { if (name != null && name.references(var)) { return true; if (namespace != null && namespace.references(var)) { return true; return super.references(var); | 12,323 |
public String toString() { StringBuffer buf = new StringBuffer(getClass().getName()); buf.append('['); buf.append("name="); buf.append(name); if (uas != null) { buf.append(",uas="); buf.append(uas); } buf.append(']'); return buf.toString(); } | public String toString() { StringBuffer buf = new StringBuffer("element"); buf.append('['); buf.append("name="); buf.append(name); if (uas != null) { buf.append(",uas="); buf.append(uas); } buf.append(']'); return buf.toString(); } | 12,324 |
public boolean add(Object o) { if (o == null) throw new NullPointerException("reason is null"); return add((JobStateReason) o); } | public boolean add(Object o) { if (o == null) throw new NullPointerException("reason is null"); return super.add((JobStateReason) o); } | 12,326 |
public SwingContainerPeer(Component awtCont) { init(awtCont, null); } | public SwingContainerPeer(Container awtCont) { init(awtCont, null); } | 12,327 |
public SwingContainerPeer(Component awtCont) { init(awtCont, null); } | public SwingContainerPeer(Component awtCont) { heavyweightDescendents = new LinkedList(); } | 12,328 |
public Insets getInsets() { Insets retVal; if (swingComponent != null) retVal = swingComponent.getJComponent().getInsets(); else retVal = new Insets(0, 0, 0, 0); return retVal; } | public Insets getInsets() { Insets retVal; if (swingComponent != null) retVal = swingComponent.getJComponent().getInsets(); else retVal = new Insets(0, 0, 0, 0); return retVal; } | 12,329 |
protected void handleMouseEvent(MouseEvent ev) { Component comp = awtComponent.getComponentAt(ev.getPoint()); if(comp == null) comp = awtComponent; if (comp != null) { ComponentPeer peer = comp.getPeer(); if (awtComponent != comp && !comp.isLightweight() && peer instanceof SwingComponentPeer... | protected void handleMouseEvent(MouseEvent ev) { Component comp = awtComponent.getComponentAt(ev.getPoint()); if(comp == null) comp = awtComponent; if (comp != null) { ComponentPeer peer = comp.getPeer(); if (awtComponent != comp && !comp.isLightweight() && peer instanceof SwingComponentPeer... | 12,330 |
protected void handleMouseEvent(MouseEvent ev) { Component comp = awtComponent.getComponentAt(ev.getPoint()); if(comp == null) comp = awtComponent; if (comp != null) { ComponentPeer peer = comp.getPeer(); if (awtComponent != comp && !comp.isLightweight() && peer instanceof SwingComponentPeer... | protected void handleMouseEvent(MouseEvent ev) { Component comp = awtComponent.getComponentAt(ev.getPoint()); if(comp == null) comp = awtComponent; if (comp != null) { ComponentPeer peer = comp.getPeer(); if (awtComponent != comp && !comp.isLightweight() && peer instanceof SwingComponentPeer... | 12,331 |
protected void peerPaint(Graphics g) { Container c = (Container) awtComponent; Component[] children = c.getComponents(); for (int i = children.length - 1; i >= 0; --i) { Component child = children[i]; ComponentPeer peer = child.getPeer(); boolean translated = false; boolean ... | protected void peerPaint(Graphics g, boolean update) { Container c = (Container) awtComponent; Component[] children = c.getComponents(); for (int i = children.length - 1; i >= 0; --i) { Component child = children[i]; ComponentPeer peer = child.getPeer(); boolean translated = false;... | 12,332 |
protected void peerPaint(Graphics g) { Container c = (Container) awtComponent; Component[] children = c.getComponents(); for (int i = children.length - 1; i >= 0; --i) { Component child = children[i]; ComponentPeer peer = child.getPeer(); boolean translated = false; boolean ... | protected void peerPaint(Graphics g) { Container c = (Container) awtComponent; Component[] children = c.getComponents(); for (int i = children.length - 1; i >= 0; --i) { Component child = children[i]; ComponentPeer peer = child.getPeer(); boolean translated = false; boolean ... | 12,333 |
protected void peerPaint(Graphics g) { Container c = (Container) awtComponent; Component[] children = c.getComponents(); for (int i = children.length - 1; i >= 0; --i) { Component child = children[i]; ComponentPeer peer = child.getPeer(); boolean translated = false; boolean ... | protected void peerPaint(Graphics g) { Container c = (Container) awtComponent; Component[] children = c.getComponents(); for (int i = children.length - 1; i >= 0; --i) { Component child = children[i]; ComponentPeer peer = child.getPeer(); boolean translated = false; boolean ... | 12,334 |
protected void peerPaint(Graphics g) { Container c = (Container) awtComponent; Component[] children = c.getComponents(); for (int i = children.length - 1; i >= 0; --i) { Component child = children[i]; ComponentPeer peer = child.getPeer(); boolean translated = false; boolean ... | protected void peerPaint(Graphics g) { Container c = (Container) awtComponent; Component[] children = c.getComponents(); for (int i = children.length - 1; i >= 0; --i) { Component child = children[i]; ComponentPeer peer = child.getPeer(); boolean translated = false; boolean ... | 12,335 |
protected void peerPaint(Graphics g) { Container c = (Container) awtComponent; Component[] children = c.getComponents(); for (int i = children.length - 1; i >= 0; --i) { Component child = children[i]; ComponentPeer peer = child.getPeer(); boolean translated = false; boolean ... | protected void peerPaint(Graphics g) { Container c = (Container) awtComponent; Component[] children = c.getComponents(); for (int i = children.length - 1; i >= 0; --i) { Component child = children[i]; ComponentPeer peer = child.getPeer(); boolean translated = false; boolean ... | 12,336 |
public static byte[] read(InputStream input) { OctetSeqHolder h = new OctetSeqHolder(); h._read(input); return h.value; } | public static byte[] read(InputStream input) { OctetSeqHolder h = new OctetSeqHolder(); h._read(input); return h.value; } | 12,337 |
public static void write(OutputStream output, byte[] value) { OctetSeqHolder h = new OctetSeqHolder(value); h._write(output); } | public static void write(OutputStream output, byte[] value) { OctetSeqHolder h = new OctetSeqHolder(value); h._write(output); } | 12,338 |
public BeanContextServicesSupport () { this (null, null, true, true); } | public BeanContextServicesSupport () { super(); } | 12,339 |
public void addBeanContextServicesListener (BeanContextServicesListener bcsl) { throw new Error ("Not implemented"); } | public void addBeanContextServicesListener (BeanContextServicesListener listener) { throw new Error ("Not implemented"); } | 12,340 |
public void addBeanContextServicesListener (BeanContextServicesListener bcsl) { throw new Error ("Not implemented"); } | public void addBeanContextServicesListener (BeanContextServicesListener bcsl) { if (! bcsListeners.contains(listener)) bcsListeners.add(listener); } | 12,341 |
fireServiceRevoked (BeanContextServiceRevokedEvent bcsre) { throw new Error ("Not implemented"); } | protected final void fireServiceRevoked(BeanContextServiceRevokedEvent event) { throw new Error ("Not implemented"); } | 12,342 |
public void initialize () { throw new Error ("Not implemented"); } | public void initialize () { super.initialize(); bcsListeners = new ArrayList(); services = new HashMap(); } | 12,343 |
removeBeanContextServicesListener (BeanContextServicesListener bcsl) { throw new Error ("Not implemented"); } | public void removeBeanContextServicesListener (BeanContextServicesListener listener) { throw new Error ("Not implemented"); } | 12,344 |
removeBeanContextServicesListener (BeanContextServicesListener bcsl) { throw new Error ("Not implemented"); } | removeBeanContextServicesListener (BeanContextServicesListener bcsl) { int index = bcsListeners.indexOf(listener); if (index > -1) bcsListeners.remove(index); } | 12,345 |
public IPv4Address(String addrStr) throws IllegalArgumentException { final StringTokenizer tok = new StringTokenizer(addrStr, "."); if (tok.countTokens() != length) { throw new IllegalArgumentException("Not an IPv4 address " + addrStr); } address = new byte[length]; for (int i = 0; i < length; i++) { try { ... | public IPv4Address(String addrStr) throws IllegalArgumentException { final StringTokenizer tok = new StringTokenizer(addrStr, "."); if (tok.countTokens() != length) { throw new IllegalArgumentException("Not an IPv4 address " + addrStr); } address = new byte[length]; for (int i = 0; i < length; i++) { try { ... | 12,347 |
public IPv4Address(String addrStr) throws IllegalArgumentException { final StringTokenizer tok = new StringTokenizer(addrStr, "."); if (tok.countTokens() != length) { throw new IllegalArgumentException("Not an IPv4 address " + addrStr); } address = new byte[length]; for (int i = 0; i < length; i++) { try { ... | public IPv4Address(String addrStr) throws IllegalArgumentException { final StringTokenizer tok = new StringTokenizer(addrStr, "."); if (tok.countTokens() != length) { throw new IllegalArgumentException("Not an IPv4 address " + addrStr); } address = new byte[length]; for (int i = 0; i < length; i++) { try { ... | 12,348 |
public void clearSelection() { // Set Data index = -1; // Notify Listeners fireStateChanged(); } // clearSelection() | public void clearSelection () { index = -1; // Set Data index = -1; // Notify Listeners fireStateChanged(); } // clearSelection() | 12,349 |
public void clearSelection() { // Set Data index = -1; // Notify Listeners fireStateChanged(); } // clearSelection() | public void clearSelection() { // Set Data index = -1; // Notify Listeners fireStateChanged(); } // clearSelection() | 12,350 |
protected void fireStateChanged() { // Variables ChangeListener listener; EventListener[] listeners; int index; // Get Listeners listeners = listenerList.getListeners(ChangeListener.class); // Process Listeners for (index = 0; index < listeners.length; index++) { listener = (ChangeListener) listeners[inde... | protected void fireStateChanged () { ChangeListener listener; ChangeListener[] listeners; int index; // Variables ChangeListener listener; EventListener[] listeners; int index; // Get Listeners listeners = listenerList.getListeners(ChangeListener.class); // Process Listeners for (index = 0; index < listene... | 12,351 |
protected void fireStateChanged() { // Variables ChangeListener listener; EventListener[] listeners; int index; // Get Listeners listeners = listenerList.getListeners(ChangeListener.class); // Process Listeners for (index = 0; index < listeners.length; index++) { listener = (ChangeListener) listeners[inde... | protected void fireStateChanged() { // Variables ChangeListener listener; EventListener[] listeners; int index; // Get Listeners listeners = listenerList.getListeners(ChangeListener.class); // Process Listeners for (index = 0; index < listeners.length; index++) { listener = (ChangeListener) listeners[inde... | 12,352 |
protected void fireStateChanged() { // Variables ChangeListener listener; EventListener[] listeners; int index; // Get Listeners listeners = listenerList.getListeners(ChangeListener.class); // Process Listeners for (index = 0; index < listeners.length; index++) { listener = (ChangeListener) listeners[inde... | protected void fireStateChanged() { // Variables ChangeListener listener; EventListener[] listeners; int index; // Get Listeners listeners = listenerList.getListeners(ChangeListener.class); // Process Listeners for (index = 0; index < listeners.length; index++) { listener = (ChangeListener) listeners[inde... | 12,353 |
public void setSelectedIndex(int index) { // Set Data this.index = index; // Notify Listeners fireStateChanged(); } // setSelectedIndex() | public void setSelectedIndex (int index) { this.index = index; // Set Data this.index = index; // Notify Listeners fireStateChanged(); } // setSelectedIndex() | 12,354 |
public void setSelectedIndex(int index) { // Set Data this.index = index; // Notify Listeners fireStateChanged(); } // setSelectedIndex() | public void setSelectedIndex(int index) { // Set Data this.index = index; // Notify Listeners fireStateChanged(); } // setSelectedIndex() | 12,355 |
public Element getElement(String element_name) { Element e = newElement(element_name); return e; } | public Element getElement(String element_name) { Element e = newElement(element_name); return e; } | 12,356 |
public Object put(Object key, Object value) { Object old = super.put(key, value); if (key instanceof String && old != value) firePropertyChange((String) key, old, value); return old; } | public Object put(Object key, Object value) { Object old; if (value != null) old = super.put(key, value); else old = super.remove(key); if (key instanceof String && old != value) firePropertyChange((String) key, old, value); return old; } | 12,357 |
public synchronized void release() { log.debug("io.release"); io.release(); log.debug("irq.release"); irq.release(); } | public synchronized void release() { log.debug("io.release"); io.release(); log.debug("irq.release"); irq.release(); } | 12,358 |
public JMenuItem() { super(null, null); } | public JMenuItem() { super(); } | 12,360 |
DefaultButtonModel(JComponent a) { comp = a; } | DefaultButtonModel(JComponent a) { comp = a; } | 12,361 |
public void handleEvent(AWTEvent event) { switch (event.getID()) { case PaintEvent.PAINT: { Graphics g = jComponent.getGraphics(); //Point p = component.getLocationOnScreen(); //g.translate(p.x, p.y); ((Component)component).paint(g); ... | public void handleEvent(AWTEvent event) { switch (event.getID()) { case PaintEvent.PAINT: { Graphics g = jComponent.getGraphics(); //Point p = component.getLocationOnScreen(); //g.translate(p.x, p.y); ((Component)component).paint(g); ... | 12,362 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.