bugged stringlengths 6 599k | fixed stringlengths 10 599k | __index_level_0__ int64 0 1.13M |
|---|---|---|
public void updateUI() { setUI((ColorChooserUI) UIManager.getUI(this)); revalidate(); } // updateUI() | public void updateUI() { setUI((ColorChooserUI) UIManager.getUI(this)); revalidate(); } // updateUI() | 22,276 |
protected void changeState(int stateflag, boolean b) { int oldstate = stateMask; int newstate; if (b) newstate = oldstate | stateflag; else newstate = oldstate & ~stateflag; if (oldstate == newstate) return; if ((stateflag != SELECTED) && (stateflag != ENABLED) && (s... | protected void changeState(int stateflag, boolean b) { int oldstate = stateMask; int newstate; if (b) newstate = oldstate | stateflag; else newstate = oldstate & ~stateflag; if (oldstate == newstate) return; if ((stateflag != SELECTED) && (stateflag != ENABLED) && (s... | 22,277 |
public void fireActionPerformed(ActionEvent e) { EventListener[] ll = listenerList.getListeners(ActionListener.class); for (int i = 0; i < ll.length; i++) ((ActionListener)ll[i]).actionPerformed(e); } | public void fireActionPerformed(ActionEvent e) { ActionListener[] ll = getActionListeners(); for (int i = 0; i < ll.length; i++) ((ActionListener)ll[i]).actionPerformed(e); } | 22,278 |
public void fireActionPerformed(ActionEvent e) { EventListener[] ll = listenerList.getListeners(ActionListener.class); for (int i = 0; i < ll.length; i++) ((ActionListener)ll[i]).actionPerformed(e); } | public void fireActionPerformed(ActionEvent e) { EventListener[] ll = listenerList.getListeners(ActionListener.class); for (int i = 0; i < ll.length; i++) ll[i].actionPerformed(e); } | 22,279 |
public void fireItemStateChanged(ItemEvent e) { EventListener[] ll = listenerList.getListeners(ItemListener.class); for (int i = 0; i < ll.length; i++) ((ItemListener)ll[i]).itemStateChanged(e); } | public void fireItemStateChanged(ItemEvent e) { ItemListener[] ll = getItemListeners(); for (int i = 0; i < ll.length; i++) ((ItemListener)ll[i]).itemStateChanged(e); } | 22,280 |
public void fireItemStateChanged(ItemEvent e) { EventListener[] ll = listenerList.getListeners(ItemListener.class); for (int i = 0; i < ll.length; i++) ((ItemListener)ll[i]).itemStateChanged(e); } | public void fireItemStateChanged(ItemEvent e) { EventListener[] ll = listenerList.getListeners(ItemListener.class); for (int i = 0; i < ll.length; i++) ll[i].itemStateChanged(e); } | 22,281 |
public void fireStateChanged(ChangeEvent e) { EventListener[] ll = listenerList.getListeners(ChangeListener.class); for (int i = 0; i < ll.length; i++) ((ChangeListener)ll[i]).stateChanged(e); } | public void fireStateChanged() { EventListener[] ll = listenerList.getListeners(ChangeListener.class); for (int i = 0; i < ll.length; i++) ((ChangeListener)ll[i]).stateChanged(e); } | 22,282 |
public void fireStateChanged(ChangeEvent e) { EventListener[] ll = listenerList.getListeners(ChangeListener.class); for (int i = 0; i < ll.length; i++) ((ChangeListener)ll[i]).stateChanged(e); } | public void fireStateChanged(ChangeEvent e) { ChangeListener[] ll = getChangeListeners(); for (int i = 0; i < ll.length; i++) ((ChangeListener)ll[i]).stateChanged(e); } | 22,283 |
public void fireStateChanged(ChangeEvent e) { EventListener[] ll = listenerList.getListeners(ChangeListener.class); for (int i = 0; i < ll.length; i++) ((ChangeListener)ll[i]).stateChanged(e); } | public void fireStateChanged(ChangeEvent e) { EventListener[] ll = listenerList.getListeners(ChangeListener.class); for (int i = 0; i < ll.length; i++) ll[i].stateChanged(changeEvent); } | 22,284 |
public void setActionCommand(String s) { if (actionCommand != s) { actionCommand = s; fireStateChanged(changeEvent); } } | public void setActionCommand(String s) { if (actionCommand != s) { actionCommand = s; fireStateChanged(); } } | 22,285 |
public void setGroup(ButtonGroup g) { if (group != g) { group = g; fireStateChanged(changeEvent); } } | public void setGroup(ButtonGroup g) { if (group != g) { group = g; fireStateChanged(); } } | 22,286 |
public void setMnemonic(int key) { if (mnemonic != key) { mnemonic = key; fireStateChanged(changeEvent); } } | public void setMnemonic(int key) { if (mnemonic != key) { mnemonic = key; fireStateChanged(); } } | 22,287 |
static private Icon currentIcon(AbstractButton b) { Icon i = b.getIcon(); ButtonModel model = b.getModel(); if (model.isPressed() && b.getPressedIcon() != null) i = b.getPressedIcon(); else if (model.isRollover()) { if (b.isSelected() && b.getRolloverSelectedIcon() != null) i = ... | private static Icon currentIcon(AbstractButton b) { Icon i = b.getIcon(); ButtonModel model = b.getModel(); if (model.isPressed() && b.getPressedIcon() != null) i = b.getPressedIcon(); else if (model.isRollover()) { if (b.isSelected() && b.getRolloverSelectedIcon() != null) i = ... | 22,288 |
public GnuDHPublicKey(BigInteger q, BigInteger p, BigInteger g, BigInteger y) { super(q, p, g); this.y = y; } | public GnuDHPublicKey(BigInteger q, BigInteger p, BigInteger g, BigInteger y) { super(q, p, g); this.y = y; } | 22,289 |
private void readSignatures() throws IOException { Map pkcs7Dsa = new HashMap(); Map pkcs7Rsa = new HashMap(); Map sigFiles = new HashMap(); // Phase 1: Read all signature files. These contain the user // certificates as well as the signatures themselves. for (Enumeration e = super.entries(); e.has... | void readSignatures() throws IOException { Map pkcs7Dsa = new HashMap(); Map pkcs7Rsa = new HashMap(); Map sigFiles = new HashMap(); // Phase 1: Read all signature files. These contain the user // certificates as well as the signatures themselves. for (Enumeration e = super.entries(); e.hasMoreElem... | 22,290 |
public void installUI(final JComponent c) { super.installUI(c); c.setOpaque(true); textComponent = (JTextComponent) c; Document doc = textComponent.getDocument(); if (doc == null) { doc = getEditorKit(textComponent).createDefaultDocument(); textComponent.setDocument(doc); } installDefault... | public void installUI(final JComponent c) { super.installUI(c); textComponent = (JTextComponent) c; Document doc = textComponent.getDocument(); if (doc == null) { doc = getEditorKit(textComponent).createDefaultDocument(); textComponent.setDocument(doc); } installDefaults(); installLis... | 22,291 |
public void append(byte[] src, int srcOffset, int length) { if (next != null) { next.append(src, srcOffset, length); } else { final int dstOffset = start + size; setSize(size + length); System.arraycopy(src, srcOffset, data, dstOffset, length); } testBuffer(); } | public void append(int count) { if (next != null) { next.append(src, srcOffset, length); } else { final int dstOffset = start + size; setSize(size + length); System.arraycopy(src, srcOffset, data, dstOffset, length); } testBuffer(); } | 22,292 |
public void append(byte[] src, int srcOffset, int length) { if (next != null) { next.append(src, srcOffset, length); } else { final int dstOffset = start + size; setSize(size + length); System.arraycopy(src, srcOffset, data, dstOffset, length); } testBuffer(); } | public void append(byte[] src, int srcOffset, int length) { if (next != null) { next.append(count); } else { final int dstOffset = start + size; setSize(size + length); System.arraycopy(src, srcOffset, data, dstOffset, length); } testBuffer(); } | 22,293 |
public void append(byte[] src, int srcOffset, int length) { if (next != null) { next.append(src, srcOffset, length); } else { final int dstOffset = start + size; setSize(size + length); System.arraycopy(src, srcOffset, data, dstOffset, length); } testBuffer(); } | public void append(byte[] src, int srcOffset, int length) { if (next != null) { next.append(src, srcOffset, length); } else { final int dstOffset = start + size; setSize(size + length); System.arraycopy(src, srcOffset, data, dstOffset, length); } testBuffer(); } | 22,294 |
private static final void checkPermission() { SecurityManager sm = System.getSecurityManager(); if (sm != null) sm.checkPermission(new ReflectPermission("suppressAccessChecks")); } | private static void checkPermission() { SecurityManager sm = System.getSecurityManager(); if (sm != null) sm.checkPermission(new ReflectPermission("suppressAccessChecks")); } | 22,295 |
BoxPainter(AttributeSet as) { Length l = (Length) as.getAttribute(CSS.Attribute.MARGIN_LEFT); if (l != null) leftInset = l.getValue(); l = (Length) as.getAttribute(CSS.Attribute.MARGIN_RIGHT); if (l != null) rightInset = l.getValue(); l = (Length) as.getAttribute(CSS.Attrib... | BoxPainter(AttributeSet as, StyleSheet ss) { Length l = (Length) as.getAttribute(CSS.Attribute.MARGIN_LEFT); if (l != null) leftInset = l.getValue(); l = (Length) as.getAttribute(CSS.Attribute.MARGIN_RIGHT); if (l != null) rightInset = l.getValue(); l = (Length) as.getAttri... | 22,296 |
public void declaration(String property, String value) { for (int i = 0; i < selector.length; i++) { CSSStyle style = (CSSStyle) css.get(selector[i]); if (style == null) { style = new CSSStyle(); css.put(selector[i], style); } ... | public void declaration(String property, String value) { for (int i = 0; i < selector.length; i++) { CSSStyle style = (CSSStyle) css.get(selector[i]); if (style == null) { style = new CSSStyle(); css.put(selector[i], style); } ... | 22,300 |
public void endStatement() { selector = null; } | public void endStatement() { for (int i = 0; i < styles.length; i++) css.add(styles[i]); styles = null; } | 22,301 |
public void startStatement(String sel) { StringTokenizer tokens = new StringTokenizer(sel); selector = new String[tokens.countTokens()]; for (int index = 0; tokens.hasMoreTokens(); index++) selector[index] = tokens.nextToken(); } | public void startStatement(Selector[] sel) { StringTokenizer tokens = new StringTokenizer(sel); selector = new String[tokens.countTokens()]; for (int index = 0; tokens.hasMoreTokens(); index++) selector[index] = tokens.nextToken(); } | 22,302 |
public void startStatement(String sel) { StringTokenizer tokens = new StringTokenizer(sel); selector = new String[tokens.countTokens()]; for (int index = 0; tokens.hasMoreTokens(); index++) selector[index] = tokens.nextToken(); } | public void startStatement(String sel) { StringTokenizer tokens = new StringTokenizer(sel); selector = new String[tokens.countTokens()]; for (int index = 0; tokens.hasMoreTokens(); index++) selector[index] = tokens.nextToken(); } | 22,303 |
ListPainter(AttributeSet as) { this.as = as; } | ListPainter(AttributeSet as, StyleSheet ss) { this.as = as; } | 22,304 |
ListPainter(AttributeSet as) { this.as = as; } | ListPainter(AttributeSet as) { attributes = as; styleSheet = ss; type = (String) as.getAttribute(CSS.Attribute.LIST_STYLE_TYPE); } | 22,305 |
public void addRule(String rule) throws NotImplementedException { // FIXME: Implement. } | public void addRule(String rule) { // FIXME: Implement. } | 22,308 |
public void addStyleSheet(StyleSheet ss) { if (styleSheet == null) styleSheet = new StyleSheet[] {ss}; else System.arraycopy(new StyleSheet[] {ss}, 0, styleSheet, styleSheet.length, 1); } | public void addStyleSheet(StyleSheet ss) { if (styleSheet == null) styleSheet = new StyleSheet[] {ss}; else System.arraycopy(new StyleSheet[] {ss}, 0, styleSheet, styleSheet.length, 1); } | 22,310 |
public BoxPainter getBoxPainter(AttributeSet a) { return new BoxPainter(a); } | public BoxPainter getBoxPainter(AttributeSet a) { return new BoxPainter(a, this); } | 22,311 |
public Font getFont(AttributeSet a) { FontSize size = (FontSize) a.getAttribute(CSS.Attribute.FONT_SIZE); int realSize = 12; if (size != null) realSize = size.getValue(); // Decrement size for subscript and superscript. Object valign = a.getAttribute(CSS.Attribute.VERTICAL_ALIGN); if (valign !... | public Font getFont(AttributeSet a) { FontSize size = (FontSize) a.getAttribute(CSS.Attribute.FONT_SIZE); int realSize = 12; if (size != null) realSize = size.getValue(); // Decrement size for subscript and superscript. Object valign = a.getAttribute(CSS.Attribute.VERTICAL_ALIGN); if (valign !... | 22,312 |
public ListPainter getListPainter(AttributeSet a) { return new ListPainter(a); } | public ListPainter getListPainter(AttributeSet a) { return new ListPainter(a, this); } | 22,313 |
public Style getRule(HTML.Tag t, Element e) { // Create list of the element and all of its parents, starting // with the bottommost element. ArrayList path = new ArrayList(); Element el; AttributeSet atts; for (el = e; el != null; el = el.getParentElement()) path.add(el); // Create fully qu... | public Style getRule(HTML.Tag t, Element e) { // Create list of the element and all of its parents, starting // with the bottommost element. ArrayList path = new ArrayList(); Element el; AttributeSet atts; for (el = e; el != null; el = el.getParentElement()) path.add(el); // Create fully qu... | 22,314 |
public StyleSheet[] getStyleSheets() { return styleSheet; } | public StyleSheet[] getStyleSheets() { StyleSheet[] linkedSS; if (linked != null) { linkedSS = new StyleSheet[linked.size()]; linkedSS = (StyleSheet[]) linked.toArray(linkedSS); } else { linkedSS = null; } return linkedSS; } | 22,316 |
public void loadRules(Reader in, URL ref) throws IOException { CSSStyleSheetParserCallback cb = new CSSStyleSheetParserCallback(); // FIXME: Handle ref. CSSParser parser = new CSSParser(in, cb); parser.parse(); } | public void loadRules(Reader in, URL ref) throws IOException { CSSStyleSheetParserCallback cb = new CSSStyleSheetParserCallback(CSSStyle.PREC_UA); // FIXME: Handle ref. CSSParser parser = new CSSParser(in, cb); parser.parse(); } | 22,318 |
public void removeStyleSheet(StyleSheet ss) { if (styleSheet.length == 1 && styleSheet[0].equals(ss)) styleSheet = null; else { for (int i = 0; i < styleSheet.length; i++) { StyleSheet curr = styleSheet[i]; if (curr.equals(ss)) { Style... | public void removeStyleSheet(StyleSheet ss) { if (styleSheet.length == 1 && styleSheet[0].equals(ss)) styleSheet = null; else { for (int i = 0; i < styleSheet.length; i++) { StyleSheet curr = styleSheet[i]; if (curr.equals(ss)) { Style... | 22,319 |
public void removeStyleSheet(StyleSheet ss) { if (styleSheet.length == 1 && styleSheet[0].equals(ss)) styleSheet = null; else { for (int i = 0; i < styleSheet.length; i++) { StyleSheet curr = styleSheet[i]; if (curr.equals(ss)) { Style... | public void removeStyleSheet(StyleSheet ss) { if (styleSheet.length == 1 && styleSheet[0].equals(ss)) styleSheet = null; else { for (int i = 0; i < styleSheet.length; i++) { StyleSheet curr = styleSheet[i]; if (curr.equals(ss)) { Style... | 22,320 |
private Style resolveStyle(String selector, List path, HTML.Tag tag) { int count = path.size(); String[] tags = new String[count]; String[] ids = new String[count]; String[] classes = new String[count]; for (int i = 0; i < count; i++) { Element el = (Element) path.get(i); AttributeS... | private Style resolveStyle(String selector, List path, HTML.Tag tag) { int count = path.size(); String[] tags = new String[count]; String[] ids = new String[count]; String[] classes = new String[count]; for (int i = 0; i < count; i++) { Element el = (Element) path.get(i); AttributeS... | 22,321 |
private Style resolveStyle(String selector, List path, HTML.Tag tag) { int count = path.size(); String[] tags = new String[count]; String[] ids = new String[count]; String[] classes = new String[count]; for (int i = 0; i < count; i++) { Element el = (Element) path.get(i); AttributeS... | private Style resolveStyle(String selector, List path, HTML.Tag tag) { int count = path.size(); String[] tags = new String[count]; String[] ids = new String[count]; String[] classes = new String[count]; for (int i = 0; i < count; i++) { Element el = (Element) path.get(i); AttributeS... | 22,322 |
private Style resolveStyle(String selector, List path, HTML.Tag tag) { int count = path.size(); String[] tags = new String[count]; String[] ids = new String[count]; String[] classes = new String[count]; for (int i = 0; i < count; i++) { Element el = (Element) path.get(i); AttributeS... | private Style resolveStyle(String selector, List path, HTML.Tag tag) { int count = path.size(); String[] tags = new String[count]; String[] ids = new String[count]; String[] classes = new String[count]; for (int i = 0; i < count; i++) { Element el = (Element) path.get(i); AttributeS... | 22,323 |
private Style resolveStyle(String selector, List path, HTML.Tag tag) { int count = path.size(); String[] tags = new String[count]; String[] ids = new String[count]; String[] classes = new String[count]; for (int i = 0; i < count; i++) { Element el = (Element) path.get(i); AttributeS... | private Style resolveStyle(String selector, List path, HTML.Tag tag) { int count = path.size(); String[] tags = new String[count]; String[] ids = new String[count]; String[] classes = new String[count]; for (int i = 0; i < count; i++) { Element el = (Element) path.get(i); AttributeS... | 22,324 |
public AttributeSet translateHTMLToCSS(AttributeSet htmlAttrSet) { // FIXME: Really convert HTML to CSS here. AttributeSet cssAttr = htmlAttrSet.copyAttributes(); MutableAttributeSet cssStyle = addStyle(null, null); cssStyle.addAttributes(cssAttr); return cssStyle; } | public AttributeSet translateHTMLToCSS(AttributeSet htmlAttrSet) { // FIXME: Really convert HTML to CSS here. AttributeSet cssAttr = htmlAttrSet.copyAttributes(); MutableAttributeSet cssStyle = addStyle(null, null); cssStyle.addAttributes(cssAttr); return cssStyle; } | 22,325 |
public int getValue() { int intVal; if (value.contains("pt")) intVal = mapPoints(); else if (value.contains("px")) intVal = mapPixels(); else intVal = mapAbsolute(); // FIXME: Allow relative font values, ('larger' and 'smaller'). This // requires knowledge about the parent element's ... | public int getValue(int p) { int intVal; if (value.contains("pt")) intVal = mapPoints(); else if (value.contains("px")) intVal = mapPixels(); else intVal = mapAbsolute(); // FIXME: Allow relative font values, ('larger' and 'smaller'). This // requires knowledge about the parent eleme... | 22,327 |
public int getValue() { int intVal; if (value.contains("pt")) intVal = mapPoints(); else if (value.contains("px")) intVal = mapPixels(); else intVal = mapAbsolute(); // FIXME: Allow relative font values, ('larger' and 'smaller'). This // requires knowledge about the parent element's ... | public int getValue() { int intVal; if (value.contains("pt")) intVal = mapPoints(); else if (value.contains("px")) intVal = mapPixels(); else intVal = mapAbsolute(); // FIXME: Allow relative font values, ('larger' and 'smaller'). This // requires knowledge about the parent element's ... | 22,328 |
public final Class getCategory() { return DateTimeAtProcessing.class; } | public Class getCategory() { return DateTimeAtProcessing.class; } | 22,329 |
public final String getName() { return "date-time-at-processing"; } | public String getName() { return "date-time-at-processing"; } | 22,330 |
void setup() throws Exception { setInputStreamParam(_idbFileName); setKeyStoreParams(_providerClassName, _ksType, _ksPassword, _ksURL); log.finer("-identitydb handler will use the following options:"); //$NON-NLS-1$ log.finer(" -file=" + _idbFileName); //$NON-NLS-1$ log.finer(" -storetype=" + storeT... | void setup() throws Exception { setInputStreamParam(_idbFileName); setKeyStoreParams(_providerClassName, _ksType, _ksPassword, _ksURL); log.finer("-identitydb handler will use the following options:"); //$NON-NLS-1$ log.finer(" -file=" + _idbFileName); //$NON-NLS-1$ log.finer(" -storetype=" + storeT... | 22,332 |
public final CharBuffer decode (ByteBuffer bb) { try { // NB: This implementation serializes different threads calling // Charset.decode(), a potential performance problem. It might // be better to remove the cache, or use ThreadLocal to cache on // a per-thread basis. syn... | public final synchronized CharBuffer decode (ByteBuffer bb) { try { // NB: This implementation serializes different threads calling // Charset.decode(), a potential performance problem. It might // be better to remove the cache, or use ThreadLocal to cache on // a per-thread basi... | 22,334 |
public final CharBuffer decode (ByteBuffer bb) { try { // NB: This implementation serializes different threads calling // Charset.decode(), a potential performance problem. It might // be better to remove the cache, or use ThreadLocal to cache on // a per-thread basis. syn... | public final CharBuffer decode (ByteBuffer bb) { try { // NB: This implementation serializes different threads calling // Charset.decode(), a potential performance problem. It might // be better to remove the cache, or use ThreadLocal to cache on // a per-thread basis. syn... | 22,335 |
public final CharBuffer decode (ByteBuffer bb) { try { // NB: This implementation serializes different threads calling // Charset.decode(), a potential performance problem. It might // be better to remove the cache, or use ThreadLocal to cache on // a per-thread basis. syn... | public final CharBuffer decode (ByteBuffer bb) { try { // NB: This implementation serializes different threads calling // Charset.decode(), a potential performance problem. It might // be better to remove the cache, or use ThreadLocal to cache on // a per-thread basis. syn... | 22,336 |
public final ByteBuffer encode (CharBuffer cb) { try { // NB: This implementation serializes different threads calling // Charset.encode(), a potential performance problem. It might // be better to remove the cache, or use ThreadLocal to cache on // a per-thread basis. syn... | public final synchronized ByteBuffer encode (CharBuffer cb) { try { // NB: This implementation serializes different threads calling // Charset.encode(), a potential performance problem. It might // be better to remove the cache, or use ThreadLocal to cache on // a per-thread basi... | 22,337 |
public final ByteBuffer encode (CharBuffer cb) { try { // NB: This implementation serializes different threads calling // Charset.encode(), a potential performance problem. It might // be better to remove the cache, or use ThreadLocal to cache on // a per-thread basis. syn... | public final ByteBuffer encode (CharBuffer cb) { try { // NB: This implementation serializes different threads calling // Charset.encode(), a potential performance problem. It might // be better to remove the cache, or use ThreadLocal to cache on // a per-thread basis. syn... | 22,338 |
public final ByteBuffer encode (CharBuffer cb) { try { // NB: This implementation serializes different threads calling // Charset.encode(), a potential performance problem. It might // be better to remove the cache, or use ThreadLocal to cache on // a per-thread basis. syn... | public final ByteBuffer encode (CharBuffer cb) { try { // NB: This implementation serializes different threads calling // Charset.encode(), a potential performance problem. It might // be better to remove the cache, or use ThreadLocal to cache on // a per-thread basis. syn... | 22,339 |
protected void installDefaults(AbstractButton b) { String prefix = getPropertyPrefix(); LookAndFeel.installColorsAndFont(b, prefix + "background", prefix + "foreground", prefix + "font"); LookAndFeel.installBorder(b, prefix + "border"); focusColor = UIManager.getColor(... | protected void installDefaults(AbstractButton b) { String prefix = getPropertyPrefix(); LookAndFeel.installColorsAndFont(b, prefix + "background", prefix + "foreground", prefix + "font"); LookAndFeel.installBorder(b, prefix + "border"); b.setMargin(UIManager.getIns... | 22,340 |
protected void paintButtonPressed(Graphics g, AbstractButton b) { if (b.isContentAreaFilled()) { Rectangle area = new Rectangle(); SwingUtilities.calculateInnerArea(b, area); g.setColor(b.getBackground().darker()); g.fillRect(area.x, area.y, area.width, area.height); } } | protected void paintButtonPressed(Graphics g, AbstractButton b) { if (b.isContentAreaFilled() && b.isOpaque()) { Rectangle area = new Rectangle(); SwingUtilities.calculateInnerArea(b, area); g.setColor(b.getBackground().darker()); g.fillRect(area.x, area.y, area.width, area.height); } } | 22,341 |
protected void paintButtonPressed(Graphics g, AbstractButton b) { if (b.isContentAreaFilled()) { Rectangle area = new Rectangle(); SwingUtilities.calculateInnerArea(b, area); g.setColor(b.getBackground().darker()); g.fillRect(area.x, area.y, area.width, area.height); } } | protected void paintButtonPressed(Graphics g, AbstractButton b) { if (b.isContentAreaFilled()) { Rectangle area = new Rectangle(); SwingUtilities.calculateInnerArea(b, area); g.setColor(UIManager.getColor(getPropertyPrefix() + "shadow")); g.fillRect(area.x, area.y, area.width, area.height); ... | 22,342 |
public abstract short member_visibility(int index) throws BadKind, Bounds; | public abstract short member_visibility(int index) throws BadKind, org.omg.CORBA.TypeCodePackage.Bounds; | 22,344 |
private Handler getHandler(String name) throws REException { if (name.equals("Lower") || name.equals("Upper") || // name.equals("ASCII") || name.equals("Alpha") || name.equals("Digit") || name.equals("Alnum") || name.equals("Punct") || name.equals("G... | private Handler getHandler(String name) throws REException { if (name.equals("Lower") || name.equals("Upper") || // name.equals("ASCII") || name.equals("Alpha") || name.equals("Digit") || name.equals("Alnum") || name.equals("Punct") || name.equals("G... | 22,345 |
void setup() throws Exception { setOutputStreamParam(_certReqFileName); setKeyStoreParams(_providerClassName, _ksType, _ksPassword, _ksURL); setAliasParam(_alias); setKeyPasswordNoPrompt(_password); log.finer("-certreq handler will use the following options:"); //$NON-NLS-1$ log.finer(" -alias=" +... | void setup() throws Exception { setOutputStreamParam(_certReqFileName); setKeyStoreParams(_providerClassName, _ksType, _ksPassword, _ksURL); setAliasParam(_alias); setKeyPasswordNoPrompt(_password); log.finer("-certreq handler will use the following options:"); //$NON-NLS-1$ log.finer(" -alias=" +... | 22,347 |
void setup() throws Exception { setKeyStoreParams(_providerClassName, _ksType, _ksPassword, _ksURL); setNewKeystorePassword(_newPassword); log.finer("-storepasswd handler will use the following options:"); //$NON-NLS-1$ log.finer(" -storetype=" + storeType); //$NON-NLS-1$ log.finer(" -keystore=" + s... | void setup() throws Exception { setKeyStoreParams(_providerClassName, _ksType, _ksPassword, _ksURL); setNewKeystorePassword(_newPassword); log.finer("-storepasswd handler will use the following options:"); //$NON-NLS-1$ log.finer(" -storetype=" + storeType); //$NON-NLS-1$ log.finer(" -keystore=" + s... | 22,350 |
public synchronized int hashCode() { // Since we are already synchronized, and entrySet().iterator() // would repeatedly re-lock/release the monitor, we directly use the // unsynchronized HashIterator instead. Iterator<Map.Entry<K, V>> itr = new HashIterator<Map.Entry<K, V>>(ENTRIES); int hashcode = 0... | public synchronized int hashCode() { // Since we are already synchronized, and entrySet().iterator() // would repeatedly re-lock/release the monitor, we directly use the // unsynchronized HashIterator instead. Iterator<Map.Entry<K, V>> itr = new EntryIterator(); int hashcode = 0; for (int pos = siz... | 22,352 |
public synchronized String toString() { // Since we are already synchronized, and entrySet().iterator() // would repeatedly re-lock/release the monitor, we directly use the // unsynchronized HashIterator instead. Iterator<Map.Entry<? extends K, ? extends V>> entries = new HashIterator<Map.Entry<? ex... | public synchronized String toString() { // Since we are already synchronized, and entrySet().iterator() // would repeatedly re-lock/release the monitor, we directly use the // unsynchronized HashIterator instead. Iterator<Map.Entry<? extends K, ? extends V>> entries = new HashIterator<Map.Entry<? ex... | 22,353 |
public void run() { while (true) { Runnable r; synchronized (queue) { while (queue.size() == 0) { try { wait(); } catch (InterruptedException _) { ... | public void run() { while (true) { Runnable r; synchronized (queue) { while (queue.size() == 0) { try { queue.wait(); } catch (InterruptedException _) { ... | 22,355 |
private int checkRule(int month, int day, int dayOfWeek) { if (month < 0 || month > 11) throw new IllegalArgumentException("month out of range"); int daysInMonth = getDaysInMonth(month, 1); if (dayOfWeek == 0) { if (day <= 0 || day > daysInMonth) throw new IllegalArgumentException("day out of ra... | private int checkRule(int month) { if (month < 0 || month > 11) throw new IllegalArgumentException("month out of range"); int daysInMonth = getDaysInMonth(month, 1); if (dayOfWeek == 0) { if (day <= 0 || day > daysInMonth) throw new IllegalArgumentException("day out of range"); return DOM_MODE; ... | 22,356 |
private int checkRule(int month, int day, int dayOfWeek) { if (month < 0 || month > 11) throw new IllegalArgumentException("month out of range"); int daysInMonth = getDaysInMonth(month, 1); if (dayOfWeek == 0) { if (day <= 0 || day > daysInMonth) throw new IllegalArgumentException("day out of ra... | private int checkRule(int month, int day, int dayOfWeek) { if (startDay != 0) { if (startMonth < 0 || startMonth > 11) throw new IllegalArgumentException("month out of range"); int daysInMonth = getDaysInMonth(month, 1); if (dayOfWeek == 0) { if (day <= 0 || day > daysInMonth) throw new IllegalA... | 22,357 |
private int checkRule(int month, int day, int dayOfWeek) { if (month < 0 || month > 11) throw new IllegalArgumentException("month out of range"); int daysInMonth = getDaysInMonth(month, 1); if (dayOfWeek == 0) { if (day <= 0 || day > daysInMonth) throw new IllegalArgumentException("day out of ra... | private int checkRule(int month, int day, int dayOfWeek) { if (month < 0 || month > 11) throw new IllegalArgumentException("month out of range"); int daysInMonth = getDaysInMonth(month, 1); if (dayOfWeek == 0) { if (day <= 0 || day > daysInMonth) throw new IllegalArgumentException("day out of ra... | 22,358 |
private int checkRule(int month, int day, int dayOfWeek) { if (month < 0 || month > 11) throw new IllegalArgumentException("month out of range"); int daysInMonth = getDaysInMonth(month, 1); if (dayOfWeek == 0) { if (day <= 0 || day > daysInMonth) throw new IllegalArgumentException("day out of ra... | private int checkRule(int month, int day, int dayOfWeek) { if (month < 0 || month > 11) throw new IllegalArgumentException("month out of range"); int daysInMonth = getDaysInMonth(month, 1); if (dayOfWeek == 0) { if (day <= 0 || day > daysInMonth) throw new IllegalArgumentException("day out of ra... | 22,359 |
private int checkRule(int month, int day, int dayOfWeek) { if (month < 0 || month > 11) throw new IllegalArgumentException("month out of range"); int daysInMonth = getDaysInMonth(month, 1); if (dayOfWeek == 0) { if (day <= 0 || day > daysInMonth) throw new IllegalArgumentException("day out of ra... | private int checkRule(int month, int day, int dayOfWeek) { if (month < 0 || month > 11) throw new IllegalArgumentException("month out of range"); int daysInMonth = getDaysInMonth(month, 1); if (dayOfWeek == 0) { if (day <= 0 || day > daysInMonth) throw new IllegalArgumentException("day out of ra... | 22,360 |
private int checkRule(int month, int day, int dayOfWeek) { if (month < 0 || month > 11) throw new IllegalArgumentException("month out of range"); int daysInMonth = getDaysInMonth(month, 1); if (dayOfWeek == 0) { if (day <= 0 || day > daysInMonth) throw new IllegalArgumentException("day out of ra... | private int checkRule(int month, int day, int dayOfWeek) { if (month < 0 || month > 11) throw new IllegalArgumentException("month out of range"); int daysInMonth = getDaysInMonth(month, 1); if (dayOfWeek == 0) { if (day <= 0 || day > daysInMonth) throw new IllegalArgumentException("day out of ra... | 22,361 |
private int checkRule(int month, int day, int dayOfWeek) { if (month < 0 || month > 11) throw new IllegalArgumentException("month out of range"); int daysInMonth = getDaysInMonth(month, 1); if (dayOfWeek == 0) { if (day <= 0 || day > daysInMonth) throw new IllegalArgumentException("day out of ra... | private int checkRule(int month, int day, int dayOfWeek) { if (month < 0 || month > 11) throw new IllegalArgumentException("month out of range"); int daysInMonth = getDaysInMonth(month, 1); if (dayOfWeek == 0) { if (day <= 0 || day > daysInMonth) throw new IllegalArgumentException("day out of ra... | 22,362 |
public void setEndRule(int month, int day, int dayOfWeek, int time) { this.endMode = checkRule(month, day, dayOfWeek); this.endMonth = month; this.endDay = day; this.endDayOfWeek = Math.abs(dayOfWeek); if (this.endTimeMode == WALL_TIME) this.endTime = time; else if (this.endTimeMode == STANDARD_... | public void setEndRule(int month, int day, int dayOfWeek, int time) { this.endMonth = month; this.endDay = day; this.endDayOfWeek = Math.abs(dayOfWeek); if (this.endTimeMode == WALL_TIME) this.endTime = time; else if (this.endTimeMode == STANDARD_TIME) // Convert from STANDARD to DST ... | 22,364 |
public void setStartRule(int month, int day, int dayOfWeek, int time) { this.startMode = checkRule(month, day, dayOfWeek); this.startMonth = month; this.startDay = day; this.startDayOfWeek = Math.abs(dayOfWeek); if (this.startTimeMode == WALL_TIME || this.startTimeMode == STANDARD_TIME) this.star... | public void setStartRule(int month, int day, int dayOfWeek, int time) { this.startMonth = month; this.startDay = day; this.startDayOfWeek = Math.abs(dayOfWeek); if (this.startTimeMode == WALL_TIME || this.startTimeMode == STANDARD_TIME) this.startTime = time; else // Convert from UTC to ... | 22,366 |
public void mousePressed(MouseEvent e) { if (e.getSource() instanceof AbstractButton) { AbstractButton button = (AbstractButton) e.getSource(); ButtonModel model = button.getModel(); if ((e.getModifiersEx() & InputEvent.BUTTON1_DOWN_MASK) != 0) { // It is important th... | public void mousePressed(MouseEvent e) { if (e.getSource() instanceof AbstractButton) { AbstractButton button = (AbstractButton) e.getSource(); ButtonModel model = button.getModel(); if (e.getButton() == MouseEvent.BUTTON1) { // It is important that these transitions ... | 22,368 |
public void mouseReleased(MouseEvent e) { if (e.getSource() instanceof AbstractButton) { AbstractButton button = (AbstractButton) e.getSource(); ButtonModel model = button.getModel(); if ((e.getModifiersEx() & InputEvent.BUTTON1_DOWN_MASK) != 0) { // It is important t... | public void mouseReleased(MouseEvent e) { if (e.getSource() instanceof AbstractButton) { AbstractButton button = (AbstractButton) e.getSource(); ButtonModel model = button.getModel(); if (e.getButton() == MouseEvent.BUTTON1) { // It is important that these transitions... | 22,369 |
public BasicCheckBoxMenuItemUI() { super(); UIDefaults defaults = UIManager.getLookAndFeelDefaults(); checkIcon = UIManager.getIcon("CheckBoxMenuItem.checkIcon"); } | public BasicCheckBoxMenuItemUI() { super(); UIDefaults defaults = UIManager.getLookAndFeelDefaults(); checkIcon = UIManager.getIcon("CheckBoxMenuItem.checkIcon"); } | 22,370 |
public static void main(String[] args) { IFoo origFoo = new FooImpl(); IFoo proxy = (IFoo) Proxy.newProxyInstance(ProxyTest.class.getClassLoader(), new Class[] { IFoo.class }, new Handler<IFoo>(origFoo)); proxy.foo(); } | public static void main(String[] args) throws IOException { IFoo origFoo = new FooImpl(); IFoo proxy = (IFoo) Proxy.newProxyInstance(ProxyTest.class.getClassLoader(), new Class[] { IFoo.class }, new Handler<IFoo>(origFoo)); proxy.foo(); } | 22,371 |
public static void main(String[] args) { IFoo origFoo = new FooImpl(); IFoo proxy = (IFoo) Proxy.newProxyInstance(ProxyTest.class.getClassLoader(), new Class[] { IFoo.class }, new Handler<IFoo>(origFoo)); proxy.foo(); } | public static void main(String[] args) { IFoo origFoo = new FooImpl(); final ClassLoader loader = ProxyTest.class.getClassLoader(); IFoo proxy = (IFoo) Proxy.newProxyInstance(loader, new Class[] { IFoo.class }, new Handler<IFoo>(origFoo)); proxy.foo(); } | 22,372 |
protected AccessibleJProgressBar(JProgressBar component) { super(component); } | protected AccessibleJProgressBar() { super(component); } | 22,374 |
protected AccessibleJProgressBar(JProgressBar component) { super(component); } | protected AccessibleJProgressBar(JProgressBar component) { } | 22,375 |
public AccessibleContext getAccessibleContext() { if (accessibleContext == null) accessibleContext = new AccessibleJProgressBar(this); return accessibleContext; } | public AccessibleContext getAccessibleContext() { if (accessibleContext == null) accessibleContext = new AccessibleJProgressBar(); return accessibleContext; } | 22,376 |
public boolean visit(Object object) { final int gcColor = helper.getObjectColor(object); helper.atomicChangeObjectColor(object, gcColor, GC_WHITE); return true; } | public boolean visit(Object object) { final int gcColor = helper.getObjectColor(object); if (gcColor != GC_YELLOW) { helper.atomicChangeObjectColor(object, gcColor, GC_WHITE); } return true; } | 22,377 |
public void layoutContainer(Container parent) { JComboBox cb = (JComboBox) parent; if (!cb.isEditable()) { Rectangle bounds = parent.getBounds(); arrowButton.setBounds(0, 0, bounds.width, bounds.height); } else superLayout(parent); } | public void layoutContainer(Container parent) { JComboBox cb = (JComboBox) parent; if (!cb.isEditable()) { Rectangle bounds = parent.getBounds(); arrowButton.setBounds(0, 0, bounds.width, bounds.height); } else superLayout(parent); } | 22,379 |
public void propertyChange(PropertyChangeEvent e) { if (e.getPropertyName().equals("editable")) editablePropertyChanged(e); super.propertyChange(e); } | public void propertyChange(PropertyChangeEvent e) { super.propertyChange(e); String name = e.getPropertyName(); if (name.equals("editable")) editablePropertyChanged(e); super.propertyChange(e); } | 22,380 |
public void propertyChange(PropertyChangeEvent e) { if (e.getPropertyName().equals("editable")) editablePropertyChanged(e); super.propertyChange(e); } | public void propertyChange(PropertyChangeEvent e) { if (e.getPropertyName().equals("editable")) editablePropertyChanged(e); if (name.equals("enabled")) { if (arrowButton instanceof MetalComboBoxButton) { arrowButton.setFocusable(!comboBox.isEditable() && comboBox.isEnabled()); comboBox.repaint()... | 22,381 |
public void configureEditor() { ComboBoxEditor cbe = comboBox.getEditor(); if (cbe != null) { cbe.getEditorComponent().setFont(comboBox.getFont()); cbe.setItem(comboBox.getSelectedItem()); cbe.addActionListener(comboBox); } } | public void configureEditor() { ComboBoxEditor cbe = comboBox.getEditor(); if (cbe != null) { cbe.getEditorComponent().setFont(comboBox.getFont()); cbe.setItem(comboBox.getSelectedItem()); cbe.addActionListener(comboBox); } } | 22,382 |
protected void editablePropertyChanged(PropertyChangeEvent e) { if (arrowButton instanceof MetalComboBoxButton) { MetalComboBoxButton b = (MetalComboBoxButton) arrowButton; b.setIconOnly(comboBox.isEditable()); } if (comboBox.isEditable()) { arrowButton.setText(null); ... | protected void editablePropertyChanged(PropertyChangeEvent e) { if (arrowButton instanceof MetalComboBoxButton) { MetalComboBoxButton b = (MetalComboBoxButton) arrowButton; b.setIconOnly(comboBox.isEditable()); } if (comboBox.isEditable()) { arrowButton.setText(null); ... | 22,383 |
public Dimension getMinimumSize(JComponent c) { Dimension d = getDisplaySize(); MetalComboBoxButton b = (MetalComboBoxButton) arrowButton; Insets insets = b.getInsets(); int insetsH = insets.top + insets.bottom; int insetsW = insets.left + insets.right; if (!comboBox.isEditable()) { Ico... | public Dimension getMinimumSize(JComponent c) { if (!isMinimumSizeDirty) return new Dimension(cachedMinimumSize); Dimension d; if (!comboBox.isEditable() && arrowButton != null && arrowButton instanceof MetalComboBoxButton) { MetalComboBoxButton b = (MetalComboBoxButton) arrowButton; Insets insets = b.getI... | 22,384 |
public Dimension getMinimumSize(JComponent c) { Dimension d = getDisplaySize(); MetalComboBoxButton b = (MetalComboBoxButton) arrowButton; Insets insets = b.getInsets(); int insetsH = insets.top + insets.bottom; int insetsW = insets.left + insets.right; if (!comboBox.isEditable()) { Ico... | public Dimension getMinimumSize(JComponent c) { Dimension d = getDisplaySize(); MetalComboBoxButton b = (MetalComboBoxButton) arrowButton; Insets insets = b.getInsets(); int insetsH = insets.top + insets.bottom; int insetsW = insets.left + insets.right; if (!comboBox.isEditable()) { Ico... | 22,385 |
public Dimension getMinimumSize(JComponent c) { Dimension d = getDisplaySize(); MetalComboBoxButton b = (MetalComboBoxButton) arrowButton; Insets insets = b.getInsets(); int insetsH = insets.top + insets.bottom; int insetsW = insets.left + insets.right; if (!comboBox.isEditable()) { Ico... | public Dimension getMinimumSize(JComponent c) { Dimension d = getDisplaySize(); MetalComboBoxButton b = (MetalComboBoxButton) arrowButton; Insets insets = b.getInsets(); int insetsH = insets.top + insets.bottom; int insetsW = insets.left + insets.right; if (!comboBox.isEditable()) { Ico... | 22,386 |
public Dimension getMinimumSize(JComponent c) { Dimension d = getDisplaySize(); MetalComboBoxButton b = (MetalComboBoxButton) arrowButton; Insets insets = b.getInsets(); int insetsH = insets.top + insets.bottom; int insetsW = insets.left + insets.right; if (!comboBox.isEditable()) { Ico... | public Dimension getMinimumSize(JComponent c) { Dimension d = getDisplaySize(); MetalComboBoxButton b = (MetalComboBoxButton) arrowButton; Insets insets = b.getInsets(); int insetsH = insets.top + insets.bottom; int insetsW = insets.left + insets.right; if (!comboBox.isEditable()) { Ico... | 22,387 |
public void layoutComboBox(Container parent, MetalComboBoxUI.MetalComboBoxLayoutManager manager) { manager.layoutContainer(parent); } | public void layoutComboBox(Container parent, MetalComboBoxUI.MetalComboBoxLayoutManager manager) { if (comboBox.isEditable()) manager.superLayout(parent); else if (arrowButton != null) { Insets comboInsets = comboBox.getInsets(); int width = comboBox.getWidth(); int height = comboBox.g... | 22,388 |
public void unconfigureEditor() { ComboBoxEditor cbe = comboBox.getEditor(); if (cbe != null) { cbe.getEditorComponent().setFont(null); cbe.setItem(null); cbe.removeActionListener(comboBox); } } | public void unconfigureEditor() { ComboBoxEditor cbe = comboBox.getEditor(); if (cbe != null) { cbe.getEditorComponent().setFont(null); cbe.setItem(null); cbe.removeActionListener(comboBox); } } | 22,389 |
protected BasicButtonListener createButtonListener(AbstractButton b) { return new BasicButtonListener(); } | protected BasicButtonListener createButtonListener(AbstractButton b) { return new BasicButtonListener(b); } | 22,390 |
public Object clone() { return new Kernel(width, height, data); } | public Object clone() { try { return super.clone(); } catch (CloneNotSupportedException e) { throw (Error) new InternalError().initCause(e); } } | 22,391 |
public Node nextNode() throws DOMException { if (root == null) { throw new DOMException(DOMException.INVALID_STATE_ERR, "null root"); } Node ret; do { if (current.equals(root)) { ret = root.getFirstChild(); } else if (walk) { ... | public Node nextNode() throws DOMException { if (root == null) { throw new DOMException(DOMException.INVALID_STATE_ERR, "null root"); } Node ret; do { if (current.equals(root)) { ret = root.getFirstChild(); } else if (walk) { ... | 22,392 |
private final void loadExtension(Extension ext) { final String id = ext.getDeclaringPluginDescriptor().getId(); final URL url; try { url = new URL("plugin:" + id + "!/"); final ClassLoader cl = ext.getDeclaringPluginDescriptor() .getPluginClassLoader(); ... | private final void loadExtension(Extension ext) { final String id = ext.getDeclaringPluginDescriptor().getId(); final URL url; try { url = new URL("plugin:" + id + "!/"); final ClassLoader cl = ext.getDeclaringPluginDescriptor() .getPluginClassLoader(); ... | 22,393 |
public XMLWriter (Writer writer, String encoding) { setWriter (writer, encoding); } | public XMLWriter (Writer writer, String encoding) { setWriter (writer, encoding); } | 22,394 |
public BoldAction() { super("TODO"); // TODO: Figure out correct name of this Action. } | public BoldAction() { super("font-bold"); // TODO: Figure out correct name of this Action. } | 22,395 |
public ItalicAction() { super("TODO"); // TODO: Figure out correct name of this Action. } | public ItalicAction() { super("font-italic"); // TODO: Figure out correct name of this Action. } | 22,396 |
public UnderlineAction() { super("TODO"); // TODO: Figure out name for this action. } | public UnderlineAction() { super("font-underline"); // TODO: Figure out name for this action. } | 22,397 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.