bugged stringlengths 6 599k | fixed stringlengths 10 599k | __index_level_0__ int64 0 1.13M |
|---|---|---|
public CompoundBorderUIResource(Border outsideBorder, Border insideBorder) { } | public CompoundBorderUIResource(Border outsideBorder, Border insideBorder) { } | 15,504 |
public EmptyBorderUIResource(int top, int left, int bottom, int right) { this(new Insets(top,left,bottom,right)); } | public EmptyBorderUIResource(int top, int left, int bottom, int right) { this(new Insets(top,left,bottom,right)); } | 15,505 |
public MatteBorderUIResource(int top, int left, int bottom, int right, Color color) { } | public MatteBorderUIResource(int top, int left, int bottom, int right, Color color) { } | 15,506 |
TitledBorderUIResource(String title) { } | TitledBorderUIResource(String title) { } | 15,507 |
public static Border getBlackLineBorderUIResource() { return null; } | public static Border getBlackLineBorderUIResource() { return null; } | 15,508 |
public Insets getBorderInsets(Component c) { return null; } | public Insets getBorderInsets(Component c) { return null; } | 15,509 |
public static Border getLoweredBevelBorderUIResource() { return null; } | public static Border getLoweredBevelBorderUIResource() { return null; } | 15,510 |
public static Border getRaisedBevelBorderUIResource() { return null; } | public static Border getRaisedBevelBorderUIResource() { return null; } | 15,511 |
public boolean isBorderOpaque() { return false; } | public boolean isBorderOpaque() { return false; } | 15,512 |
public void paintBorder(Component c, Graphics g, int x, int y, int width, int height) { } | public void paintBorder(Component c, Graphics g, int x, int y, int width, int height) { } | 15,513 |
paramString(){ return ("label=" + label + ",state=" + state + ",group=" + group + "," + super.paramString());} | paramString(){ return ("label=" + label + ",state=" + state + ",group=" + group + "," + super.paramString());} | 15,514 |
public Color getBackground() { if (background != null) return background; return parent == null ? SystemColor.window : parent.getBackground(); } | public Color getBackground() { if (background != null) return background; return parent == null ? null : parent.getBackground(); } | 15,515 |
public Font getFont() { if (font != null) return font; if (parent != null) return parent.getFont (); else return new Font ("Dialog", Font.PLAIN, 12); } | public Font getFont() { if (font != null) return font; if (parent != null) return parent.getFont (); else return new Font ("Dialog", Font.PLAIN, 12); } | 15,516 |
public Font getFont() { if (font != null) return font; if (parent != null) return parent.getFont (); else return new Font ("Dialog", Font.PLAIN, 12); } | public Font getFont() { if (font != null) return font; if (parent != null) return parent.getFont (); else return new Font ("Dialog", Font.PLAIN, 12); } | 15,517 |
public void setBackground(Color c) { // return if the background is already set to that color. if (background != null && c != null) if (background.equals(c)) return; // If c is null, inherit from closest ancestor whose bg is set. if (c == null && parent != null) c = parent.getBackground(); fir... | public void setBackground(Color c) { // return if the background is already set to that color. if (background != null && c != null) if (background.equals(c)) return; // If c is null, inherit from closest ancestor whose bg is set. if (c == null && parent != null) c = parent.getBackground(); fir... | 15,519 |
public void setBackground(Color c) { // return if the background is already set to that color. if (background != null && c != null) if (background.equals(c)) return; // If c is null, inherit from closest ancestor whose bg is set. if (c == null && parent != null) c = parent.getBackground(); fir... | public void setBackground(Color c) { // return if the background is already set to that color. if (background != null && c != null) if (background.equals(c)) return; // If c is null, inherit from closest ancestor whose bg is set. if (c == null && parent != null) c = parent.getBackground(); ... | 15,520 |
public void setFont(Font newFont) { if (font == newFont) return; Font oldFont = font; font = newFont; if (peer != null) peer.setFont(font); firePropertyChange("font", oldFont, newFont); invalidate(); } | public void setFont(Font newFont) { if (font == newFont) return; Font oldFont = font; font = newFont; if (peer != null) peer.setFont(font); firePropertyChange("font", oldFont, newFont); invalidate(); } | 15,522 |
public void setForeground(Color c) { firePropertyChange("foreground", foreground, c); if (peer != null) peer.setForeground(c); foreground = c; } | public void setForeground(Color c) { if (peer != null) peer.setForeground(c); foreground = c; } | 15,524 |
public void update(Graphics g) { if (!isLightweight()) { Rectangle clip = g.getClipBounds(); if (clip == null) g.clearRect(0, 0, width, height); else g.clearRect(clip.x, clip.y, clip.width, clip.height); } paint(g); } | public void update(Graphics g) { if (isLightweight() || getParent() == null) { Rectangle clip = g.getClipBounds(); if (clip == null) g.clearRect(0, 0, width, height); else g.clearRect(clip.x, clip.y, clip.width, clip.height); } paint(g); } | 15,526 |
protected void installDefaults() { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); desktop.setBackground(defaults.getColor("desktop")); } | protected void installDefaults() { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); desktop.setBackground(defaults.getColor("desktop")); } | 15,527 |
public void setPublicId(String publicID) { this.publicId = publicID; } | public void setPublicId(String publicID) { this.publicId = publicID; } | 15,528 |
public void setSystemId(File file) { try { this.systemId = fileToURL (file).toString (); } catch (IOException e) { // can't happen throw new RuntimeException (e.getMessage ()); } } | public void setSystemId(File file) { try { this.systemId = fileToURL (file).toString (); } catch (IOException e) { // can't happen throw new RuntimeException (e.getMessage ()); } } | 15,529 |
public boolean implies(Permission perm) { return perms.get(perm) != null; } | public boolean implies(Permission perm) { Enumeration elements = elements(); while (elements.hasMoreElements()) { Permission p = (Permission)elements.nextElement(); if (p.implies(perm)) return true; } return false; } | 15,530 |
public boolean isShowing() { return super.isShowing(); } | public boolean isShowing() { return isVisible(); } | 15,531 |
public void extensionAdded(ExtensionPoint point, Extension extension) { refreshFinders(); refreshMappers(); findDeviceDrivers(); } | public void extensionAdded(ExtensionPoint point, Extension extension) { refreshFinders(); refreshMappers(); findDeviceDrivers(); } | 15,532 |
public void extensionRemoved(ExtensionPoint point, Extension extension) { refreshFinders(); refreshMappers(); } | public void extensionRemoved(ExtensionPoint point, Extension extension) { refreshFinders(); refreshMappers(); } | 15,533 |
protected void findDeviceDrivers() { for (Iterator i = devices.values().iterator(); i.hasNext();) { final Device dev = (Device) i.next(); if (dev.getDriver() == null) { final Driver drv = findDriver(dev); if (drv != null) { try { ... | protected void findDeviceDrivers() { for (Iterator i = devices.values().iterator(); i.hasNext();) { final Device dev = (Device) i.next(); if (dev.getDriver() == null) { final Driver drv = findDriver(dev); if (drv != null) { try { ... | 15,534 |
public void addListDataListener(ListDataListener listener) { listenerList.add(ListDataListener.class, (EventListener) listener); } // addListDataListener() | public void addListDataListener(ListDataListener listener) { listenerList.add(ListDataListener.class, (EventListener) listener); } // addListDataListener() | 15,535 |
public void removeListDataListener(ListDataListener listener) { listenerList.remove(ListDataListener.class, (EventListener) listener); } // removeListDataListener() | public void removeListDataListener(ListDataListener listener) { listenerList.remove(ListDataListener.class, (EventListener) listener); } // removeListDataListener() | 15,536 |
public BasicSplitPaneUI() { propertyChangeListener = createPropertyChangeListener(); focusListener = createFocusListener(); } | public BasicSplitPaneUI() { propertyChangeListener = createPropertyChangeListener(); focusListener = createFocusListener(); } | 15,537 |
public BasicSplitPaneDivider createDefaultDivider() { return null; } | public BasicSplitPaneDivider createDefaultDivider() { if (divider == null) divider = new BasicSplitPaneDivider(this); return divider; } | 15,538 |
protected Component createDefaultNonContinuousLayoutDivider() { return null; } | protected Component createDefaultNonContinuousLayoutDivider() { if (nonContinuousLayoutDivider == null) { nonContinuousLayoutDivider = new Canvas(); nonContinuousLayoutDivider.setBackground(Color.DARK_GRAY); } return nonContinuousLayoutDivider; } | 15,539 |
protected FocusListener createFocusListener() { return null; } | protected FocusListener createFocusListener() { return new FocusHandler(); } | 15,540 |
protected ActionListener createKeyboardDownRightListener() { return null; } | protected ActionListener createKeyboardDownRightListener() { return new KeyboardDownRightHandler(); } | 15,541 |
protected ActionListener createKeyboardEndListener() { return null; } | protected ActionListener createKeyboardEndListener() { return new KeyboardEndHandler(); } | 15,542 |
protected ActionListener createKeyboardHomeListener() { return null; } | protected ActionListener createKeyboardHomeListener() { return new KeyboardHomeHandler(); } | 15,543 |
protected ActionListener createKeyboardResizeToggleListener() { return null; } | protected ActionListener createKeyboardResizeToggleListener() { return new KeyboardResizeToggleHandler(); } | 15,544 |
protected ActionListener createKeyboardUpLeftListener() { return null; } | protected ActionListener createKeyboardUpLeftListener() { return new KeyboardUpLeftHandler(); } | 15,545 |
protected PropertyChangeListener createPropertyChangeListener() { return null; } | protected PropertyChangeListener createPropertyChangeListener() { return new PropertyHandler(); } | 15,546 |
public static ComponentUI createUI(JComponent c) { BasicSplitPaneUI newUI; newUI = new BasicSplitPaneUI(); newUI.installUI(c); return newUI; } | public static ComponentUI createUI(JComponent x) { BasicSplitPaneUI newUI; newUI = new BasicSplitPaneUI(); newUI.installUI(c); return newUI; } | 15,547 |
public static ComponentUI createUI(JComponent c) { BasicSplitPaneUI newUI; newUI = new BasicSplitPaneUI(); newUI.installUI(c); return newUI; } | public static ComponentUI createUI(JComponent c) { BasicSplitPaneUI newUI; newUI = new BasicSplitPaneUI(); newUI.installUI(c); return newUI; } | 15,548 |
protected int getDividerBorderSize() { return 0; } | protected int getDividerBorderSize() { if (getOrientation() == JSplitPane.HORIZONTAL_SPLIT) return divider.getBorder().getBorderInsets(divider).left; else return divider.getBorder().getBorderInsets(divider).top; } | 15,552 |
public int getDividerLocation(JSplitPane jc) { return 0; } | public int getDividerLocation(JSplitPane jc) { return layoutManager.sizes[0] + layoutManager.getInitialLocation(splitPane.getInsets()); } | 15,553 |
public Insets getInsets(JComponent jc) { return new Insets(0, 0, 0, 0); } | public Insets getInsets(JComponent jc) { return splitPane.getBorder().getBorderInsets(splitPane); } | 15,554 |
public int getLastDragLocation() { return 0; } | public int getLastDragLocation() { return lastDragLocation; } | 15,555 |
public int getMaximumDividerLocation(JSplitPane jc) { return 0; } | public int getMaximumDividerLocation(JSplitPane jc) { int value = layoutManager.getInitialLocation(jc.getInsets()) + layoutManager.getAvailableSize(jc.getSize(), jc.getInsets()) - splitPane.getDividerSize(); if (layoutManager.components[1] != null) value -= layoutManager.minimumSizeOfComponent(1); return value; ... | 15,556 |
public Dimension getMaximumSize(JComponent jc) { return null; } | public Dimension getMaximumSize(JComponent jc) { return layoutManager.maximumLayoutSize((Container) jc); } | 15,557 |
public int getMinimumDividerLocation(JSplitPane jc) { return 0; } | public int getMinimumDividerLocation(JSplitPane jc) { int value = layoutManager.getInitialLocation(jc.getInsets()); if (layoutManager.components[0] != null) value += layoutManager.minimumSizeOfComponent(0); return value; } | 15,558 |
public Dimension getMinimumSize(JComponent jc) { return null; } | public Dimension getMinimumSize(JComponent jc) { return layoutManager.minimumLayoutSize((Container) jc); } | 15,559 |
public Dimension getPreferredSize(JComponent jc) { return null; } | public Dimension getPreferredSize(JComponent jc) { return layoutManager.preferredLayoutSize((Container) jc); } | 15,560 |
public boolean isContinuousLayout() { return false; } | public boolean isContinuousLayout() { return splitPane.isContinuousLayout(); } | 15,564 |
public String toString() { StringBuffer buf = new StringBuffer(getClass().getName()); buf.append('['); buf.append("format="); buf.append(format); buf.append(']'); return buf.toString(); } | public String toString() { StringBuffer buf = new StringBuffer("number"); buf.append('['); buf.append("format="); buf.append(format); buf.append(']'); return buf.toString(); } | 15,575 |
public Position createPosition(final int offset) throws BadLocationException { if (offset < 0 || offset > length()) throw new BadLocationException("The offset was out of the bounds of this" + " buffer", offset); // We store the actual array index in the GapContentPosition. The real // offset i... | public Position createPosition(final int offset) throws BadLocationException { if (offset < 0 || offset > length()) throw new BadLocationException("The offset was out of the bounds of this" + " buffer", offset); // We store the actual array index in the GapContentPosition. The real // offset i... | 15,576 |
public UndoableEdit insertString(int where, String str) throws BadLocationException { // check arguments int length = length(); int strLen = str.length(); if (where >= length) throw new BadLocationException("the where argument cannot be greater" + " than the content length", where); ... | public UndoableEdit insertString(int where, String str) throws BadLocationException { // check arguments int length = length(); int strLen = str.length(); if (where >= length) throw new BadLocationException("the where argument cannot be greater" + " than the content length", where); ... | 15,577 |
boolean match(CharIndexed input, REMatch mymatch) { if (negative && (input.charAt(mymatch.index) == CharIndexed.OUT_OF_BOUNDS)) return false; REMatch newMatch = null; REMatch last = null; REToken tk; boolean isMatch; for (int i=0; i < options.size(); i++) { tk = (REToken) options.elementAt(i... | boolean match(CharIndexed input, REMatch mymatch) { if (negative && (input.charAt(mymatch.index) == CharIndexed.OUT_OF_BOUNDS)) return false; REMatch newMatch = null; REMatch last = null; REToken tk; boolean isMatch; for (int i=0; i < options.size(); i++) { tk = (REToken) options.elementAt(i... | 15,578 |
boolean match(CharIndexed input, REMatch mymatch) { if (negative && (input.charAt(mymatch.index) == CharIndexed.OUT_OF_BOUNDS)) return false; REMatch newMatch = null; REMatch last = null; REToken tk; boolean isMatch; for (int i=0; i < options.size(); i++) { tk = (REToken) options.elementAt(i... | boolean match(CharIndexed input, REMatch mymatch) { if (negative && (input.charAt(mymatch.index) == CharIndexed.OUT_OF_BOUNDS)) return false; REMatch newMatch = null; REMatch last = null; REToken tk; boolean isMatch; for (int i=0; i < options.size(); i++) { tk = (REToken) options.elementAt(i... | 15,579 |
protected Component getVisibleComponent() { return tabPane.getComponentAt(tabPane.getSelectedIndex()); } | protected Component getVisibleComponent() { return visibleComponent; } | 15,582 |
protected void setVisibleComponent(Component component) { component.setVisible(true); tabPane.setSelectedComponent(component); } | protected void setVisibleComponent(Component component) { component.setVisible(true); } visibleComponent = component; } | 15,583 |
public static ComponentUI createUI(JComponent component) { if (instance == null) instance = new MetalTextFieldUI(); return 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(); return instance; } | 15,584 |
public final void visit_dup2_x2() { if(countBytecode) { counters.getCounter("dup2_x2").inc(); } // Push all on the stack, since this opcode is just too complicated vstack.push(eContext); System.out.println("####### dup2_x2"); final Item v1 = vstack.pop1(); final Item v2 = vstack.pop1(); final int c1 = v1.get... | public final void visit_dup2_x2() { if(countBytecode) { counters.getCounter("dup2_x2").inc(); } // Push all on the stack, since this opcode is just too complicated vstack.push(eContext); System.out.println("####### dup2_x2"); final Item v1 = vstack.pop1(); final Item v2 = vstack.pop1(); final int c1 = v1.get... | 15,586 |
public final void visit_dup2_x2() { if(countBytecode) { counters.getCounter("dup2_x2").inc(); } // Push all on the stack, since this opcode is just too complicated vstack.push(eContext); System.out.println("####### dup2_x2"); final Item v1 = vstack.pop1(); final Item v2 = vstack.pop1(); final int c1 = v1.get... | public final void visit_dup2_x2() { if(countBytecode) { counters.getCounter("dup2_x2").inc(); } // Push all on the stack, since this opcode is just too complicated vstack.push(eContext); vstack.push(eContext); System.out.println("NEW dup2_x2"); final Item v1 = vstack.pop1(); final Item v2 = vstack.pop1(); fin... | 15,587 |
public final void visit_dup2_x2() { if(countBytecode) { counters.getCounter("dup2_x2").inc(); } // Push all on the stack, since this opcode is just too complicated vstack.push(eContext); System.out.println("####### dup2_x2"); final Item v1 = vstack.pop1(); final Item v2 = vstack.pop1(); final int c1 = v1.get... | public final void visit_dup2_x2() { if(countBytecode) { counters.getCounter("dup2_x2").inc(); } // Push all on the stack, since this opcode is just too complicated vstack.push(eContext); System.out.println("####### dup2_x2"); final Item v1 = vstack.pop1(); final Item v2 = vstack.pop1(); final int c1 = v1.get... | 15,588 |
public final void visit_dup2_x2() { if(countBytecode) { counters.getCounter("dup2_x2").inc(); } // Push all on the stack, since this opcode is just too complicated vstack.push(eContext); System.out.println("####### dup2_x2"); final Item v1 = vstack.pop1(); final Item v2 = vstack.pop1(); final int c1 = v1.get... | public final void visit_dup2_x2() { if(countBytecode) { counters.getCounter("dup2_x2").inc(); } // Push all on the stack, since this opcode is just too complicated vstack.push(eContext); System.out.println("####### dup2_x2"); final Item v1 = vstack.pop1(); final Item v2 = vstack.pop1(); final int c1 = v1.get... | 15,589 |
public final void visit_dup2_x2() { if(countBytecode) { counters.getCounter("dup2_x2").inc(); } // Push all on the stack, since this opcode is just too complicated vstack.push(eContext); System.out.println("####### dup2_x2"); final Item v1 = vstack.pop1(); final Item v2 = vstack.pop1(); final int c1 = v1.get... | public final void visit_dup2_x2() { if(countBytecode) { counters.getCounter("dup2_x2").inc(); } // Push all on the stack, since this opcode is just too complicated vstack.push(eContext); System.out.println("####### dup2_x2"); final Item v1 = vstack.pop1(); final Item v2 = vstack.pop1(); final int c1 = v1.get... | 15,590 |
public final void visit_dup2_x2() { if(countBytecode) { counters.getCounter("dup2_x2").inc(); } // Push all on the stack, since this opcode is just too complicated vstack.push(eContext); System.out.println("####### dup2_x2"); final Item v1 = vstack.pop1(); final Item v2 = vstack.pop1(); final int c1 = v1.get... | public final void visit_dup2_x2() { if(countBytecode) { counters.getCounter("dup2_x2").inc(); } // Push all on the stack, since this opcode is just too complicated vstack.push(eContext); System.out.println("####### dup2_x2"); final Item v1 = vstack.pop1(); final Item v2 = vstack.pop1(); final int c1 = v1.get... | 15,591 |
protected final void deregister (AbstractSelectionKey key) { cancelledKeys ().remove (key); } | protected final void deregister (AbstractSelectionKey key) { ((AbstractSelectableChannel) key.channel()).removeSelectionKey(key); } | 15,593 |
private static ClassLoader getClassLoader (String codebases) throws MalformedURLException { ClassLoader loader; CacheKey loaderKey = new CacheKey (codebases, Thread.currentThread().getContextClassLoader()); loader = (ClassLoader) cacheLoaders.get (loaderKey); if (loader == null) { ... | public static ClassLoader getClassLoader (String codebases) throws MalformedURLException { ClassLoader loader; CacheKey loaderKey = new CacheKey (codebases, Thread.currentThread().getContextClassLoader()); loader = (ClassLoader) cacheLoaders.get (loaderKey); if (loader == null) { ... | 15,594 |
public boolean matches(Node node, int pos, int len) { switch (node.getNodeType()) { case Node.ATTRIBUTE_NODE: // Do not match namespace attributes String uri = node.getNamespaceURI(); if (XMLConstants.XMLNS_ATTRIBUTE_NS_URI.equals(uri) || XMLConstants.XMLNS_ATTRIBUTE.equa... | public boolean matches(Node node, int pos, int len) { switch (node.getNodeType()) { case Node.ATTRIBUTE_NODE: // Do not match namespace attributes String uri = node.getNamespaceURI(); if (XMLConstants.XMLNS_ATTRIBUTE_NS_URI.equals(uri) || XMLConstants.XMLNS_ATTRIBUTE.equa... | 15,596 |
public boolean matches(Node node, int pos, int len) { switch (node.getNodeType()) { case Node.ATTRIBUTE_NODE: // Do not match namespace attributes String uri = node.getNamespaceURI(); if (XMLConstants.XMLNS_ATTRIBUTE_NS_URI.equals(uri) || XMLConstants.XMLNS_ATTRIBUTE.equa... | public boolean matches(Node node, int pos, int len) { switch (node.getNodeType()) { case Node.ATTRIBUTE_NODE: // Do not match namespace attributes String uri = node.getNamespaceURI(); if (XMLConstants.XMLNS_ATTRIBUTE_NS_URI.equals(uri) || XMLConstants.XMLNS_ATTRIBUTE.equa... | 15,597 |
public void _write_no_endian(cdrOutput out) { try { // Write repository id. out.write_string(Id); // Always one profile. out.write_long(1); // It is the Internet profile. out.write_long(Internet_profile.TAG_INTERNET_IOP); // Need to write the Internet profile ... | public void _write_no_endian(cdrOutput out) { try { // Write repository id. out.write_string(Id); // Always one profile. out.write_long(1); // It is the Internet profile. out.write_long(Internet_profile.TAG_INTERNET_IOP); // Need to write the Internet profile ... | 15,598 |
public int previous () { if (iter.getIndex() == iter.getBeginIndex()) return DONE; int start = iter.getBeginIndex(); while (iter.getIndex() >= iter.getBeginIndex()) { char c = iter.previous(); if (c == CharacterIterator.DONE) break; int type = Character.getType(c); if (type != Character.NON_SP... | public int previous () { if (iter.getIndex() == iter.getBeginIndex()) return DONE; while (iter.getIndex() >= iter.getBeginIndex()) { char c = iter.previous(); if (c == CharacterIterator.DONE) break; int type = Character.getType(c); if (type != Character.NON_SPACING_MARK && ! isLowSurrogat... | 15,599 |
public String getUIClassID() { //Returns a string that specifies the name of the L&F class that renders this component. return "JButton"; } | public String getUIClassID() { //Returns a string that specifies the name of the L&F class that renders this component. return "JButton"; } | 15,600 |
public void menuSelectionChanged(boolean changed) { if (! changed) setVisible(false); } | public void menuSelectionChanged(boolean changed) { if (invoker instanceof JMenu) { JMenu menu = (JMenu) invoker; menu.setPopupMenuVisible(changed); } else if (! changed) setVisible(false); } | 15,601 |
public void setVisible(final boolean visible) { // Hook up this call so that it gets executed on the event thread in order // to avoid synchronization problems when calling the layout manager. if (! SwingUtilities.isEventDispatchThread()) { SwingUtilities.invokeLater(new Runnable() { ... | public void setVisible(final boolean visible) { // Hook up this call so that it gets executed on the event thread in order // to avoid synchronization problems when calling the layout manager. if (! SwingUtilities.isEventDispatchThread()) { SwingUtilities.invokeLater(new Runnable() { ... | 15,602 |
public void setVisible(final boolean visible) { // Hook up this call so that it gets executed on the event thread in order // to avoid synchronization problems when calling the layout manager. if (! SwingUtilities.isEventDispatchThread()) { SwingUtilities.invokeLater(new Runnable() { ... | public void setVisible(final boolean visible) { // Hook up this call so that it gets executed on the event thread in order // to avoid synchronization problems when calling the layout manager. if (! SwingUtilities.isEventDispatchThread()) { SwingUtilities.invokeLater(new Runnable() { ... | 15,603 |
public void setVisible(final boolean visible) { // Hook up this call so that it gets executed on the event thread in order // to avoid synchronization problems when calling the layout manager. if (! SwingUtilities.isEventDispatchThread()) { SwingUtilities.invokeLater(new Runnable() { ... | public void setVisible(final boolean visible) { // Hook up this call so that it gets executed on the event thread in order // to avoid synchronization problems when calling the layout manager. if (! SwingUtilities.isEventDispatchThread()) { SwingUtilities.invokeLater(new Runnable() { ... | 15,604 |
protected void fireStateChanged() { Object[] changeListeners = changeListenerList.getListenerList(); if (changeEvent == null) changeEvent = new ChangeEvent(this); for (int i = changeListeners.length - 2; i >= 0; i -= 2) { if (changeListeners[i] == ChangeListener.class) ((ChangeListener) changeLi... | protected void fireStateChanged() { Object[] changeListeners = listenerList.getListenerList(); if (changeEvent == null) changeEvent = new ChangeEvent(this); for (int i = changeListeners.length - 2; i >= 0; i -= 2) { if (changeListeners[i] == ChangeListener.class) ((ChangeListener) changeListener... | 15,606 |
void startSigning() throws IOException { if (this.state != READY) throw new IllegalStateException("Helper is NOT ready"); Manifest oldManifest = jar.getManifest(); this.manifest = oldManifest == null ? new Manifest() : new Manifest(oldManifest); this.sfMainAttr... | void startSigning() throws IOException { if (this.state != READY) throw new IllegalStateException(Messages.getString("SFHelper.9")); Manifest oldManifest = jar.getManifest(); this.manifest = oldManifest == null ? new Manifest() : new Manifest(oldManifest); this... | 15,607 |
void updateEntry(JarEntry entry) throws IOException { if (this.state != STARTED) throw new IllegalStateException("Helper is NOT started"); String name = entry.getName(); InputStream jeis = jar.getInputStream(entry); String hash = util.hashStream(jeis); log.finer("Hash of " + name + " = " + ... | void updateEntry(JarEntry entry) throws IOException { if (this.state != STARTED) throw new IllegalStateException(Messages.getString("SFHelper.10")); String name = entry.getName(); InputStream jeis = jar.getInputStream(entry); String hash = util.hashStream(jeis); log.finer("Hash of " + name ... | 15,608 |
void finishSigning(boolean sectionsOnly) throws IOException { if (state != STARTED) throw new IllegalStateException("Helper is NOT started"); if (sectionsOnly) return; ByteArrayOutputStream baos = new ByteArrayOutputStream(); manifest.write(baos); baos.flush(); String manifestHash = util.... | void finishSigning(boolean sectionsOnly) throws IOException { if (state != STARTED) throw new IllegalStateException(Messages.getString("SFHelper.10")); if (sectionsOnly) return; ByteArrayOutputStream baos = new ByteArrayOutputStream(); manifest.write(baos); baos.flush(); String manifestHa... | 15,609 |
void writeSF(JarOutputStream jar) throws IOException { if (this.state != FINISHED) throw new IllegalStateException("Helper is NOT finished"); ByteArrayOutputStream baos = new ByteArrayOutputStream(); JarUtils.writeSFManifest(sfMainAttributes, sfEntries, baos); sfBytes = baos.toByteArray(); log.fi... | void writeSF(JarOutputStream jar) throws IOException { if (this.state != FINISHED) throw new IllegalStateException(Messages.getString("SFHelper.1")); ByteArrayOutputStream baos = new ByteArrayOutputStream(); JarUtils.writeSFManifest(sfMainAttributes, sfEntries, baos); sfBytes = baos.toByteArray(); ... | 15,610 |
void writeDSA(JarOutputStream jar, PrivateKey signerKey, Certificate[] certificates, boolean internalSF) throws IOException, CertificateEncodingException, CRLException { if (this.state != SF_GENERATED) throw new IllegalStateException(".SF file has NOT been generated"); log.finest("+++ ... | void writeDSA(JarOutputStream jar, PrivateKey signerKey, Certificate[] certificates, boolean internalSF) throws IOException, CertificateEncodingException, CRLException { if (this.state != SF_GENERATED) throw new IllegalStateException(Messages.getString("SFHelper.4")); log.finest("+++ s... | 15,611 |
void writeDSA(JarOutputStream jar, PrivateKey signerKey, Certificate[] certificates, boolean internalSF) throws IOException, CertificateEncodingException, CRLException { if (this.state != SF_GENERATED) throw new IllegalStateException(".SF file has NOT been generated"); log.finest("+++ ... | void writeDSA(JarOutputStream jar, PrivateKey signerKey, Certificate[] certificates, boolean internalSF) throws IOException, CertificateEncodingException, CRLException { if (this.state != SF_GENERATED) throw new IllegalStateException(".SF file has NOT been generated"); log.finest("+++ ... | 15,612 |
public JNodeFrameBufferDevice(Device device) { this.device = device; device.addListener(this); try { this.api = (FrameBufferAPI)device.getAPI(FrameBufferAPI.class); } catch (ApiNotFoundException ex) { throw new IllegalArgumentException("Not a FrameBuffer device", ex); } final FrameBufferConfiguration[] fbCon... | public JNodeFrameBufferDevice(Device device) { this.device = device; device.addListener(this); try { this.api = (FrameBufferAPI)device.getAPI(FrameBufferAPI.class); } catch (ApiNotFoundException ex) { throw new IllegalArgumentException("Not a FrameBuffer device " + device.getId()); } final FrameBufferConfigu... | 15,613 |
public void layoutContainer(Container parent) { if (parent != container) throw new AWTError("invalid parent"); Dimension size = parent.getSize(); Insets insets = parent.getInsets(); Dimension innerSize = new Dimension(size.width - insets.left - insets.right... | public void layoutContainer(Container parent) { if (parent != container) throw new AWTError("invalid parent"); Dimension size = parent.getSize(); Insets insets = parent.getInsets(); Dimension innerSize = new Dimension(size.width - insets.left - insets.right... | 15,614 |
public void layoutContainer(Container parent) { if (parent != container) throw new AWTError("invalid parent"); Dimension size = parent.getSize(); Insets insets = parent.getInsets(); Dimension innerSize = new Dimension(size.width - insets.left - insets.right... | public void layoutContainer(Container parent) { if (parent != container) throw new AWTError("invalid parent"); Dimension size = parent.getSize(); Insets insets = parent.getInsets(); Dimension innerSize = new Dimension(size.width - insets.left - insets.right... | 15,615 |
public void layoutContainer(Container parent) { if (parent != container) throw new AWTError("invalid parent"); Dimension size = parent.getSize(); Insets insets = parent.getInsets(); Dimension innerSize = new Dimension(size.width - insets.left - insets.right... | public void layoutContainer(Container parent) { if (parent != container) throw new AWTError("invalid parent"); Dimension size = parent.getSize(); Insets insets = parent.getInsets(); Dimension innerSize = new Dimension(size.width - insets.left - insets.right... | 15,616 |
public void layoutContainer(Container parent) { if (parent != container) throw new AWTError("invalid parent"); Dimension size = parent.getSize(); Insets insets = parent.getInsets(); Dimension innerSize = new Dimension(size.width - insets.left - insets.right... | public void layoutContainer(Container parent) { if (parent != container) throw new AWTError("invalid parent"); Dimension size = parent.getSize(); Insets insets = parent.getInsets(); Dimension innerSize = new Dimension(size.width - insets.left - insets.right... | 15,617 |
public void layoutContainer(Container parent) { if (parent != container) throw new AWTError("invalid parent"); Dimension size = parent.getSize(); Insets insets = parent.getInsets(); Dimension innerSize = new Dimension(size.width - insets.left - insets.right... | public void layoutContainer(Container parent) { if (parent != container) throw new AWTError("invalid parent"); Dimension size = parent.getSize(); Insets insets = parent.getInsets(); Dimension innerSize = new Dimension(size.width - insets.left - insets.right... | 15,618 |
public void layoutContainer(Container parent) { if (parent != container) throw new AWTError("invalid parent"); Dimension size = parent.getSize(); Insets insets = parent.getInsets(); Dimension innerSize = new Dimension(size.width - insets.left - insets.right... | public void layoutContainer(Container parent) { if (parent != container) throw new AWTError("invalid parent"); Dimension size = parent.getSize(); Insets insets = parent.getInsets(); Dimension innerSize = new Dimension(size.width - insets.left - insets.right... | 15,619 |
public void layoutContainer(Container parent) { if (parent != container) throw new AWTError("invalid parent"); Dimension size = parent.getSize(); Insets insets = parent.getInsets(); Dimension innerSize = new Dimension(size.width - insets.left - insets.right... | public void layoutContainer(Container parent) { if (parent != container) throw new AWTError("invalid parent"); Dimension size = parent.getSize(); Insets insets = parent.getInsets(); Dimension innerSize = new Dimension(size.width - insets.left - insets.right... | 15,620 |
public void layoutContainer(Container parent) { if (parent != container) throw new AWTError("invalid parent"); Dimension size = parent.getSize(); Insets insets = parent.getInsets(); Dimension innerSize = new Dimension(size.width - insets.left - insets.right... | public void layoutContainer(Container parent) { if (parent != container) throw new AWTError("invalid parent"); Dimension size = parent.getSize(); Insets insets = parent.getInsets(); Dimension innerSize = new Dimension(size.width - insets.left - insets.right... | 15,621 |
public void componentResized(ComponentEvent ev) { // According to some tests that I did with Sun's implementation // this class is supposed to make sure that the view component // is not resized to a larger size than the viewport. // This is not documented anywhere. What I did is: I subclasse... | public void componentResized(ComponentEvent ev) { // According to some tests that I did with Sun's implementation // this class is supposed to make sure that the view component // is not resized to a larger size than the viewport. // This is not documented anywhere. What I did is: I subclasse... | 15,622 |
public JViewport() { setOpaque(true); setScrollMode(BLIT_SCROLL_MODE); setLayout(createLayoutManager()); updateUI(); lastPaintPosition = new Point(); cachedBlitFrom = new Point(); cachedBlitTo = new Point(); cachedBlitSize = new Dimension(); cachedBlitPaint = new Rectangle(); } | public JViewport() { setOpaque(true); setScrollMode(BLIT_SCROLL_MODE); setLayout(createLayoutManager()); lastPaintPosition = new Point(); cachedBlitFrom = new Point(); cachedBlitTo = new Point(); cachedBlitSize = new Dimension(); cachedBlitPaint = new Rectangle(); } | 15,623 |
void paintBackingStore(Graphics g) { // If we have no backing store image yet or the size of the component has // changed, we need to rebuild the backing store. if (backingStoreImage == null || damaged) { backingStoreImage = createImage(getWidth(), getHeight()); Graphics g2 = backingStore... | void paintBackingStore(Graphics g) { // If we have no backing store image yet or the size of the component has // changed, we need to rebuild the backing store. if (backingStoreImage == null || sizeChanged) { backingStoreImage = createImage(getWidth(), getHeight()); Graphics g2 = backingS... | 15,624 |
public void reshape(int x, int y, int w, int h) { damaged = true; boolean changed = (x != getX()) || (y != getY()) || (w != getWidth()) || (h != getHeight()); super.reshape(x, y, w, h); if (changed) fireStateChanged(); } | public void reshape(int x, int y, int w, int h) { boolean changed = (x != getX()) || (y != getY()) || (w != getWidth()) || (h != getHeight()); super.reshape(x, y, w, h); if (changed) fireStateChanged(); } | 15,626 |
public void setView(Component v) { while (getComponentCount() > 0) { if (viewListener != null) getView().removeComponentListener(viewListener); remove(0); } if (v != null) { if (viewListener == null) viewListener = createViewListener(); v.addComponentL... | public void setView(Component v) { while (getComponentCount() > 0) { if (viewListener != null) getView().removeComponentListener(viewListener); } if (v != null) { if (viewListener == null) viewListener = createViewListener(); v.addComponentListener(vi... | 15,628 |
PasswordAuthentication(String username, char[] password){ this.username = username; this.password = password;} | PasswordAuthentication(String username, char[] password){ this.username = username; this.password = password;} | 15,632 |
getPassword(){ return(password);} | getPassword(){ return(password);} | 15,633 |
getUserName(){ return(username);} | getUserName(){ return(username);} | 15,634 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.