bugged
stringlengths
6
599k
fixed
stringlengths
6
40.8M
__index_level_0__
int64
0
3.24M
public void removeNotify() { //Overrides JComponent.removeNotify to check if this button is currently set as the default button on the RootPane, and if so, sets the RootPane's default button to null to ensure the RootPane doesn't hold onto an invalid button reference. }
public void removeNotify() { //Overrides JComponent.removeNotify to check if this button is currently set as the default button on the RootPane, and if so, sets the RootPane's default button to null to ensure the RootPane doesn't hold onto an invalid button reference. }
24,587
public void setDefaultCapable(boolean defaultCapable) { def = defaultCapable; }
public void setDefaultCapable(boolean defaultCapable) { def = defaultCapable; }
24,588
public void updateUI() { ButtonUI b = (ButtonUI) UIManager.getUI(this); setUI(b); }
public void updateUI() { ButtonUI b = (ButtonUI) UIManager.getUI(this); setUI(b); }
24,589
public void menuSelectionChanged(boolean changed) { if (! changed) setVisible(false); }
public void menuSelectionChanged(boolean changed) { if (invoker instanceof JMenu) { JMenu menu = (JMenu) invoker; menu.setPopupMenuVisible(changed); } else if (! changed) setVisible(false); }
24,590
public void setVisible(final boolean visible) { // Hook up this call so that it gets executed on the event thread in order // to avoid synchronization problems when calling the layout manager. if (! SwingUtilities.isEventDispatchThread()) { SwingUtilities.invokeLater(new Runnable() { ...
public void setVisible(final boolean visible) { // Hook up this call so that it gets executed on the event thread in order // to avoid synchronization problems when calling the layout manager. if (! SwingUtilities.isEventDispatchThread()) { SwingUtilities.invokeLater(new Runnable() { ...
24,591
public void setVisible(final boolean visible) { // Hook up this call so that it gets executed on the event thread in order // to avoid synchronization problems when calling the layout manager. if (! SwingUtilities.isEventDispatchThread()) { SwingUtilities.invokeLater(new Runnable() { ...
public void setVisible(final boolean visible) { // Hook up this call so that it gets executed on the event thread in order // to avoid synchronization problems when calling the layout manager. if (! SwingUtilities.isEventDispatchThread()) { SwingUtilities.invokeLater(new Runnable() { ...
24,592
public void setVisible(final boolean visible) { // Hook up this call so that it gets executed on the event thread in order // to avoid synchronization problems when calling the layout manager. if (! SwingUtilities.isEventDispatchThread()) { SwingUtilities.invokeLater(new Runnable() { ...
public void setVisible(final boolean visible) { // Hook up this call so that it gets executed on the event thread in order // to avoid synchronization problems when calling the layout manager. if (! SwingUtilities.isEventDispatchThread()) { SwingUtilities.invokeLater(new Runnable() { ...
24,593
public void addChangeListener(ChangeListener listener) { changeListenerList.add(ChangeListener.class, listener); }
public void addChangeListener(ChangeListener listener) { listenerList.add(ChangeListener.class, listener); }
24,595
protected void fireStateChanged() { Object[] changeListeners = changeListenerList.getListenerList(); if (changeEvent == null) changeEvent = new ChangeEvent(this); for (int i = changeListeners.length - 2; i >= 0; i -= 2) { if (changeListeners[i] == ChangeListener.class) ((ChangeListener) changeLi...
protected void fireStateChanged() { Object[] changeListeners = listenerList.getListenerList(); if (changeEvent == null) changeEvent = new ChangeEvent(this); for (int i = changeListeners.length - 2; i >= 0; i -= 2) { if (changeListeners[i] == ChangeListener.class) ((ChangeListener) changeListener...
24,596
public ChangeListener[] getChangeListeners() { return (ChangeListener[]) changeListenerList.getListenerList(); }
public ChangeListener[] getChangeListeners() { return (ChangeListener[]) listenerList.getListeners(ChangeListener.class); }
24,597
public void removeChangeListener(ChangeListener listener) { changeListenerList.remove(ChangeListener.class, listener); }
public void removeChangeListener(ChangeListener listener) { listenerList.remove(ChangeListener.class, listener); }
24,598
void startSigning() throws IOException { if (this.state != READY) throw new IllegalStateException("Helper is NOT ready"); Manifest oldManifest = jar.getManifest(); this.manifest = oldManifest == null ? new Manifest() : new Manifest(oldManifest); this.sfMainAttr...
void startSigning() throws IOException { if (this.state != READY) throw new IllegalStateException(Messages.getString("SFHelper.9")); Manifest oldManifest = jar.getManifest(); this.manifest = oldManifest == null ? new Manifest() : new Manifest(oldManifest); this...
24,599
void updateEntry(JarEntry entry) throws IOException { if (this.state != STARTED) throw new IllegalStateException("Helper is NOT started"); String name = entry.getName(); InputStream jeis = jar.getInputStream(entry); String hash = util.hashStream(jeis); log.finer("Hash of " + name + " = " + ...
void updateEntry(JarEntry entry) throws IOException { if (this.state != STARTED) throw new IllegalStateException(Messages.getString("SFHelper.10")); String name = entry.getName(); InputStream jeis = jar.getInputStream(entry); String hash = util.hashStream(jeis); log.finer("Hash of " + name ...
24,600
void updateEntry(JarEntry entry) throws IOException { if (this.state != STARTED) throw new IllegalStateException("Helper is NOT started"); String name = entry.getName(); InputStream jeis = jar.getInputStream(entry); String hash = util.hashStream(jeis); log.finer("Hash of " + name + " = " + ...
void updateEntry(JarEntry entry) throws IOException { if (this.state != STARTED) throw new IllegalStateException("Helper is NOT started"); String name = entry.getName(); InputStream jeis = jar.getInputStream(entry); String hash = util.hashStream(jeis); log.finer("Hash of " + name + " = " + ...
24,601
void updateEntry(JarEntry entry) throws IOException { if (this.state != STARTED) throw new IllegalStateException("Helper is NOT started"); String name = entry.getName(); InputStream jeis = jar.getInputStream(entry); String hash = util.hashStream(jeis); log.finer("Hash of " + name + " = " + ...
void updateEntry(JarEntry entry) throws IOException { if (this.state != STARTED) throw new IllegalStateException("Helper is NOT started"); String name = entry.getName(); InputStream jeis = jar.getInputStream(entry); String hash = util.hashStream(jeis); log.finer("Hash of " + name + " = " + ...
24,602
void finishSigning(boolean sectionsOnly) throws IOException { if (state != STARTED) throw new IllegalStateException("Helper is NOT started"); if (sectionsOnly) return; ByteArrayOutputStream baos = new ByteArrayOutputStream(); manifest.write(baos); baos.flush(); String manifestHash = util....
void finishSigning(boolean sectionsOnly) throws IOException { if (state != STARTED) throw new IllegalStateException(Messages.getString("SFHelper.10")); if (sectionsOnly) return; ByteArrayOutputStream baos = new ByteArrayOutputStream(); manifest.write(baos); baos.flush(); String manifestHa...
24,603
void finishSigning(boolean sectionsOnly) throws IOException { if (state != STARTED) throw new IllegalStateException("Helper is NOT started"); if (sectionsOnly) return; ByteArrayOutputStream baos = new ByteArrayOutputStream(); manifest.write(baos); baos.flush(); String manifestHash = util....
void finishSigning(boolean sectionsOnly) throws IOException { if (state != STARTED) throw new IllegalStateException("Helper is NOT started"); if (sectionsOnly) return; ByteArrayOutputStream baos = new ByteArrayOutputStream(); manifest.write(baos); baos.flush(); String manifestHash = util....
24,604
void writeSF(JarOutputStream jar) throws IOException { if (this.state != FINISHED) throw new IllegalStateException("Helper is NOT finished"); ByteArrayOutputStream baos = new ByteArrayOutputStream(); JarUtils.writeSFManifest(sfMainAttributes, sfEntries, baos); sfBytes = baos.toByteArray(); log.fi...
void writeSF(JarOutputStream jar) throws IOException { if (this.state != FINISHED) throw new IllegalStateException(Messages.getString("SFHelper.1")); ByteArrayOutputStream baos = new ByteArrayOutputStream(); JarUtils.writeSFManifest(sfMainAttributes, sfEntries, baos); sfBytes = baos.toByteArray(); ...
24,605
void writeSF(JarOutputStream jar) throws IOException { if (this.state != FINISHED) throw new IllegalStateException("Helper is NOT finished"); ByteArrayOutputStream baos = new ByteArrayOutputStream(); JarUtils.writeSFManifest(sfMainAttributes, sfEntries, baos); sfBytes = baos.toByteArray(); log.fi...
void writeSF(JarOutputStream jar) throws IOException { if (this.state != FINISHED) throw new IllegalStateException("Helper is NOT finished"); ByteArrayOutputStream baos = new ByteArrayOutputStream(); JarUtils.writeSFManifest(sfMainAttributes, sfEntries, baos); sfBytes = baos.toByteArray(); log.fi...
24,606
void writeDSA(JarOutputStream jar, PrivateKey signerKey, Certificate[] certificates, boolean internalSF) throws IOException, CertificateEncodingException, CRLException { if (this.state != SF_GENERATED) throw new IllegalStateException(".SF file has NOT been generated"); log.finest("+++ ...
void writeDSA(JarOutputStream jar, PrivateKey signerKey, Certificate[] certificates, boolean internalSF) throws IOException, CertificateEncodingException, CRLException { if (this.state != SF_GENERATED) throw new IllegalStateException(Messages.getString("SFHelper.4")); log.finest("+++ s...
24,607
void writeDSA(JarOutputStream jar, PrivateKey signerKey, Certificate[] certificates, boolean internalSF) throws IOException, CertificateEncodingException, CRLException { if (this.state != SF_GENERATED) throw new IllegalStateException(".SF file has NOT been generated"); log.finest("+++ ...
void writeDSA(JarOutputStream jar, PrivateKey signerKey, Certificate[] certificates, boolean internalSF) throws IOException, CertificateEncodingException, CRLException { if (this.state != SF_GENERATED) throw new IllegalStateException(".SF file has NOT been generated"); log.finest("+++ ...
24,608
void writeDSA(JarOutputStream jar, PrivateKey signerKey, Certificate[] certificates, boolean internalSF) throws IOException, CertificateEncodingException, CRLException { if (this.state != SF_GENERATED) throw new IllegalStateException(".SF file has NOT been generated"); log.finest("+++ ...
void writeDSA(JarOutputStream jar, PrivateKey signerKey, Certificate[] certificates, boolean internalSF) throws IOException, CertificateEncodingException, CRLException { if (this.state != SF_GENERATED) throw new IllegalStateException(".SF file has NOT been generated"); log.finest("+++ ...
24,609
void writeDSA(JarOutputStream jar, PrivateKey signerKey, Certificate[] certificates, boolean internalSF) throws IOException, CertificateEncodingException, CRLException { if (this.state != SF_GENERATED) throw new IllegalStateException(".SF file has NOT been generated"); log.finest("+++ ...
void writeDSA(JarOutputStream jar, PrivateKey signerKey, Certificate[] certificates, boolean internalSF) throws IOException, CertificateEncodingException, CRLException { if (this.state != SF_GENERATED) throw new IllegalStateException(".SF file has NOT been generated"); log.finest("+++ ...
24,610
public JNodeFrameBufferDevice(Device device) { this.device = device; device.addListener(this); try { this.api = (FrameBufferAPI)device.getAPI(FrameBufferAPI.class); } catch (ApiNotFoundException ex) { throw new IllegalArgumentException("Not a FrameBuffer device", ex); } final FrameBufferConfiguration[] fbCon...
public JNodeFrameBufferDevice(Device device) { this.device = device; device.addListener(this); try { this.api = (FrameBufferAPI)device.getAPI(FrameBufferAPI.class); } catch (ApiNotFoundException ex) { throw new IllegalArgumentException("Not a FrameBuffer device", ex); } final FrameBufferConfiguration[] fbCon...
24,611
public void layoutContainer(Container parent) { if (parent != container) throw new AWTError("invalid parent"); Dimension size = parent.getSize(); Insets insets = parent.getInsets(); Dimension innerSize = new Dimension(size.width - insets.left - insets.right...
public void layoutContainer(Container parent) { if (parent != container) throw new AWTError("invalid parent"); Dimension size = parent.getSize(); Insets insets = parent.getInsets(); Dimension innerSize = new Dimension(size.width - insets.left - insets.right...
24,612
public void layoutContainer(Container parent) { if (parent != container) throw new AWTError("invalid parent"); Dimension size = parent.getSize(); Insets insets = parent.getInsets(); Dimension innerSize = new Dimension(size.width - insets.left - insets.right...
public void layoutContainer(Container parent) { if (parent != container) throw new AWTError("invalid parent"); Dimension size = parent.getSize(); Insets insets = parent.getInsets(); Dimension innerSize = new Dimension(size.width - insets.left - insets.right...
24,613
public void layoutContainer(Container parent) { if (parent != container) throw new AWTError("invalid parent"); Dimension size = parent.getSize(); Insets insets = parent.getInsets(); Dimension innerSize = new Dimension(size.width - insets.left - insets.right...
public void layoutContainer(Container parent) { if (parent != container) throw new AWTError("invalid parent"); Dimension size = parent.getSize(); Insets insets = parent.getInsets(); Dimension innerSize = new Dimension(size.width - insets.left - insets.right...
24,614
public void layoutContainer(Container parent) { if (parent != container) throw new AWTError("invalid parent"); Dimension size = parent.getSize(); Insets insets = parent.getInsets(); Dimension innerSize = new Dimension(size.width - insets.left - insets.right...
public void layoutContainer(Container parent) { if (parent != container) throw new AWTError("invalid parent"); Dimension size = parent.getSize(); Insets insets = parent.getInsets(); Dimension innerSize = new Dimension(size.width - insets.left - insets.right...
24,615
public void layoutContainer(Container parent) { if (parent != container) throw new AWTError("invalid parent"); Dimension size = parent.getSize(); Insets insets = parent.getInsets(); Dimension innerSize = new Dimension(size.width - insets.left - insets.right...
public void layoutContainer(Container parent) { if (parent != container) throw new AWTError("invalid parent"); Dimension size = parent.getSize(); Insets insets = parent.getInsets(); Dimension innerSize = new Dimension(size.width - insets.left - insets.right...
24,616
public void layoutContainer(Container parent) { if (parent != container) throw new AWTError("invalid parent"); Dimension size = parent.getSize(); Insets insets = parent.getInsets(); Dimension innerSize = new Dimension(size.width - insets.left - insets.right...
public void layoutContainer(Container parent) { if (parent != container) throw new AWTError("invalid parent"); Dimension size = parent.getSize(); Insets insets = parent.getInsets(); Dimension innerSize = new Dimension(size.width - insets.left - insets.right...
24,617
public void layoutContainer(Container parent) { if (parent != container) throw new AWTError("invalid parent"); Dimension size = parent.getSize(); Insets insets = parent.getInsets(); Dimension innerSize = new Dimension(size.width - insets.left - insets.right...
public void layoutContainer(Container parent) { if (parent != container) throw new AWTError("invalid parent"); Dimension size = parent.getSize(); Insets insets = parent.getInsets(); Dimension innerSize = new Dimension(size.width - insets.left - insets.right...
24,618
public void layoutContainer(Container parent) { if (parent != container) throw new AWTError("invalid parent"); Dimension size = parent.getSize(); Insets insets = parent.getInsets(); Dimension innerSize = new Dimension(size.width - insets.left - insets.right...
public void layoutContainer(Container parent) { if (parent != container) throw new AWTError("invalid parent"); Dimension size = parent.getSize(); Insets insets = parent.getInsets(); Dimension innerSize = new Dimension(size.width - insets.left - insets.right...
24,619
public void componentResized(ComponentEvent ev) { // According to some tests that I did with Sun's implementation // this class is supposed to make sure that the view component // is not resized to a larger size than the viewport. // This is not documented anywhere. What I did is: I subclasse...
public void componentResized(ComponentEvent ev) { // According to some tests that I did with Sun's implementation // this class is supposed to make sure that the view component // is not resized to a larger size than the viewport. // This is not documented anywhere. What I did is: I subclasse...
24,621
public JViewport() { setOpaque(true); setScrollMode(BLIT_SCROLL_MODE); setLayout(createLayoutManager()); updateUI(); lastPaintPosition = new Point(); cachedBlitFrom = new Point(); cachedBlitTo = new Point(); cachedBlitSize = new Dimension(); cachedBlitPaint = new Rectangle(); }
public JViewport() { setOpaque(true); setScrollMode(BLIT_SCROLL_MODE); setLayout(createLayoutManager()); lastPaintPosition = new Point(); cachedBlitFrom = new Point(); cachedBlitTo = new Point(); cachedBlitSize = new Dimension(); cachedBlitPaint = new Rectangle(); }
24,622
void paintBackingStore(Graphics g) { // If we have no backing store image yet or the size of the component has // changed, we need to rebuild the backing store. if (backingStoreImage == null || damaged) { backingStoreImage = createImage(getWidth(), getHeight()); Graphics g2 = backingStore...
void paintBackingStore(Graphics g) { // If we have no backing store image yet or the size of the component has // changed, we need to rebuild the backing store. if (backingStoreImage == null || sizeChanged) { backingStoreImage = createImage(getWidth(), getHeight()); Graphics g2 = backingS...
24,623
public void reshape(int x, int y, int w, int h) { damaged = true; boolean changed = (x != getX()) || (y != getY()) || (w != getWidth()) || (h != getHeight()); super.reshape(x, y, w, h); if (changed) fireStateChanged(); }
public void reshape(int x, int y, int w, int h) { boolean changed = (x != getX()) || (y != getY()) || (w != getWidth()) || (h != getHeight()); super.reshape(x, y, w, h); if (changed) fireStateChanged(); }
24,625
public void setView(Component v) { while (getComponentCount() > 0) { if (viewListener != null) getView().removeComponentListener(viewListener); remove(0); } if (v != null) { if (viewListener == null) viewListener = createViewListener(); v.addComponentL...
public void setView(Component v) { while (getComponentCount() > 0) { if (viewListener != null) getView().removeComponentListener(viewListener); } if (v != null) { if (viewListener == null) viewListener = createViewListener(); v.addComponentListener(vi...
24,627
PasswordAuthentication(String username, char[] password){ this.username = username; this.password = password;}
PasswordAuthentication(String username, char[] password){ this.username = username; this.password = password;}
24,631
PasswordAuthentication(String username, char[] password){ this.username = username; this.password = password;}
PasswordAuthentication(String username, char[] password){ this.username = username; this.password = password;}
24,632
getPassword(){ return(password);}
getPassword(){ return(password);}
24,633
getUserName(){ return(username);}
getUserName(){ return(username);}
24,634
protected void set_parameters(Applet app, Properties props) { useProperties(props); String[][] para = app.getParameterInfo(); if (para != null) { for (int i = 0; i < para.length; i++) { if (para [ i ] [ 0 ].equals(LISTEN_ON)) Port = Integer.parseInt(para [ i ] [ ...
protected void set_parameters(Applet app, Properties props) { useProperties(props); String[][] para = app.getParameterInfo(); if (para != null) { for (int i = 0; i < para.length; i++) { if (para [ i ] [ 0 ].equals(LISTEN_ON)) Port = Integer.parseInt(para [ i ] [ ...
24,636
protected void set_parameters(Applet app, Properties props) { useProperties(props); String[][] para = app.getParameterInfo(); if (para != null) { for (int i = 0; i < para.length; i++) { if (para [ i ] [ 0 ].equals(LISTEN_ON)) Port = Integer.parseInt(para [ i ] [ ...
protected void set_parameters(Applet app, Properties props) { useProperties(props); String[][] para = app.getParameterInfo(); if (para != null) { for (int i = 0; i < para.length; i++) { if (para [ i ] [ 0 ].equals(LISTEN_ON)) Port = Integer.parseInt(para [ i ] [ ...
24,637
protected void set_parameters(Applet app, Properties props) { useProperties(props); String[][] para = app.getParameterInfo(); if (para != null) { for (int i = 0; i < para.length; i++) { if (para [ i ] [ 0 ].equals(LISTEN_ON)) Port = Integer.parseInt(para [ i ] [ ...
protected void set_parameters(Applet app, Properties props) { useProperties(props); String[][] para = app.getParameterInfo(); if (para != null) { for (int i = 0; i < para.length; i++) { if (para [ i ] [ 0 ].equals(LISTEN_ON)) Port = Integer.parseInt(para [ i ] [ ...
24,638
protected void set_parameters(Applet app, Properties props) { useProperties(props); String[][] para = app.getParameterInfo(); if (para != null) { for (int i = 0; i < para.length; i++) { if (para [ i ] [ 0 ].equals(LISTEN_ON)) Port = Integer.parseInt(para [ i ] [ ...
protected void set_parameters(Applet app, Properties props) { useProperties(props); String[][] para = app.getParameterInfo(); if (para != null) { for (int i = 0; i < para.length; i++) { if (para [ i ] [ 0 ].equals(LISTEN_ON)) Port = Integer.parseInt(para [ i ] [ ...
24,639
protected void set_parameters(Applet app, Properties props) { useProperties(props); String[][] para = app.getParameterInfo(); if (para != null) { for (int i = 0; i < para.length; i++) { if (para [ i ] [ 0 ].equals(LISTEN_ON)) Port = Integer.parseInt(para [ i ] [ ...
protected void set_parameters(Applet app, Properties props) { useProperties(props); String[][] para = app.getParameterInfo(); if (para != null) { for (int i = 0; i < para.length; i++) { if (para [ i ] [ 0 ].equals(LISTEN_ON)) Port = Integer.parseInt(para [ i ] [ ...
24,640
protected void set_parameters(Applet app, Properties props) { useProperties(props); String[][] para = app.getParameterInfo(); if (para != null) { for (int i = 0; i < para.length; i++) { if (para [ i ] [ 0 ].equals(LISTEN_ON)) Port = Integer.parseInt(para [ i ] [ ...
protected void set_parameters(Applet app, Properties props) { useProperties(props); String[][] para = app.getParameterInfo(); if (para != null) { for (int i = 0; i < para.length; i++) { if (para [ i ] [ 0 ].equals(LISTEN_ON)) Port = Integer.parseInt(para [ i ] [ ...
24,641
private void formatInternal (double number, FormatBuffer dest, FieldPosition fieldPos) { // A very special case. if (Double.isNaN(number)) { dest.append(symbols.getNaN()); if (fieldPos != null && (fieldPos.getField() == INTEGER_FIELD || fieldPos.getFieldAttribute() == NumberFormat.Field.INTE...
private void formatInternal (double number, FormatBuffer dest, FieldPosition fieldPos) { // A very special case. if (Double.isNaN(number)) { dest.append(symbols.getNaN()); if (fieldPos != null && (fieldPos.getField() == INTEGER_FIELD || fieldPos.getFieldAttribute() == NumberFormat.Field.INTE...
24,643
public JTree() { this(createTreeModel(null)); }
public JTree() { this(getDefaultTreeModel()); }
24,645
public void setModel(TreeModel model) { if (treeModel == model) return; // add treeModelListener to the new model if (treeModelListener == null) treeModelListener = createTreeModelListener(); if (model != null) // as setModel(null) is allowed model.addTreeModelListener(treeModelListener); ...
public void setModel(TreeModel model) { if (treeModel == model) return; // add treeModelListener to the new model if (treeModelListener == null) treeModelListener = createTreeModelListener(); if (model != null) // as setModel(null) is allowed model.addTreeModelListener(treeModelListener); ...
24,646
public void add(int field, int amount) { switch (field) { case YEAR: complete(); fields[YEAR] += amount; isTimeSet = false; break; case MONTH: complete(); int months = fields[MONTH] + amount; fields[YEAR] += months / 12; fields[MONTH] = months % 12; if (fields[MONTH] < 0) ...
public void add(int field, int amount) { switch (field) { case YEAR: complete(); fields[YEAR] += amount; isTimeSet = false; break; case MONTH: complete(); int months = fields[MONTH] + amount; fields[YEAR] += months / 12; fields[MONTH] = months % 12; if (fields[MONTH] < 0) ...
24,647
public void add(int field, int amount) { switch (field) { case YEAR: complete(); fields[YEAR] += amount; isTimeSet = false; break; case MONTH: complete(); int months = fields[MONTH] + amount; fields[YEAR] += months / 12; fields[MONTH] = months % 12; if (fields[MONTH] < 0) ...
public void add(int field, int amount) { switch (field) { case YEAR: complete(); fields[YEAR] += amount; isTimeSet = false; break; case MONTH: complete(); int months = fields[MONTH] + amount; fields[YEAR] += months / 12; fields[MONTH] = months % 12; if (fields[MONTH] < 0) ...
24,648
protected synchronized void computeTime() { int millisInDay = 0; int era = fields[ERA]; int year = fields[YEAR]; int month = fields[MONTH]; int day = fields[DAY_OF_MONTH]; int minute = fields[MINUTE]; int second = fields[SECOND]; int millis = fields[MILLISECOND]; int[] month_days = { 31, 28, ...
protected synchronized void computeTime() { int millisInDay = 0; int era = fields[ERA]; int year = fields[YEAR]; int month = fields[MONTH]; int day = fields[DAY_OF_MONTH]; int minute = fields[MINUTE]; int second = fields[SECOND]; int millis = fields[MILLISECOND]; int[] month_days = { 31, 28, ...
24,650
protected synchronized void computeTime() { int millisInDay = 0; int era = fields[ERA]; int year = fields[YEAR]; int month = fields[MONTH]; int day = fields[DAY_OF_MONTH]; int minute = fields[MINUTE]; int second = fields[SECOND]; int millis = fields[MILLISECOND]; int[] month_days = { 31, 28, ...
protected synchronized void computeTime() { int millisInDay = 0; int era = fields[ERA]; int year = fields[YEAR]; int month = fields[MONTH]; int day = fields[DAY_OF_MONTH]; int minute = fields[MINUTE]; int second = fields[SECOND]; int millis = fields[MILLISECOND]; int[] month_days = { 31, 28, ...
24,651
protected synchronized void computeTime() { int millisInDay = 0; int era = fields[ERA]; int year = fields[YEAR]; int month = fields[MONTH]; int day = fields[DAY_OF_MONTH]; int minute = fields[MINUTE]; int second = fields[SECOND]; int millis = fields[MILLISECOND]; int[] month_days = { 31, 28, ...
protected synchronized void computeTime() { int millisInDay = 0; int era = fields[ERA]; int year = fields[YEAR]; int month = fields[MONTH]; int day = fields[DAY_OF_MONTH]; int minute = fields[MINUTE]; int second = fields[SECOND]; int millis = fields[MILLISECOND]; int[] month_days = { 31, 28, ...
24,652
protected synchronized void computeTime() { int millisInDay = 0; int era = fields[ERA]; int year = fields[YEAR]; int month = fields[MONTH]; int day = fields[DAY_OF_MONTH]; int minute = fields[MINUTE]; int second = fields[SECOND]; int millis = fields[MILLISECOND]; int[] month_days = { 31, 28, ...
protected synchronized void computeTime() { int millisInDay = 0; int era = fields[ERA]; int year = fields[YEAR]; int month = fields[MONTH]; int day = fields[DAY_OF_MONTH]; int minute = fields[MINUTE]; int second = fields[SECOND]; int millis = fields[MILLISECOND]; int[] month_days = { 31, 28, ...
24,653
protected synchronized void computeTime() { int millisInDay = 0; int era = fields[ERA]; int year = fields[YEAR]; int month = fields[MONTH]; int day = fields[DAY_OF_MONTH]; int minute = fields[MINUTE]; int second = fields[SECOND]; int millis = fields[MILLISECOND]; int[] month_days = { 31, 28, ...
protected synchronized void computeTime() { int millisInDay = 0; int era = fields[ERA]; int year = fields[YEAR]; int month = fields[MONTH]; int day = fields[DAY_OF_MONTH]; int minute = fields[MINUTE]; int second = fields[SECOND]; int millis = fields[MILLISECOND]; int[] month_days = { 31, 28, ...
24,654
protected synchronized void computeTime() { int millisInDay = 0; int era = fields[ERA]; int year = fields[YEAR]; int month = fields[MONTH]; int day = fields[DAY_OF_MONTH]; int minute = fields[MINUTE]; int second = fields[SECOND]; int millis = fields[MILLISECOND]; int[] month_days = { 31, 28, ...
protected synchronized void computeTime() { int millisInDay = 0; int era = fields[ERA]; int year = fields[YEAR]; int month = fields[MONTH]; int day = fields[DAY_OF_MONTH]; int minute = fields[MINUTE]; int second = fields[SECOND]; int millis = fields[MILLISECOND]; int[] month_days = { 31, 28, ...
24,655
private int getFirstDayOfMonth(int year, int month) { int[] dayCount = { 0, 31, 59, 90, 120, 151, 181, 212, 243, 273, 304, 334 }; int dayOfYear = dayCount[month] + 1; if (month > 1) if (isLeapYear(year)) dayOfYear++; boolean greg = isGregorian(year, dayOfYear); int day = (int) getLinearDay(year...
privateintgetFirstDayOfMonth(intyear,intmonth){int[]dayCount={0,31,59,90,120,151,181,212,243,273,304,334};intdayOfYear=dayCount[month]+1;if(month>1) if(isLeapYear(year)) dayOfYear++;booleangreg=isGregorian(year,dayOfYear);intday=(int)getLinearDay(year,dayOfYear,greg);//Theepochwasathursday.intweekday=(day+THURSD...
24,656
private ImageIO() {}
private ImageIO() {}
24,657
public Color getForeground() { if (foreground != null) return foreground; return parent == null ? SystemColor.windowText : parent.getForeground(); }
public Color getForeground() { if (foreground != null) return foreground; return parent == null ? SystemColor.windowText : parent.getForeground(); }
24,666
public Dimension getMaximumSize() { return new Dimension(Integer.MAX_VALUE, Integer.MAX_VALUE); }
public Dimension getMaximumSize() { return new Dimension(Integer.MAX_VALUE, Integer.MAX_VALUE); }
24,667
public void hide() { if (isVisible()) { // Avoid NullPointerExceptions by creating a local reference. ComponentPeer currentPeer=peer; if (currentPeer != null) currentPeer.setVisible(false); this.visible = false; // The JDK repaints the component b...
boolean wasShowing = isShowing(); boolean wasShowing = isShowing(); publicboolean wasShowing = isShowing(); voidboolean wasShowing = isShowing(); hide()boolean wasShowing = isShowing(); boolean wasShowing = isShowing(); {boolean wasShowing = isShowing(); boolean wasShowing = isShowing(); boolean wasShowing = isShowing(...
24,668
public boolean isShowing() { if (! visible || peer == null) return false; return parent == null ? true : parent.isShowing(); }
public boolean isShowing() { if (! visible || peer == null) return false; return parent == null ? true : parent.isShowing(); }
24,670
public void requestFocus () { if (isDisplayable () && isShowing () && isFocusable ()) { synchronized (getTreeLock ()) { // Find this Component's top-level ancestor. Container parent = getParent (); while (parent != null && !(parent instanceof...
public void requestFocus () { if (isDisplayable () && isShowing () && isFocusable ()) { synchronized (getTreeLock ()) { // Find this Component's top-level ancestor. Container parent = (this instanceof Container) ? (Container) this : getParent(); while (parent !...
24,671
public void setExceptionListener(ExceptionListener listener) { exceptionListener = (listener != null) ? listener : new ExceptionListener() { public void exceptionThrown(Exception e) { System.err.println("exception thrown: " + e); e.printStackTrace(); } }; }
public void setExceptionListener(ExceptionListener listener) { exceptionListener = (listener != null) ? listener : new ExceptionListener() { public void exceptionThrown(Exception e) { System.err.println("exception thrown: " + e); } }; }
24,674
public void exceptionThrown(Exception e) { System.err.println("exception thrown: " + e); e.printStackTrace(); }
public void exceptionThrown(Exception e) { System.err.println("exception thrown: " + e); }
24,675
private static void setupDefaultPersistenceDelegates() { synchronized (delegates) { if (defaultPersistenceDelegate != null) return; delegates.put(Class.class, new ClassPersistenceDelegate()); PersistenceDelegate pd = new PrimitivePersistenceDelegate(); delegates.put(Boole...
private static void setupDefaultPersistenceDelegates() { synchronized (delegates) { if (defaultPersistenceDelegate != null) return; delegates.put(Class.class, new ClassPersistenceDelegate()); PersistenceDelegate pd = new PrimitivePersistenceDelegate(); delegates.put(Boole...
24,676
private static void setupDefaultPersistenceDelegates() { synchronized (delegates) { if (defaultPersistenceDelegate != null) return; delegates.put(Class.class, new ClassPersistenceDelegate()); PersistenceDelegate pd = new PrimitivePersistenceDelegate(); delegates.put(Boole...
private static void setupDefaultPersistenceDelegates() { synchronized (delegates) { if (defaultPersistenceDelegate != null) return; delegates.put(Class.class, new ClassPersistenceDelegate()); PersistenceDelegate pd = new PrimitivePersistenceDelegate(); delegates.put(Boole...
24,677
private static void setupDefaultPersistenceDelegates() { synchronized (delegates) { if (defaultPersistenceDelegate != null) return; delegates.put(Class.class, new ClassPersistenceDelegate()); PersistenceDelegate pd = new PrimitivePersistenceDelegate(); delegates.put(Boole...
private static void setupDefaultPersistenceDelegates() { synchronized (delegates) { if (defaultPersistenceDelegate != null) return; delegates.put(Class.class, new ClassPersistenceDelegate()); PersistenceDelegate pd = new PrimitivePersistenceDelegate(); delegates.put(Boole...
24,678
public String paramString() { StringBuffer s = new StringBuffer(); switch (id) { case MOUSE_CLICKED: s.append("MOUSE_CLICKED,("); break; case MOUSE_PRESSED: s.append("MOUSE_PRESSED,("); break; case MOUSE_RELEASED: s.append("MOUSE_RELEASED,("); break...
public String paramString() { StringBuffer s = new StringBuffer(); switch (id) { case MOUSE_CLICKED: s.append("MOUSE_CLICKED,("); break; case MOUSE_PRESSED: s.append("MOUSE_PRESSED,("); break; case MOUSE_RELEASED: s.append("MOUSE_RELEASED,("); break...
24,680
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException { s.defaultReadObject(); if ((modifiers & EventModifier.OLD_MASK) != 0) { if ((modifiers & BUTTON1_MASK) != 0) button = BUTTON1; else if ((modifiers & BUTTON2_MASK) != 0) button = BUT...
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException { s.defaultReadObject(); if ((modifiers & EventModifier.OLD_MASK) != 0) { if ((modifiers & BUTTON1_MASK) != 0) button = BUTTON1; else if ((modifiers & BUTTON2_MASK) != 0) button = BUT...
24,681
public AccessibleContext getAccessibleContext() { return null; }
public AccessibleContext getAccessibleContext() { return null; }
24,682
public PanelUI getUI() { return (PanelUI) ui; }
public PanelUI getUI() { return (PanelUI) ui; }
24,683
public String getUIClassID() { return "JPanel"; }
public String getUIClassID() { return "JPanel"; }
24,684
protected String paramString() { return "JPanel"; }
protected String paramString() { return "JPanel"; }
24,685
private void compileFormat(String pattern) { // Any alphabetical characters are treated as pattern characters // unless enclosed in single quotes. char thisChar; int pos; int field; FieldSizePair current = null; for (int i=0; i<pattern.length(); i++) { thisChar = pattern.charAt(i); fi...
private void compileFormat(String pattern) { // Any alphabetical characters are treated as pattern characters // unless enclosed in single quotes. char thisChar; int pos; int field; FieldSizePair current = null; for (int i=0; i<pattern.length(); i++) { thisChar = pattern.charAt(i); fi...
24,686
private void compileFormat(String pattern) { // Any alphabetical characters are treated as pattern characters // unless enclosed in single quotes. char thisChar; int pos; int field; FieldSizePair current = null; for (int i=0; i<pattern.length(); i++) { thisChar = pattern.charAt(i); fi...
private void compileFormat(String pattern) { // Any alphabetical characters are treated as pattern characters // unless enclosed in single quotes. char thisChar; int pos; int field; FieldSizePair current = null; for (int i=0; i<pattern.length(); i++) { thisChar = pattern.charAt(i); fi...
24,687
private void compileFormat(String pattern) { // Any alphabetical characters are treated as pattern characters // unless enclosed in single quotes. char thisChar; int pos; int field; FieldSizePair current = null; for (int i=0; i<pattern.length(); i++) { thisChar = pattern.charAt(i); fi...
private void compileFormat(String pattern) { // Any alphabetical characters are treated as pattern characters // unless enclosed in single quotes. char thisChar; int pos; int field; FieldSizePair current = null; for (int i=0; i<pattern.length(); i++) { thisChar = pattern.charAt(i); fi...
24,688
private void compileFormat(String pattern) { // Any alphabetical characters are treated as pattern characters // unless enclosed in single quotes. char thisChar; int pos; int field; FieldSizePair current = null; for (int i=0; i<pattern.length(); i++) { thisChar = pattern.charAt(i); fi...
private void compileFormat(String pattern) { // Any alphabetical characters are treated as pattern characters // unless enclosed in single quotes. char thisChar; int pos; int field; FieldSizePair current = null; for (int i=0; i<pattern.length(); i++) { thisChar = pattern.charAt(i); fi...
24,689
private void compileFormat(String pattern) { // Any alphabetical characters are treated as pattern characters // unless enclosed in single quotes. char thisChar; int pos; int field; FieldSizePair current = null; for (int i=0; i<pattern.length(); i++) { thisChar = pattern.charAt(i); fi...
private void compileFormat(String pattern) { // Any alphabetical characters are treated as pattern characters // unless enclosed in single quotes. char thisChar; int pos; int field; FieldSizePair current = null; for (int i=0; i<pattern.length(); i++) { thisChar = pattern.charAt(i); fi...
24,690
private void compileFormat(String pattern) { // Any alphabetical characters are treated as pattern characters // unless enclosed in single quotes. char thisChar; int pos; int field; FieldSizePair current = null; for (int i=0; i<pattern.length(); i++) { thisChar = pattern.charAt(i); fi...
private void compileFormat(String pattern) { // Any alphabetical characters are treated as pattern characters // unless enclosed in single quotes. char thisChar; int pos; int field; FieldSizePair current = null; for (int i=0; i<pattern.length(); i++) { thisChar = pattern.charAt(i); fi...
24,691
private void compileFormat(String pattern) { // Any alphabetical characters are treated as pattern characters // unless enclosed in single quotes. char thisChar; int pos; int field; FieldSizePair current = null; for (int i=0; i<pattern.length(); i++) { thisChar = pattern.charAt(i); fi...
private void compileFormat(String pattern) { // Any alphabetical characters are treated as pattern characters // unless enclosed in single quotes. char thisChar; int pos; int field; FieldSizePair current = null; for (int i=0; i<pattern.length(); i++) { thisChar = pattern.charAt(i); fi...
24,692
public boolean equals(Object o) { if (o == null) return false; if (!super.equals(o)) return false; if (!(o instanceof SimpleDateFormat)) return false; SimpleDateFormat sdf = (SimpleDateFormat)o; if (!toPattern().equals(sdf.toPattern())) return false; if (!get2DigitYearStart().eq...
public boolean equals(Object o) { if (o == null) return false; if (!super.equals(o)) return false; if (!(o instanceof SimpleDateFormat)) return false; SimpleDateFormat sdf = (SimpleDateFormat)o; if (!toPattern().equals(sdf.toPattern())) return false; if (!get2DigitYearStart().eq...
24,693
public boolean equals(Object o) { if (o == null) return false; if (!super.equals(o)) return false; if (!(o instanceof SimpleDateFormat)) return false; SimpleDateFormat sdf = (SimpleDateFormat)o; if (!toPattern().equals(sdf.toPattern())) return false; if (!get2DigitYearStart().eq...
public boolean equals(Object o) { if (o == null) return false; if (!super.equals(o)) return false; if (!(o instanceof SimpleDateFormat)) return false; SimpleDateFormat sdf = (SimpleDateFormat)o; if (defaultCentury != sdf.defaultCentury) return false; if (!get2DigitYearStart().eq...
24,694
public boolean equals(Object o) { if (o == null) return false; if (!super.equals(o)) return false; if (!(o instanceof SimpleDateFormat)) return false; SimpleDateFormat sdf = (SimpleDateFormat)o; if (!toPattern().equals(sdf.toPattern())) return false; if (!get2DigitYearStart().eq...
public boolean equals(Object o) { if (o == null) return false; if (!super.equals(o)) return false; if (!(o instanceof SimpleDateFormat)) return false; SimpleDateFormat sdf = (SimpleDateFormat)o; if (!toPattern().equals(sdf.toPattern())) return false; if (!toPattern().equals(sdf....
24,695
public Date parse (String dateStr, ParsePosition pos) { int fmt_index = 0; int fmt_max = pattern.length(); calendar.clear(); boolean saw_timezone = false; int quote_start = -1; boolean is2DigitYear = false; for (; fmt_index < fmt_max; ++fmt_index) { char ch = pattern.charAt(fmt_index); if (...
public Date parse (String dateStr, ParsePosition pos) { int fmt_index = 0; int fmt_max = pattern.length(); calendar.clear(); boolean saw_timezone = false; int quote_start = -1; boolean is2DigitYear = false; for (; fmt_index < fmt_max; ++fmt_index) { char ch = pattern.charAt(fmt_index); if (...
24,696
private void readObject(ObjectInputStream stream) throws IOException, ClassNotFoundException { stream.defaultReadObject(); if (serialVersionOnStream < 1) { computeCenturyStart (); serialVersionOnStream = 1; } else // Ensure that defaultCentury gets set. set2DigitYearStart(defau...
private void readObject(ObjectInputStream stream) throws IOException, ClassNotFoundException { stream.defaultReadObject(); if (serialVersionOnStream < 1) { computeCenturyStart (); serialVersionOnStream = 1; } else // Ensure that defaultCentury gets set. set2DigitYearStart(defau...
24,698
public String toString() { StringBuffer output = new StringBuffer(); Enumeration e = tokens.elements(); while (e.hasMoreElements()) { output.append(e.nextElement().toString()); } return output.toString(); }
public String toString() { StringBuffer output = new StringBuffer(); Enumeration e = tokens.elements(); while (e.hasMoreElements()) { output.append(e.nextElement().toString()); } return output.toString(); }
24,699
private void withLeadingZeros(int value, int length, StringBuffer buffer) { String valStr = String.valueOf(value); for (length -= valStr.length(); length > 0; length--) buffer.append('0'); buffer.append(valStr); }
private void withLeadingZeros(int value, int length, FormatBuffer buffer) { String valStr = String.valueOf(value); for (length -= valStr.length(); length > 0; length--) buffer.append('0'); buffer.append(valStr); }
24,700
public String getUIClassID() { return "JTree"; }
public String getUIClassID() { return "TreeUI"; }
24,702
protected void installDefaults(JSeparator s) { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); shadow = defaults.getColor("Separator.shadow"); highlight = defaults.getColor("Separator.highlight"); s.setOpaque(false); }
protected void installDefaults(JSeparator s) { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); shadow = defaults.getColor("Separator.shadow"); highlight = defaults.getColor("Separator.highlight"); s.setOpaque(false); }
24,703
public String paramString () { throw new Error ("not implemented"); }
public String paramString () { return ("scrollpane=" + sp + ", orientation=" + orientation + ", value=" + value + ", minimum=" + minimum + ", maximum=" + maximum + ", visibleAmount=" + visibleAmount + ", unitIncrement=" + unitIncrement + ", blockIncrement=" + blockIncrement); }
24,704
public int getOffset() { return 0; }
protected int getOffset() { return 0; }
24,705
public int getGlyphCharIndex (int glyphIndex) throws NotImplementedException { throw new Error ("not implemented"); }
public int getGlyphCharIndex (int glyphIndex) { throw new Error ("not implemented"); }
24,706
public int getGlyphCharIndex (int glyphIndex) throws NotImplementedException { throw new Error ("not implemented"); }
public int getGlyphCharIndex (int glyphIndex) throws NotImplementedException { return glyphIndex; }
24,707
public int[] getGlyphCharIndices (int beginGlyphIndex, int numEntries, int[] codeReturn) throws NotImplementedException { throw new Error ("not implemented"); }
public int[] getGlyphCharIndices(int beginGlyphIndex, int numEntries, int[] codeReturn) throws NotImplementedException { throw new Error ("not implemented"); }
24,708
public int[] getGlyphCharIndices (int beginGlyphIndex, int numEntries, int[] codeReturn) throws NotImplementedException { throw new Error ("not implemented"); }
public int[] getGlyphCharIndices (int beginGlyphIndex, int numEntries, int[] codeReturn) { throw new Error ("not implemented"); }
24,709
public int[] getGlyphCharIndices (int beginGlyphIndex, int numEntries, int[] codeReturn) throws NotImplementedException { throw new Error ("not implemented"); }
public int[] getGlyphCharIndices (int beginGlyphIndex, int numEntries, int[] codeReturn) throws NotImplementedException { if (codeReturn == null) codeReturn = new int[numEntries]; int i = 0; int j = beginGlyphIndex; while (j < numEntries) codeReturn[i++] = getGlyphCharIndex(...
24,710
public Rectangle getGlyphPixelBounds (int index, FontRenderContext renderFRC, float x, float y) throws NotImplementedException { throw new Error ("not implemented"); }
public Rectangle getGlyphPixelBounds(int index, FontRenderContext renderFRC, float x, float y) throws NotImplementedException { throw new Error ("not implemented"); }
24,711