bugged
stringlengths
6
599k
fixed
stringlengths
6
40.8M
__index_level_0__
int64
0
3.24M
public static String size(long v) { // Is < 1Kb? if (v < K) { return String.valueOf(v) + "b"; } // Is < 1Mb? v = v >>> 10; if (v < K) { return String.valueOf(v) + "K"; } // Is < 1Gb? v = v >>> 10; if (v < K) { return String.valueOf(v) + "M"; } // ...
public static String size(long v) { // Is < 1Kb? if (v < K) { return String.valueOf(v) + "b"; } // Is < 1Mb? v = v >>> 10; if (v < K) { return String.valueOf(v) + "K"; } // Is < 1Gb? v = v >>> 10; if (v < K) { return String.valueOf(v) + "M"; } // ...
21,511
public static String size(long v) { // Is < 1Kb? if (v < K) { return String.valueOf(v) + "b"; } // Is < 1Mb? v = v >>> 10; if (v < K) { return String.valueOf(v) + "K"; } // Is < 1Gb? v = v >>> 10; if (v < K) { return String.valueOf(v) + "M"; } // ...
public static String size(long v) { // Is < 1Kb? if (v < K) { return String.valueOf(v) + "b"; } // Is < 1Mb? v = v >>> 10; if (v < K) { return String.valueOf(v) + "K"; } // Is < 1Gb? v = v >>> 10; if (v < K) { return String.valueOf(v) + "M"; } // ...
21,512
public boolean desiredAssertionStatus() { ClassLoader c = getClassLoader(); Object status; if (c == null) return VMClassLoader.defaultAssertionStatus(); if (c.classAssertionStatus != null) synchronized (c) { status = c.classAssertionStatus.get(getName...
public boolean desiredAssertionStatus() { ClassLoader c = getClassLoader(); Object status; if (c == null) return VMClassLoader.defaultAssertionStatus(); if (c.classAssertionStatus != null) synchronized (c) { status = c.classAssertionStatus.get(getName...
21,513
public boolean desiredAssertionStatus() { ClassLoader c = getClassLoader(); Object status; if (c == null) return VMClassLoader.defaultAssertionStatus(); if (c.classAssertionStatus != null) synchronized (c) { status = c.classAssertionStatus.get(getName...
public boolean desiredAssertionStatus() { ClassLoader c = getClassLoader(); Object status; if (c == null) return VMClassLoader.defaultAssertionStatus(); if (c.classAssertionStatus != null) synchronized (c) { status = c.classAssertionStatus.get(getName...
21,514
public Class getComponentType() { final VmType<T> vmClass = getLinkedVmClass(); if (vmClass instanceof VmArrayClass) { final VmType<?> vmCompType = ((VmArrayClass<T>) vmClass) .getComponentType(); if (vmCompType != null) { return vmCompType.asCla...
public Class getComponentType() { final VmType<T> vmClass = getLinkedVmClass(); if (vmClass instanceof VmArrayClass) { final VmType< ? > vmCompType = ((VmArrayClass<T>) vmClass) .getComponentType(); if (vmCompType != null) { return vmCompType.asC...
21,516
public Constructor getConstructor(Class[] argTypes) throws NoSuchMethodException { // Check security memberAccessCheck(Member.PUBLIC); // Create signature String signature = Signature.toSignature(null, argTypes); final VmMethod vmMethod = getLinkedVmClass().getD...
public Constructor getConstructor(Class[] argTypes) throws NoSuchMethodException { // Check security memberAccessCheck(Member.PUBLIC); // Create signature String signature = Signature.toSignature(null, argTypes); final VmMethod vmMethod = getLinkedVmClass().getD...
21,517
public Constructor getConstructor(Class[] argTypes) throws NoSuchMethodException { // Check security memberAccessCheck(Member.PUBLIC); // Create signature String signature = Signature.toSignature(null, argTypes); final VmMethod vmMethod = getLinkedVmClass().getD...
public Constructor getConstructor(Class[] argTypes) throws NoSuchMethodException { // Check security memberAccessCheck(Member.PUBLIC); // Create signature String signature = Signature.toSignature(null, argTypes); final VmMethod vmMethod = getLinkedVmClass().getD...
21,518
public Method getDeclaredMethod(String name, Class<?>[] argTypes) throws NoSuchMethodException, SecurityException { VmType<?>[] vmArgTypes; if (argTypes == null) { vmArgTypes = null; } else { final int cnt = argTypes.length; vmArgTypes = new VmType[cn...
public Method getDeclaredMethod(String name, Class< ? >[] argTypes) throws NoSuchMethodException, SecurityException { VmType<?>[] vmArgTypes; if (argTypes == null) { vmArgTypes = null; } else { final int cnt = argTypes.length; vmArgTypes = new VmType[...
21,519
public Method getDeclaredMethod(String name, Class<?>[] argTypes) throws NoSuchMethodException, SecurityException { VmType<?>[] vmArgTypes; if (argTypes == null) { vmArgTypes = null; } else { final int cnt = argTypes.length; vmArgTypes = new VmType[cn...
public Method getDeclaredMethod(String name, Class<?>[] argTypes) throws NoSuchMethodException, SecurityException { VmType< ? >[] vmArgTypes; if (argTypes == null) { vmArgTypes = null; } else { final int cnt = argTypes.length; vmArgTypes = new VmType[...
21,520
public Field[] getFields() { if (fields == null) { ArrayList<Field> list = new ArrayList<Field>(); Class<?> cls = this; while (cls != null) { final Field[] dlist = cls.getDeclaredFields(); for (int i = 0; i < dlist.length; i++) { ...
public Field[] getFields() { if (fields == null) { ArrayList<Field> list = new ArrayList<Field>(); Class< ? > cls = this; while (cls != null) { final Field[] dlist = cls.getDeclaredFields(); for (int i = 0; i < dlist.length; i++) { ...
21,521
public Method getMethod(String name, Class<?>[] argTypes) throws NoSuchMethodException, SecurityException { VmType<?>[] vmArgTypes; if (argTypes == null) { vmArgTypes = null; } else { final int cnt = argTypes.length; vmArgTypes = new VmType[cnt]; ...
public Method getMethod(String name, Class< ? >[] argTypes) throws NoSuchMethodException, SecurityException { VmType<?>[] vmArgTypes; if (argTypes == null) { vmArgTypes = null; } else { final int cnt = argTypes.length; vmArgTypes = new VmType[cnt]; ...
21,522
public Method getMethod(String name, Class<?>[] argTypes) throws NoSuchMethodException, SecurityException { VmType<?>[] vmArgTypes; if (argTypes == null) { vmArgTypes = null; } else { final int cnt = argTypes.length; vmArgTypes = new VmType[cnt]; ...
public Method getMethod(String name, Class<?>[] argTypes) throws NoSuchMethodException, SecurityException { VmType< ? >[] vmArgTypes; if (argTypes == null) { vmArgTypes = null; } else { final int cnt = argTypes.length; vmArgTypes = new VmType[cnt]; ...
21,523
public Method[] getMethods() { if (methods == null) { final ArrayList<Method> list = new ArrayList<Method>(); Class<?> cls = this; while (cls != null) { final Method[] dlist = cls.getDeclaredMethods(); for (int i = 0; i < dlist.length; i++) { ...
public Method[] getMethods() { if (methods == null) { final ArrayList<Method> list = new ArrayList<Method>(); Class< ? > cls = this; while (cls != null) { final Method[] dlist = cls.getDeclaredMethods(); for (int i = 0; i < dlist.length; i++) { ...
21,524
public final Class< ? super T> getSuperclass() { VmType<? super T> superCls = getLinkedVmClass().getSuperClass(); if (superCls != null) { return superCls.asClass(); } else { return null; } }
public final Class< ? super T> getSuperclass() { VmType< ? super T> superCls = getLinkedVmClass().getSuperClass(); if (superCls != null) { return superCls.asClass(); } else { return null; } }
21,525
public boolean isAnnotationPresent(Class< ? extends Annotation> annotationClass) { return vmClass.isAnnotationPresent(annotationClass); }
public boolean isAnnotationPresent( Class< ? extends Annotation> annotationClass) { return vmClass.isAnnotationPresent(annotationClass); }
21,526
public boolean isAssignableFrom(Class<?> c) { return getLinkedVmClass().isAssignableFrom(c.getLinkedVmClass()); }
public boolean isAssignableFrom(Class< ? > c) { return getLinkedVmClass().isAssignableFrom(c.getLinkedVmClass()); }
21,527
public final VmMethod getDeclaredMethod(String name, String signature) { return getMethod(name, signature, true, false, VmMember.calcHashCode( name, signature)); }
public final VmMethod getDeclaredMethod(String name, String signature) { return getMethod(name, signature, true, false, VmMember.calcHashCode( name, signature)); }
21,528
public final VmField getDeclaredField(String name) { return getDeclaredField(name, null); }
public final VmField getDeclaredField(String name) { return getDeclaredField(name, null); }
21,529
public NoSuchFieldException(String s) { super(s); }
public NoSuchFieldException() { super(s); }
21,530
public NoSuchFieldException(String s) { super(s); }
public NoSuchFieldException(String s) { }
21,531
public final VmMethod getMethod(String name, VmType[] argTypes) { return getMethod(name, argTypes, false); }
public final VmMethod getMethod(String name, VmType[] argTypes) { return getMethod(name, argTypes, false); }
21,532
public synchronized AWTEvent getNextEvent() throws InterruptedException { if (next != null) return next.getNextEvent(); ClasspathToolkit tk = ((ClasspathToolkit) Toolkit.getDefaultToolkit()); long curr = System.currentTimeMillis(); if (!tk.nativeQueueEmpty() && (c...
public synchronized AWTEvent getNextEvent() throws InterruptedException { if (next != null) return next.getNextEvent(); ClasspathToolkit tk = ((ClasspathToolkit) Toolkit.getDefaultToolkit()); long curr = System.currentTimeMillis(); if (!tk.nativeQueueEmpty() && (c...
21,533
public synchronized AWTEvent getNextEvent() throws InterruptedException { if (next != null) return next.getNextEvent(); ClasspathToolkit tk = ((ClasspathToolkit) Toolkit.getDefaultToolkit()); long curr = System.currentTimeMillis(); if (!tk.nativeQueueEmpty() && (c...
public synchronized AWTEvent getNextEvent() throws InterruptedException { if (next != null) return next.getNextEvent(); ClasspathToolkit tk = ((ClasspathToolkit) Toolkit.getDefaultToolkit()); long curr = System.currentTimeMillis(); if (!tk.nativeQueueEmpty() && (c...
21,534
public synchronized AWTEvent getNextEvent() throws InterruptedException { if (next != null) return next.getNextEvent(); ClasspathToolkit tk = ((ClasspathToolkit) Toolkit.getDefaultToolkit()); long curr = System.currentTimeMillis(); if (!tk.nativeQueueEmpty() && (c...
public synchronized AWTEvent getNextEvent() throws InterruptedException { if (next != null) return next.getNextEvent(); ClasspathToolkit tk = ((ClasspathToolkit) Toolkit.getDefaultToolkit()); long curr = System.currentTimeMillis(); if (!tk.nativeQueueEmpty() && (c...
21,535
public synchronized AWTEvent getNextEvent() throws InterruptedException { if (next != null) return next.getNextEvent(); ClasspathToolkit tk = ((ClasspathToolkit) Toolkit.getDefaultToolkit()); long curr = System.currentTimeMillis(); if (!tk.nativeQueueEmpty() && (c...
public synchronized AWTEvent getNextEvent() throws InterruptedException { if (next != null) return next.getNextEvent(); ClasspathToolkit tk = ((ClasspathToolkit) Toolkit.getDefaultToolkit()); long curr = System.currentTimeMillis(); if (!tk.nativeQueueEmpty() && (c...
21,536
public synchronized AWTEvent getNextEvent() throws InterruptedException { if (next != null) return next.getNextEvent(); ClasspathToolkit tk = ((ClasspathToolkit) Toolkit.getDefaultToolkit()); long curr = System.currentTimeMillis(); if (!tk.nativeQueueEmpty() && (c...
public synchronized AWTEvent getNextEvent() throws InterruptedException { if (next != null) return next.getNextEvent(); ClasspathToolkit tk = ((ClasspathToolkit) Toolkit.getDefaultToolkit()); long curr = System.currentTimeMillis(); if (!tk.nativeQueueEmpty() && (c...
21,537
public synchronized AWTEvent getNextEvent() throws InterruptedException { if (next != null) return next.getNextEvent(); ClasspathToolkit tk = ((ClasspathToolkit) Toolkit.getDefaultToolkit()); long curr = System.currentTimeMillis(); if (!tk.nativeQueueEmpty() && (c...
public synchronized AWTEvent getNextEvent() throws InterruptedException { if (next != null) return next.getNextEvent(); ClasspathToolkit tk = ((ClasspathToolkit) Toolkit.getDefaultToolkit()); long curr = System.currentTimeMillis(); if (!tk.nativeQueueEmpty() && (c...
21,538
public synchronized void postEvent(AWTEvent evt) { if (evt == null) throw new NullPointerException(); if (next != null) { next.postEvent(evt); return; } /* * Check for any events already on the queue with the same source and * ID. */...
public synchronized void postEvent(AWTEvent evt) { if (evt == null) throw new NullPointerException(); if (next != null) { next.postEvent(evt); return; } /* * Check for any events already on the queue with the same source and * ID. */...
21,539
public synchronized void postEvent(AWTEvent evt) { if (evt == null) throw new NullPointerException(); if (next != null) { next.postEvent(evt); return; } /* * Check for any events already on the queue with the same source and * ID. */...
public synchronized void postEvent(AWTEvent evt) { if (evt == null) throw new NullPointerException(); if (next != null) { next.postEvent(evt); return; } /* * Check for any events already on the queue with the same source and * ID. */...
21,540
public synchronized void postEvent(AWTEvent evt) { if (evt == null) throw new NullPointerException(); if (next != null) { next.postEvent(evt); return; } /* * Check for any events already on the queue with the same source and * ID. */...
public synchronized void postEvent(AWTEvent evt) { if (evt == null) throw new NullPointerException(); if (next != null) { next.postEvent(evt); return; } /* * Check for any events already on the queue with the same source and * ID. */...
21,541
public synchronized void postEvent(AWTEvent evt) { if (evt == null) throw new NullPointerException(); if (next != null) { next.postEvent(evt); return; } /* * Check for any events already on the queue with the same source and * ID. */...
public synchronized void postEvent(AWTEvent evt) { if (evt == null) throw new NullPointerException(); if (next != null) { next.postEvent(evt); return; } /* * Check for any events already on the queue with the same source and * ID. */...
21,542
public synchronized void postEvent(AWTEvent evt) { if (evt == null) throw new NullPointerException(); if (next != null) { next.postEvent(evt); return; } /* * Check for any events already on the queue with the same source and * ID. */...
public synchronized void postEvent(AWTEvent evt) { if (evt == null) throw new NullPointerException(); if (next != null) { next.postEvent(evt); return; } /* * Check for any events already on the queue with the same source and * ID. */...
21,543
public synchronized void postEvent(AWTEvent evt) { if (evt == null) throw new NullPointerException(); if (next != null) { next.postEvent(evt); return; } /* * Check for any events already on the queue with the same source and * ID. */...
public synchronized void postEvent(AWTEvent evt) { if (evt == null) throw new NullPointerException(); if (next != null) { next.postEvent(evt); return; } /* * Check for any events already on the queue with the same source and * ID. */...
21,544
public synchronized void postEvent(AWTEvent evt) { if (evt == null) throw new NullPointerException(); if (next != null) { next.postEvent(evt); return; } /* * Check for any events already on the queue with the same source and * ID. */...
public synchronized void postEvent(AWTEvent evt) { if (evt == null) throw new NullPointerException(); if (next != null) { next.postEvent(evt); return; } /* * Check for any events already on the queue with the same source and * ID. */...
21,545
public synchronized void postEvent(AWTEvent evt) { if (evt == null) throw new NullPointerException(); if (next != null) { next.postEvent(evt); return; } /* * Check for any events already on the queue with the same source and * ID. */...
public synchronized void postEvent(AWTEvent evt) { if (evt == null) throw new NullPointerException(); if (next != null) { next.postEvent(evt); return; } /* * Check for any events already on the queue with the same source and * ID. */...
21,546
public synchronized void postEvent(AWTEvent evt) { if (evt == null) throw new NullPointerException(); if (next != null) { next.postEvent(evt); return; } /* * Check for any events already on the queue with the same source and * ID. */...
public synchronized void postEvent(AWTEvent evt) { if (evt == null) throw new NullPointerException(); if (next != null) { next.postEvent(evt); return; } /* * Check for any events already on the queue with the same source and * ID. */...
21,547
EventDispatchThread(EventQueue queue) { super(); setName("AWT-EventQueue-" + ++dispatchThreadNum); this.queue = queue;// setPriority(NORM_PRIORITY + 1); }
setPriority(NORM_PRIORITY + 1); setPriority(NORM_PRIORITY + 1); EventDispatchThread(EventQueuesetPriority(NORM_PRIORITY + 1); queue)setPriority(NORM_PRIORITY + 1); setPriority(NORM_PRIORITY + 1); { super();setPriority(NORM_PRIORITY + 1); setPriority(NORM_PRIORITY + 1); setPriority(NORM_PRIORITY + 1); setPriority(NORM_...
21,548
public InvocationEvent(Object source, Runnable runnable, Object notifier, boolean catchExceptions) { this(source, INVOCATION_DEFAULT, runnable, notifier, catchExceptions); }
public InvocationEvent(Object source, Runnable runnable, Object notifier, boolean catchExceptions) { this(source, INVOCATION_DEFAULT, runnable, notifier, catchExceptions); }
21,549
public InvocationEvent(Object source, Runnable runnable, Object notifier, boolean catchExceptions) { this(source, INVOCATION_DEFAULT, runnable, notifier, catchExceptions); }
public InvocationEvent(Object source, Runnable runnable, Object notifier, boolean catchExceptions) { this(source, INVOCATION_DEFAULT, runnable, null, false); }
21,550
public char[] getPassword() { return (password); }
public char[] getPassword() { return password; }
21,551
public String getUserName() { return (username); }
public String getUserName() { return username; }
21,552
public boolean isSelected () { return (index == -1); }
public boolean isSelected () { return (index != -1); }
21,553
AbstractButton FindButton(ButtonModel m) { for (int i = 0; i < v.size(); i++) { AbstractButton a = (AbstractButton) v.get(i); if (a.getModel() == m) { return a; } } return null; }
AbstractButton FindButton(ButtonModel m) { for (int i = 0; i < v.size(); i++) { AbstractButton a = (AbstractButton) v.get(i); if (a.getModel() == m) { return a; } } return null; }
21,554
public int getButtonCount() { return v.size(); }
public int getButtonCount() { return v.size(); }
21,556
public Enumeration getElements() { return v.elements(); }
public Enumeration getElements() { return v.elements(); }
21,557
public ButtonModel getSelection() { return sel; }
public ButtonModel getSelection() { return sel; }
21,558
public boolean isSelected(ButtonModel m) { return (m == sel); }
public boolean isSelected(ButtonModel m) { return (m == sel); }
21,559
public void remove(AbstractButton b) { b.getModel().setGroup(null); v.removeElement(b); }
public void remove(AbstractButton b) { b.getModel().setGroup(null); v.removeElement(b); }
21,560
public void setSelected(ButtonModel m, boolean b) { if ((m == sel) && (b == true)) { // clicked on sam item twice. System.out.println("PRESSED TWICE:" + m + ", sel=" + sel); return; } if (sel != null) { System.out.println("DESELECTING: " + sel); sel.setSelected(!b); AbstractButton but = FindButton(sel);...
public void setSelected(ButtonModel m, boolean b) { if ((m == sel) && (b == true)) { // clicked on sam item twice. System.out.println("PRESSED TWICE:" + m + ", sel=" + sel); return; } if (sel != null) { System.out.println("DESELECTING: " + sel); sel.setSelected(!b); AbstractButton but = FindButton(sel);...
21,561
public void setSelected(ButtonModel m, boolean b) { if ((m == sel) && (b == true)) { // clicked on sam item twice. System.out.println("PRESSED TWICE:" + m + ", sel=" + sel); return; } if (sel != null) { System.out.println("DESELECTING: " + sel); sel.setSelected(!b); AbstractButton but = FindButton(sel);...
public void setSelected(ButtonModel m, boolean b) { if ((m == sel) && (b == true)) { // clicked on sam item twice. System.out.println("PRESSED TWICE:" + m + ", sel=" + sel); return; } if (sel != null) { System.out.println("DESELECTING: " + sel); sel.setSelected(!b); AbstractButton but = FindButton(sel);...
21,562
public void setSelected(ButtonModel m, boolean b) { if ((m == sel) && (b == true)) { // clicked on sam item twice. System.out.println("PRESSED TWICE:" + m + ", sel=" + sel); return; } if (sel != null) { System.out.println("DESELECTING: " + sel); sel.setSelected(!b); AbstractButton but = FindButton(sel);...
public void setSelected(ButtonModel m, boolean b) { if ((m == sel) && (b == true)) { // clicked on sam item twice. System.out.println("PRESSED TWICE:" + m + ", sel=" + sel); return; } if (sel != null) { System.out.println("DESELECTING: " + sel); sel.setSelected(!b); AbstractButton but = FindButton(sel);...
21,563
public abstract boolean addEntry(Principal caller, AclEntry entry) throws NotOwnerException;
boolean addEntry(Principal caller, AclEntry entry) throws NotOwnerException;
21,564
public abstract boolean checkPermission(Principal user, Permission perm);
public abstract boolean checkPermission(Principal user, Permission perm);
21,565
public abstract Enumeration entries();
public abstract Enumeration entries();
21,566
public abstract String getName();
public abstract String getName();
21,567
public abstract Enumeration getPermissions(Principal user);
public abstract Enumeration getPermissions(Principal user);
21,568
public abstract boolean removeEntry(Principal caller, AclEntry entry) throws NotOwnerException;
boolean removeEntry(Principal caller, AclEntry entry) throws NotOwnerException;
21,569
public abstract void setName(Principal caller, String name) throws NotOwnerException;
void setName(Principal caller, String name) throws NotOwnerException;
21,570
public abstract String toString();
public abstract String toString();
21,571
public HTMLFrameHyperlinkEvent(Object source, EventType type, URL url, Element element, String frame ) { super(source, type, url, frame, element); target_frame = frame; }
public HTMLFrameHyperlinkEvent(Object source, EventType type, URL url, Element element, String frame ) { super(source, type, url, frame, element); target_frame = frame; }
21,572
public int hashCode () { // FIXME: Check what SUN calculates here. return super.hashCode (); }
public int hashCode () { // FIXME: Check what SUN calculates here. return super.hashCode (); }
21,573
public void waitForIdle () { if (EventQueue.isDispatchThread ()) throw new IllegalThreadStateException ("Robot: waitForIdle called from " + "the event dispatch thread"); EventQueue q = Toolkit.getDefaultToolkit ().getSystemEventQueue (); try { q.invokeAndWait (new Runnable () { public void run ...
public void waitForIdle () { if (EventQueue.isDispatchThread ()) throw new IllegalThreadStateException ("Robot: waitForIdle called from " + "the event dispatch thread"); EventQueue q = Toolkit.getDefaultToolkit ().getSystemEventQueue (); try { q.invokeAndWait (new Runnable () { public void run ...
21,574
public void waitForIdle () { if (EventQueue.isDispatchThread ()) throw new IllegalThreadStateException ("Robot: waitForIdle called from " + "the event dispatch thread"); EventQueue q = Toolkit.getDefaultToolkit ().getSystemEventQueue (); try { q.invokeAndWait (new Runnable () { public void run ...
public void waitForIdle () { if (EventQueue.isDispatchThread ()) throw new IllegalThreadStateException ("Robot: waitForIdle called from " + "the event dispatch thread"); EventQueue q = Toolkit.getDefaultToolkit ().getSystemEventQueue (); try { q.invokeAndWait (new Runnable () { public void run ...
21,575
q.invokeAndWait (new Runnable () { public void run () { } });
q.invokeAndWait (new Runnable () { public void run () { } });
21,576
int[] getRGBPixels (Rectangle r);
int[] getRGBPixels (Rectangle r);
21,577
void keyPress (int x);
void keyPress (int x);
21,578
void keyRelease (int x);
void keyRelease (int x);
21,579
void mousePress (int x);
void mousePress (int x);
21,580
void mouseRelease (int x);
void mouseRelease (int x);
21,581
void mouseWheel (int x);
void mouseWheel (int x);
21,582
public InetAddress[] getHostByName(String hostname) throws UnknownHostException;
public byte[][] getHostByName(String hostname) throws UnknownHostException;
21,583
public void paintBorder(Component c, Graphics g, int x, int y, int w, int h) { if (c instanceof JMenu) { JMenu menu = (JMenu) c; if (menu.isSelected()) { g.setColor(borderColorDark); g.drawLine(x, y, x, y + h); g.drawLine(x, y, x + w, y); g.dra...
public void paintBorder(Component c, Graphics g, int x, int y, int w, int h) { if (c instanceof JMenu) { JMenu menu = (JMenu) c; if (menu.isSelected()) { g.setColor(dark); g.drawLine(x, y, x, y + h); g.drawLine(x, y, x + w, y); g.drawLine(x + w...
21,584
public void paintBorder(Component c, Graphics g, int x, int y, int w, int h) { if (c instanceof JMenu) { JMenu menu = (JMenu) c; if (menu.isSelected()) { g.setColor(borderColorDark); g.drawLine(x, y, x, y + h); g.drawLine(x, y, x + w, y); g.dra...
public void paintBorder(Component c, Graphics g, int x, int y, int w, int h) { if (c instanceof JMenu) { JMenu menu = (JMenu) c; if (menu.isSelected()) { g.setColor(borderColorDark); g.drawLine(x, y, x, y + h); g.drawLine(x, y, x + w, y); g.dra...
21,585
public void paintBorder(Component c, Graphics g, int x, int y, int w, int h) { if (c instanceof JMenu) { JMenu menu = (JMenu) c; if (menu.isSelected()) { g.setColor(borderColorDark); g.drawLine(x, y, x, y + h); g.drawLine(x, y, x + w, y); g.dra...
public void paintBorder(Component c, Graphics g, int x, int y, int w, int h) { if (c instanceof JMenu) { JMenu menu = (JMenu) c; if (menu.isSelected()) { g.setColor(borderColorDark); g.drawLine(x, y, x, y + h); g.drawLine(x, y, x + w, y); g.dra...
21,586
public void paintBorder(Component c, Graphics g, int x, int y, int w, int h) { Color darkShadow = MetalLookAndFeel.getPrimaryControlDarkShadow(); Color light = MetalLookAndFeel.getPrimaryControlHighlight(); // draw dark outer border g.setColor(darkShadow); g.dr...
public void paintBorder(Component c, Graphics g, int x, int y, int w, int h) { Color darkShadow = MetalLookAndFeel.getPrimaryControlDarkShadow(); Color light = MetalLookAndFeel.getPrimaryControlHighlight(); // draw dark outer border g.setColor(darkShadow); g.dr...
21,587
public void paintBorder(Component c, Graphics g, int x, int y, int w, int h) { JToolBar tb = (JToolBar) c; if (tb.getOrientation() == JToolBar.HORIZONTAL) { MetalUtils.fillMetalPattern(g, x + 2, y + 2, x + 11, y + h - 5, MetalLookAndFeel.getControlHigh...
public void paintBorder(Component c, Graphics g, int x, int y, int w, int h) { JToolBar tb = (JToolBar) c; if (tb.getOrientation() == JToolBar.HORIZONTAL) { MetalUtils.fillMetalPattern(tb, g, x + 2, y + 2, x + 11, y + h - 5, MetalLookAndFeel.getControl...
21,588
public void paintBorder(Component c, Graphics g, int x, int y, int w, int h) { JToolBar tb = (JToolBar) c; if (tb.getOrientation() == JToolBar.HORIZONTAL) { MetalUtils.fillMetalPattern(g, x + 2, y + 2, x + 11, y + h - 5, MetalLookAndFeel.getControlHigh...
public void paintBorder(Component c, Graphics g, int x, int y, int w, int h) { JToolBar tb = (JToolBar) c; if (tb.getOrientation() == JToolBar.HORIZONTAL) { MetalUtils.fillMetalPattern(g, x + 2, y + 2, x + 11, y + h - 5, MetalLookAndFeel.getControlHigh...
21,589
public StreamResult(OutputStream stream) { this.outputStream = stream; }
public StreamResult(OutputStream stream) { this.outputStream = stream; }
21,590
public void propertyChange(PropertyChangeEvent e) { String propName = e.getPropertyName(); if (propName.equals("JInternalFrame.isPalette")) { if (e.getNewValue().equals(Boolean.TRUE)) setPalette(true); else setPalette(false); } else supe...
public void propertyChange(PropertyChangeEvent e) { String propName = e.getPropertyName(); if (e.getPropertyName().equals(JInternalFrame.FRAME_ICON_PROPERTY)) { title.setIcon(frame.getFrameIcon()); } else if (propName.equals("JInternalFrame.isPalette")) { if (e.getNewValue().equals(Bool...
21,591
public void paintComponent(Graphics g) { Color savedColor = g.getColor(); if (isPalette) paintPalette(g); else { paintTitleBackground(g); paintChildren(g); Dimension d = getSize(); if (frame.isSelected()) g.setColor(MetalLookAndFeel.getPrimaryControlDarkShadow(...
public void paintComponent(Graphics g) { Color savedColor = g.getColor(); if (isPalette) paintPalette(g); else { paintTitleBackground(g); paintChildren(g); Dimension d = getSize(); if (frame.isSelected()) g.setColor(MetalLookAndFeel.getPrimaryControlDarkShadow(...
21,592
AttributedString(AttributedCharacterIterator aci){ this(aci, aci.getBeginIndex(), aci.getEndIndex(), null);}
AttributedString(AttributedCharacterIterator aci){ this(aci, aci.getBeginIndex(), aci.getEndIndex(), null);}
21,593
AttributedString(AttributedCharacterIterator aci){ this(aci, aci.getBeginIndex(), aci.getEndIndex(), null);}
AttributedString(AttributedCharacterIterator aci){ this(aci, aci.getBeginIndex(), aci.getEndIndex(), null);}
21,594
addAttribute(AttributedCharacterIterator.Attribute attrib, Object value){ addAttribute(attrib, value, 0, sci.getEndIndex() - 1);}
addAttribute(AttributedCharacterIterator.Attribute attrib, Object value){ addAttribute(attrib, value, 0, sci.getEndIndex() - 1);}
21,595
getIterator(){ return(new AttributedStringIterator(sci, attribs, 0, sci.getEndIndex() - 1, null));}
getIterator(){ return(new AttributedStringIterator(sci, attribs, 0, sci.getEndIndex() - 1, null));}
21,596
public final void visit_dup2_x2() { // Push all on the stack, since this opcode is just too complicated vstack.push(eContext); System.out.println("NEW dup2_x2"); final Item v1 = vstack.pop1(); final Item v2 = vstack.pop1(); final int c1 = v1.getCategory(); final int c2 = v2.getCat...
public final void visit_dup2_x2() { // Push all on the stack, since this opcode is just too complicated vstack.push(eContext); System.out.println("NEW dup2_x2"); final Item v1 = vstack.pop1(); final Item v2 = vstack.pop1(); final int c1 = v1.getCategory(); final int c2 = v2.getCat...
21,597
public final void visit_dup2_x2() { // Push all on the stack, since this opcode is just too complicated vstack.push(eContext); System.out.println("NEW dup2_x2"); final Item v1 = vstack.pop1(); final Item v2 = vstack.pop1(); final int c1 = v1.getCategory(); final int c2 = v2.getCat...
public final void visit_dup2_x2() { // Push all on the stack, since this opcode is just too complicated vstack.push(eContext); System.out.println("NEW dup2_x2"); final Item v1 = vstack.pop1(); final Item v2 = vstack.pop1(); final int c1 = v1.getCategory(); final int c2 = v2.getCat...
21,598
public final void visit_dup2_x2() { // Push all on the stack, since this opcode is just too complicated vstack.push(eContext); System.out.println("NEW dup2_x2"); final Item v1 = vstack.pop1(); final Item v2 = vstack.pop1(); final int c1 = v1.getCategory(); final int c2 = v2.getCat...
public final void visit_dup2_x2() { // Push all on the stack, since this opcode is just too complicated vstack.push(eContext); System.out.println("NEW dup2_x2"); final Item v1 = vstack.pop1(); final Item v2 = vstack.pop1(); final int c1 = v1.getCategory(); final int c2 = v2.getCat...
21,599
public final void visit_dup2_x2() { // Push all on the stack, since this opcode is just too complicated vstack.push(eContext); System.out.println("NEW dup2_x2"); final Item v1 = vstack.pop1(); final Item v2 = vstack.pop1(); final int c1 = v1.getCategory(); final int c2 = v2.getCat...
public final void visit_dup2_x2() { // Push all on the stack, since this opcode is just too complicated vstack.push(eContext); System.out.println("NEW dup2_x2"); final Item v1 = vstack.pop1(); final Item v2 = vstack.pop1(); final int c1 = v1.getCategory(); final int c2 = v2.getCat...
21,600
public final void visit_dup2_x2() { // Push all on the stack, since this opcode is just too complicated vstack.push(eContext); System.out.println("NEW dup2_x2"); final Item v1 = vstack.pop1(); final Item v2 = vstack.pop1(); final int c1 = v1.getCategory(); final int c2 = v2.getCat...
public final void visit_dup2_x2() { // Push all on the stack, since this opcode is just too complicated vstack.push(eContext); System.out.println("NEW dup2_x2"); final Item v1 = vstack.pop1(); final Item v2 = vstack.pop1(); final int c1 = v1.getCategory(); final int c2 = v2.getCat...
21,601
public final void visit_dup2_x2() { // Push all on the stack, since this opcode is just too complicated vstack.push(eContext); System.out.println("NEW dup2_x2"); final Item v1 = vstack.pop1(); final Item v2 = vstack.pop1(); final int c1 = v1.getCategory(); final int c2 = v2.getCat...
public final void visit_dup2_x2() { // Push all on the stack, since this opcode is just too complicated vstack.push(eContext); System.out.println("NEW dup2_x2"); final Item v1 = vstack.pop1(); final Item v2 = vstack.pop1(); final int c1 = v1.getCategory(); final int c2 = v2.getCat...
21,602
public ImageGraphicAttribute (Image image, int alignment) { super (alignment); this.image = image; }
public ImageGraphicAttribute(Image image, int alignment) { super (alignment); this.image = image; }
21,603
public ImageGraphicAttribute (Image image, int alignment) { super (alignment); this.image = image; }
public ImageGraphicAttribute (Image image, int alignment) { super (alignment); this.image = image; }
21,604
public void draw (Graphics2D graphics, float x, float y) throws NotImplementedException { throw new Error ("not implemented"); }
public void draw (Graphics2D graphics, float x, float y) throws NotImplementedException { throw new Error ("not implemented"); }
21,605
public void draw (Graphics2D graphics, float x, float y) throws NotImplementedException { throw new Error ("not implemented"); }
public void draw (Graphics2D graphics, float x, float y) throws NotImplementedException { g.drawImage(image, (int) (x - originX), (int) (y - originY), null); }
21,606
public boolean equals (Object obj) { if (! (obj instanceof ImageGraphicAttribute)) return false; return equals ((ImageGraphicAttribute) obj); }
public boolean equals(Object obj) { if (! (obj instanceof ImageGraphicAttribute)) return false; return equals ((ImageGraphicAttribute) obj); }
21,607
public boolean equals (Object obj) { if (! (obj instanceof ImageGraphicAttribute)) return false; return equals ((ImageGraphicAttribute) obj); }
public boolean equals (Object obj) { if (! (obj instanceof ImageGraphicAttribute)) return false; return equals((ImageGraphicAttribute) obj); }
21,608
public float getAdvance () throws NotImplementedException { throw new Error ("not implemented"); }
public float getAdvance () throws NotImplementedException { throw new Error ("not implemented"); }
21,609
public float getAdvance () throws NotImplementedException { throw new Error ("not implemented"); }
public float getAdvance () throws NotImplementedException { return Math.max(0, image.getWidth(null) - originX); }
21,610
public float getAscent () throws NotImplementedException { throw new Error ("not implemented"); }
public float getAscent () throws NotImplementedException { throw new Error ("not implemented"); }
21,611
public float getAscent () throws NotImplementedException { throw new Error ("not implemented"); }
public float getAscent () throws NotImplementedException { return Math.max(0, originY); }
21,612