bugged
stringlengths
6
599k
fixed
stringlengths
6
40.8M
__index_level_0__
int64
0
3.24M
protected boolean verifySignature(final Object sig) throws IllegalStateException { if (publicKey == null) { throw new IllegalStateException(); } final byte[] S = (byte[]) sig; // 1. Length checking: If the length of the signature S is not k octets, // output "invalid signature" a...
protected boolean verifySignature(final Object sig) throws IllegalStateException if (publicKey == null) throw new IllegalStateException(); } final byte[] S = (byte[]) sig; // 1. Length checking: If the length of the signature S is not k octets, // output "invalid signature" and s...
40,371
protected boolean verifySignature(final Object sig) throws IllegalStateException { if (publicKey == null) { throw new IllegalStateException(); } final byte[] S = (byte[]) sig; // 1. Length checking: If the length of the signature S is not k octets, // output "invalid signature" a...
protected boolean verifySignature(final Object sig) throws IllegalStateException { if (publicKey == null) { throw new IllegalStateException(); final byte[] S = (byte[]) sig; // 1. Length checking: If the length of the signature S is not k octets, // output "invalid signature" and...
40,372
protected boolean verifySignature(final Object sig) throws IllegalStateException { if (publicKey == null) { throw new IllegalStateException(); } final byte[] S = (byte[]) sig; // 1. Length checking: If the length of the signature S is not k octets, // output "invalid signature" a...
protected boolean verifySignature(final Object sig) throws IllegalStateException if (publicKey == null) throw new IllegalStateException(); } final byte[] S = (byte[]) sig; // 1. Length checking: If the length of the signature S is not k octets, // output "invalid signature" and s...
40,373
protected boolean verifySignature(final Object sig) throws IllegalStateException { if (publicKey == null) { throw new IllegalStateException(); } final byte[] S = (byte[]) sig; // 1. Length checking: If the length of the signature S is not k octets, // output "invalid signature" a...
protected boolean verifySignature(final Object sig) throws IllegalStateException { if (publicKey == null) { throw new IllegalStateException(); final byte[] S = (byte[]) sig; // 1. Length checking: If the length of the signature S is not k octets, // output "invalid signature" and...
40,374
private int mapPixels() { int end = value.indexOf("pt"); String number = value.substring(0, end); int intVal = Integer.parseInt(number); return intVal; }
private int mapPixels() { int end = value.indexOf("px"); if (end == -1) end = value.length(); String number = value.substring(0, end); int intVal = Integer.parseInt(number); return intVal; }
40,376
public MainThread(String classname, String[] args) throws ClassNotFoundException, NoSuchMethodException { Class found = Class.forName(classname); Class[] argTypes = new Class[1]; argTypes[0] = args.getClass(); mainMethod = found.getMethod("main", argTypes); this.args = args; }
public MainThread(String classname, String[] args) throws ClassNotFoundException, NoSuchMethodException { Class found = Class.forName(classname); Class[] argTypes = new Class[1]; argTypes[0] = args.getClass(); mainMethod = found.getMethod("main", argTypes); this.args = args; }
40,378
public void run() { try { mainMethod.invoke(null,args); } catch(IllegalAccessException e) { } catch(InvocationTargetException e) { } }
public void run() { try { mainMethod.invoke(null,args); } catch(IllegalAccessException e) { } catch(InvocationTargetException e) { } }
40,379
public void run() { try { mainMethod.invoke(null,args); } catch(IllegalAccessException e) { } catch(InvocationTargetException e) { } }
public void run() { try { mainMethod.invoke(null,args); } catch(IllegalAccessException e) { } catch(InvocationTargetException e) { } }
40,380
public void tableChanged (TableModelEvent event) { // update the column model from the table model if the structure has // changed and the flag autoCreateColumnsFromModel is set if ((event.getFirstRow() ==TableModelEvent.HEADER_ROW) && autoCreateColumnsFromModel) createDefaultColumnsFromModel(...
public void tableChanged (TableModelEvent event) { // update the column model from the table model if the structure has // changed and the flag autoCreateColumnsFromModel is set if ((event == null || (event.getFirstRow() == TableModelEvent.HEADER_ROW)) && autoCreateColumnsFromModel) createDefa...
40,381
public void tableChanged (TableModelEvent event) { // update the column model from the table model if the structure has // changed and the flag autoCreateColumnsFromModel is set if ((event.getFirstRow() ==TableModelEvent.HEADER_ROW) && autoCreateColumnsFromModel) createDefaultColumnsFromModel(...
publicvoidtableChanged(TableModelEventevent){//updatethecolumnmodelfromthetablemodelifthestructurehas//changedandtheflagautoCreateColumnsFromModelissetif((event.getFirstRow()==TableModelEvent.HEADER_ROW)&&autoCreateColumnsFromModel)createDefaultColumnsFromModel();//Ifthestructurechanges,weneedtorevalidate,sincethatmigh...
40,382
public void tableChanged (TableModelEvent event) { // update the column model from the table model if the structure has // changed and the flag autoCreateColumnsFromModel is set if ((event.getFirstRow() ==TableModelEvent.HEADER_ROW) && autoCreateColumnsFromModel) createDefaultColumnsFromModel(...
public void tableChanged (TableModelEvent event) { // update the column model from the table model if the structure has // changed and the flag autoCreateColumnsFromModel is set if ((event.getFirstRow() ==TableModelEvent.HEADER_ROW) && autoCreateColumnsFromModel) createDefaultColumnsFromModel(...
40,383
public void tableChanged (TableModelEvent event) { // update the column model from the table model if the structure has // changed and the flag autoCreateColumnsFromModel is set if ((event.getFirstRow() ==TableModelEvent.HEADER_ROW) && autoCreateColumnsFromModel) createDefaultColumnsFromModel(...
public void tableChanged (TableModelEvent event) { // update the column model from the table model if the structure has // changed and the flag autoCreateColumnsFromModel is set if ((event.getFirstRow() ==TableModelEvent.HEADER_ROW) && autoCreateColumnsFromModel) createDefaultColumnsFromModel(...
40,384
private Component postEvent(Component source, int id, int button) { if (source == null) { final JNodeToolkit tk = (JNodeToolkit) Toolkit.getDefaultToolkit(); source = tk.getTopComponentAt(x, y); } //log.debug("Source: " + source.getClass().getName()); //TODO full support for modifiers if (source.isVisible()) ...
private Component postEvent(Component source, int id, int button) { if (source == null) { final JNodeToolkit tk = (JNodeToolkit) Toolkit.getDefaultToolkit(); source = tk.getTopComponentAt(x, y); } //log.debug("Source: " + source.getClass().getName()); //TODO full support for modifiers if (source.isVisible()) ...
40,385
public void installComponents(JFileChooser fc) { JLabel look = new JLabel("Look In:"); parents = new JComboBox(); parents.setRenderer(new CBLabelRenderer()); boxEntries(); look.setLabelFor(parents); JPanel parentsPanel = new JPanel(); parentsPanel.add(look); parentsPanel.add(parents); JPan...
public void installComponents(JFileChooser fc) { JLabel look = new JLabel("Look In:"); parents = new JComboBox(); parents.setRenderer(new CBLabelRenderer()); boxEntries(); look.setLabelFor(parents); JPanel parentsPanel = new JPanel(); parentsPanel.add(look); parentsPanel.add(parents); JPan...
40,387
protected AccessibleJPopupMenu(JPopupMenu component) { super(component); }
protected AccessibleJPopupMenu() { super(component); }
40,388
protected AccessibleJPopupMenu(JPopupMenu component) { super(component); }
protected AccessibleJPopupMenu(JPopupMenu component) { }
40,389
public void hide() { this.hide(); }
public void hide() { super.hide(); }
40,390
public LightWeightPopup(Container c) { this.add(c); }
public LightWeightPopup(Container c) { this.c = c; }
40,391
public void hide() { JLayeredPane layeredPane; layeredPane = SwingUtilities.getRootPane(invoker).getLayeredPane(); int index = layeredPane.getIndexOf(this); layeredPane.remove(index); }
public void hide() { JLayeredPane layeredPane; layeredPane = SwingUtilities.getRootPane(invoker).getLayeredPane(); int index = layeredPane.getIndexOf(c); layeredPane.remove(index); }
40,392
public void show(int x, int y, int width, int height) { JLayeredPane layeredPane; layeredPane = SwingUtilities.getRootPane(invoker).getLayeredPane(); this.setBounds(x, y, width, height); layeredPane.add(this, JLayeredPane.POPUP_LAYER, 0); }
public void show(int x, int y, int width, int height) { JLayeredPane layeredPane; layeredPane = SwingUtilities.getRootPane(invoker).getLayeredPane(); this.setBounds(x, y, width, height); layeredPane.add(this, JLayeredPane.POPUP_LAYER, 0); }
40,393
public String getUIClassID() { return null; }
public String getUIClassID() { return "PopupMenuSeparatorUI"; }
40,394
public JPopupMenu() { updateUI(); lightWeightPopupEnabled = defaultLWPopupEnabled; selectionModel = new DefaultSingleSelectionModel(); }
public JPopupMenu() { updateUI(); lightWeightPopupEnabled = DefaultLightWeightPopupEnabled; selectionModel = new DefaultSingleSelectionModel(); }
40,395
public AccessibleContext getAccessibleContext() { if (accessibleContext == null) accessibleContext = new AccessibleJPopupMenu(this); return accessibleContext; }
public AccessibleContext getAccessibleContext() { if (accessibleContext == null) accessibleContext = new AccessibleJPopupMenu(); return accessibleContext; }
40,398
public static boolean getDefaultLightWeightPopupEnabled() { return defaultLWPopupEnabled; }
public static boolean getDefaultLightWeightPopupEnabled() { return DefaultLightWeightPopupEnabled; }
40,399
public boolean isBorderPainted() { return paintBorder; }
public boolean isBorderPainted() { return borderPainted; }
40,400
public boolean isPopupTrigger(MouseEvent event) { return ((PopupMenuUI)getUI()).isPopupTrigger(event); }
public boolean isPopupTrigger(MouseEvent event) { return ((PopupMenuUI) getUI()).isPopupTrigger(event); }
40,401
public void setBorderPainted(boolean painted) { paintBorder = painted; }
public void setBorderPainted(boolean painted) { borderPainted = painted; }
40,403
public static void setDefaultLightWeightPopupEnabled(boolean enabled) { defaultLWPopupEnabled = enabled; }
public static void setDefaultLightWeightPopupEnabled(boolean enabled) { DefaultLightWeightPopupEnabled = enabled; }
40,404
public void setLocation(int x, int y) { locationX = x; locationY = y; }
public void setLocation(int x, int y) { locationX = x; locationY = y; }
40,405
public void setVisible(boolean visible) { super.setVisible(visible); firePopupMenuWillBecomeVisible(); if (visible) { Container rootContainer = (Container) SwingUtilities.getRoot(invoker); boolean fit = true; Dimension size; // Determine the size of the popup menu if (this.getSize().width == 0 && this....
public void setVisible(boolean visible) { super.setVisible(visible); if (old != isVisible()) { firePropertyChange(VISIBLE_CHANGED_PROPERTY, old, (boolean) isVisible()); if (visible) { Container rootContainer = (Container) SwingUtilities.getRoot(invoker); boolean fit = true; Dimension size; // Determine t...
40,406
public void setVisible(boolean visible) { super.setVisible(visible); firePopupMenuWillBecomeVisible(); if (visible) { Container rootContainer = (Container) SwingUtilities.getRoot(invoker); boolean fit = true; Dimension size; // Determine the size of the popup menu if (this.getSize().width == 0 && this....
public void setVisible(boolean visible) { super.setVisible(visible); firePopupMenuWillBecomeVisible(); if (visible) { Container rootContainer = (Container) SwingUtilities.getRoot(invoker); boolean fit = true; Dimension size; // Determine the size of the popup menu if (this.getSize().width == 0 && this....
40,407
public void setVisible(boolean visible) { super.setVisible(visible); firePopupMenuWillBecomeVisible(); if (visible) { Container rootContainer = (Container) SwingUtilities.getRoot(invoker); boolean fit = true; Dimension size; // Determine the size of the popup menu if (this.getSize().width == 0 && this....
publicvoidsetVisible(booleanvisible){super.setVisible(visible);firePopupMenuWillBecomeVisible();if(visible){ ContainerrootContainer=(Container)SwingUtilities.getRoot(invoker); booleanfit=true; Dimensionsize; //Determinethesizeofthepopupmenu if(this.getSize().width==0&&this.getSize().width==0) size=this.getPreferredSize...
40,408
public void setVisible(boolean visible) { super.setVisible(visible); firePopupMenuWillBecomeVisible(); if (visible) { Container rootContainer = (Container) SwingUtilities.getRoot(invoker); boolean fit = true; Dimension size; // Determine the size of the popup menu if (this.getSize().width == 0 && this....
publicvoidsetVisible(booleanvisible){super.setVisible(visible);firePopupMenuWillBecomeVisible();if(visible){ ContainerrootContainer=(Container)SwingUtilities.getRoot(invoker); booleanfit=true; Dimensionsize; //Determinethesizeofthepopupmenu if(this.getSize().width==0&&this.getSize().width==0) size=this.getPreferredSize...
40,409
public void setVisible(boolean visible) { super.setVisible(visible); firePopupMenuWillBecomeVisible(); if (visible) { Container rootContainer = (Container) SwingUtilities.getRoot(invoker); boolean fit = true; Dimension size; // Determine the size of the popup menu if (this.getSize().width == 0 && this....
public void setVisible(boolean visible) { super.setVisible(visible); firePopupMenuWillBecomeVisible(); if (visible) { Container rootContainer = (Container) SwingUtilities.getRoot(invoker); boolean fit = true; Dimension size; // Determine the size of the popup menu if (this.getSize().width == 0 && this....
40,410
public void setVisible(boolean visible) { super.setVisible(visible); firePopupMenuWillBecomeVisible(); if (visible) { Container rootContainer = (Container) SwingUtilities.getRoot(invoker); boolean fit = true; Dimension size; // Determine the size of the popup menu if (this.getSize().width == 0 && this....
public void setVisible(boolean visible) { super.setVisible(visible); firePopupMenuWillBecomeVisible(); if (visible) { Container rootContainer = (Container) SwingUtilities.getRoot(invoker); boolean fit = true; Dimension size; // Determine the size of the popup menu if (this.getSize().width == 0 && this....
40,411
public void show(Component component, int x, int y) { setInvoker(component); Point rootOnScreen; rootOnScreen = SwingUtilities.getRoot(invoker).getLocationOnScreen(); Point invokerOnScreen = invoker.getLocationOnScreen(); int popupX = (invokerOnScreen.x - rootOnScreen.x) + x; int popupY = (invo...
public void show(Component component, int x, int y) { setInvoker(component); Point rootOnScreen; rootOnScreen = SwingUtilities.getRoot(invoker).getLocationOnScreen(); Point invokerOnScreen = invoker.getLocationOnScreen(); int popupX = (invokerOnScreen.x - rootOnScreen.x) + x; int popupY = (invo...
40,413
public Toolkit() { }
public Toolkit() { }
40,414
public void addAWTEventListener(AWTEventListener listener, long eventMask) { // SecurityManager s = System.getSecurityManager(); // if (s != null) // s.checkPermission(AWTPermission("listenToAllAWTEvents")); // FIXME }
public void addAWTEventListener(AWTEventListener listener, long eventMask) { // SecurityManager s = System.getSecurityManager(); // if (s != null) // s.checkPermission(AWTPermission("listenToAllAWTEvents")); // FIXME }
40,415
public void addPropertyChangeListener(String name, PropertyChangeListener pcl) { desktopPropsSupport.addPropertyChangeListener(name, pcl); }
public void addPropertyChangeListener(String name, PropertyChangeListener pcl) { desktopPropsSupport.addPropertyChangeListener(name, pcl); }
40,416
public abstract int checkImage(Image image, int width, int height, ImageObserver observer);
public abstract int checkImage(Image image, int width, int height, ImageObserver observer);
40,417
createCheckboxMenuItem(CheckboxMenuItem target);
createCheckboxMenuItem(CheckboxMenuItem target);
40,418
protected LightweightPeer createComponent(Component target) { return null; }
protected LightweightPeer createComponent(Component target) { return null; }
40,419
public Cursor createCustomCursor(Image cursor, Point hotSpot, String name) { // Presumably the only reason this isn't abstract is for backwards // compatibility? FIXME? return null; }
public Cursor createCustomCursor(Image cursor, Point hotSpot, String name) { // Presumably the only reason this isn't abstract is for backwards // compatibility? FIXME? return null; }
40,420
createDragGestureRecognizer(Class recognizer, DragSource ds, Component comp, int actions, DragGestureListener l) { return null; }
createDragGestureRecognizer(Class recognizer, DragSource ds, Component comp, int actions, DragGestureListener l) { return null; }
40,421
createDragSourceContextPeer(DragGestureEvent e);
createDragSourceContextPeer(DragGestureEvent e);
40,422
public AWTEventListener[] getAWTEventListeners() { return null; }
public AWTEventListener[] getAWTEventListeners() { return null; }
40,423
public Dimension getBestCursorSize(int preferredWidth, int preferredHeight) { return new Dimension (0,0); }
public Dimension getBestCursorSize(int preferredWidth, int preferredHeight) { return new Dimension (0,0); }
40,424
public static Toolkit getDefaultToolkit() { if (toolkit != null) return toolkit; String toolkit_name = System.getProperty("awt.toolkit", default_toolkit_name); try { Class cls = Class.forName(toolkit_name); Object obj = cls.newInstance(); ...
public static Toolkit getDefaultToolkit() { if (toolkit != null) return toolkit; String toolkit_name = System.getProperty("awt.toolkit", default_toolkit_name); try { Class cls = Class.forName(toolkit_name); Object obj = cls.newInstance(); ...
40,425
public final Object getDesktopProperty(String propertyName) { return desktopProperties.get(propertyName); }
public final Object getDesktopProperty(String propertyName) { return desktopProperties.get(propertyName); }
40,426
public boolean getLockingKeyState(int keyCode) { if (keyCode != KeyEvent.VK_CAPS_LOCK && keyCode != KeyEvent.VK_NUM_LOCK && keyCode != KeyEvent.VK_SCROLL_LOCK) throw new IllegalArgumentException(); throw new UnsupportedOperationException(); }
public boolean getLockingKeyState(int keyCode) { if (keyCode != KeyEvent.VK_CAPS_LOCK && keyCode != KeyEvent.VK_NUM_LOCK && keyCode != KeyEvent.VK_SCROLL_LOCK) throw new IllegalArgumentException(); throw new UnsupportedOperationException(); }
40,427
public int getMaximumCursorColors() { return 0; }
public int getMaximumCursorColors() { return 0; }
40,428
public int getMenuShortcutKeyMask() { return Event.CTRL_MASK; }
public int getMenuShortcutKeyMask() { return Event.CTRL_MASK; }
40,429
protected static Container getNativeContainer(Component component) { component = component.getParent(); while (true) { if (component == null) return null; if (! (component instanceof Container)) { component = component.getParent(); continue; }...
protected static Container getNativeContainer(Component component) { component = component.getParent(); while (true) { if (component == null) return null; if (! (component instanceof Container)) { component = component.getParent(); continue; }...
40,430
public abstract PrintJob getPrintJob(Frame frame, String title, Properties props);
public abstract PrintJob getPrintJob(Frame frame, String title, Properties props);
40,431
public static String getProperty(String key, String def) { return props.getProperty(key, def); }
public static String getProperty(String key, String def) { return props.getProperty(key, def); }
40,432
public PropertyChangeListener[] getPropertyChangeListeners() { return desktopPropsSupport.getPropertyChangeListeners(); }
public PropertyChangeListener[] getPropertyChangeListeners() { return desktopPropsSupport.getPropertyChangeListeners(); }
40,433
public Insets getScreenInsets(GraphicsConfiguration gc) { return null; }
public Insets getScreenInsets(GraphicsConfiguration gc) { return null; }
40,434
public final EventQueue getSystemEventQueue() { return getSystemEventQueueImpl(); }
public final EventQueue getSystemEventQueue() { return getSystemEventQueueImpl(); }
40,435
public Clipboard getSystemSelection() { return null; }
public Clipboard getSystemSelection() { return null; }
40,436
protected void initializeDesktopProperties() { // Overridden by toolkit implementation? }
protected void initializeDesktopProperties() { // Overridden by toolkit implementation? }
40,437
public boolean isDynamicLayoutActive() { return false; }
public boolean isDynamicLayoutActive() { return false; }
40,438
protected boolean isDynamicLayoutSet() { return false; }
protected boolean isDynamicLayoutSet() { return false; }
40,439
public boolean isFrameStateSupported(int state) { return false; }
public boolean isFrameStateSupported(int state) { return false; }
40,440
protected Object lazilyLoadDesktopProperty(String name) { // FIXME - what is this?? return null; }
protected Object lazilyLoadDesktopProperty(String name) { // FIXME - what is this?? return null; }
40,441
protected void loadSystemColors(int systemColors[]) { // XXX Implement. }
protected void loadSystemColors(int systemColors[]) { // XXX Implement. }
40,442
public abstract boolean prepareImage(Image image, int width, int height, ImageObserver observer);
public abstract boolean prepareImage(Image image, int width, int height, ImageObserver observer);
40,443
public void removeAWTEventListener(AWTEventListener listener) { // FIXME }
public void removeAWTEventListener(AWTEventListener listener) { // FIXME }
40,444
public void removePropertyChangeListener(String name, PropertyChangeListener pcl) { desktopPropsSupport.removePropertyChangeListener(name, pcl); }
public void removePropertyChangeListener(String name, PropertyChangeListener pcl) { desktopPropsSupport.removePropertyChangeListener(name, pcl); }
40,445
protected final void setDesktopProperty(String name, Object newValue) { Object oldValue = getDesktopProperty(name); desktopProperties.put(name, newValue); desktopPropsSupport.firePropertyChange(name, oldValue, newValue); }
protected final void setDesktopProperty(String name, Object newValue) { Object oldValue = getDesktopProperty(name); desktopProperties.put(name, newValue); desktopPropsSupport.firePropertyChange(name, oldValue, newValue); }
40,446
public void setDynamicLayout(boolean dynamic) { }
public void setDynamicLayout(boolean dynamic) { }
40,447
public void setLockingKeyState(int keyCode, boolean on) { if (keyCode != KeyEvent.VK_CAPS_LOCK && keyCode != KeyEvent.VK_NUM_LOCK && keyCode != KeyEvent.VK_SCROLL_LOCK) throw new IllegalArgumentException(); throw new UnsupportedOperationException(); }
public void setLockingKeyState(int keyCode, boolean on) { if (keyCode != KeyEvent.VK_CAPS_LOCK && keyCode != KeyEvent.VK_NUM_LOCK && keyCode != KeyEvent.VK_SCROLL_LOCK) throw new IllegalArgumentException(); throw new UnsupportedOperationException(); }
40,448
protected FontMetrics(Font font) { this.font = font; }
protected FontMetrics(Font font) { this.font = font; }
40,449
protected FontMetrics(Font font) { this.font = font; }
protected FontMetrics(Font font) { this.font = font; }
40,450
public int bytesWidth(byte buf[], int offset, int len) { int total_width = 0; for (int i = offset; i < len; i++) total_width = charWidth((char) buf[i]); return (total_width); }
public int bytesWidth(byte buf[], int offset, int len) { int total_width = 0; for (int i = offset; i < len; i++) total_width = charWidth((char) buf[i]); return (total_width); }
40,451
public int bytesWidth(byte buf[], int offset, int len) { int total_width = 0; for (int i = offset; i < len; i++) total_width = charWidth((char) buf[i]); return (total_width); }
public int bytesWidth(byte buf[], int offset, int len) { int total_width = 0; for (int i = offset; i < len; i++) total_width = charWidth((char) buf[i]); return (total_width); }
40,452
public int bytesWidth(byte buf[], int offset, int len) { int total_width = 0; for (int i = offset; i < len; i++) total_width = charWidth((char) buf[i]); return (total_width); }
public int bytesWidth(byte buf[], int offset, int len) { int total_width = 0; for (int i = offset; i < len; i++) total_width = charWidth((char) buf[i]); return (total_width); }
40,453
public int charWidth(int ch) { return (charWidth((char) ch)); }
public int charWidth(int ch) { return (charWidth((char) ch)); }
40,454
public int charsWidth(char buf[], int offset, int len) { int total_width = 0; for (int i = offset; i < len; i++) total_width = charWidth(buf[i]); return (total_width); }
public int charsWidth(char buf[], int offset, int len) { int total_width = 0; for (int i = offset; i < len; i++) total_width = charWidth(buf[i]); return (total_width); }
40,455
public int charsWidth(char buf[], int offset, int len) { int total_width = 0; for (int i = offset; i < len; i++) total_width = charWidth(buf[i]); return (total_width); }
public int charsWidth(char buf[], int offset, int len) { int total_width = 0; for (int i = offset; i < len; i++) total_width = charWidth(buf[i]); return (total_width); }
40,456
public int getAscent() { return (1); }
public int getAscent() { return (1); }
40,457
public int getDescent() { return (1); }
public int getDescent() { return (1); }
40,458
public Font getFont() { return (font); }
public Font getFont() { return (font); }
40,459
public int getHeight() { return (getAscent() + getDescent() + getLeading()); }
public int getHeight() { return (getAscent() + getDescent() + getLeading()); }
40,460
public int getLeading() { return (0); }
public int getLeading() { return (0); }
40,461
public int getMaxAdvance() { return (-1); }
public int getMaxAdvance() { return (-1); }
40,462
public int getMaxAscent() { return (getAscent()); }
public int getMaxAscent() { return (getAscent()); }
40,463
public int getMaxDecent() { return (getMaxDescent()); }
public int getMaxDecent() { return (getMaxDescent()); }
40,464
public int getMaxDescent() { return (getDescent()); }
public int getMaxDescent() { return (getDescent()); }
40,465
public int[] getWidths() { return (new int[256]); }
public int[] getWidths() { return (new int[256]); }
40,466
public int stringWidth(String str) { char[] buf = new char[str.length()]; str.getChars(0, str.length(), buf, 0); return (charsWidth(buf, 0, buf.length)); }
public int stringWidth(String str) { char[] buf = new char[str.length()]; str.getChars(0, str.length(), buf, 0); return (charsWidth(buf, 0, buf.length)); }
40,468
public int stringWidth(String str) { char[] buf = new char[str.length()]; str.getChars(0, str.length(), buf, 0); return (charsWidth(buf, 0, buf.length)); }
public int stringWidth(String str) { char[] buf = new char[str.length()]; str.getChars(0, str.length(), buf, 0); return (charsWidth(buf, 0, buf.length)); }
40,469
public String toString() { return (this.getClass() + "[font=" + font + ",ascent=" + getAscent() + ",descent=" + getDescent() + ",height=" + getHeight() + "]"); }
public String toString() { return (this.getClass() + "[font=" + font + ",ascent=" + getAscent() + ",descent=" + getDescent() + ",height=" + getHeight() + "]"); }
40,470
public JRadioButton() { this(null, null); }
public JRadioButton() { this(null, null, false); }
40,471
public AccessibleContext getAccessibleContext() { //Gets the AccessibleContext associated with this JRadioButton. return null; }
public AccessibleContext getAccessibleContext() { //Gets the AccessibleContext associated with this JRadioButton. return null; }
40,472
public String getUIClassID() { //Returns a string that specifies the name of the Look and Feel //class that renders this component. return "RadioButtonUI"; }
public String getUIClassID(){ //Returns a string that specifies the name of the Look and Feel //class that renders this component. return "RadioButtonUI";}
40,473
PlainDocument() { super(new GapContent()); }
public PlainDocument() { super(new GapContent()); }
40,477
PlainDocument() { super(new GapContent()); }
PlainDocument() { super(new GapContent()); }
40,478
public PrivateKey decodePrivateKey(byte[] input) { throw new IllegalArgumentException("Wrong format for private keys"); }
public PrivateKey decodePrivateKey(byte[] input) { throw new InvalidParameterException("Wrong format for private keys"); }
40,479
public byte[] encodePrivateKey(PrivateKey key) { throw new IllegalArgumentException("Wrong format for private keys"); }
public byte[] encodePrivateKey(PrivateKey key) { throw new InvalidParameterException("Wrong format for private keys"); }
40,480
SizeRequirements[] getChildRequirements(int axis) { // Allocate SizeRequirements for each child view. int count = getViewCount(); SizeRequirements[] childReqs = new SizeRequirements[count]; for (int i = 0; i < count; ++i) { View view = getView(i); childReqs[i] = new SizeRequirements((i...
private SizeRequirements[] getChildRequirements(int axis) { // Allocate SizeRequirements for each child view. int count = getViewCount(); SizeRequirements[] childReqs = new SizeRequirements[count]; for (int i = 0; i < count; ++i) { View view = getView(i); childReqs[i] = new SizeRequire...
40,481