bugged
stringlengths
6
599k
fixed
stringlengths
10
599k
__index_level_0__
int64
0
1.13M
public void write(DataOutputStream os) throws IOException { os.writeLong(start); os.writeLong(end); os.writeInt(lines); for (int i = 0; i < lines; i++) { os.writeLong(lineCI[i]); os.writeInt(lineNum[i]); } }
public void write(DataOutputStream os) throws IOException { os.writeLong(start); os.writeLong(end); os.writeInt(lines); for (int i = 0; i < lines; i++) { os.writeLong(lineCI[i]); os.writeInt(lineNum[i]); } }
23,201
private void formatForOutput(String str, StringBuffer buffer, boolean key) { if (key) { buffer.setLength(0); buffer.ensureCapacity(str.length()); } else buffer.ensureCapacity(buffer.length() + str.length()); boolean head = true; int size = str.length(); for (int i = 0; i <...
private void formatForOutput(String str, StringBuilder buffer, boolean key) { if (key) { buffer.setLength(0); buffer.ensureCapacity(str.length()); } else buffer.ensureCapacity(buffer.length() + str.length()); boolean head = true; int size = str.length(); for (int i = 0; i ...
23,202
public void store(OutputStream out, String header) throws IOException { // The spec says that the file must be encoded using ISO-8859-1. PrintWriter writer = new PrintWriter(new OutputStreamWriter(out, "ISO-8859-1")); if (header != null) writer.println("#" + header); writer.println ("#" + Calen...
public void store(OutputStream out, String header) throws IOException { // The spec says that the file must be encoded using ISO-8859-1. PrintWriter writer = new PrintWriter(new OutputStreamWriter(out, "ISO-8859-1")); if (header != null) writer.println("#" + header); writer.println ("#" + Calen...
23,203
public DragSourceContext (DragSourceContextPeer peer, DragGestureEvent trigger, Cursor cursor, Image image, Point offset, Transferable trans, DragSourceListener dsl) throws NotImplementedException { if (peer == null || trig...
public DragSourceContext (DragSourceContextPeer peer, DragGestureEvent trigger, Cursor cursor, Image image, Point offset, Transferable trans, DragSourceListener dsl) { if (peer == null || trigger == null) throw new Nu...
23,204
public DragSourceContext (DragSourceContextPeer peer, DragGestureEvent trigger, Cursor cursor, Image image, Point offset, Transferable trans, DragSourceListener dsl) throws NotImplementedException { if (peer == null || trig...
public DragSourceContext (DragSourceContextPeer peer, DragGestureEvent trigger, Cursor cursor, Image image, Point offset, Transferable trans, DragSourceListener dsl) throws NotImplementedException { if (peer == null || trig...
23,205
public DragSourceContext (DragSourceContextPeer peer, DragGestureEvent trigger, Cursor cursor, Image image, Point offset, Transferable trans, DragSourceListener dsl) throws NotImplementedException { if (peer == null || trig...
public DragSourceContext (DragSourceContextPeer peer, DragGestureEvent trigger, Cursor cursor, Image image, Point offset, Transferable trans, DragSourceListener dsl) throws NotImplementedException { if (peer == null || trig...
23,206
public void dragDropEnd(DragSourceDropEvent e) throws NotImplementedException { }
public void dragDropEnd(DragSourceDropEvent e) { }
23,207
public void dragEnter(DragSourceDragEvent e) throws NotImplementedException { }
public void dragEnter(DragSourceDragEvent e) { }
23,209
public void dragExit(DragSourceEvent e) throws NotImplementedException { }
public void dragExit(DragSourceEvent e) { }
23,211
public void dragMouseMoved(DragSourceDragEvent e) throws NotImplementedException { }
public void dragMouseMoved(DragSourceDragEvent e) { }
23,213
public void dragOver(DragSourceDragEvent e) throws NotImplementedException { }
public void dragOver(DragSourceDragEvent e) { }
23,215
public void dropActionChanged(DragSourceDragEvent e) throws NotImplementedException { }
public void dropActionChanged(DragSourceDragEvent e) { }
23,217
public int getSourceActions() { return trigger.getSourceAsDragGestureRecognizer ().getSourceActions (); }
public int getSourceActions() { if (sourceActions == 0) sourceActions = trigger.getSourceAsDragGestureRecognizer().getSourceActions(); return sourceActions; }
23,219
public void setCursor (Cursor cursor) throws NotImplementedException { this.cursor = cursor; // FIXME: Check if we need to do more here }
public void setCursor (Cursor cursor) throws NotImplementedException { this.cursor = cursor; // FIXME: Check if we need to do more here }
23,220
public void transferablesFlavorsChanged() throws NotImplementedException { }
public void transferablesFlavorsChanged() { }
23,222
public PrivateKey decodePrivateKey(byte[] input) { if (input == null) throw new InvalidParameterException("Input bytes MUST NOT be null"); BigInteger version, n, e, d, p, q, dP, dQ, qInv; DERReader der = new DERReader(input); try { DERValue derPKI = der.read(); DerUtil.checkIsCons...
public PrivateKey decodePrivateKey(byte[] input) { if (input == null) throw new InvalidParameterException("Input bytes MUST NOT be null"); BigInteger version, n, e, d, p, q, dP, dQ, qInv; DERReader der = new DERReader(input); try { DERValue derPKI = der.read(); DerUtil.checkIsCons...
23,225
public void updateUI() { MenuItemUI mi = ((MenuItemUI) UIManager.getUI(this)); setUI(mi); invalidate(); }
public void updateUI() { MenuItemUI mi = ((MenuItemUI) UIManager.getUI(this)); setUI(mi); invalidate(); }
23,227
public void read(long fileOffset, byte[] dest, int off, int len){ refresh(); byte[] readdata; readdata = data.toString().getBytes(); for (long i=0 ; i < len ; i++ ) { int doff = new Long(off+i).intValue(); int foff = new Long(fileOffset+i).intValue(); dest[doff] = readdata[foff]; } }
public void read(long fileOffset, byte[] dest, int off, int len){ refresh(); int foff = (int)(fileOffset); System.arraycopy(data, foff,dest,off,len); /*byte[] readdata; readdata = data.toString().getBytes(); for (long i=0 ; i < len ; i++ ) { int doff = new Long(off+i).intValue(); int foff = new Long(fileOf...
23,228
public void read(long fileOffset, byte[] dest, int off, int len){ refresh(); byte[] readdata; readdata = data.toString().getBytes(); for (long i=0 ; i < len ; i++ ) { int doff = new Long(off+i).intValue(); int foff = new Long(fileOffset+i).intValue(); dest[doff] = readdata[foff]; } }
public void read(long fileOffset, byte[] dest, int off, int len){ refresh(); byte[] readdata; readdata = data.toString().getBytes(); for (long i=0 ; i < len ; i++ ) { int doff = new Long(off+i).intValue(); int foff = new Long(fileOffset+i).intValue(); dest[doff] = readdata[foff]; } }
23,229
public void read(long fileOffset, byte[] dest, int off, int len){ refresh(); byte[] readdata; readdata = data.toString().getBytes(); for (long i=0 ; i < len ; i++ ) { int doff = new Long(off+i).intValue(); int foff = new Long(fileOffset+i).intValue(); dest[doff] = readdata[foff]; } }
public void read(long fileOffset, byte[] dest, int off, int len){ refresh(); byte[] readdata; readdata = data.toString().getBytes(); for (long i=0 ; i < len ; i++ ) { int doff = new Long(off+i).intValue(); int foff = new Long(fileOffset+i).intValue(); dest[doff] = readdata[foff]; }*/ }*/
23,230
public Dimension preferredLayoutSize(Container parent) { // Sun's implementation simply throws a ClassCastException if // parent is no JScrollPane, so do we. JScrollPane sc = (JScrollPane) parent; Dimension viewportSize = viewport.getPreferredSize(); int width = viewportSize.width; ...
public Dimension preferredLayoutSize(Container parent) { // Sun's implementation simply throws a ClassCastException if // parent is no JScrollPane, so do we. JScrollPane sc = (JScrollPane) parent; Dimension viewportSize = viewport.getPreferredSize(); int width = viewportSize.width; ...
23,231
public Dimension preferredLayoutSize(Container parent) { // Sun's implementation simply throws a ClassCastException if // parent is no JScrollPane, so do we. JScrollPane sc = (JScrollPane) parent; Dimension viewportSize = viewport.getPreferredSize(); int width = viewportSize.width; ...
public Dimension preferredLayoutSize(Container parent) { // Sun's implementation simply throws a ClassCastException if // parent is no JScrollPane, so do we. JScrollPane sc = (JScrollPane) parent; Dimension viewportSize = viewport.getPreferredSize(); int width = viewportSize.width; ...
23,232
public final byte[] doFinal(byte[] input) throws IllegalStateException, IllegalBlockSizeException, BadPaddingException { return doFinal(input, 0, input.length); }
public final byte[] doFinal() throws IllegalStateException, IllegalBlockSizeException, BadPaddingException { return doFinal(input, 0, input.length); }
23,233
public final byte[] doFinal(byte[] input) throws IllegalStateException, IllegalBlockSizeException, BadPaddingException { return doFinal(input, 0, input.length); }
public final byte[] doFinal(byte[] input) throws IllegalStateException, IllegalBlockSizeException, BadPaddingException { return doFinal(new byte[0], 0, 0); }
23,234
protected void init (Hashtable environment) throws NamingException { // FIXME: Is this enough? final String[] properties = { Context.DNS_URL, Context.INITIAL_CONTEXT_FACTORY, Context.OBJECT_FACTORIES, Context.PROVIDER_URL, Context.STATE_FACTORIES, Context.URL_PKG_PREFIXES, }...
protected void init (Hashtable environment) throws NamingException { // FIXME: Is this enough? final String[] properties = { Context.DNS_URL, Context.INITIAL_CONTEXT_FACTORY, Context.OBJECT_FACTORIES, Context.PROVIDER_URL, Context.STATE_FACTORIES, Context.URL_PKG_PREFIXES, }...
23,235
protected void init (Hashtable environment) throws NamingException { // FIXME: Is this enough? final String[] properties = { Context.DNS_URL, Context.INITIAL_CONTEXT_FACTORY, Context.OBJECT_FACTORIES, Context.PROVIDER_URL, Context.STATE_FACTORIES, Context.URL_PKG_PREFIXES, }...
protected void init (Hashtable environment) throws NamingException { // FIXME: Is this enough? final String[] properties = { Context.DNS_URL, Context.INITIAL_CONTEXT_FACTORY, Context.OBJECT_FACTORIES, Context.PROVIDER_URL, Context.STATE_FACTORIES, Context.URL_PKG_PREFIXES, }...
23,236
protected void init (Hashtable environment) throws NamingException { // FIXME: Is this enough? final String[] properties = { Context.DNS_URL, Context.INITIAL_CONTEXT_FACTORY, Context.OBJECT_FACTORIES, Context.PROVIDER_URL, Context.STATE_FACTORIES, Context.URL_PKG_PREFIXES, }...
protected void init (Hashtable environment) throws NamingException { // FIXME: Is this enough? final String[] properties = { Context.DNS_URL, Context.INITIAL_CONTEXT_FACTORY, Context.OBJECT_FACTORIES, Context.PROVIDER_URL, Context.STATE_FACTORIES, Context.URL_PKG_PREFIXES, }...
23,237
protected void init (Hashtable environment) throws NamingException { // FIXME: Is this enough? final String[] properties = { Context.DNS_URL, Context.INITIAL_CONTEXT_FACTORY, Context.OBJECT_FACTORIES, Context.PROVIDER_URL, Context.STATE_FACTORIES, Context.URL_PKG_PREFIXES, }...
protected void init (Hashtable environment) throws NamingException { // FIXME: Is this enough? final String[] properties = { Context.DNS_URL, Context.INITIAL_CONTEXT_FACTORY, Context.OBJECT_FACTORIES, Context.PROVIDER_URL, Context.STATE_FACTORIES, Context.URL_PKG_PREFIXES, }...
23,238
protected void init (Hashtable environment) throws NamingException { // FIXME: Is this enough? final String[] properties = { Context.DNS_URL, Context.INITIAL_CONTEXT_FACTORY, Context.OBJECT_FACTORIES, Context.PROVIDER_URL, Context.STATE_FACTORIES, Context.URL_PKG_PREFIXES, }...
protected void init (Hashtable environment) throws NamingException { // FIXME: Is this enough? final String[] properties = { Context.DNS_URL, Context.INITIAL_CONTEXT_FACTORY, Context.OBJECT_FACTORIES, Context.PROVIDER_URL, Context.STATE_FACTORIES, Context.URL_PKG_PREFIXES, }...
23,239
protected void init (Hashtable environment) throws NamingException { // FIXME: Is this enough? final String[] properties = { Context.DNS_URL, Context.INITIAL_CONTEXT_FACTORY, Context.OBJECT_FACTORIES, Context.PROVIDER_URL, Context.STATE_FACTORIES, Context.URL_PKG_PREFIXES, }...
protected void init (Hashtable environment) throws NamingException { // FIXME: Is this enough? final String[] properties = { Context.DNS_URL, Context.INITIAL_CONTEXT_FACTORY, Context.OBJECT_FACTORIES, Context.PROVIDER_URL, Context.STATE_FACTORIES, Context.URL_PKG_PREFIXES, }...
23,240
private static void merge (Hashtable h1, Hashtable h2) { Enumeration e2 = h2.keys(); while (e2.hasMoreElements()) { String key2 = (String) e2.nextElement(); Object value1 = h1.get(key2); if (value1 == null) h1.put(key2, h2.get(key2)); else if (key2.compareTo(colon_list[0]) == 0 || key2.compareTo(c...
static void merge (Hashtable primary, Hashtable additional) { Enumeration e2 = h2.keys(); while (e2.hasMoreElements()) { String key2 = (String) e2.nextElement(); Object value1 = h1.get(key2); if (value1 == null) h1.put(key2, h2.get(key2)); else if (key2.compareTo(colon_list[0]) == 0 || key2.compar...
23,241
private static void merge (Hashtable h1, Hashtable h2) { Enumeration e2 = h2.keys(); while (e2.hasMoreElements()) { String key2 = (String) e2.nextElement(); Object value1 = h1.get(key2); if (value1 == null) h1.put(key2, h2.get(key2)); else if (key2.compareTo(colon_list[0]) == 0 || key2.compareTo(c...
private static void merge (Hashtable h1, Hashtable h2) { Enumeration en = additional.keys(); while (e2.hasMoreElements()) { String key2 = (String) e2.nextElement(); Object value1 = h1.get(key2); if (value1 == null) h1.put(key2, h2.get(key2)); else if (key2.compareTo(colon_list[0]) == 0 || key2.com...
23,242
private static void merge (Hashtable h1, Hashtable h2) { Enumeration e2 = h2.keys(); while (e2.hasMoreElements()) { String key2 = (String) e2.nextElement(); Object value1 = h1.get(key2); if (value1 == null) h1.put(key2, h2.get(key2)); else if (key2.compareTo(colon_list[0]) == 0 || key2.compareTo(c...
private static void merge (Hashtable h1, Hashtable h2) { Enumeration e2 = h2.keys(); while (en.hasMoreElements()) { String key2 = (String) e2.nextElement(); Object value1 = h1.get(key2); if (value1 == null) h1.put(key2, h2.get(key2)); else if (key2.compareTo(colon_list[0]) == 0 || key2.compareTo(c...
23,243
private static void merge (Hashtable h1, Hashtable h2) { Enumeration e2 = h2.keys(); while (e2.hasMoreElements()) { String key2 = (String) e2.nextElement(); Object value1 = h1.get(key2); if (value1 == null) h1.put(key2, h2.get(key2)); else if (key2.compareTo(colon_list[0]) == 0 || key2.compareTo(c...
private static void merge (Hashtable h1, Hashtable h2) { Enumeration e2 = h2.keys(); while (e2.hasMoreElements()) { String key2 = (String) e2.nextElement(); Object value1 = h1.get(key2); if (value1 == null) h1.put(key2, h2.get(key2)); else if (key2.compareTo(colon_list[0]) == 0 || key2.compareTo(c...
23,244
private static void merge (Hashtable h1, Hashtable h2) { Enumeration e2 = h2.keys(); while (e2.hasMoreElements()) { String key2 = (String) e2.nextElement(); Object value1 = h1.get(key2); if (value1 == null) h1.put(key2, h2.get(key2)); else if (key2.compareTo(colon_list[0]) == 0 || key2.compareTo(c...
private static void merge (Hashtable h1, Hashtable h2) { Enumeration e2 = h2.keys(); while (e2.hasMoreElements()) { String key2 = (String) e2.nextElement(); Object value1 = h1.get(key2); if (value1 == null) h1.put(key2, h2.get(key2)); else if (key2.compareTo(colon_list[0]) == 0 || key2.compareTo(c...
23,245
private static void merge (Hashtable h1, Hashtable h2) { Enumeration e2 = h2.keys(); while (e2.hasMoreElements()) { String key2 = (String) e2.nextElement(); Object value1 = h1.get(key2); if (value1 == null) h1.put(key2, h2.get(key2)); else if (key2.compareTo(colon_list[0]) == 0 || key2.compareTo(c...
private static void merge (Hashtable h1, Hashtable h2) { Enumeration e2 = h2.keys(); while (e2.hasMoreElements()) { String key2 = (String) e2.nextElement(); Object value1 = h1.get(key2); if (value1 == null) h1.put(key2, h2.get(key2)); else if (key2.compareTo(colon_list[0]) == 0 || key2.compareTo(c...
23,246
public TaggedComponentHolder(TaggedComponent initialValue) { value = initialValue; }
public TaggedComponentHolder() { value = initialValue; }
23,247
public TaggedComponentHolder(TaggedComponent initialValue) { value = initialValue; }
public TaggedComponentHolder(TaggedComponent initialValue) { }
23,248
Book(){ ;}
Book(){ ;}
23,249
append(Printable printable, PageFormat page_format){ append(printable, page_format, 1);}
append(Printable printable, PageFormat page_format){ append(printable, page_format, 1);}
23,250
getNumberOfPages(){ return(printables.size());}
getNumberOfPages(){ return(printables.size());}
23,251
getPageFormat(int page_number){ return((PageFormat)page_formats.elementAt(page_number));}
getPageFormat(int page_number){ return((PageFormat)page_formats.elementAt(page_number));}
23,252
getPrintable(int page_number){ return((Printable)printables.elementAt(page_number));}
getPrintable(int page_number){ return((Printable)printables.elementAt(page_number));}
23,253
setPage(int page_num, Printable printable, PageFormat page_format){ printables.setElementAt(printable, page_num); page_formats.setElementAt(page_format, page_num);}
setPage(int page_num, Printable printable, PageFormat page_format){ printables.setElementAt(printable, page_num); page_formats.setElementAt(page_format, page_num);}
23,254
public boolean replaceEdit(UndoableEdit anEdit) { return false; } // replaceEdit()
public boolean replaceEdit(UndoableEdit anEdit) { return false; } // replaceEdit()
23,255
public boolean canRedo();
boolean canRedo();
23,256
public boolean canUndo();
boolean canUndo();
23,257
public void layoutContainer(Container parent) { // The way to interpret this function is basically to ignore the names // of methods it calls, and focus on the variable names here. getViewRect // doesn't, for example, return the view; it returns the port bounds in // view space. Likwise setViewPosition ...
public void layoutContainer(Container parent) { // The way to interpret this function is basically to ignore the names // of methods it calls, and focus on the variable names here. getViewRect // doesn't, for example, return the view; it returns the port bounds in // view space. Likwise setViewPosition ...
23,258
public void layoutContainer(Container parent) { // The way to interpret this function is basically to ignore the names // of methods it calls, and focus on the variable names here. getViewRect // doesn't, for example, return the view; it returns the port bounds in // view space. Likwise setViewPosition ...
public void layoutContainer(Container parent) { // The way to interpret this function is basically to ignore the names // of methods it calls, and focus on the variable names here. getViewRect // doesn't, for example, return the view; it returns the port bounds in // view space. Likwise setViewPosition ...
23,259
public ColorModel(int bits) { this(bits, nArray(bits / 4, 4), ColorSpace.getInstance(ColorSpace.CS_sRGB), true, false, TRANSLUCENT, Buffers.smallestAppropriateTransferType(bits)); }
public ColorModel(int bits) { this(bits, nArray(bits / 4, 4), ColorSpace.getInstance(ColorSpace.CS_sRGB), true, false, TRANSLUCENT, Buffers.smallestAppropriateTransferType(bits)); }
23,261
final int getPixelFromArray(Object inData) { DataBuffer data = Buffers.createBufferFromData(transferType, inData, 1); //Object da = Buffers.getData(data); return data.getElem(0); }
final int getPixelFromArray(Object inData) { DataBuffer data = Buffers.createBufferFromData(transferType, inData, 1); Object da = Buffers.getData(data); //Object da = Buffers.getData(data); return data.getElem(0); }
23,262
protected void setPropertiesFromAttributes() { Element el = getElement(); AttributeSet atts = el.getAttributes(); background = StyleConstants.getBackground(atts); foreground = StyleConstants.getForeground(atts); strikeThrough = StyleConstants.isStrikeThrough(atts); subscript = StyleConstants.isSubs...
protected void setPropertiesFromAttributes() { Element el = getElement(); AttributeSet atts = el.getAttributes(); background = (Color) atts.getAttribute(StyleConstants.Background); foreground = StyleConstants.getForeground(atts); strikeThrough = StyleConstants.isStrikeThrough(atts); subscript = Sty...
23,263
Decoder (Charset cs) { super (cs, 1.0f, 1.0f); }
Decoder (Charset cs) { super (cs, 1f, 1f); }
23,264
protected CoderResult decodeLoop (ByteBuffer in, CharBuffer out) { // TODO: Optimize this in the case in.hasArray() / out.hasArray() int inPos = in.position(); try { while (in.hasRemaining ()) { char c; byte b1 = in.get (); int hig...
protected CoderResult decodeLoop (ByteBuffer in, CharBuffer out) { // TODO: Optimize this in the case in.hasArray() / out.hasArray() int inPos = in.position(); try { while (in.hasRemaining ()) { char c; byte b1 = in.get (); int hig...
23,265
protected CoderResult encodeLoop (CharBuffer in, ByteBuffer out) { int inPos = in.position(); try { // TODO: Optimize this in the case in.hasArray() / out.hasArray() while (in.hasRemaining ()) { int remaining = out.remaining (); char c = in.get ()...
protected CoderResult encodeLoop (CharBuffer in, ByteBuffer out) { int inPos = in.position(); try { // TODO: Optimize this in the case in.hasArray() / out.hasArray() while (in.hasRemaining ()) { int remaining = out.remaining (); char c = in.get ()...
23,267
String absolutize(String baseURI, String systemId, boolean nice) throws MalformedURLException, SAXException { // FIXME normalize system IDs -- when? // - Convert to UTF-8 // - Map reserved and non-ASCII characters to %HH try { if (baseURI == null && XmlParser.uriWarnings) { warn ("No ba...
String absolutize(String baseURI, String systemId, boolean nice) throws MalformedURLException, SAXException { // FIXME normalize system IDs -- when? // - Convert to UTF-8 // - Map reserved and non-ASCII characters to %HH try { if (baseURI == null) { if (XmlParser.uriWarnings) { warn ("N...
23,268
public Operand simplify() { return assignQuad.propagate(this); }
public Operand simplify() { Operand op = assignQuad.propagate(this); return op; }
23,270
public static TypeCode type() { return new primitiveArrayTypeCode(TCKind.tk_any); }
public static TypeCode type() { return new ArrayTypeCode(TCKind.tk_any); }
23,271
public static final int drawTabbedText(Segment s, int x, int y, Graphics g, TabExpander e, int startOffset) { // This buffers the chars to be drawn. char[] buffer = s.array; // The font metrics of the current selected font. FontMetrics metrics = g.getFontMetrics();...
public static final int drawTabbedText(Segment s, int x, int y, Graphics g, TabExpander e, int startOffset) { // This buffers the chars to be drawn. char[] buffer = s.array; // The font metrics of the current selected font. FontMetrics metrics = g.getFontMetrics();...
23,272
public static final int drawTabbedText(Segment s, int x, int y, Graphics g, TabExpander e, int startOffset) { // This buffers the chars to be drawn. char[] buffer = s.array; // The font metrics of the current selected font. FontMetrics metrics = g.getFontMetrics();...
public static final int drawTabbedText(Segment s, int x, int y, Graphics g, TabExpander e, int startOffset) { // This buffers the chars to be drawn. char[] buffer = s.array; // The font metrics of the current selected font. FontMetrics metrics = g.getFontMetrics();...
23,273
public static final int drawTabbedText(Segment s, int x, int y, Graphics g, TabExpander e, int startOffset) { // This buffers the chars to be drawn. char[] buffer = s.array; // The font metrics of the current selected font. FontMetrics metrics = g.getFontMetrics();...
public static final int drawTabbedText(Segment s, int x, int y, Graphics g, TabExpander e, int startOffset) { // This buffers the chars to be drawn. char[] buffer = s.array; // The font metrics of the current selected font. FontMetrics metrics = g.getFontMetrics();...
23,274
public static final int drawTabbedText(Segment s, int x, int y, Graphics g, TabExpander e, int startOffset) { // This buffers the chars to be drawn. char[] buffer = s.array; // The font metrics of the current selected font. FontMetrics metrics = g.getFontMetrics();...
public static final int drawTabbedText(Segment s, int x, int y, Graphics g, TabExpander e, int startOffset) { // This buffers the chars to be drawn. char[] buffer = s.array; // The font metrics of the current selected font. FontMetrics metrics = g.getFontMetrics();...
23,275
public static final int drawTabbedText(Segment s, int x, int y, Graphics g, TabExpander e, int startOffset) { // This buffers the chars to be drawn. char[] buffer = s.array; // The font metrics of the current selected font. FontMetrics metrics = g.getFontMetrics();...
public static final int drawTabbedText(Segment s, int x, int y, Graphics g, TabExpander e, int startOffset) { // This buffers the chars to be drawn. char[] buffer = s.array; // The font metrics of the current selected font. FontMetrics metrics = g.getFontMetrics();...
23,276
public static final int drawTabbedText(Segment s, int x, int y, Graphics g, TabExpander e, int startOffset) { // This buffers the chars to be drawn. char[] buffer = s.array; // The font metrics of the current selected font. FontMetrics metrics = g.getFontMetrics();...
public static final int drawTabbedText(Segment s, int x, int y, Graphics g, TabExpander e, int startOffset) { // This buffers the chars to be drawn. char[] buffer = s.array; // The font metrics of the current selected font. FontMetrics metrics = g.getFontMetrics();...
23,277
public static final int drawTabbedText(Segment s, int x, int y, Graphics g, TabExpander e, int startOffset) { // This buffers the chars to be drawn. char[] buffer = s.array; // The font metrics of the current selected font. FontMetrics metrics = g.getFontMetrics();...
public static final int drawTabbedText(Segment s, int x, int y, Graphics g, TabExpander e, int startOffset) { // This buffers the chars to be drawn. char[] buffer = s.array; // The font metrics of the current selected font. FontMetrics metrics = g.getFontMetrics();...
23,278
public static final int drawTabbedText(Segment s, int x, int y, Graphics g, TabExpander e, int startOffset) { // This buffers the chars to be drawn. char[] buffer = s.array; // The font metrics of the current selected font. FontMetrics metrics = g.getFontMetrics();...
public static final int drawTabbedText(Segment s, int x, int y, Graphics g, TabExpander e, int startOffset) { // This buffers the chars to be drawn. char[] buffer = s.array; // The font metrics of the current selected font. FontMetrics metrics = g.getFontMetrics();...
23,279
public static final int drawTabbedText(Segment s, int x, int y, Graphics g, TabExpander e, int startOffset) { // This buffers the chars to be drawn. char[] buffer = s.array; // The font metrics of the current selected font. FontMetrics metrics = g.getFontMetrics();...
public static final int drawTabbedText(Segment s, int x, int y, Graphics g, TabExpander e, int startOffset) { // This buffers the chars to be drawn. char[] buffer = s.array; // The font metrics of the current selected font. FontMetrics metrics = g.getFontMetrics();...
23,280
public static final int getBreakLocation(Segment s, FontMetrics metrics, int x0, int x, TabExpander e, int startOffset) { int mark = Utilities.getTabbedTextOffset(s, metrics, x0, x, e, startOffset, false); BreakIterator breaker...
public static final int getBreakLocation(Segment s, FontMetrics metrics, int x0, int x, TabExpander e, int startOffset) { int mark = Utilities.getTabbedTextOffset(s, metrics, x0, x, e, startOffset, false); BreakIterator breaker...
23,281
public static final int getBreakLocation(Segment s, FontMetrics metrics, int x0, int x, TabExpander e, int startOffset) { int mark = Utilities.getTabbedTextOffset(s, metrics, x0, x, e, startOffset, false); BreakIterator breaker...
public static final int getBreakLocation(Segment s, FontMetrics metrics, int x0, int x, TabExpander e, int startOffset) { int mark = Utilities.getTabbedTextOffset(s, metrics, x0, x, e, startOffset, false); BreakIterator breaker...
23,282
public static final int getNextWord(JTextComponent c, int offs) throws BadLocationException { if (offs < 0 || offs > (c.getText().length() - 1)) throw new BadLocationException("invalid offset specified", offs); String text = c.getText(); BreakIterator wb = BreakIterator.getWordInstance(); wb.se...
public static final int getNextWord(JTextComponent c, int offs) throws BadLocationException { if (offs < 0 || offs > (c.getText().length() - 1)) throw new BadLocationException("invalid offset specified", offs); String text = c.getText(); BreakIterator wb = BreakIterator.getWordInstance(); wb.se...
23,283
public static final int getPreviousWord(JTextComponent c, int offs) throws BadLocationException { String text = c.getText(); if (offs <= 0 || offs > text.length()) throw new BadLocationException("invalid offset specified", offs); BreakIterator wb = BreakIterator.getWordInstance(); wb.se...
public static final int getPreviousWord(JTextComponent c, int offs) throws BadLocationException { String text = c.getText(); if (offs <= 0 || offs > text.length()) throw new BadLocationException("invalid offset specified", offs); BreakIterator wb = BreakIterator.getWordInstance(); wb.se...
23,284
public static final int getTabbedTextOffset(Segment s, FontMetrics fm, int x0, int x, TabExpander te, int p0, boolean round) { // At the end of the for loop, this holds the requested model location int pos; int current...
public static final int getTabbedTextOffset(Segment s, FontMetrics fm, int x0, int x, TabExpander te, int p0, boolean round) { // At the end of the for loop, this holds the requested model location int found = s.count; ...
23,285
public static final int getTabbedTextOffset(Segment s, FontMetrics fm, int x0, int x, TabExpander te, int p0, boolean round) { // At the end of the for loop, this holds the requested model location int pos; int current...
public static final int getTabbedTextOffset(Segment s, FontMetrics fm, int x0, int x, TabExpander te, int p0, boolean round) { // At the end of the for loop, this holds the requested model location int pos; int current...
23,286
public static final int getTabbedTextOffset(Segment s, FontMetrics fm, int x0, int x, TabExpander te, int p0, boolean round) { // At the end of the for loop, this holds the requested model location int pos; int current...
public static final int getTabbedTextOffset(Segment s, FontMetrics fm, int x0, int x, TabExpander te, int p0, boolean round) { // At the end of the for loop, this holds the requested model location int pos; int current...
23,287
public static final int getTabbedTextOffset(Segment s, FontMetrics fm, int x0, int x, TabExpander te, int p0, boolean round) { // At the end of the for loop, this holds the requested model location int pos; int current...
public static final int getTabbedTextOffset(Segment s, FontMetrics fm, int x0, int x, TabExpander te, int p0, boolean round) { // At the end of the for loop, this holds the requested model location int pos; int current...
23,288
public static final int getTabbedTextOffset(Segment s, FontMetrics fm, int x0, int x, TabExpander te, int p0, boolean round) { // At the end of the for loop, this holds the requested model location int pos; int current...
public static final int getTabbedTextOffset(Segment s, FontMetrics fm, int x0, int x, TabExpander te, int p0, boolean round) { // At the end of the for loop, this holds the requested model location int pos; int current...
23,289
public static final int getTabbedTextOffset(Segment s, FontMetrics fm, int x0, int x, TabExpander te, int p0, boolean round) { // At the end of the for loop, this holds the requested model location int pos; int current...
public static final int getTabbedTextOffset(Segment s, FontMetrics fm, int x0, int x, TabExpander te, int p0, boolean round) { // At the end of the for loop, this holds the requested model location int pos; int current...
23,290
public static final int getTabbedTextOffset(Segment s, FontMetrics fm, int x0, int x, TabExpander te, int p0, boolean round) { // At the end of the for loop, this holds the requested model location int pos; int current...
public static final int getTabbedTextOffset(Segment s, FontMetrics fm, int x0, int x, TabExpander te, int p0, boolean round) { // At the end of the for loop, this holds the requested model location int pos; int current...
23,291
public static final int getTabbedTextOffset(Segment s, FontMetrics fm, int x0, int x, TabExpander te, int p0, boolean round) { // At the end of the for loop, this holds the requested model location int pos; int current...
public static final int getTabbedTextOffset(Segment s, FontMetrics fm, int x0, int x, TabExpander te, int p0, boolean round) { // At the end of the for loop, this holds the requested model location int pos; int current...
23,292
public static final int getTabbedTextOffset(Segment s, FontMetrics fm, int x0, int x, TabExpander te, int p0, boolean round) { // At the end of the for loop, this holds the requested model location int pos; int current...
public static final int getTabbedTextOffset(Segment s, FontMetrics fm, int x0, int x, TabExpander te, int p0, boolean round) { // At the end of the for loop, this holds the requested model location int pos; int current...
23,293
public static final int getTabbedTextOffset(Segment s, FontMetrics fm, int x0, int x, TabExpander te, int p0, boolean round) { // At the end of the for loop, this holds the requested model location int pos; int current...
public static final int getTabbedTextOffset(Segment s, FontMetrics fm, int x0, int x, TabExpander te, int p0, boolean round) { // At the end of the for loop, this holds the requested model location int pos; int current...
23,294
public static final int getTabbedTextOffset(Segment s, FontMetrics fm, int x0, int x, TabExpander te, int p0, boolean round) { // At the end of the for loop, this holds the requested model location int pos; int current...
public static final int getTabbedTextOffset(Segment s, FontMetrics fm, int x0, int x, TabExpander te, int p0, boolean round) { // At the end of the for loop, this holds the requested model location int pos; int current...
23,295
public static final int getTabbedTextOffset(Segment s, FontMetrics fm, int x0, int x, TabExpander te, int p0, boolean round) { // At the end of the for loop, this holds the requested model location int pos; int current...
public static final int getTabbedTextOffset(Segment s, FontMetrics fm, int x0, int x, TabExpander te, int p0, boolean round) { // At the end of the for loop, this holds the requested model location int pos; int current...
23,296
public static final int getTabbedTextWidth(Segment s, FontMetrics metrics, int x, TabExpander e, int startOffset) { // This buffers the chars to be drawn. char[] buffer = s.array; // The current x coordinate. int pixe...
public static final int getTabbedTextWidth(Segment s, FontMetrics metrics, int x, TabExpander e, int startOffset) { // This buffers the chars to be drawn. char[] buffer = s.array; // The current x coordinate. int pixe...
23,297
public static final int getTabbedTextWidth(Segment s, FontMetrics metrics, int x, TabExpander e, int startOffset) { // This buffers the chars to be drawn. char[] buffer = s.array; // The current x coordinate. int pixe...
public static final int getTabbedTextWidth(Segment s, FontMetrics metrics, int x, TabExpander e, int startOffset) { // This buffers the chars to be drawn. char[] buffer = s.array; // The current x coordinate. int pixe...
23,298
public static final int getTabbedTextWidth(Segment s, FontMetrics metrics, int x, TabExpander e, int startOffset) { // This buffers the chars to be drawn. char[] buffer = s.array; // The current x coordinate. int pixe...
public static final int getTabbedTextWidth(Segment s, FontMetrics metrics, int x, TabExpander e, int startOffset) { // This buffers the chars to be drawn. char[] buffer = s.array; // The current x coordinate. int pixe...
23,299
public static final int getTabbedTextWidth(Segment s, FontMetrics metrics, int x, TabExpander e, int startOffset) { // This buffers the chars to be drawn. char[] buffer = s.array; // The current x coordinate. int pixe...
public static final int getTabbedTextWidth(Segment s, FontMetrics metrics, int x, TabExpander e, int startOffset) { // This buffers the chars to be drawn. char[] buffer = s.array; // The current x coordinate. int pixe...
23,300
public static final int getTabbedTextWidth(Segment s, FontMetrics metrics, int x, TabExpander e, int startOffset) { // This buffers the chars to be drawn. char[] buffer = s.array; // The current x coordinate. int pixe...
public static final int getTabbedTextWidth(Segment s, FontMetrics metrics, int x, TabExpander e, int startOffset) { // This buffers the chars to be drawn. char[] buffer = s.array; // The current x coordinate. int pixe...
23,301
public boolean implies(Permission perm) { final SocketPermission that; //System.out.println("implies"); // First make sure we are the right object type if (perm instanceof SocketPermission) { that = (SocketPermission) perm; } else { return false; } ...
public boolean implies(Permission perm) { final SocketPermission that; //System.out.println("implies"); // First make sure we are the right object type if (perm instanceof SocketPermission) { that = (SocketPermission) perm; } else { return false; } ...
23,302
protected void paintCell(Graphics g, int row, Rectangle bounds, ListCellRenderer rend, ListModel data, ListSelectionModel sel, int lead) { boolean is_sel = list.isSelectedIndex(row); boolean has_focus = false; Component comp = rend.getListCellRendererComponent(list, ...
protected void paintCell(Graphics g, int row, Rectangle bounds, ListCellRenderer rend, ListModel data, ListSelectionModel sel, int lead) { boolean is_sel = list.isSelectedIndex(row); boolean has_focus = false; Component comp = rend.getListCellRendererComponent(list, ...
23,304
protected void paintCell(Graphics g, int row, Rectangle bounds, ListCellRenderer rend, ListModel data, ListSelectionModel sel, int lead) { boolean is_sel = list.isSelectedIndex(row); boolean has_focus = false; Component comp = rend.getListCellRendererComponent(list, ...
protected void paintCell(Graphics g, int row, Rectangle bounds, ListCellRenderer rend, ListModel data, ListSelectionModel sel, int lead) { boolean is_sel = list.isSelectedIndex(row); boolean has_focus = false; Component comp = rend.getListCellRendererComponent(list, ...
23,305
void doApply(Stylesheet stylesheet, QName mode, Node context, int pos, int len, Node parent, Node nextSibling) throws TransformerException { Object ret = select.evaluate(context, pos, len); if (ret != null && ret instanceof Collection) { if (withParams != null) ...
void doApply(Stylesheet stylesheet, QName mode, Node context, int pos, int len, Node parent, Node nextSibling) throws TransformerException { Object ret = select.evaluate(context, pos, len); if (ret != null && ret instanceof Collection) { if (withParams != null) ...
23,306
void doApply(Stylesheet stylesheet, QName mode, Node context, int pos, int len, Node parent, Node nextSibling) throws TransformerException { Object ret = select.evaluate(context, pos, len); if (ret != null && ret instanceof Collection) { if (withParams != null) ...
void doApply(Stylesheet stylesheet, QName mode, Node context, int pos, int len, Node parent, Node nextSibling) throws TransformerException { Object ret = select.evaluate(context, pos, len); if (ret != null && ret instanceof Collection) { if (withParams != null) ...
23,307
void doApply(Stylesheet stylesheet, QName mode, Node context, int pos, int len, Node parent, Node nextSibling) throws TransformerException { Object ret = select.evaluate(context, pos, len); if (ret != null && ret instanceof Collection) { if (withParams != null) ...
void doApply(Stylesheet stylesheet, QName mode, Node context, int pos, int len, Node parent, Node nextSibling) throws TransformerException { Object ret = select.evaluate(context, pos, len); if (ret != null && ret instanceof Collection) { if (withParams != null) ...
23,308
public static ComponentUI createUI(JComponent component) { if (instance == null) instance = new MetalTabbedPaneUI(); return instance; }
public static ComponentUI createUI(JComponent component) { if (instances == null) instances = new HashMap(); Object o = instances.get(component); MetalTabbedPaneUI instance; if (o == null) { instance = new MetalTabbedPaneUI(); return instance; }
23,309
public InitializationBlock32Bit( MemoryResource mem, int offset, short mode, EthernetAddress physicalAddr, long logicalAddr, RxDescriptorRing rxRing, TxDescriptorRing txRing) { this.mem = mem; this.offset = offset; // Populate the initial data structure mem.setShort(offset + 0x00, (short) mode); mem.setByt...
public InitializationBlock32Bit( MemoryResource mem, int offset, short mode, EthernetAddress physicalAddr, long logicalAddr, RxDescriptorRing rxRing, TxDescriptorRing txRing) { this.mem = mem; this.offset = offset; // Populate the initial data structure mem.setShort(offset + 0x00, mode); mem.setByte(offset...
23,311
public InitializationBlock32Bit( MemoryResource mem, int offset, short mode, EthernetAddress physicalAddr, long logicalAddr, RxDescriptorRing rxRing, TxDescriptorRing txRing) { this.mem = mem; this.offset = offset; // Populate the initial data structure mem.setShort(offset + 0x00, (short) mode); mem.setByt...
public InitializationBlock32Bit( MemoryResource mem, int offset, short mode, EthernetAddress physicalAddr, long logicalAddr, RxDescriptorRing rxRing, TxDescriptorRing txRing) { this.mem = mem; this.offset = offset; // Populate the initial data structure mem.setShort(offset + 0x00, (short) mode); mem.setByt...
23,312
public boolean dispatchEvent (AWTEvent e) { if (e instanceof WindowEvent) { Window target = (Window) e.getSource (); if (e.id == WindowEvent.WINDOW_ACTIVATED) setGlobalActiveWindow (target); else if (e.id == WindowEvent.WINDOW_GAINED_FOCUS) setGlobalFocusedWindow (targe...
public boolean dispatchEvent (AWTEvent e) { if (e instanceof WindowEvent) { Window target = (Window) e.getSource (); if (e.id == WindowEvent.WINDOW_ACTIVATED) setGlobalActiveWindow (target); else if (e.id == WindowEvent.WINDOW_GAINED_FOCUS) setGlobalFocusedWindow (targe...
23,313
public boolean dispatchKeyEvent (KeyEvent e) { Component focusOwner = getGlobalPermanentFocusOwner (); if (focusOwner != null) focusOwner.dispatchEvent (e); // Loop through all registered KeyEventPostProcessors, giving // each a chance to process this event. Iterator i = getKeyEventPostProcessors()...
public boolean dispatchKeyEvent (KeyEvent e) { Component focusOwner = getGlobalPermanentFocusOwner (); if (focusOwner != null) redispatchEvent(focusOwner, e); // Loop through all registered KeyEventPostProcessors, giving // each a chance to process this event. Iterator i = getKeyEventPostProcessors...
23,314
public boolean postProcessKeyEvent (KeyEvent e) { // Check if this event represents a menu shortcut. // MenuShortcuts are activated by Ctrl- KeyEvents, only on KEY_PRESSED. int modifiers = e.getModifiersEx (); if (e.getID() == KeyEvent.KEY_PRESSED && (modifiers & KeyEvent.CTRL_DOWN_MASK) != 0) ...
public boolean postProcessKeyEvent (KeyEvent e) { // Check if this event represents a menu shortcut. // MenuShortcuts are activated by Ctrl- KeyEvents, only on KEY_PRESSED. int modifiers = e.getModifiersEx (); if (e.getID() == KeyEvent.KEY_PRESSED && (modifiers & KeyEvent.CTRL_DOWN_MASK) != 0) ...
23,316