bugged
stringlengths
6
599k
fixed
stringlengths
10
599k
__index_level_0__
int64
0
1.13M
public MenuItem add(MenuItem item) { items.addElement(item); if (item.parent != null) { item.parent.remove(item); } item.parent = this; if (peer != null) { MenuPeer mp = (MenuPeer) peer; mp.addItem(item); } return item; }
add(MenuItem item) { items.addElement(item); if (item.parent != null) { item.parent.remove(item); } item.parent = this; if (peer != null) { MenuPeer mp = (MenuPeer) peer; mp.addItem(item); } return item; }
20,512
public void addSeparator() { add(separator); }
public void addSeparator() { add(separator); }
20,513
public synchronized void setText(String text) { this.text = text; if (peer != null) { LabelPeer lp = (LabelPeer) peer; lp.setText(text); } }
setText(String text) { this.text = text; if (peer != null) { LabelPeer lp = (LabelPeer) peer; lp.setText(text); } }
20,515
public synchronized void setText(String text) { this.text = text; if (peer != null) { LabelPeer lp = (LabelPeer) peer; lp.setText(text); } }
public synchronized void setText(String text) { this.text = text; if (peer != null) { LabelPeer lp = (LabelPeer) peer; lp.setText(text); } }
20,516
private Plugin createPlugin() throws PluginException { if (className == null) { return new EmptyPlugin(this); } else { try { final Class cls = Thread.currentThread().getContextClassLoader().loadClass(className); final Constructor cons = cls.getConstructor(new Class[] { PluginDescriptor.class }); return ...
private Plugin createPlugin() throws PluginException { if (className == null) { return new EmptyPlugin(this); } else { try { final ClassLoader cl = getPluginClassLoader(); final Class cls = cl.loadClass(className); final Constructor cons = cls.getConstructor(new Class[] { PluginDescriptor.class }); ret...
20,518
public static IKeyPairGenerator getInstance(String name) { if (name == null) { return null; } name = name.trim(); IKeyPairGenerator result = null; if (name.equalsIgnoreCase(Registry.DSA_KPG) || name.equals(Registry.DSS_KPG)) { result = new DSSKeyPairGenerator(); }...
public static IKeyPairGenerator getInstance(String name) { if (name == null) { return null; } name = name.trim(); IKeyPairGenerator result = null; if (name.equalsIgnoreCase(Registry.DSA_KPG) || name.equalsIgnoreCase(Registry.DSS_KPG)) { result = new DSSKeyPairGenerator...
20,519
private static IKeyPairGenerator makeInstance (String clazz) { try { Class c = Class.forName (clazz); Constructor ctor = c.getConstructor (new Class[0]); return (IKeyPairGenerator) ctor.newInstance (new Object[0]); } catch (Exception x) { IllegalArgumentException iae ...
private static IKeyPairGenerator makeInstance (String clazz) { try { Class c = Class.forName (clazz); Constructor ctor = c.getConstructor (new Class[0]); return (IKeyPairGenerator) ctor.newInstance (new Object[0]); } catch (Exception x) { IllegalArgumentException iae ...
20,521
public JToggleButton() { this(null, null); }
public JToggleButton() { this(null, null, false); }
20,523
public AccessibleContext getAccessibleContext() { return null; }
public AccessibleContext getAccessibleContext() { if (accessibleContext == null) { accessibleContext = new AccessibleJToggleButton(); } return accessibleContext; }
20,524
public void updateUI() { ButtonUI b = (ButtonUI)UIManager.getUI(this); setUI(b); }
public void updateUI() { ButtonUI b = (ButtonUI)UIManager.getUI(this); setUI(b); }
20,525
public static ComponentUI createUI(final JComponent c) { return new BasicCheckBoxUI(); }
public static ComponentUI createUI(JComponent c) { return new BasicCheckBoxUI(); }
20,526
public JWindowPopup(Component owner, Component contents, int x, int y) { /* Checks whether contents is null. */ super(owner, contents, x, y); window = new JWindow(); window.getRootPane().add(contents); window.setLocation(x, y); window.pack(); }
public JWindowPopup(Component owner, Component contents, int x, int y) { /* Checks whether contents is null. */ super(owner, contents, x, y); window = new JWindow(); window.getContentPane().add(contents); window.setLocation(x, y); window.pack(); }
20,527
public JWindowPopup(Component owner, Component contents, int x, int y) { /* Checks whether contents is null. */ super(owner, contents, x, y); window = new JWindow(); window.getRootPane().add(contents); window.setLocation(x, y); window.pack(); }
public JWindowPopup(Component owner, Component contents, int x, int y) { /* Checks whether contents is null. */ super(owner, contents, x, y); window = new JWindow(); window.getRootPane().add(contents); window.setLocation(x, y); window.setFocusableWindowState(f...
20,528
public void startPlugin(PluginDescriptor d) throws PluginException { if (canStart(d)) { BootLog.debug("Starting " + d.getId()); d.getPlugin().start(); } else { BootLog.warn("Skipping start of " + d.getId() + " due to to depencies."); } }
public void startPlugin(PluginDescriptor d) throws PluginException { if (canStart(d)) { BootLog.debug("Starting " + d.getId()); d.getPlugin().start(); } else { BootLog.warn("Skipping start of " + d.getId() + " due to to depencies."); } }
20,530
public void startPlugins() throws PluginException { final List descrList = createPluginDescriptorList(); final ArrayList errors = new ArrayList(descrList.size()); for (Iterator i = descrList.iterator(); i.hasNext();) { final PluginDescriptor descr = (PluginDescriptor) i.next(); try { //===== Removed to call ...
public void startPlugins() throws PluginException { final List descrList = createPluginDescriptorList(); final ArrayList errors = new ArrayList(descrList.size()); for (Iterator i = descrList.iterator(); i.hasNext();) { final PluginDescriptor descr = (PluginDescriptor) i.next(); try { //===== Removed to call ...
20,531
public void startPlugins() throws PluginException { final List descrList = createPluginDescriptorList(); final ArrayList errors = new ArrayList(descrList.size()); for (Iterator i = descrList.iterator(); i.hasNext();) { final PluginDescriptor descr = (PluginDescriptor) i.next(); try { //===== Removed to call ...
public void startPlugins() throws PluginException { final List descrList = createPluginDescriptorList(); final ArrayList errors = new ArrayList(descrList.size()); for (Iterator i = descrList.iterator(); i.hasNext();) { final PluginDescriptor descr = (PluginDescriptor) i.next(); try { //===== Removed to call ...
20,532
public int currentSegment(double[] coords) { throw new Error("not implemented"); }
public int currentSegment(double[] coords) { if (done) throw new NoSuchElementException(); switch (srcSegType) { case PathIterator.SEG_CLOSE: return srcSegType; case PathIterator.SEG_MOVETO: case PathIterator.SEG_LINETO: coords[0] = srcPosX; coords[1] = srcPosY; return srcSegType; case PathIterator.SEG_QUADTO:...
20,535
public double getFlatness() { return flatness; }
public double getFlatness() { return Math.sqrt(flatnessSq); }
20,537
public int getRecursionLimit() { return limit; }
public int getRecursionLimit() { return recursionLimit; }
20,538
public int getWindingRule() { return subIterator.getWindingRule(); }
public int getWindingRule() { return srcIter.getWindingRule(); }
20,539
public boolean isDone() { return subIterator.isDone(); }
public boolean isDone() { return done; }
20,540
public void next() { throw new Error("not implemented"); }
public void next() { if (stackSize > 0) { --stackSize; if (stackSize > 0) { switch (srcSegType) { case PathIterator.SEG_QUADTO: subdivideQuadratic(); return; case PathIterator.SEG_CUBICTO: subdivideCubic(); return; default: throw new IllegalStateException(); } } } srcIter.next(); fetchSegment(); }
20,541
public void putAll(Map<? extends K, ? extends V> m) { Map<K,V> addMap; addMap = (Map<K,V>) m; for (Map.Entry<K,V> e : addMap.entrySet()) { // Optimize in case the Entry is one of our own. if (e instanceof AbstractMap.BasicMapEntry) { AbstractMap.BasicMapEntry<? extends...
public void putAll(Map<? extends K, ? extends V> m) { Map<K,V> addMap; addMap = (Map<K,V>) m; for (Map.Entry<K,V> e : addMap.entrySet()) { // Optimize in case the Entry is one of our own. if (e instanceof AbstractMap.SimpleEntry) { AbstractMap.BasicMapEntry<? extends K...
20,543
public void putAll(Map<? extends K, ? extends V> m) { Map<K,V> addMap; addMap = (Map<K,V>) m; for (Map.Entry<K,V> e : addMap.entrySet()) { // Optimize in case the Entry is one of our own. if (e instanceof AbstractMap.BasicMapEntry) { AbstractMap.BasicMapEntry<? extends...
public void putAll(Map<? extends K, ? extends V> m) { Map<K,V> addMap; addMap = (Map<K,V>) m; for (Map.Entry<K,V> e : addMap.entrySet()) { // Optimize in case the Entry is one of our own. if (e instanceof AbstractMap.BasicMapEntry) { AbstractMap.BasicMapEntry<? extends...
20,544
public void execute() throws BuildException { final long start = System.currentTimeMillis(); final PluginList piList; final PluginList systemPluginList; final long lmPI; try { piList = getPluginList(); systemPluginList = getSystemPluginList(); if (...
public void execute() throws BuildException { final long start = System.currentTimeMillis(); final PluginList piList; final PluginList systemPluginList; final long lmPI; try { piList = getPluginList(); systemPluginList = getSystemPluginList(); if (...
20,545
public void show() { // We must set visible before showing the peer. Otherwise the // peer could post paint events before visible is true, in which // case lightweight components are not initially painted -- // Container.paint first calls isShowing () before painting itself // and its children. if...
public void show() { // We must set visible before showing the peer. Otherwise the // peer could post paint events before visible is true, in which // case lightweight components are not initially painted -- // Container.paint first calls isShowing () before painting itself // and its children. if...
20,547
public void addMethod(Method method) { if(Modifier.isPublic(method.getModifiers()) && !Modifier.isStatic(method.getModifiers())) { String name = ClassHelper.getTruncatedName(method.getName()); Class retType = method.getReturnType(); Class[] params = method.getParameterTypes(); boolean isVoid = retType.equals(...
public void addMethod(Method method) { if(Modifier.isPublic(method.getModifiers())) { String name = ClassHelper.getTruncatedName(method.getName()); Class retType = method.getReturnType(); Class[] params = method.getParameterTypes(); boolean isVoid = retType.equals(java.lang.Void.TYPE); Class methodClass = m...
20,549
public Codec create_codec(Encoding for_encoding) throws UnknownEncoding { if (for_encoding.format != ENCODING_CDR_ENCAPS.value) throw new UnknownEncoding("Only ENCODING_CDR_ENCAPS is " + "supported by this factory." ); return new cdrEncapsCodec(...
public Codec create_codec(Encoding for_encoding) throws UnknownEncoding { if (for_encoding.format != ENCODING_CDR_ENCAPS.value) throw new UnknownEncoding("Only ENCODING_CDR_ENCAPS is " + "supported by this factory." ); return new CdrEncapsCodecI...
20,550
public IndexColorModel(int bits, int size, byte[] reds, byte[] greens, byte[] blues) { this(bits, size, reds, greens, blues, null); }
public IndexColorModel(int bits, int size, byte[] reds, byte[] greens, byte[] blues) { this(bits, size, reds, greens, blues, null); }
20,554
public final int getAlpha(int pixel) { if (pixel < map_size) { return ((rgb[pixel] >> 24) & 0xFF); } else { return 0; } }
public final int getAlpha(int pixel) { if (pixel < map_size) { return ((rgb[pixel] >> 24) & 0xFF); } else { return 0; } }
20,555
public final int getAlpha(int pixel) { if (pixel < map_size) { return ((rgb[pixel] >> 24) & 0xFF); } else { return 0; } }
public final int getAlpha(int pixel) { if (pixel < map_size) { return ((rgb[pixel] >> 24) & 0xFF); else { return 0;
20,556
public final int getBlue(int pixel) { if (pixel < map_size) { return (rgb[pixel] & 0xFF); } else { return 0; } }
public final int getBlue(int pixel) { if (pixel < map_size) { return (rgb[pixel] & 0xFF); } else { return 0; } }
20,557
public final int getBlue(int pixel) { if (pixel < map_size) { return (rgb[pixel] & 0xFF); } else { return 0; } }
public final int getBlue(int pixel) { if (pixel < map_size) { return (rgb[pixel] & 0xFF); else { return 0;
20,558
private void getComponents(byte[] c, int ci) { int i, max = (map_size < c.length) ? map_size : c.length; for (i = 0; i < max; i++) { c[i] = (byte) (rgb[i] >> (ci * 8)); } }
private void getComponents(byte[] c, int ci) { int i, max = (map_size < c.length) ? map_size : c.length; for (i = 0; i < max; i++) { c[i] = (byte) (rgb[i] >> (ci * 8)); } }
20,559
public final int getGreen(int pixel) { if (pixel < map_size) { return ((rgb[pixel] >> 8) & 0xFF); } else { return 0; } }
public final int getGreen(int pixel) { if (pixel < map_size) { return ((rgb[pixel] >> 8) & 0xFF); } else { return 0; } }
20,560
public final int getGreen(int pixel) { if (pixel < map_size) { return ((rgb[pixel] >> 8) & 0xFF); } else { return 0; } }
public final int getGreen(int pixel) { if (pixel < map_size) { return ((rgb[pixel] >> 8) & 0xFF); else { return 0;
20,561
public final int getRed(int pixel) { if (pixel < map_size) { return ((rgb[pixel] >> 16) & 0xFF); } else { return 0; } }
public final int getRed(int pixel) { if (pixel < map_size) { return ((rgb[pixel] >> 16) & 0xFF); } else { return 0; } }
20,562
public final int getRed(int pixel) { if (pixel < map_size) { return ((rgb[pixel] >> 16) & 0xFF); } else { return 0; } }
public final int getRed(int pixel) { if (pixel < map_size) { return ((rgb[pixel] >> 16) & 0xFF); else { return 0;
20,563
protected void handleConfirmation(ConfirmationCallback c) throws IOException { BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); if (c.getPrompt() != null) out.println(c.getPrompt()); String[] choices = null; int[] values = null; switch (c.getOptionType()) { case...
protected void handleConfirmation(ConfirmationCallback c) throws IOException { BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); if (c.getPrompt() != null) out.print(c.getPrompt()); String[] choices = null; int[] values = null; switch (c.getOptionType()) { case C...
20,564
protected void handleConfirmation(ConfirmationCallback c) throws IOException { BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); if (c.getPrompt() != null) out.println(c.getPrompt()); String[] choices = null; int[] values = null; switch (c.getOptionType()) { case...
protected void handleConfirmation(ConfirmationCallback c) throws IOException { BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); if (c.getPrompt() != null) out.println(c.getPrompt()); String[] choices = null; int[] values = null; switch (c.getOptionType()) { case...
20,565
protected void handleLanguage(LanguageCallback c) throws IOException { BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); out.println(messages.getString("callback.language")); String reply = null; reply = in.readLine(); if (reply == null) { c.setLocale(Locale.getDefa...
protected void handleLanguage(LanguageCallback c) throws IOException { BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); out.print(messages.getString("callback.language")); String reply = null; reply = in.readLine(); if (reply == null) { c.setLocale(Locale.getDefaul...
20,566
public static void main(String[] args) { int port = PORT; String iorf = null; try { // Create and initialize the ORB final Functional_ORB orb = new Functional_ORB(); if (args.length > 1) for (int i = 0; i < args.length - 1; i++) { if (args[i].endsWi...
public static void main(String[] args) { int port = PORT; String iorf = null; try { // Create and initialize the ORB final OrbFunctional orb = new OrbFunctional(); if (args.length > 1) for (int i = 0; i < args.length - 1; i++) { if (args[i].endsWith...
20,567
public static void main(String[] args) { int port = PORT; String iorf = null; try { // Create and initialize the ORB final Functional_ORB orb = new Functional_ORB(); if (args.length > 1) for (int i = 0; i < args.length - 1; i++) { if (args[i].endsWi...
public static void main(String[] args) { int port = PORT; String iorf = null; try { // Create and initialize the ORB final Functional_ORB orb = new Functional_ORB(); if (args.length > 1) for (int i = 0; i < args.length - 1; i++) { if (args[i].endsWi...
20,568
public static void main(String[] args) { int port = PORT; String iorf = null; try { // Create and initialize the ORB final Functional_ORB orb = new Functional_ORB(); if (args.length > 1) for (int i = 0; i < args.length - 1; i++) { if (args[i].endsWi...
public static void main(String[] args) { int port = PORT; String iorf = null; try { // Create and initialize the ORB final Functional_ORB orb = new Functional_ORB(); if (args.length > 1) for (int i = 0; i < args.length - 1; i++) { if (args[i].endsWi...
20,569
protected void installDefaults() { // FIXME: Move border to MetalBorders frame.setBorder(new InternalFrameBorder()); }
protected void installDefaults() { // FIXME: Move border to MetalBorders UIDefaults defaults = UIManager.getLookAndFeelDefaults(); Color lineColor = new Color(238, 238, 238); Border inner = BorderFactory.createLineBorder(lineColor, 1); Color shadowInner = new Color(184, 207, 229); Color shadowOuter = new Color...
20,571
public static TypeCode type() { return new primitiveArrayTypeCode(TCKind.tk_float); }
public static TypeCode type() { return new ArrayTypeCode(TCKind.tk_float); }
20,572
public TreePath getLeadSelectionPath() { return null; // TODO }
public TreePath getLeadSelectionPath() { return leadPath; // TODO }
20,574
public int getLeadSelectionRow() { return 0; // TODO }
public int getLeadSelectionRow() { if ((rowMapper == null) || (leadPath == null)) return -1; else return rowMapper.getRowsForPaths(new TreePath[]{ leadPath })[0]; // TODO }
20,575
public int getMaxSelectionRow() { return 0; // TODO }
public int getMaxSelectionRow() { if ((rowMapper == null) || (selection == null) || (selection.length == 0)) return -1; else { int[] rows = rowMapper.getRowsForPaths(selection); int maxRow = -1; for (int index = 0; index < rows.length; index++) maxRow = Math.max(maxRow, rows[index]); return maxRow; } // TODO }
20,576
public int getMinSelectionRow() { return 0; // TODO }
public int getMinSelectionRow() { if ((rowMapper == null) || (selection == null) || (selection.length == 0)) return -1; else { int[] rows = rowMapper.getRowsForPaths(selection); int minRow = Integer.MAX_VALUE; for (int index = 0; index < rows.length; index++) minRow = Math.min(minRow, rows[index]); return minRow; }...
20,577
public RowMapper getRowMapper() { return null; // TODO }
public RowMapper getRowMapper() { return rowMapper; // TODO }
20,578
public int getSelectionCount() { return 0; // TODO }
public int getSelectionCount() { if (selection == null) return 0; else return selection.length; // TODO }
20,579
public int getSelectionMode() { return 0; // TODO }
public int getSelectionMode() { return selectionMode; // TODO }
20,580
public TreePath getSelectionPath() { return null; // TODO }
public TreePath getSelectionPath() { if ((selection == null) || (selection.length == 0)) return null; else return selection[0]; // TODO }
20,581
public TreePath[] getSelectionPaths() { return null; // TODO }
public TreePath[] getSelectionPaths() { return selection; // TODO }
20,582
public int[] getSelectionRows() { return null; // TODO }
public int[] getSelectionRows() { if (rowMapper == null) return null; else return rowMapper.getRowsForPaths(selection); // TODO }
20,583
public boolean isSelectionEmpty() { return false; // TODO }
public boolean isSelectionEmpty() { return ((selection == null) || (selection.length == 0)); // TODO }
20,584
public void setSelectionMode(int value0) { // TODO }
public void setSelectionMode(int mode) { // TODO }
20,585
private void flushNode(boolean sync) throws BackingStoreException { String[] keys = null; synchronized(lock) { if (sync) { syncSpi(); } else { flushSpi(); } keys = (String[]) childCache.keySet().toArray(); } if (keys != null) { for (int i = 0; i < keys.length; i++) { // Have to lock this n...
private void flushNode(boolean sync) throws BackingStoreException { String[] keys = null; synchronized(lock) { if (sync) { syncSpi(); } else { flushSpi(); } keys = (String[]) childCache.keySet().toArray(new String[]{}); } if (keys != null) { for (int i = 0; i < keys.length; i++) { // Have ...
20,587
public void setLogicalStyle(int position, Style style) { // FIXME: Implement me. throw new Error("not implemented"); }
public void setLogicalStyle(int position, Style style) { // FIXME: Implement me. Element el = getParagraphElement(position); if (el instanceof AbstractElement) { AbstractElement ael = (AbstractElement) el; ael.setResolveParent(style); } else throw new AssertionError("paragraph elements are expected to be" + "i...
20,588
public abstract void drawString(AttributedCharacterIterator iterator, float x, float y);
public abstract void drawString(AttributedCharacterIterator iterator, float x, float y);
20,589
public void drawText(Graphics2D g, String text, Font font, int x, int y);
public void drawText(Surface g, AffineTransform tx, String text, Font font, int x, int y, Color color);
20,590
public abstract void rotate(double theta, double x, double y);
public abstract void rotate(double theta);
20,591
public int getBreakWeight(int axis, float pos, float len) { return BadBreakWeight; }
public int getBreakWeight(int axis, float pos, float len) { int weight = BadBreakWeight; if (len > getPreferredSpan(axis)) weight = GoodBreakWeight; return weight; }
20,592
public String getToolTipText(float x, float y, Shape allocation) { int index = getViewIndex(x, y, allocation); if (index < -1) return null; Shape childAllocation = getChildAllocation(index, allocation); if (childAllocation.getBounds().contains(x, y)) return getView(index).getToolTipText(x, y, c...
public String getToolTipText(float x, float y, Shape allocation) { int index = getViewIndex(x, y, allocation); if (index < -1) return null; Shape childAllocation = getChildAllocation(index, allocation); if (childAllocation.getBounds().contains(x, y)) return getView(index).getToolTipText(x, y, c...
20,593
public void insertUpdate(DocumentEvent ev, Shape shape, ViewFactory vf) { Element el = getElement(); DocumentEvent.ElementChange ec = ev.getChange(el); if (ec != null) updateChildren(ec, ev, vf); forwardUpdate(ec, ev, shape, vf); updateLayout(ec, ev, shape); }
public void insertUpdate(DocumentEvent ev, Shape shape, ViewFactory vf) { Element el = getElement(); DocumentEvent.ElementChange ec = ev.getChange(el); if (ec != null) { if (! updateChildren(ec, ev, vf)) ec = null; } forwardUpdate(ec, ev, shape, vf); updateLayout(ec, ev, shape); }
20,594
public void preferenceChanged(View child, boolean width, boolean height) { if (parent != null) parent.preferenceChanged(this, width, height); }
public void preferenceChanged(View child, boolean width, boolean height) { if (parent != null) parent.preferenceChanged(this, width, height); }
20,596
public void removeAll() { replace(0, getViewCount(), new View[0]); }
public void removeAll() { replace(0, getViewCount(), null); }
20,597
public void setParent(View parent) { if (parent == null) { int numChildren = getViewCount(); for (int i = 0; i < numChildren; i++) getView(i).setParent(null); } this.parent = parent; }
public void setParent(View parent) { if (parent == null) { int numChildren = getViewCount(); for (int i = 0; i < numChildren; i++) { View child = getView(i); if (child.getParent() == this) child.setParent(null); } } this.parent = parent; }
20,598
protected boolean updateChildren(DocumentEvent.ElementChange ec, DocumentEvent ev, ViewFactory vf) { Element[] added = ec.getChildrenAdded(); Element[] removed = ec.getChildrenRemoved(); int index = ec.getIndex(); View[] newChildren = ne...
protected boolean updateChildren(DocumentEvent.ElementChange ec, DocumentEvent ev, ViewFactory vf) { Element[] added = ec.getChildrenAdded(); Element[] removed = ec.getChildrenRemoved(); int index = ec.getIndex(); View[] newChildren = nu...
20,599
protected boolean updateChildren(DocumentEvent.ElementChange ec, DocumentEvent ev, ViewFactory vf) { Element[] added = ec.getChildrenAdded(); Element[] removed = ec.getChildrenRemoved(); int index = ec.getIndex(); View[] newChildren = ne...
protected boolean updateChildren(DocumentEvent.ElementChange ec, DocumentEvent ev, ViewFactory vf) { Element[] added = ec.getChildrenAdded(); Element[] removed = ec.getChildrenRemoved(); int index = ec.getIndex(); View[] newChildren = ne...
20,600
protected void initializeLocalVars() { setTableHeader(createDefaultTableHeader()); this.autoCreateColumnsFromModel = false; if (columnModel == null) { this.autoCreateColumnsFromModel = true; createColumnsFromModel(); } this.columnModel.addColumnModelListener(this); this.def...
protected void initializeLocalVars() { setTableHeader(createDefaultTableHeader()); this.autoCreateColumnsFromModel = false; if (columnModel == null) { this.autoCreateColumnsFromModel = true; createColumnsFromModel(); } this.columnModel.addColumnModelListener(this); this.def...
20,602
public int filterRGB(int x, int y, int rgb) { return (int) ( ( p * ( 0.299 * ( (0xff0000 & rgb) >> 16) + 0.587 * ( (0xff00 & rgb) >> 8 ) + 0.114 * (0xff & rgb ) ) )); }
public int filterRGB(int x, int y, int rgb) { return (int) (p * (0.299 * ((0xff0000 & rgb) >> 16) + 0.587 * ((0xff00 & rgb) >> 8) + 0.114 * (0xff & rgb))); }
20,603
public NamingMap() { map = new TreeMap(cmpNameComponent.singleton); }
public NamingMap() { map = new TreeMap(NameComponentComparator.singleton); }
20,604
JMenuBar getJMenuBar() { return getRootPane().getJMenuBar(); }
public JMenuBar getJMenuBar() { return getRootPane().getJMenuBar(); }
20,605
void setJMenuBar(JMenuBar menubar) { getRootPane().setJMenuBar(menubar); }
public void setJMenuBar(JMenuBar menubar) { getRootPane().setJMenuBar(menubar); }
20,606
public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column) { if (value != null) { i...
public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column) { if (value != null) { i...
20,607
public boolean isLoggable(LogRecord record) { if (record.getLevel().intValue() <= level.intValue()) return false; if (filter != null) return filter.isLoggable(record); else return true; }
public boolean isLoggable(LogRecord record) { if (record.getLevel().intValue() < level.intValue()) return false; if (filter != null) return filter.isLoggable(record); else return true; }
20,609
public String paramString() { StringBuffer s = new StringBuffer(); switch (id) { case KEY_PRESSED: s.append("KEY_PRESSED,keyCode="); break; case KEY_RELEASED: s.append("KEY_RELEASED,keyCode="); break; case KEY_TYPED: s.append("KEY_TYPED,keyCode="); ...
public String paramString() { StringBuffer s = new StringBuffer(); switch (id) { case KEY_PRESSED: s.append("KEY_PRESSED"); break; case KEY_RELEASED: s.append("KEY_RELEASED,keyCode="); break; case KEY_TYPED: s.append("KEY_TYPED,keyCode="); break; ...
20,610
public String paramString() { StringBuffer s = new StringBuffer(); switch (id) { case KEY_PRESSED: s.append("KEY_PRESSED,keyCode="); break; case KEY_RELEASED: s.append("KEY_RELEASED,keyCode="); break; case KEY_TYPED: s.append("KEY_TYPED,keyCode="); ...
public String paramString() { StringBuffer s = new StringBuffer(); switch (id) { case KEY_PRESSED: s.append("KEY_PRESSED,keyCode="); break; case KEY_RELEASED: s.append("KEY_RELEASED"); break; case KEY_TYPED: s.append("KEY_TYPED,keyCode="); break; ...
20,611
public String paramString() { StringBuffer s = new StringBuffer(); switch (id) { case KEY_PRESSED: s.append("KEY_PRESSED,keyCode="); break; case KEY_RELEASED: s.append("KEY_RELEASED,keyCode="); break; case KEY_TYPED: s.append("KEY_TYPED,keyCode="); ...
public String paramString() { StringBuffer s = new StringBuffer(); switch (id) { case KEY_PRESSED: s.append("KEY_PRESSED,keyCode="); break; case KEY_RELEASED: s.append("KEY_RELEASED,keyCode="); break; case KEY_TYPED: s.append("KEY_TYPED"); break; ...
20,612
public String paramString() { StringBuffer s = new StringBuffer(); switch (id) { case KEY_PRESSED: s.append("KEY_PRESSED,keyCode="); break; case KEY_RELEASED: s.append("KEY_RELEASED,keyCode="); break; case KEY_TYPED: s.append("KEY_TYPED,keyCode="); ...
public String paramString() { StringBuffer s = new StringBuffer(); switch (id) { case KEY_PRESSED: s.append("KEY_PRESSED,keyCode="); break; case KEY_RELEASED: s.append("KEY_RELEASED,keyCode="); break; case KEY_TYPED: s.append("KEY_TYPED,keyCode="); ...
20,613
public String paramString() { StringBuffer s = new StringBuffer(); switch (id) { case KEY_PRESSED: s.append("KEY_PRESSED,keyCode="); break; case KEY_RELEASED: s.append("KEY_RELEASED,keyCode="); break; case KEY_TYPED: s.append("KEY_TYPED,keyCode="); ...
public String paramString() { StringBuffer s = new StringBuffer(); switch (id) { case KEY_PRESSED: s.append("KEY_PRESSED,keyCode="); break; case KEY_RELEASED: s.append("KEY_RELEASED,keyCode="); break; case KEY_TYPED: s.append("KEY_TYPED,keyCode="); ...
20,614
public String paramString() { StringBuffer s = new StringBuffer(); switch (id) { case KEY_PRESSED: s.append("KEY_PRESSED,keyCode="); break; case KEY_RELEASED: s.append("KEY_RELEASED,keyCode="); break; case KEY_TYPED: s.append("KEY_TYPED,keyCode="); ...
public String paramString() { StringBuffer s = new StringBuffer(); switch (id) { case KEY_PRESSED: s.append("KEY_PRESSED,keyCode="); break; case KEY_RELEASED: s.append("KEY_RELEASED,keyCode="); break; case KEY_TYPED: s.append("KEY_TYPED,keyCode="); ...
20,615
createDefaultDragGestureRecognizer(Component c, int actions, DragGestureListener dgl) { return null; }
createDefaultDragGestureRecognizer(Component c, int actions, DragGestureListener dgl) { return createDragGestureRecognizer (MouseDragGestureRecognizer.class, c, actions, dgl); }
20,618
createDragGestureRecognizer(Class recognizer, Component c, int actions, DragGestureListener dgl) { return null; }
createDragGestureRecognizer(Class recognizer, Component c, int actions, DragGestureListener dgl) { return Toolkit.getDefaultToolkit () .createDragGestureRecognizer (recognizer, this, c, actions, dgl); }
20,619
public DragSourceListener[] getDragSourceListeners() { return null; }
public DragSourceListener[] getDragSourceListeners() { return (DragSourceListener[]) getListeners (DragSourceListener.class); }
20,620
public DragSourceMotionListener[] getDragSourceMotionListeners() { return null; }
public DragSourceMotionListener[] getDragSourceMotionListeners() { return (DragSourceMotionListener[]) getListeners (DragSourceMotionListener.class); }
20,621
public FlavorMap getFlavorMap() { return null; }
public FlavorMap getFlavorMap() { return flavorMap; }
20,622
public EventListener[] getListeners(Class type) { return null; }
public EventListener[] getListeners (Class listenerType) { return null; }
20,623
public EventListener[] getListeners(Class type) { return null; }
public EventListener[] getListeners(Class type) { if (listenerType == DragSourceListener.class) return DnDEventMulticaster.getListeners (dragSourceListener, listenerType); if (listenerType == DragSourceMotionListener.class) return DnDEventMulticaster.getListeners (dragSourceMotionListener, listenerType); retur...
20,624
static TimeZone getDefaultTimeZone(String sysTimeZoneId) { // First find start of GMT offset info and any Daylight zone name. int startGMToffset = 0; int sysTimeZoneIdLength = sysTimeZoneId.length(); for (int i = 0; i < sysTimeZoneIdLength && startGMToffset == 0; i++) { char c = sysTimeZoneId.charAt...
static TimeZone getDefaultTimeZone(String sysTimeZoneId) { // First find start of GMT offset info and any Daylight zone name. int startGMToffset = 0; int sysTimeZoneIdLength = sysTimeZoneId.length(); for (int i = 0; i < sysTimeZoneIdLength && startGMToffset == 0; i++) { char c = sysTimeZoneId.charAt...
20,627
static TimeZone getDefaultTimeZone(String sysTimeZoneId) { // First find start of GMT offset info and any Daylight zone name. int startGMToffset = 0; int sysTimeZoneIdLength = sysTimeZoneId.length(); for (int i = 0; i < sysTimeZoneIdLength && startGMToffset == 0; i++) { char c = sysTimeZoneId.charAt...
static TimeZone getDefaultTimeZone(String sysTimeZoneId) { // First find start of GMT offset info and any Daylight zone name. int startGMToffset = 0; int sysTimeZoneIdLength = sysTimeZoneId.length(); for (int i = 0; i < sysTimeZoneIdLength && startGMToffset == 0; i++) { char c = sysTimeZoneId.charAt...
20,628
static TimeZone getDefaultTimeZone(String sysTimeZoneId) { // First find start of GMT offset info and any Daylight zone name. int startGMToffset = 0; int sysTimeZoneIdLength = sysTimeZoneId.length(); for (int i = 0; i < sysTimeZoneIdLength && startGMToffset == 0; i++) { char c = sysTimeZoneId.charAt...
static TimeZone getDefaultTimeZone(String sysTimeZoneId) { // First find start of GMT offset info and any Daylight zone name. int startGMToffset = 0; int sysTimeZoneIdLength = sysTimeZoneId.length(); for (int i = 0; i < sysTimeZoneIdLength && startGMToffset == 0; i++) { char c = sysTimeZoneId.charAt...
20,629
static TimeZone getDefaultTimeZone(String sysTimeZoneId) { // First find start of GMT offset info and any Daylight zone name. int startGMToffset = 0; int sysTimeZoneIdLength = sysTimeZoneId.length(); for (int i = 0; i < sysTimeZoneIdLength && startGMToffset == 0; i++) { char c = sysTimeZoneId.charAt...
static TimeZone getDefaultTimeZone(String sysTimeZoneId) { // First find start of GMT offset info and any Daylight zone name. int startGMToffset = 0; int sysTimeZoneIdLength = sysTimeZoneId.length(); for (int i = 0; i < sysTimeZoneIdLength && startGMToffset == 0; i++) { char c = sysTimeZoneId.charAt...
20,630
static TimeZone getDefaultTimeZone(String sysTimeZoneId) { // First find start of GMT offset info and any Daylight zone name. int startGMToffset = 0; int sysTimeZoneIdLength = sysTimeZoneId.length(); for (int i = 0; i < sysTimeZoneIdLength && startGMToffset == 0; i++) { char c = sysTimeZoneId.charAt...
static TimeZone getDefaultTimeZone(String sysTimeZoneId) { // First find start of GMT offset info and any Daylight zone name. int startGMToffset = 0; int sysTimeZoneIdLength = sysTimeZoneId.length(); for (int i = 0; i < sysTimeZoneIdLength && startGMToffset == 0; i++) { char c = sysTimeZoneId.charAt...
20,631
static TimeZone getDefaultTimeZone(String sysTimeZoneId) { // First find start of GMT offset info and any Daylight zone name. int startGMToffset = 0; int sysTimeZoneIdLength = sysTimeZoneId.length(); for (int i = 0; i < sysTimeZoneIdLength && startGMToffset == 0; i++) { char c = sysTimeZoneId.charAt...
static TimeZone getDefaultTimeZone(String sysTimeZoneId) { // First find start of GMT offset info and any Daylight zone name. int startGMToffset = 0; int sysTimeZoneIdLength = sysTimeZoneId.length(); for (int i = 0; i < sysTimeZoneIdLength && startGMToffset == 0; i++) { char c = sysTimeZoneId.charAt...
20,632
static TimeZone getDefaultTimeZone(String sysTimeZoneId) { // First find start of GMT offset info and any Daylight zone name. int startGMToffset = 0; int sysTimeZoneIdLength = sysTimeZoneId.length(); for (int i = 0; i < sysTimeZoneIdLength && startGMToffset == 0; i++) { char c = sysTimeZoneId.charAt...
static TimeZone getDefaultTimeZone(String sysTimeZoneId) { // First find start of GMT offset info and any Daylight zone name. int startGMToffset = 0; int sysTimeZoneIdLength = sysTimeZoneId.length(); for (int i = 0; i < sysTimeZoneIdLength && startGMToffset == 0; i++) { char c = sysTimeZoneId.charAt...
20,633
static TimeZone getDefaultTimeZone(String sysTimeZoneId) { // First find start of GMT offset info and any Daylight zone name. int startGMToffset = 0; int sysTimeZoneIdLength = sysTimeZoneId.length(); for (int i = 0; i < sysTimeZoneIdLength && startGMToffset == 0; i++) { char c = sysTimeZoneId.charAt...
static TimeZone getDefaultTimeZone(String sysTimeZoneId) { // First find start of GMT offset info and any Daylight zone name. int startGMToffset = 0; int sysTimeZoneIdLength = sysTimeZoneId.length(); for (int i = 0; i < sysTimeZoneIdLength && startGMToffset == 0; i++) { char c = sysTimeZoneId.charAt...
20,634
static TimeZone getDefaultTimeZone(String sysTimeZoneId) { // First find start of GMT offset info and any Daylight zone name. int startGMToffset = 0; int sysTimeZoneIdLength = sysTimeZoneId.length(); for (int i = 0; i < sysTimeZoneIdLength && startGMToffset == 0; i++) { char c = sysTimeZoneId.charAt...
static TimeZone getDefaultTimeZone(String sysTimeZoneId) { // First find start of GMT offset info and any Daylight zone name. int startGMToffset = 0; int sysTimeZoneIdLength = sysTimeZoneId.length(); for (int i = 0; i < sysTimeZoneIdLength && startGMToffset == 0; i++) { char c = sysTimeZoneId.charAt...
20,635