bugged stringlengths 6 599k | fixed stringlengths 6 40.8M | __index_level_0__ int64 0 3.24M |
|---|---|---|
public void setCaret(Caret newCaret) { if (caret != null) caret.deinstall(this); Caret oldCaret = caret; caret = newCaret; caretBlinkTimer.update(); if (caret != null) caret.install(this); firePropertyChange("caret", oldCaret, newCaret); } | public void setCaret(Caret newCaret) { if (caret != null) caret.deinstall(this); Caret oldCaret = caret; caret = newCaret; if (caret != null) caret.install(this); firePropertyChange("caret", oldCaret, newCaret); } | 29,931 |
public void setEditable(boolean newValue) { if (editable == newValue) return; if (newValue == true) caretBlinkTimer.start(); else { caretBlinkTimer.stop(); caret.setVisible(false); } boolean oldValue = editable; editable = newValue; firePropertyChange("editable", o... | public void setEditable(boolean newValue) { if (editable == newValue) return; if (newValue == true) caretBlinkTimer.start(); else { caretBlinkTimer.stop(); caret.setVisible(false); } boolean oldValue = editable; editable = newValue; firePropertyChange("editable", o... | 29,932 |
StringSelection(String data){ this.data = data;} | StringSelection(String data){ this.data = data;} | 29,933 |
StringSelection(String data){ this.data = data;} | StringSelection(String data){ this.data = data;} | 29,934 |
public abstract DataFlavor[] getTransferDataFlavors(); | public abstract DataFlavor[] getTransferDataFlavors(); | 29,935 |
protected Calendar() { this(TimeZone.getDefault(), Locale.getDefault()); } | protected Calendar() { this(TimeZone.getDefault(), Locale.getDefault()); } | 29,936 |
public boolean after(Object o) { return getTimeInMillis() > ((Calendar) o).getTimeInMillis(); } | public boolean after(Object o) { return getTimeInMillis() > ((Calendar) o).getTimeInMillis(); } | 29,937 |
public boolean before(Object o) { return getTimeInMillis() < ((Calendar) o).getTimeInMillis(); } | public boolean before(Object o) { return getTimeInMillis() < ((Calendar) o).getTimeInMillis(); } | 29,938 |
public final void clear() { isTimeSet = false; areFieldsSet = false; for (int i = 0; i < FIELD_COUNT; i++) { isSet[i] = false; fields[i] = 0; } } | public final void clear() { isTimeSet = false; areFieldsSet = false; for (int i = 0; i < FIELD_COUNT; i++) { isSet[i] = false; fields[i] = 0; } } | 29,939 |
public final void clear() { isTimeSet = false; areFieldsSet = false; for (int i = 0; i < FIELD_COUNT; i++) { isSet[i] = false; fields[i] = 0; } } | public final void clear() { isTimeSet = false; areFieldsSet = false; for (int i = 0; i < FIELD_COUNT; i++) { isSet[i] = false; fields[i] = 0; } } | 29,940 |
public Object clone() { try { Calendar cal = (Calendar) super.clone(); cal.fields = (int[]) fields.clone(); cal.isSet = (boolean[]) isSet.clone(); return cal; } catch (CloneNotSupportedException ex) { return null; } } | public Object clone() { try { Calendar cal = (Calendar) super.clone(); cal.fields = (int[]) fields.clone(); cal.isSet = (boolean[]) isSet.clone(); return cal; } catch (CloneNotSupportedException ex) { return null; } } | 29,941 |
public Object clone() { try { Calendar cal = (Calendar) super.clone(); cal.fields = (int[]) fields.clone(); cal.isSet = (boolean[]) isSet.clone(); return cal; } catch (CloneNotSupportedException ex) { return null; } } | public Object clone() { try { Calendar cal = (Calendar) super.clone(); cal.fields = (int[]) fields.clone(); cal.isSet = (boolean[]) isSet.clone(); return cal; } catch (CloneNotSupportedException ex) { return null; } } | 29,942 |
public Object clone() { try { Calendar cal = (Calendar) super.clone(); cal.fields = (int[]) fields.clone(); cal.isSet = (boolean[]) isSet.clone(); return cal; } catch (CloneNotSupportedException ex) { return null; } } | public Object clone() { try { Calendar cal = (Calendar) super.clone(); cal.fields = (int[]) fields.clone(); cal.isSet = (boolean[]) isSet.clone(); return cal; } catch (CloneNotSupportedException ex) { return null; } } | 29,943 |
protected void complete() { if (!isTimeSet) computeTime(); if (!areFieldsSet) computeFields(); } | protected void complete() { if (!isTimeSet) computeTime(); if (!areFieldsSet) computeFields(); } | 29,944 |
public boolean equals(Object o) { return (o instanceof Calendar) && getTimeInMillis() == ((Calendar) o).getTimeInMillis(); } | public boolean equals(Object o) { return (o instanceof Calendar) && getTimeInMillis() == ((Calendar) o).getTimeInMillis(); } | 29,945 |
public final int get(int field) { // If the requested field is invalid, force all fields to be recomputed. if (!isSet[field]) areFieldsSet = false; complete(); return fields[field]; } | public final int get(int field) { // If the requested field is invalid, force all fields to be recomputed. if (!isSet[field]) areFieldsSet = false; complete(); return fields[field]; } | 29,946 |
public abstract int getActualMaximum(int field); | public abstract int getActualMaximum(int field); | 29,947 |
public abstract int getActualMinimum(int field); | public abstract int getActualMinimum(int field); | 29,948 |
public static synchronized Locale[] getAvailableLocales() { ResourceBundle rb = ResourceBundle.getBundle(bundleName, new Locale("", "")); return (Locale[]) rb.getObject("availableLocales"); } | public static synchronized Locale[] getAvailableLocales() { ResourceBundle rb = ResourceBundle.getBundle(bundleName, new Locale("", "")); return (Locale[]) rb.getObject("availableLocales"); } | 29,949 |
public int getFirstDayOfWeek() { return firstDayOfWeek; } | public int getFirstDayOfWeek() { return firstDayOfWeek; } | 29,950 |
public static synchronized Calendar getInstance() { return getInstance(TimeZone.getDefault(), Locale.getDefault()); } | public static synchronized Calendar getInstance() { return getInstance(TimeZone.getDefault(), Locale.getDefault()); } | 29,951 |
public int getMinimalDaysInFirstWeek() { return minimalDaysInFirstWeek; } | public int getMinimalDaysInFirstWeek() { return minimalDaysInFirstWeek; } | 29,952 |
public final Date getTime() { if (!isTimeSet) computeTime(); return new Date(time); } | public final Date getTime() { if (!isTimeSet) computeTime(); return new Date(time); } | 29,953 |
public long getTimeInMillis() { if (!isTimeSet) computeTime(); return time; } | public long getTimeInMillis() { if (!isTimeSet) computeTime(); return time; } | 29,954 |
public TimeZone getTimeZone() { return zone; } | public TimeZone getTimeZone() { return zone; } | 29,955 |
public int hashCode() { long time = getTimeInMillis(); return (int) ((time & 0xffffffffL) ^ (time >> 32)); } | public int hashCode() { long time = getTimeInMillis(); return (int) ((time & 0xffffffffL) ^ (time >> 32)); } | 29,956 |
protected final int internalGet(int field) { return fields[field]; } | protected final int internalGet(int field) { return fields[field]; } | 29,957 |
public boolean isLenient() { return lenient; } | public boolean isLenient() { return lenient; } | 29,958 |
public final boolean isSet(int field) { return isSet[field]; } | public final boolean isSet(int field) { return isSet[field]; } | 29,959 |
private void readObject(ObjectInputStream stream) throws IOException, ClassNotFoundException { stream.defaultReadObject(); if (!isTimeSet) computeTime(); if (serialVersionOnStream > 1) { // This is my interpretation of the serial number: // Sun wants to remove all fields from the stream someday // and will... | private void readObject(ObjectInputStream stream) throws IOException, ClassNotFoundException { stream.defaultReadObject(); if (!isTimeSet) computeTime(); if (serialVersionOnStream > 1) { // This is my interpretation of the serial number: // Sun wants to remove all fields from the stream someday // and will... | 29,960 |
private void readObject(ObjectInputStream stream) throws IOException, ClassNotFoundException { stream.defaultReadObject(); if (!isTimeSet) computeTime(); if (serialVersionOnStream > 1) { // This is my interpretation of the serial number: // Sun wants to remove all fields from the stream someday // and will... | private void readObject(ObjectInputStream stream) throws IOException, ClassNotFoundException { stream.defaultReadObject(); if (!isTimeSet) computeTime(); if (serialVersionOnStream > 1) { // This is my interpretation of the serial number: // Sun wants to remove all fields from the stream someday // and will... | 29,961 |
public final void set(int field, int value) { isTimeSet = false; fields[field] = value; isSet[field] = true; switch (field) { case YEAR : case MONTH : case DATE : isSet[WEEK_OF_YEAR] = false; isSet[DAY_OF_YEAR] = false; isSet[WEEK_OF_MONTH] = false; isSet[DAY_OF_WEEK] = false; isSet[DAY_OF_WEE... | public final void set(int field, int value) { isTimeSet = false; fields[field] = value; isSet[field] = true; switch (field) { case YEAR : case MONTH : case DATE : isSet[WEEK_OF_YEAR] = false; isSet[DAY_OF_YEAR] = false; isSet[WEEK_OF_MONTH] = false; isSet[DAY_OF_WEEK] = false; isSet[DAY_OF_WEE... | 29,962 |
public final void set(int field, int value) { isTimeSet = false; fields[field] = value; isSet[field] = true; switch (field) { case YEAR : case MONTH : case DATE : isSet[WEEK_OF_YEAR] = false; isSet[DAY_OF_YEAR] = false; isSet[WEEK_OF_MONTH] = false; isSet[DAY_OF_WEEK] = false; isSet[DAY_OF_WEE... | public final void set(int field, int value) { isTimeSet = false; fields[field] = value; isSet[field] = true; switch (field) { case YEAR : case MONTH : case DATE : isSet[WEEK_OF_YEAR] = false; isSet[DAY_OF_YEAR] = false; isSet[WEEK_OF_MONTH] = false; isSet[DAY_OF_WEEK] = false; isSet[DAY_OF_WEE... | 29,963 |
public final void set(int field, int value) { isTimeSet = false; fields[field] = value; isSet[field] = true; switch (field) { case YEAR : case MONTH : case DATE : isSet[WEEK_OF_YEAR] = false; isSet[DAY_OF_YEAR] = false; isSet[WEEK_OF_MONTH] = false; isSet[DAY_OF_WEEK] = false; isSet[DAY_OF_WEE... | public final void set(int field, int value) { isTimeSet = false; fields[field] = value; isSet[field] = true; switch (field) { case YEAR : case MONTH : case DATE : isSet[WEEK_OF_YEAR] = false; isSet[DAY_OF_YEAR] = false; isSet[WEEK_OF_MONTH] = false; isSet[DAY_OF_WEEK] = false; isSet[DAY_OF_WEE... | 29,964 |
public final void set(int field, int value) { isTimeSet = false; fields[field] = value; isSet[field] = true; switch (field) { case YEAR : case MONTH : case DATE : isSet[WEEK_OF_YEAR] = false; isSet[DAY_OF_YEAR] = false; isSet[WEEK_OF_MONTH] = false; isSet[DAY_OF_WEEK] = false; isSet[DAY_OF_WEE... | public final void set(int field, int value) { isTimeSet = false; fields[field] = value; isSet[field] = true; switch (field) { case YEAR : case MONTH : case DATE : isSet[WEEK_OF_YEAR] = false; isSet[DAY_OF_YEAR] = false; isSet[WEEK_OF_MONTH] = false; isSet[DAY_OF_WEEK] = false; isSet[DAY_OF_WEE... | 29,965 |
public final void set(int field, int value) { isTimeSet = false; fields[field] = value; isSet[field] = true; switch (field) { case YEAR : case MONTH : case DATE : isSet[WEEK_OF_YEAR] = false; isSet[DAY_OF_YEAR] = false; isSet[WEEK_OF_MONTH] = false; isSet[DAY_OF_WEEK] = false; isSet[DAY_OF_WEE... | public final void set(int field, int value) { isTimeSet = false; fields[field] = value; isSet[field] = true; switch (field) { case YEAR : case MONTH : case DATE : isSet[WEEK_OF_YEAR] = false; isSet[DAY_OF_YEAR] = false; isSet[WEEK_OF_MONTH] = false; isSet[DAY_OF_WEEK] = false; isSet[DAY_OF_WEE... | 29,966 |
public void setFirstDayOfWeek(int value) { firstDayOfWeek = value; } | public void setFirstDayOfWeek(int value) { firstDayOfWeek = value; } | 29,967 |
public void setLenient(boolean lenient) { this.lenient = lenient; } | public void setLenient(boolean lenient) { this.lenient = lenient; } | 29,968 |
public void setMinimalDaysInFirstWeek(int value) { minimalDaysInFirstWeek = value; } | public void setMinimalDaysInFirstWeek(int value) { minimalDaysInFirstWeek = value; } | 29,969 |
public final void setTime(Date date) { setTimeInMillis(date.getTime()); } | public final void setTime(Date date) { setTimeInMillis(date.getTime()); } | 29,970 |
public void setTimeInMillis(long time) { this.time = time; isTimeSet = true; computeFields(); } | public void setTimeInMillis(long time) { this.time = time; isTimeSet = true; computeFields(); } | 29,971 |
public void setTimeZone(TimeZone zone) { this.zone = zone; } | public void setTimeZone(TimeZone zone) { this.zone = zone; } | 29,972 |
public String toString() { StringBuffer sb = new StringBuffer(); sb.append(getClass().getName()).append('['); sb.append("time="); if (isTimeSet) sb.append(time); else sb.append("?"); sb.append(",zone=" + zone); sb.append(",areFieldsSet=" + areFieldsSet); for (int i = 0; i < FIELD_COUNT; i++) { sb.append(... | public String toString() { StringBuffer sb = new StringBuffer(); sb.append(getClass().getName()).append('['); sb.append("time="); if (isTimeSet) sb.append(time); else sb.append("?"); sb.append(",zone=" + zone); sb.append(",areFieldsSet=" + areFieldsSet); for (int i = 0; i < FIELD_COUNT; i++) { sb.append(... | 29,973 |
public String toString() { StringBuffer sb = new StringBuffer(); sb.append(getClass().getName()).append('['); sb.append("time="); if (isTimeSet) sb.append(time); else sb.append("?"); sb.append(",zone=" + zone); sb.append(",areFieldsSet=" + areFieldsSet); for (int i = 0; i < FIELD_COUNT; i++) { sb.append(... | public String toString() { StringBuffer sb = new StringBuffer(); sb.append(getClass().getName()).append('['); sb.append("time="); if (isTimeSet) sb.append(time); else sb.append("?"); sb.append(",zone=" + zone); sb.append(",areFieldsSet=" + areFieldsSet); for (int i = 0; i < FIELD_COUNT; i++) { sb.append(... | 29,974 |
private void writeObject(ObjectOutputStream stream) throws IOException { if (!isTimeSet) computeTime(); stream.defaultWriteObject(); } | private void writeObject(ObjectOutputStream stream) throws IOException { if (!isTimeSet) computeTime(); stream.defaultWriteObject(); } | 29,975 |
public void start() { // Create a Heap monitor heapMonitor = new Monitor(); final VmArchitecture arch = Unsafe.getCurrentProcessor().getArchitecture(); final GCManager gcManager = new GCManager(this, arch, statics); this.gcThread = new GCThread(gcManager, heapMonitor); this.finalizerThread = new FinalizerThread(... | public void start() { // Create a Heap monitor heapMonitor = new Monitor(); final VmArchitecture arch = Unsafe.getCurrentProcessor().getArchitecture(); final GCManager gcManager = new GCManager(this, arch, statics); this.gcThread = new GCThread(gcManager, heapMonitor); this.finalizerThread = new FinalizerThread(... | 29,976 |
protected byte[] getResult() { return new byte[] { (byte) (h0 >>> 56), (byte) (h0 >>> 48), (byte) (h0 >>> 40), (byte) (h0 >>> 32), (byte) (h0 >>> 24), (byte) (h0 >>> 16), (byte) (h0 >>> 8), (byte) h0, (byte) (h1 >>> 56), (byte... | protected byte[] getResult() { return new byte[] { (byte) (h0 >>> 56), (byte) (h0 >>> 48), (byte) (h0 >>> 40), (byte) (h0 >>> 32), (byte) (h0 >>> 24), (byte) (h0 >>> 16), (byte) (h0 >>> 8), (byte) h0, (byte) (h1 >>> 56), (byte... | 29,977 |
protected byte[] padBuffer() { int n = (int) (count % BLOCK_SIZE); int padding = (n < 112) ? (112 - n) : (240 - n); byte[] result = new byte[padding + 16]; // padding is always binary 1 followed by binary 0s result[0] = (byte) 0x80; // save number of bits, casting the long to an array of 8 bytes ... | protected byte[] padBuffer() { int n = (int)(count % BLOCK_SIZE); int padding = (n < 112) ? (112 - n) : (240 - n); byte[] result = new byte[padding + 16]; // padding is always binary 1 followed by binary 0s result[0] = (byte) 0x80; // save number of bits, casting the long to an array of 8 bytes ... | 29,978 |
protected byte[] padBuffer() { int n = (int) (count % BLOCK_SIZE); int padding = (n < 112) ? (112 - n) : (240 - n); byte[] result = new byte[padding + 16]; // padding is always binary 1 followed by binary 0s result[0] = (byte) 0x80; // save number of bits, casting the long to an array of 8 bytes ... | protectedbyte[]padBuffer(){intn=(int)(count%BLOCK_SIZE);intpadding=(n<112)?(112-n):(240-n);byte[]result=newbyte[padding+16];//paddingisalwaysbinary1followedbybinary0sresult[0]=(byte)0x80;//savenumberofbits,castingthelongtoanarrayof8bytes//TODO:FIXOnly~35bitsof128bitcounterusablethiswaylongbits=count<<3;padding+=8;resul... | 29,979 |
protected byte[] padBuffer() { int n = (int) (count % BLOCK_SIZE); int padding = (n < 112) ? (112 - n) : (240 - n); byte[] result = new byte[padding + 16]; // padding is always binary 1 followed by binary 0s result[0] = (byte) 0x80; // save number of bits, casting the long to an array of 8 bytes ... | protectedbyte[]padBuffer(){intn=(int)(count%BLOCK_SIZE);intpadding=(n<112)?(112-n):(240-n);byte[]result=newbyte[padding+16];//paddingisalwaysbinary1followedbybinary0sresult[0]=(byte)0x80;//savenumberofbits,castingthelongtoanarrayof8bytes//TODO:FIXOnly~35bitsof128bitcounterusablethiswaylongbits=count<<3;padding+=8;resul... | 29,980 |
protected byte[] padBuffer() { int n = (int) (count % BLOCK_SIZE); int padding = (n < 112) ? (112 - n) : (240 - n); byte[] result = new byte[padding + 16]; // padding is always binary 1 followed by binary 0s result[0] = (byte) 0x80; // save number of bits, casting the long to an array of 8 bytes ... | protected byte[] padBuffer() { int n = (int) (count % BLOCK_SIZE); int padding = (n < 112) ? (112 - n) : (240 - n); byte[] result = new byte[padding + 16]; // padding is always binary 1 followed by binary 0s result[0] = (byte) 0x80; // save number of bits, casting the long to an array of 8 bytes ... | 29,981 |
private static final synchronized long[] sha(long hh0, long hh1, long hh2, long hh3, long hh4, long hh5, long hh6, long hh7, byte[] in, int offset) { long A = hh0; long B = ... | private static synchronized final long[] sha(long hh0, long hh1, long hh2, long hh3, long hh4, long hh5, long hh6, long hh7, byte[] in, int offset) { long A = hh0; long B = ... | 29,982 |
private static final synchronized long[] sha(long hh0, long hh1, long hh2, long hh3, long hh4, long hh5, long hh6, long hh7, byte[] in, int offset) { long A = hh0; long B = ... | privatestaticfinalsynchronizedlong[]sha(longhh0,longhh1,longhh2,longhh3,longhh4,longhh5,longhh6,longhh7,byte[]in,intoffset){longA=hh0;longB=hh1;longC=hh2;longD=hh3;longE=hh4;longF=hh5;longG=hh6;longH=hh7;longT,T2;intr;for(r=0;r<16;r++){w[r]=(long)in[offset++]<<56|((long)in[offset++]&0xFF)<<48|((long)in[offset++]&0xFF)<... | 29,983 |
private static final synchronized long[] sha(long hh0, long hh1, long hh2, long hh3, long hh4, long hh5, long hh6, long hh7, byte[] in, int offset) { long A = hh0; long B = ... | private static final synchronized long[] sha(long hh0, long hh1, long hh2, long hh3, long hh4, long hh5, long hh6, long hh7, byte[] in, int offset) { long A = hh0; long B = ... | 29,984 |
private static final synchronized long[] sha(long hh0, long hh1, long hh2, long hh3, long hh4, long hh5, long hh6, long hh7, byte[] in, int offset) { long A = hh0; long B = ... | private static final synchronized long[] sha(long hh0, long hh1, long hh2, long hh3, long hh4, long hh5, long hh6, long hh7, byte[] in, int offset) { long A = hh0; long B = ... | 29,985 |
private static final synchronized long[] sha(long hh0, long hh1, long hh2, long hh3, long hh4, long hh5, long hh6, long hh7, byte[] in, int offset) { long A = hh0; long B = ... | private static final synchronized long[] sha(long hh0, long hh1, long hh2, long hh3, long hh4, long hh5, long hh6, long hh7, byte[] in, int offset) { long A = hh0; long B = ... | 29,986 |
private static final synchronized long[] sha(long hh0, long hh1, long hh2, long hh3, long hh4, long hh5, long hh6, long hh7, byte[] in, int offset) { long A = hh0; long B = ... | privatestaticfinalsynchronizedlong[]sha(longhh0,longhh1,longhh2,longhh3,longhh4,longhh5,longhh6,longhh7,byte[]in,intoffset){longA=hh0;longB=hh1;longC=hh2;longD=hh3;longE=hh4;longF=hh5;longG=hh6;longH=hh7;longT,T2;intr;for(r=0;r<16;r++){w[r]=(long)in[offset++]<<56|((long)in[offset++]&0xFF)<<48|((long)in[offset++]&0xFF)<... | 29,987 |
private static final synchronized long[] sha(long hh0, long hh1, long hh2, long hh3, long hh4, long hh5, long hh6, long hh7, byte[] in, int offset) { long A = hh0; long B = ... | private static final synchronized long[] sha(long hh0, long hh1, long hh2, long hh3, long hh4, long hh5, long hh6, long hh7, byte[] in, int offset) { long A = hh0; long B = ... | 29,988 |
private static final synchronized long[] sha(long hh0, long hh1, long hh2, long hh3, long hh4, long hh5, long hh6, long hh7, byte[] in, int offset) { long A = hh0; long B = ... | private static final synchronized long[] sha(long hh0, long hh1, long hh2, long hh3, long hh4, long hh5, long hh6, long hh7, byte[] in, int offset) { long A = hh0; long B = ... | 29,989 |
private static final synchronized long[] sha(long hh0, long hh1, long hh2, long hh3, long hh4, long hh5, long hh6, long hh7, byte[] in, int offset) { long A = hh0; long B = ... | private static final synchronized long[] sha(long hh0, long hh1, long hh2, long hh3, long hh4, long hh5, long hh6, long hh7, byte[] in, int offset) { long A = hh0; long B = ... | 29,990 |
protected void transform(byte[] in, int offset) { long[] result = sha(h0, h1, h2, h3, h4, h5, h6, h7, in, offset); h0 = result[0]; h1 = result[1]; h2 = result[2]; h3 = result[3]; h4 = result[4]; h5 = result[5]; h6 = result[6]; h7 = result[7]; } | protectedvoidtransform(byte[]in,intoffset){long[]result=sha(h0,h1,h2,h3,h4,h5,h6,h7,in,offset);h0=result[0];h1=result[1];h2=result[2];h3=result[3];h4=result[4];h5=result[5];h6=result[6];h7=result[7];} | 29,991 |
public static void setLookAndFeel(LookAndFeel newLookAndFeel) throws UnsupportedLookAndFeelException { if (newLookAndFeel != null && ! newLookAndFeel.isSupportedLookAndFeel()) throw new UnsupportedLookAndFeelException(newLookAndFeel.getName()); LookAndFeel oldLookAndFeel = currentLookAndFeel; if... | publicstaticvoidsetLookAndFeel(LookAndFeelnewLookAndFeel)throwsUnsupportedLookAndFeelException{if(newLookAndFeel!=null&&!newLookAndFeel.isSupportedLookAndFeel())thrownewUnsupportedLookAndFeelException(newLookAndFeel.getName());LookAndFeeloldLookAndFeel=currentLookAndFeel;if(oldLookAndFeel!=null)oldLookAndFeel.uninitial... | 29,992 |
public void layoutContainer(Container parent) { // Position editor component to the left of arrow button if combo box is // editable Insets i = getInsets(); int arrowSize = comboBox.getHeight() - (i.top + i.bottom); int editorWidth = comboBox.getBounds().width - arrowSize; if (edit... | public void layoutContainer(Container parent) { // Position editor component to the left of arrow button if combo box is // editable Insets i = getInsets(); int arrowSize = comboBox.getHeight() - (i.top + i.bottom); int editorWidth = comboBox.getBounds().width - arrowSize; if (edit... | 29,993 |
protected Dimension getDefaultSize() { Component comp = DEFAULT_RENDERER.getListCellRendererComponent(listBox, " ", -1, false, ... | protected Dimension getDefaultSize() { Component comp = DEFAULT_RENDERER.getListCellRendererComponent(listBox, " ", -1, false, ... | 29,995 |
protected Dimension getDefaultSize() { Component comp = DEFAULT_RENDERER.getListCellRendererComponent(listBox, " ", -1, false, ... | protected Dimension getDefaultSize() { Component comp = DEFAULT_RENDERER.getListCellRendererComponent(listBox, " ", -1, false, ... | 29,996 |
protected Dimension getDisplaySize() { if (comboBox.isEditable() && comboBox.getModel().getSize() == 0) return new Dimension(100, editor.getPreferredSize().height); Dimension dim = new Dimension(); ListCellRenderer renderer = comboBox.getRenderer(); ComboBoxModel model = comboBox.getModel(); if (... | protected Dimension getDisplaySize() { if (comboBox.isEditable() && comboBox.getModel().getSize() == 0) return new Dimension(100, editor.getPreferredSize().height); Dimension dim = new Dimension(); ListCellRenderer renderer = comboBox.getRenderer(); ComboBoxModel model = comboBox.getModel(); if (... | 29,997 |
protected Dimension getDisplaySize() { if (comboBox.isEditable() && comboBox.getModel().getSize() == 0) return new Dimension(100, editor.getPreferredSize().height); Dimension dim = new Dimension(); ListCellRenderer renderer = comboBox.getRenderer(); ComboBoxModel model = comboBox.getModel(); if (... | protected Dimension getDisplaySize() { if (comboBox.isEditable() && comboBox.getModel().getSize() == 0) return new Dimension(100, editor.getPreferredSize().height); Dimension dim = new Dimension(); ListCellRenderer renderer = comboBox.getRenderer(); ComboBoxModel model = comboBox.getModel(); if (... | 29,998 |
protected Dimension getDisplaySize() { if (comboBox.isEditable() && comboBox.getModel().getSize() == 0) return new Dimension(100, editor.getPreferredSize().height); Dimension dim = new Dimension(); ListCellRenderer renderer = comboBox.getRenderer(); ComboBoxModel model = comboBox.getModel(); if (... | renderer = DEFAULT_RENDERER; } Object prototype = comboBox.getPrototypeDisplayValue(); if (prototype != null) { Component comp = renderer.getListCellRendererComponent (listBox, prototype, -1, false, false); currentValuePane.add(comp); comp.setFont(comboBox.getFont()); Dimension renderSize = comp.getPreferredSize(); cu... | 29,999 |
protected Dimension getDisplaySize() { if (comboBox.isEditable() && comboBox.getModel().getSize() == 0) return new Dimension(100, editor.getPreferredSize().height); Dimension dim = new Dimension(); ListCellRenderer renderer = comboBox.getRenderer(); ComboBoxModel model = comboBox.getModel(); if (... | protected Dimension getDisplaySize() { if (comboBox.isEditable() && comboBox.getModel().getSize() == 0) return new Dimension(100, editor.getPreferredSize().height); Dimension dim = new Dimension(); ListCellRenderer renderer = comboBox.getRenderer(); ComboBoxModel model = comboBox.getModel(); if (... | 30,000 |
public Dimension getMaximumSize(JComponent c) { Dimension size = getPreferredSize(c); size.width = 32767; return size; } | public Dimension getMaximumSize(JComponent c) { Dimension size = getPreferredSize(c); size.width = 32767; return size; } | 30,001 |
public Dimension getMinimumSize(JComponent c) { if (isMinimumSizeDirty) { Insets i = getInsets(); Dimension d = getDisplaySize(); d.height += i.top + i.bottom; int arrowButtonWidth = d.height - (i.top + i.bottom); cachedMinimumSize = new Dimension(d.width + arrowButtonWidth + i... | public Dimension getMinimumSize(JComponent c) { if (isMinimumSizeDirty) { Insets i = getInsets(); Dimension d = getDisplaySize(); d.height += i.top + i.bottom; int arrowButtonWidth = d.height - (i.top + i.bottom); cachedMinimumSize = new Dimension(d.width + arrowButtonWidth + i... | 30,002 |
public Dimension getPreferredSize(JComponent c) { Dimension size = getMinimumSize(c); size.width += 4; return size; } | public Dimension getPreferredSize(JComponent c) { Dimension size = getMinimumSize(c); size.width += 4; return size; } | 30,003 |
protected Rectangle rectangleForCurrentValue() { Rectangle cbBounds = SwingUtilities.getLocalBounds(comboBox); Rectangle abBounds = arrowButton.getBounds(); Rectangle rectForCurrentValue = new Rectangle(cbBounds.x, cbBounds.y, cbBounds.width - abBounds.width, cbBounds.height); return rectForCurre... | protected Rectangle rectangleForCurrentValue() { Rectangle cbBounds = SwingUtilities.getLocalBounds(comboBox); Rectangle abBounds = arrowButton.getBounds(); Rectangle rectForCurrentValue = new Rectangle(cbBounds.x, cbBounds.y, cbBounds.width - abBounds.width, cbBounds.height); return rectForCurre... | 30,004 |
public static void uninstallBorder(JComponent c) { //Convenience method for un-installing a component's default border on the specified component if the border is currently an instance of UIResource. } | publicstaticvoiduninstallBorder(JComponentc){ //Conveniencemethodforun-installingacomponent'sdefaultborderonthespecifiedcomponentiftheborderiscurrentlyaninstanceofUIResource.} | 30,005 |
public synchronized void parse(InputSource input) throws IOException, SAXException { reset(); String systemId = input.getSystemId(); InputStream in = input.getByteStream(); boolean opened = false; if (in != null) parser = new XMLParser(in, systemId, validating, ... | public synchronized void parse(InputSource input) throws IOException, SAXException { reset(); String systemId = input.getSystemId(); InputStream in = input.getByteStream(); boolean opened = false; if (in != null) parser = new XMLParser(in, systemId, validating, ... | 30,006 |
public char[] toCharArray() { // XXX ORP 1.0.9 crashes on (char[]) clone() during bootstrap, so we // omit this optimization for now. // if (count == value.length) // return (char[]) value.clone(); char[] copy = new char[count]; VMSystem.arraycopy(value, offset, copy, 0, count); return copy; ... | public char[] toCharArray() {if (count == value.length) return (char[]) value.clone(); // XXX ORP 1.0.9 crashes on (char[]) clone() during bootstrap, so weif (count == value.length) return (char[]) value.clone(); // omit this optimization for now.if (count == value.length) return (char[]) value.clone(); // if (co... | 30,007 |
public String[] split (CharSequence input, int limit) { Matcher matcher = new Matcher(this, input); ArrayList list = new ArrayList(); int empties = 0; int count = 0; int start = 0; int end; boolean matched; while (matched = matcher.find() && (limit <= 0 || count < limit - 1)) { ++count; ... | public String[] split (CharSequence input) { Matcher matcher = new Matcher(this, input); ArrayList list = new ArrayList(); int empties = 0; int count = 0; int start = 0; int end; boolean matched; while (matched = matcher.find() && (limit <= 0 || count < limit - 1)) { ++count; end = match... | 30,008 |
public String[] split (CharSequence input, int limit) { Matcher matcher = new Matcher(this, input); ArrayList list = new ArrayList(); int empties = 0; int count = 0; int start = 0; int end; boolean matched; while (matched = matcher.find() && (limit <= 0 || count < limit - 1)) { ++count; ... | public String[] split (CharSequence input, int limit) { Matcher matcher = new Matcher(this, input); ArrayList list = new ArrayList(); int empties = 0; int count = 0; int start = 0; int end; boolean matched; while (matched = matcher.find() && (limit <= 0 || count < limit - 1)) { ++count; ... | 30,009 |
public DefaultSingleSelectionModel () { } | public DefaultSingleSelectionModel() { } | 30,010 |
public void addChangeListener (ChangeListener listener) { listenerList.add (ChangeListener.class, listener); } | public void addChangeListener(ChangeListener listener) { listenerList.add (ChangeListener.class, listener); } | 30,012 |
public void addChangeListener (ChangeListener listener) { listenerList.add (ChangeListener.class, listener); } | public void addChangeListener (ChangeListener listener) { listenerList.add(ChangeListener.class, listener); } | 30,013 |
public void clearSelection () { // Set Data index = -1; // Notify Listeners fireStateChanged (); } | public void clearSelection() { // Set Data index = -1; // Notify Listeners fireStateChanged (); } | 30,014 |
public void clearSelection () { // Set Data index = -1; // Notify Listeners fireStateChanged (); } | publicvoidclearSelection(){//SetDataindex=-1;//NotifyListenersfireStateChanged();} | 30,015 |
public void clearSelection () { // Set Data index = -1; // Notify Listeners fireStateChanged (); } | public void clearSelection () { // Set Data index = -1; // Notify Listeners fireStateChanged(); } | 30,016 |
protected void fireStateChanged () { // Variables ChangeListener listener; ChangeListener[] listeners; int index; // Get Listeners listeners = getChangeListeners (); // Process Listeners for (index = 0; index < listeners.length; index++) { listener = listeners [index]; list... | protected void fireStateChanged() { // Variables ChangeListener listener; ChangeListener[] listeners; int index; // Get Listeners listeners = getChangeListeners (); // Process Listeners for (index = 0; index < listeners.length; index++) { listener = listeners [index]; liste... | 30,017 |
protected void fireStateChanged () { // Variables ChangeListener listener; ChangeListener[] listeners; int index; // Get Listeners listeners = getChangeListeners (); // Process Listeners for (index = 0; index < listeners.length; index++) { listener = listeners [index]; list... | protected void fireStateChanged () { // Variables ChangeListener listener; ChangeListener[] listeners; int index; // Get Listeners listeners = getChangeListeners (); // Process Listeners for (index = 0; index < listeners.length; index++) { listener = listeners [index]; list... | 30,018 |
protected void fireStateChanged () { // Variables ChangeListener listener; ChangeListener[] listeners; int index; // Get Listeners listeners = getChangeListeners (); // Process Listeners for (index = 0; index < listeners.length; index++) { listener = listeners [index]; list... | protected void fireStateChanged () { // Variables ChangeListener listener; ChangeListener[] listeners; int index; // Get Listeners listeners = getChangeListeners (); // Process Listeners for (index = 0; index < listeners.length; index++) { listener = listeners [index]; list... | 30,019 |
public ChangeListener[] getChangeListeners () { return (ChangeListener[]) getListeners (ChangeListener.class); } | public ChangeListener[] getChangeListeners() { return (ChangeListener[]) getListeners (ChangeListener.class); } | 30,020 |
public ChangeListener[] getChangeListeners () { return (ChangeListener[]) getListeners (ChangeListener.class); } | public ChangeListener[] getChangeListeners () { return (ChangeListener[]) getListeners(ChangeListener.class); } | 30,021 |
public EventListener[] getListeners (Class listenerClass) { return listenerList.getListeners (listenerClass); } | public EventListener[] getListeners(Class listenerClass) { return listenerList.getListeners (listenerClass); } | 30,022 |
public EventListener[] getListeners (Class listenerClass) { return listenerList.getListeners (listenerClass); } | public EventListener[] getListeners (Class listenerClass) { return listenerList.getListeners(listenerClass); } | 30,023 |
public int getSelectedIndex () { return index; } | public int getSelectedIndex() { return index; } | 30,024 |
public boolean isSelected () { return (index != -1); } | public boolean isSelected() { return (index != -1); } | 30,025 |
public boolean isSelected () { return (index != -1); } | public boolean isSelected () { return index != -1; } | 30,026 |
public void removeChangeListener (ChangeListener listener) { listenerList.remove (ChangeListener.class, listener); } | public void removeChangeListener(ChangeListener listener) { listenerList.remove (ChangeListener.class, listener); } | 30,027 |
public void removeChangeListener (ChangeListener listener) { listenerList.remove (ChangeListener.class, listener); } | public void removeChangeListener (ChangeListener listener) { listenerList.remove(ChangeListener.class, listener); } | 30,028 |
public void setSelectedIndex (int index) { // Set Data this.index = index; // Notify Listeners fireStateChanged (); } | public void setSelectedIndex(int index) { // Set Data this.index = index; // Notify Listeners fireStateChanged (); } | 30,029 |
public void setSelectedIndex (int index) { // Set Data this.index = index; // Notify Listeners fireStateChanged (); } | publicvoidsetSelectedIndex(intindex){//SetDatathis.index=index;//NotifyListenersfireStateChanged();} | 30,030 |
public void setSelectedIndex (int index) { // Set Data this.index = index; // Notify Listeners fireStateChanged (); } | public void setSelectedIndex (int index) { // Set Data this.index = index; // Notify Listeners fireStateChanged(); } | 30,031 |
TextComponent(String text) { this.text = text; this.editable = true; } | TextComponent(String text) { this.text = text; this.editable = true; } | 30,032 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.