bugged
stringlengths
6
599k
fixed
stringlengths
6
40.8M
__index_level_0__
int64
0
3.24M
TextComponent(String text) { this.text = text; this.editable = true; }
TextComponent(String text) { this.text = text; this.editable = true; }
30,033
public abstract String getText();
public abstract String getText();
30,034
public abstract void insert(String text, int pos);
public abstract void insert(String text, int pos);
30,035
public abstract Dimension getMinimumSize(int rows, int cols);
public abstract Dimension getMinimumSize(int rows, int cols);
30,036
protected String paramString() { return (getClass().getName() + "(text=" + getText() + ")"); }
protected String paramString() { return (getClass().getName() + "(text=" + getText() + ")"); }
30,037
public boolean isEditable() { return (editable); }
public boolean isEditable() { return (editable); }
30,038
public synchronized String getText() { TextComponentPeer tcp = (TextComponentPeer) getPeer(); if (tcp != null) text = tcp.getText(); return (text); }
public synchronized String getText() { TextComponentPeer tcp = (TextComponentPeer) getPeer(); if (tcp != null) text = tcp.getText(); return (text); }
30,039
public synchronized String getText() { TextComponentPeer tcp = (TextComponentPeer) getPeer(); if (tcp != null) text = tcp.getText(); return (text); }
public synchronized String getText() { TextComponentPeer tcp = (TextComponentPeer) getPeer(); if (tcp != null) text = tcp.getText(); return (text); }
30,040
public synchronized int getSelectionStart() { TextComponentPeer tcp = (TextComponentPeer) getPeer(); if (tcp != null) selectionStart = tcp.getSelectionStart(); return (selectionStart); }
public synchronized int getSelectionStart() { TextComponentPeer tcp = (TextComponentPeer) getPeer(); if (tcp != null) selectionStart = tcp.getSelectionStart(); return (selectionStart); }
30,041
public synchronized int getSelectionStart() { TextComponentPeer tcp = (TextComponentPeer) getPeer(); if (tcp != null) selectionStart = tcp.getSelectionStart(); return (selectionStart); }
public synchronized int getSelectionStart() { TextComponentPeer tcp = (TextComponentPeer) getPeer(); if (tcp != null) selectionStart = tcp.getSelectionStart(); return (selectionStart); }
30,042
public synchronized int getSelectionEnd() { TextComponentPeer tcp = (TextComponentPeer) getPeer(); if (tcp != null) selectionEnd = tcp.getSelectionEnd(); return (selectionEnd); }
public synchronized int getSelectionEnd() { TextComponentPeer tcp = (TextComponentPeer) getPeer(); if (tcp != null) selectionEnd = tcp.getSelectionEnd(); return (selectionEnd); }
30,043
public synchronized int getSelectionEnd() { TextComponentPeer tcp = (TextComponentPeer) getPeer(); if (tcp != null) selectionEnd = tcp.getSelectionEnd(); return (selectionEnd); }
public synchronized int getSelectionEnd() { TextComponentPeer tcp = (TextComponentPeer) getPeer(); if (tcp != null) selectionEnd = tcp.getSelectionEnd(); return (selectionEnd); }
30,044
public abstract Dimension getPreferredSize(int rows, int cols);
public abstract Dimension getPreferredSize(int rows, int cols);
30,045
public abstract void replaceRange(String text, int start_pos, int end_pos);
public abstract void replaceRange(String text, int start_pos, int end_pos);
30,046
public static synchronized Locale[] getAvailableLocales () { // FIXME Locale[] l = new Locale[1]; l[0] = Locale.US; return l; }
public static synchronized Locale[] getAvailableLocales () { // FIXME Locale[] l = new Locale[1]; l[0] = Locale.US; return l; }
30,047
public SortedMap<K, V> headMap(K toKey) { return new SubMap(nil, toKey); }
public SortedMap<K, V> headMap(K toKey) { return new SubMap((K)(Object)nil, toKey); }
30,048
public SortedMap<K, V> tailMap(K fromKey) { return new SubMap(fromKey, nil); }
public SortedMap<K, V> tailMap(K fromKey) { return new SubMap(fromKey, (K)(Object)nil); }
30,049
public static Object getStaticAttribute(Object key) throws NotImplementedException { throw new InternalError("not implemented"); }
public static Object getStaticAttribute(Object key) { throw new InternalError("not implemented"); }
30,050
public static Object getStaticAttribute(Object key) throws NotImplementedException { throw new InternalError("not implemented"); }
public static Object getStaticAttribute(Object key) throws NotImplementedException { if (key == null) return null; return staticAttributeKeys.get(key); }
30,051
public static Object getStaticAttributeKey(Object key) throws NotImplementedException { throw new InternalError("not implemented"); }
public static Object getStaticAttributeKey(Object key) { throw new InternalError("not implemented"); }
30,052
public static Object getStaticAttributeKey(Object key) throws NotImplementedException { throw new InternalError("not implemented"); }
public static Object getStaticAttributeKey(Object key) throws NotImplementedException { return key.getClass().getName() + "." + key.toString(); }
30,053
public static void readAttributeSet(ObjectInputStream in, MutableAttributeSet a) throws ClassNotFoundException, IOException, NotImplementedException { throw new InternalError("not implemented"); }
public static void readAttributeSet(ObjectInputStream in, MutableAttributeSet a) throws ClassNotFoundException, IOException { throw new InternalError("not implemented"); }
30,054
public static void readAttributeSet(ObjectInputStream in, MutableAttributeSet a) throws ClassNotFoundException, IOException, NotImplementedException { throw new InternalError("not implemented"); }
public static void readAttributeSet(ObjectInputStream in, MutableAttributeSet a) throws ClassNotFoundException, IOException, NotImplementedException { if (in == null || a == null) return; Object key = in.readObject(); Object val = in.readObject(); while (key != null && val != null) { Object staticKey = static...
30,055
public void readAttributes(ObjectInputStream in, MutableAttributeSet a) throws ClassNotFoundException, IOException, NotImplementedException { throw new InternalError("not implemented"); }
public void readAttributes(ObjectInputStream in, MutableAttributeSet a) throws ClassNotFoundException, IOException { throw new InternalError("not implemented"); }
30,056
public void readAttributes(ObjectInputStream in, MutableAttributeSet a) throws ClassNotFoundException, IOException, NotImplementedException { throw new InternalError("not implemented"); }
public void readAttributes(ObjectInputStream in, MutableAttributeSet a) throws ClassNotFoundException, IOException, NotImplementedException { readAttributeSet(in, a); }
30,057
public static void registerStaticAttributeKey(Object key) { staticAttributeKeys.add(key); }
public static void registerStaticAttributeKey(Object key) { if (key != null) staticAttributeKeys.put(key.getClass().getName() + "." + key.toString(), key); }
30,058
public static void writeAttributeSet(ObjectOutputStream out, AttributeSet a) throws IOException, NotImplementedException { throw new InternalError("not implemented"); }
public static void writeAttributeSet(ObjectOutputStream out, AttributeSet a) throws IOException, NotImplementedException { }
30,059
public void writeAttributes(ObjectOutputStream out, AttributeSet a) throws IOException, NotImplementedException { throw new InternalError("not implemented"); }
public void writeAttributes(ObjectOutputStream out, AttributeSet a) throws IOException { throw new InternalError("not implemented"); }
30,060
public void writeAttributes(ObjectOutputStream out, AttributeSet a) throws IOException, NotImplementedException { throw new InternalError("not implemented"); }
public void writeAttributes(ObjectOutputStream out, AttributeSet a) throws IOException, NotImplementedException { writeAttributeSet(out, a); }
30,061
protected Object generateSignature() throws IllegalStateException { // 1. Apply the EMSA-PSS encoding operation to the message M to produce an // encoded message EM of length CEILING((modBits ? 1)/8) octets such // that the bit length of the integer OS2IP(EM) is at most modBits ? 1: // EM = EMSA...
protected Object generateSignature() throws IllegalStateException { // 1. Apply the EMSA-PSS encoding operation to the message M to produce an // encoded message EM of length CEILING((modBits ? 1)/8) octets such // that the bit length of the integer OS2IP(EM) is at most modBits ? 1: // EM = EMSA...
30,062
protected void setupForSigning(PrivateKey k) throws IllegalArgumentException { if (!(k instanceof RSAPrivateKey)) { throw new IllegalArgumentException(); } privateKey = (RSAPrivateKey) k; }
protected void setupForSigning(PrivateKey k) throws IllegalArgumentException { if (!(k instanceof RSAPrivateKey)) { throw new IllegalArgumentException(); } privateKey = (RSAPrivateKey) k; }
30,063
protected void setupForSigning(PrivateKey k) throws IllegalArgumentException { if (!(k instanceof RSAPrivateKey)) { throw new IllegalArgumentException(); } privateKey = (RSAPrivateKey) k; }
protected void setupForSigning(PrivateKey k) throws IllegalArgumentException { if (!(k instanceof RSAPrivateKey)) { throw new IllegalArgumentException(); privateKey = (RSAPrivateKey) k; }
30,064
protected void setupForVerification(PublicKey k) throws IllegalArgumentException { if (!(k instanceof RSAPublicKey)) { throw new IllegalArgumentException(); } publicKey = (RSAPublicKey) k; }
protected void setupForVerification(PublicKey k) throws IllegalArgumentException { if (!(k instanceof RSAPublicKey)) { throw new IllegalArgumentException(); } publicKey = (RSAPublicKey) k; }
30,065
protected void setupForVerification(PublicKey k) throws IllegalArgumentException { if (!(k instanceof RSAPublicKey)) { throw new IllegalArgumentException(); } publicKey = (RSAPublicKey) k; }
protected void setupForVerification(PublicKey k) throws IllegalArgumentException { if (!(k instanceof RSAPublicKey)) { throw new IllegalArgumentException(); publicKey = (RSAPublicKey) k; }
30,066
protected boolean verifySignature(Object sig) throws IllegalStateException { if (publicKey == null) { throw new IllegalStateException(); } // byte[] S = decodeSignature(sig); byte[] S = (byte[]) sig; // 1. If the length of the signature S is not k octets, output 'signature // ...
protected boolean verifySignature(Object sig) throws IllegalStateException if (publicKey == null) throw new IllegalStateException(); } // byte[] S = decodeSignature(sig); byte[] S = (byte[]) sig; // 1. If the length of the signature S is not k octets, output 'signature // inva...
30,067
protected boolean verifySignature(Object sig) throws IllegalStateException { if (publicKey == null) { throw new IllegalStateException(); } // byte[] S = decodeSignature(sig); byte[] S = (byte[]) sig; // 1. If the length of the signature S is not k octets, output 'signature // ...
protected boolean verifySignature(Object sig) throws IllegalStateException { if (publicKey == null) { throw new IllegalStateException(); // byte[] S = decodeSignature(sig); byte[] S = (byte[]) sig; // 1. If the length of the signature S is not k octets, output 'signature // in...
30,068
protected boolean verifySignature(Object sig) throws IllegalStateException { if (publicKey == null) { throw new IllegalStateException(); } // byte[] S = decodeSignature(sig); byte[] S = (byte[]) sig; // 1. If the length of the signature S is not k octets, output 'signature // ...
protected boolean verifySignature(Object sig) throws IllegalStateException if (publicKey == null) throw new IllegalStateException(); } // byte[] S = decodeSignature(sig); byte[] S = (byte[]) sig; // 1. If the length of the signature S is not k octets, output 'signature // inva...
30,069
protected boolean verifySignature(Object sig) throws IllegalStateException { if (publicKey == null) { throw new IllegalStateException(); } // byte[] S = decodeSignature(sig); byte[] S = (byte[]) sig; // 1. If the length of the signature S is not k octets, output 'signature // ...
protected boolean verifySignature(Object sig) throws IllegalStateException { if (publicKey == null) { throw new IllegalStateException(); // byte[] S = decodeSignature(sig); byte[] S = (byte[]) sig; // 1. If the length of the signature S is not k octets, output 'signature // in...
30,070
protected boolean verifySignature(Object sig) throws IllegalStateException { if (publicKey == null) { throw new IllegalStateException(); } // byte[] S = decodeSignature(sig); byte[] S = (byte[]) sig; // 1. If the length of the signature S is not k octets, output 'signature // ...
protected boolean verifySignature(Object sig) throws IllegalStateException { if (publicKey == null) { throw new IllegalStateException(); } // byte[] S = decodeSignature(sig); byte[] S = (byte[]) sig; // 1. If the length of the signature S is not k octets, output 'signature // ...
30,071
protected boolean verifySignature(Object sig) throws IllegalStateException { if (publicKey == null) { throw new IllegalStateException(); } // byte[] S = decodeSignature(sig); byte[] S = (byte[]) sig; // 1. If the length of the signature S is not k octets, output 'signature // ...
protected boolean verifySignature(Object sig) throws IllegalStateException if (publicKey == null) throw new IllegalStateException(); } // byte[] S = decodeSignature(sig); byte[] S = (byte[]) sig; // 1. If the length of the signature S is not k octets, output 'signature // inva...
30,072
protected boolean verifySignature(Object sig) throws IllegalStateException { if (publicKey == null) { throw new IllegalStateException(); } // byte[] S = decodeSignature(sig); byte[] S = (byte[]) sig; // 1. If the length of the signature S is not k octets, output 'signature // ...
protected boolean verifySignature(Object sig) throws IllegalStateException { if (publicKey == null) { throw new IllegalStateException(); // byte[] S = decodeSignature(sig); byte[] S = (byte[]) sig; // 1. If the length of the signature S is not k octets, output 'signature // in...
30,073
protected SecureClassLoader() { SecurityManager sm = System.getSecurityManager(); if(sm != null) sm.checkCreateClassLoader(); }
protected SecureClassLoader(ClassLoader parent) { SecurityManager sm = System.getSecurityManager(); if(sm != null) sm.checkCreateClassLoader(); }
30,074
public boolean isVisible() { return super.isVisible(); }
public boolean isVisible() { return visible; }
30,076
public void setVisible(boolean visible) { boolean old = isVisible(); super.setVisible(visible); if (old != isVisible()) { firePropertyChange(VISIBLE_CHANGED_PROPERTY, old, (boolean) isVisible()); if (visible) { firePopupMenuWillBecomeVisible(); Container rootContainer = (Container) SwingUti...
public void setVisible(boolean visible) { boolean old = isVisible(); this.visible = visible; if (old != isVisible()) { firePropertyChange(VISIBLE_CHANGED_PROPERTY, old, (boolean) isVisible()); if (visible) { firePopupMenuWillBecomeVisible(); Container rootContainer = (Container) SwingUtilit...
30,077
public Constraints() { x = y = height = width = east = south = null; }
public Constraints() { x = y = height = width = east = south = v = h = null; }
30,079
public Spring getConstraint(String edgeName) { Spring retVal = null; if (edgeName.equals(SpringLayout.NORTH)) retVal = y; else if (edgeName.equals(SpringLayout.WEST)) retVal = x; else if (edgeName.equals(SpringLayout.SOUTH)) { retVal = south; if ((retVal == null) && (...
public Spring getConstraint(String edgeName) { Spring retVal = null; if (edgeName.equals(SpringLayout.NORTH)) retVal = getY(); else if (edgeName.equals(SpringLayout.WEST)) retVal = x; else if (edgeName.equals(SpringLayout.SOUTH)) { retVal = south; if ((retVal == null)...
30,080
public Spring getConstraint(String edgeName) { Spring retVal = null; if (edgeName.equals(SpringLayout.NORTH)) retVal = y; else if (edgeName.equals(SpringLayout.WEST)) retVal = x; else if (edgeName.equals(SpringLayout.SOUTH)) { retVal = south; if ((retVal == null) && (...
public Spring getConstraint(String edgeName) { Spring retVal = null; if (edgeName.equals(SpringLayout.NORTH)) retVal = y; else if (edgeName.equals(SpringLayout.WEST)) retVal = getX(); else if (edgeName.equals(SpringLayout.SOUTH)) { retVal = south; if ((retVal == null)...
30,081
public Spring getConstraint(String edgeName) { Spring retVal = null; if (edgeName.equals(SpringLayout.NORTH)) retVal = y; else if (edgeName.equals(SpringLayout.WEST)) retVal = x; else if (edgeName.equals(SpringLayout.SOUTH)) { retVal = south; if ((retVal == null) && (...
public Spring getConstraint(String edgeName) { Spring retVal = null; if (edgeName.equals(SpringLayout.NORTH)) retVal = y; else if (edgeName.equals(SpringLayout.WEST)) retVal = x; else if (edgeName.equals(SpringLayout.SOUTH)) { retVal = south; if ((retVal == null) && (...
30,082
public Spring getConstraint(String edgeName) { Spring retVal = null; if (edgeName.equals(SpringLayout.NORTH)) retVal = y; else if (edgeName.equals(SpringLayout.WEST)) retVal = x; else if (edgeName.equals(SpringLayout.SOUTH)) { retVal = south; if ((retVal == null) && (...
public Spring getConstraint(String edgeName) { Spring retVal = null; if (edgeName.equals(SpringLayout.NORTH)) retVal = y; else if (edgeName.equals(SpringLayout.WEST)) retVal = x; else if (edgeName.equals(SpringLayout.SOUTH)) { retVal = south; if ((retVal == null) && (...
30,083
public Spring getHeight() { Spring retVal = height; if ((retVal == null) && (y != null) && (south != null)) { retVal = Spring.sum(south, Spring.minus(y)); } return retVal; }
public Spring getHeight() { Spring retVal = height; if ((retVal == null) && (y != null) && (south != null)) { retVal = Spring.sum(south, Spring.minus(y)); } return retVal; }
30,084
public Spring getWidth() { Spring retVal = width; if ((retVal == null) && (x != null) && (east != null)) { retVal = Spring.sum(east, Spring.minus(x)); } return retVal; }
public Spring getWidth() { Spring retVal = width; if ((retVal == null) && (x != null) && (east != null)) { retVal = Spring.sum(east, Spring.minus(x)); } return retVal; }
30,085
public Spring getX() { Spring retVal = x; if ((retVal == null) && (width != null) && (east != null)) { retVal = Spring.sum(east, Spring.minus(width)); } return retVal; }
public Spring getX() { Spring retVal = x; if ((retVal == null) && (width != null) && (east != null)) { retVal = Spring.sum(east, Spring.minus(width)); } return retVal; }
30,086
public Spring getY() { Spring retVal = y; if ((retVal == null) && (height != null) && (south != null)) { retVal = Spring.sum(south, Spring.minus(height)); } return retVal; }
public Spring getY() { Spring retVal = y; if ((retVal == null) && (height != null) && (south != null)) { retVal = Spring.sum(south, Spring.minus(height)); } return retVal; }
30,087
public void setConstraint(String edgeName, Spring s) { if (edgeName.equals(SpringLayout.WEST)) { x = s; if ((width != null) && (east != null)) width = Spring.sum(east, Spring.minus(x)); } else if (edgeName.equals(SpringLayout.NORTH)) { y = s; ...
public void setConstraint(String edgeName, Spring s) { if (edgeName.equals(SpringLayout.WEST)) { x = s; if ((width != null) && (east != null)) width = Spring.sum(east, Spring.minus(x)); } else if (edgeName.equals(SpringLayout.NORTH)) { y = s; ...
30,088
public void setConstraint(String edgeName, Spring s) { if (edgeName.equals(SpringLayout.WEST)) { x = s; if ((width != null) && (east != null)) width = Spring.sum(east, Spring.minus(x)); } else if (edgeName.equals(SpringLayout.NORTH)) { y = s; ...
public void setConstraint(String edgeName, Spring s) { if (edgeName.equals(SpringLayout.WEST)) { x = s; if ((width != null) && (east != null)) width = Spring.sum(east, Spring.minus(x)); } else if (edgeName.equals(SpringLayout.NORTH)) { y = s; ...
30,089
public void setConstraint(String edgeName, Spring s) { if (edgeName.equals(SpringLayout.WEST)) { x = s; if ((width != null) && (east != null)) width = Spring.sum(east, Spring.minus(x)); } else if (edgeName.equals(SpringLayout.NORTH)) { y = s; ...
public void setConstraint(String edgeName, Spring s) { if (edgeName.equals(SpringLayout.WEST)) { x = s; if ((width != null) && (east != null)) width = Spring.sum(east, Spring.minus(x)); } else if (edgeName.equals(SpringLayout.NORTH)) { y = s; ...
30,090
public void setConstraint(String edgeName, Spring s) { if (edgeName.equals(SpringLayout.WEST)) { x = s; if ((width != null) && (east != null)) width = Spring.sum(east, Spring.minus(x)); } else if (edgeName.equals(SpringLayout.NORTH)) { y = s; ...
public void setConstraint(String edgeName, Spring s) { if (edgeName.equals(SpringLayout.WEST)) { x = s; if ((width != null) && (east != null)) width = Spring.sum(east, Spring.minus(x)); } else if (edgeName.equals(SpringLayout.NORTH)) { y = s; ...
30,091
public void setHeight(Spring s) { height = s; if ((south != null) && (y != null)) south = Spring.sum(y, height); }
public void setHeight(Spring s) { height = s; if ((south != null) && (y != null)) south = Spring.sum(y, height); }
30,092
public void setWidth(Spring s) { width = s; if ((east != null) && (x != null)) east = Spring.sum(x, width); }
public void setWidth(Spring s) { width = s; if ((east != null) && (x != null)) east = Spring.sum(x, width); }
30,093
public void setX(Spring s) { x = s; if ((width != null) && (east != null)) width = Spring.sum(east, Spring.minus(x)); }
public void setX(Spring s) { x = s; if ((width != null) && (east != null)) width = Spring.sum(east, Spring.minus(x)); }
30,094
public void setY(Spring s) { y = s; if ((height != null) && (south != null)) height = Spring.sum(south, Spring.minus(y)); }
public void setY(Spring s) { y = s; if ((height != null) && (south != null)) height = Spring.sum(south, Spring.minus(y)); }
30,095
public SpringLayout() { constraintsMap = new HashMap(); }
publicSpringLayout(){constraintsMap=newHashMap();}
30,096
public Spring getConstraint(String edgeName, Component c) { Constraints constraints = getConstraints(c); return constraints.getConstraint(edgeName); }
public Spring getConstraint(String edgeName, Component c) { Constraints constraints = getConstraints(c); return constraints.getConstraint(edgeName); }
30,097
public SpringLayout.Constraints getConstraints(Component c) { Constraints constraints = (Constraints) constraintsMap.get(c); if (constraints == null) { Container parent = c.getParent(); constraints = new Constraints(); if (parent != null) { constraints.setX(Spring....
public SpringLayout.Constraints getConstraints(Component c) { Constraints constraints = (Constraints) constraintsMap.get(c); if (constraints == null) { constraints = new Constraints(); if (parent != null) { constraints.setX(Spring.constant(parent.getInsets().left))...
30,098
public SpringLayout.Constraints getConstraints(Component c) { Constraints constraints = (Constraints) constraintsMap.get(c); if (constraints == null) { Container parent = c.getParent(); constraints = new Constraints(); if (parent != null) { constraints.setX(Spring....
public SpringLayout.Constraints getConstraints(Component c) { Constraints constraints = (Constraints) constraintsMap.get(c); if (constraints == null) { Container parent = c.getParent(); constraints = new Constraints(); if (parent != null) { constraints.setX(Spring....
30,099
public SpringLayout.Constraints getConstraints(Component c) { Constraints constraints = (Constraints) constraintsMap.get(c); if (constraints == null) { Container parent = c.getParent(); constraints = new Constraints(); if (parent != null) { constraints.setX(Spring....
public SpringLayout.Constraints getConstraints(Component c) { Constraints constraints = (Constraints) constraintsMap.get(c); if (constraints == null) { Container parent = c.getParent(); constraints = new Constraints(); if (parent != null) { constraints.setX(Spring....
30,100
public void layoutContainer(Container p) { addLayoutComponent(p, new Constraints(Spring.constant(0), Spring.constant(0))); int offsetX = p.getInsets().left; int offsetY = p.getInsets().right; Component[] components = p.getComponents(); for (int index = 0; index...
public void layoutContainer(Container p) { addLayoutComponent(p, new Constraints(Spring.constant(0), Spring.constant(0))); int offsetX = p.getInsets().left; int offsetY = p.getInsets().right; Component[] components = p.getComponents(); for (int index = 0; index...
30,102
public void layoutContainer(Container p) { addLayoutComponent(p, new Constraints(Spring.constant(0), Spring.constant(0))); int offsetX = p.getInsets().left; int offsetY = p.getInsets().right; Component[] components = p.getComponents(); for (int index = 0; index...
public void layoutContainer(Container p) { addLayoutComponent(p, new Constraints(Spring.constant(0), Spring.constant(0))); int offsetX = p.getInsets().left; int offsetY = p.getInsets().right; cs.getX().setValue(0); cs.getY().setValue(0); cs.getWidth().setValue(p.g...
30,103
public void layoutContainer(Container p) { addLayoutComponent(p, new Constraints(Spring.constant(0), Spring.constant(0))); int offsetX = p.getInsets().left; int offsetY = p.getInsets().right; Component[] components = p.getComponents(); for (int index = 0; index...
public void layoutContainer(Container p) { addLayoutComponent(p, new Constraints(Spring.constant(0), Spring.constant(0))); int offsetX = p.getInsets().left; int offsetY = p.getInsets().right; Component[] components = p.getComponents(); for (int index = 0; index...
30,104
public void layoutContainer(Container p) { addLayoutComponent(p, new Constraints(Spring.constant(0), Spring.constant(0))); int offsetX = p.getInsets().left; int offsetY = p.getInsets().right; Component[] components = p.getComponents(); for (int index = 0; index...
publicvoidlayoutContainer(Containerp){addLayoutComponent(p,newConstraints(Spring.constant(0),Spring.constant(0)));intoffsetX=p.getInsets().left;intoffsetY=p.getInsets().right;Component[]components=p.getComponents();for(intindex=0;index<components.length;index++){Componentc=components[index];Constraintsconstraints=getCo...
30,105
public Dimension maximumLayoutSize(Container p) { int maxX = 0; int maxY = 0; int offsetX = p.getInsets().left; int offsetY = p.getInsets().right; Component[] components = p.getComponents(); for (int index = 0; index < components.length; index++) { Component c = components[index]; ...
public Dimension maximumLayoutSize(Container p) { int maxX = 0; int maxY = 0; int offsetX = p.getInsets().left; int offsetY = p.getInsets().right; Component[] components = p.getComponents(); for (int index = 0; index < components.length; index++) { Component c = components[index]; ...
30,106
public Dimension maximumLayoutSize(Container p) { int maxX = 0; int maxY = 0; int offsetX = p.getInsets().left; int offsetY = p.getInsets().right; Component[] components = p.getComponents(); for (int index = 0; index < components.length; index++) { Component c = components[index]; ...
public Dimension maximumLayoutSize(Container p) { int maxX = 0; int maxY = 0; int offsetX = p.getInsets().left; int offsetY = p.getInsets().right; Component[] components = p.getComponents(); for (int index = 0; index < components.length; index++) { Component c = components[index]; ...
30,107
public Dimension maximumLayoutSize(Container p) { int maxX = 0; int maxY = 0; int offsetX = p.getInsets().left; int offsetY = p.getInsets().right; Component[] components = p.getComponents(); for (int index = 0; index < components.length; index++) { Component c = components[index]; ...
public Dimension maximumLayoutSize(Container p) { int maxX = 0; int maxY = 0; int offsetX = p.getInsets().left; int offsetY = p.getInsets().right; Component[] components = p.getComponents(); for (int index = 0; index < components.length; index++) { Component c = components[index]; ...
30,108
public Dimension minimumLayoutSize(Container p) { int maxX = 0; int maxY = 0; int offsetX = p.getInsets().left; int offsetY = p.getInsets().right; Component[] components = p.getComponents(); for (int index = 0; index < components.length; index++) { Component c = components[index]; ...
public Dimension minimumLayoutSize(Container p) { int maxX = 0; int maxY = 0; int offsetX = p.getInsets().left; int offsetY = p.getInsets().right; Component[] components = p.getComponents(); for (int index = 0; index < components.length; index++) { Component c = components[index]; ...
30,109
public Dimension minimumLayoutSize(Container p) { int maxX = 0; int maxY = 0; int offsetX = p.getInsets().left; int offsetY = p.getInsets().right; Component[] components = p.getComponents(); for (int index = 0; index < components.length; index++) { Component c = components[index]; ...
public Dimension minimumLayoutSize(Container p) { int maxX = 0; int maxY = 0; int offsetX = p.getInsets().left; int offsetY = p.getInsets().right; Component[] components = p.getComponents(); for (int index = 0; index < components.length; index++) { Component c = components[index]; ...
30,110
public Dimension minimumLayoutSize(Container p) { int maxX = 0; int maxY = 0; int offsetX = p.getInsets().left; int offsetY = p.getInsets().right; Component[] components = p.getComponents(); for (int index = 0; index < components.length; index++) { Component c = components[index]; ...
public Dimension minimumLayoutSize(Container p) { int maxX = 0; int maxY = 0; int offsetX = p.getInsets().left; int offsetY = p.getInsets().right; Component[] components = p.getComponents(); for (int index = 0; index < components.length; index++) { Component c = components[index]; ...
30,111
public Dimension preferredLayoutSize(Container p) { int maxX = 0; int maxY = 0; int offsetX = p.getInsets().left; int offsetY = p.getInsets().right; Component[] components = p.getComponents(); for (int index = 0; index < components.length; index++) { Component c = components[index]; ...
public Dimension preferredLayoutSize(Container p) { int maxX = 0; int maxY = 0; int offsetX = p.getInsets().left; int offsetY = p.getInsets().right; Component[] components = p.getComponents(); for (int index = 0; index < components.length; index++) { Component c = components[index]; ...
30,112
public Dimension preferredLayoutSize(Container p) { int maxX = 0; int maxY = 0; int offsetX = p.getInsets().left; int offsetY = p.getInsets().right; Component[] components = p.getComponents(); for (int index = 0; index < components.length; index++) { Component c = components[index]; ...
public Dimension preferredLayoutSize(Container p) { int maxX = 0; int maxY = 0; int offsetX = p.getInsets().left; int offsetY = p.getInsets().right; Component[] components = p.getComponents(); for (int index = 0; index < components.length; index++) { Component c = components[index]; ...
30,113
public Dimension preferredLayoutSize(Container p) { int maxX = 0; int maxY = 0; int offsetX = p.getInsets().left; int offsetY = p.getInsets().right; Component[] components = p.getComponents(); for (int index = 0; index < components.length; index++) { Component c = components[index]; ...
public Dimension preferredLayoutSize(Container p) { int maxX = 0; int maxY = 0; int offsetX = p.getInsets().left; int offsetY = p.getInsets().right; Component[] components = p.getComponents(); for (int index = 0; index < components.length; index++) { Component c = components[index]; ...
30,114
public Dimension preferredLayoutSize(Container p) { int maxX = 0; int maxY = 0; int offsetX = p.getInsets().left; int offsetY = p.getInsets().right; Component[] components = p.getComponents(); for (int index = 0; index < components.length; index++) { Component c = components[index]; ...
public Dimension preferredLayoutSize(Container p) { int maxX = 0; int maxY = 0; int offsetX = p.getInsets().left; int offsetY = p.getInsets().right; Component[] components = p.getComponents(); for (int index = 0; index < components.length; index++) { Component c = components[index]; ...
30,115
public void putConstraint(String e1, Component c1, int pad, String e2, Component c2) { Constraints constraints1 = getConstraints(c1); Constraints constraints2 = getConstraints(c2); Spring strut = Spring.constant(pad); Spring otherEdge = constraints2.getConstraint(e2); const...
public void putConstraint(String e1, Component c1, int pad, String e2, Component c2) { Constraints constraints1 = getConstraints(c1); Constraints constraints2 = getConstraints(c2); Spring strut = Spring.constant(pad); Spring otherEdge = constraints2.getConstraint(e2); const...
30,116
public void paint(Graphics g) { RepaintManager rm = RepaintManager.currentManager(this); // We do a little stunt act here to switch on double buffering if it's // not already on. If we are not already doublebuffered, then we jump // into the method paintDoubleBuffered, which turns on the double buffer ...
public void paint(Graphics g) { RepaintManager rm = RepaintManager.currentManager(this); // We do a little stunt act here to switch on double buffering if it's // not already on. If we are not already doublebuffered, then we jump // into the method paintDoubleBuffered, which turns on the double buffer ...
30,117
private void paintChildrenWithOverlap(Graphics g) { Shape originalClip = g.getClip(); Rectangle inner = SwingUtilities.calculateInnerArea(this, rectCache); g.clipRect(inner.x, inner.y, inner.width, inner.height); Component[] children = getComponents(); // Find the rectangles that need to be painted fo...
private void paintChildrenWithOverlap(Graphics g) { Shape originalClip = g.getClip(); Rectangle inner = SwingUtilities.calculateInnerArea(this, rectCache); g.clipRect(inner.x, inner.y, inner.width, inner.height); Component[] children = getComponents(); // Find the rectangles that need to be painted fo...
30,118
private void paintChildrenWithOverlap(Graphics g) { Shape originalClip = g.getClip(); Rectangle inner = SwingUtilities.calculateInnerArea(this, rectCache); g.clipRect(inner.x, inner.y, inner.width, inner.height); Component[] children = getComponents(); // Find the rectangles that need to be painted fo...
private void paintChildrenWithOverlap(Graphics g) { Shape originalClip = g.getClip(); Rectangle inner = SwingUtilities.calculateInnerArea(this, rectCache); g.clipRect(inner.x, inner.y, inner.width, inner.height); Component[] children = getComponents(); // Find the rectangles that need to be painted fo...
30,119
private void paintDoubleBuffered(Rectangle r) { RepaintManager rm = RepaintManager.currentManager(this); // Paint on the offscreen buffer. Component root = SwingUtilities.getRoot(this); Image buffer = rm.getOffscreenBuffer(this, root.getWidth(), root.getHeight()); ...
private void paintDoubleBuffered(Rectangle r) { RepaintManager rm = RepaintManager.currentManager(this); // Paint on the offscreen buffer. Component root = getRoot(this); Image buffer = rm.getOffscreenBuffer(this, root.getWidth(), root.getHeight()); //Rectangle ...
30,120
public Border getInsideBorder () { return insideBorder; }
public Border getInsideBorder() { return insideBorder; }
30,121
public void setRect(double x, double y, double width, double height) { this.x = (int) x; this.y = (int) y; this.width = (int) width; this.height = (int) height; }
public void setRect(double x, double y, double width, double height) { this.x = (int) x; this.y = (int) y; this.width = (int) width; this.height = (int) height; }
30,122
JToolTip(String text) { this.text = text; }
JToolTip(String text) { this.text = text; }
30,123
public JPasswordField() { // TODO } // JPasswordField()
public JPasswordField() { // TODO } // JPasswordField()
30,124
public void copy() { // TODO } // copy()
public void copy() { // TODO } // copy()
30,125
public void cut() { // TODO } // cut()
public void cut() { // TODO } // cut()
30,126
public boolean echoCharIsSet() { return (echoChar == 0); } // echoCharIsSet()
public boolean echoCharIsSet() { return (echoChar == 0); } // echoCharIsSet()
30,127
public char getEchoChar() { return echoChar; } // getEchoChar()
public char getEchoChar() { return echoChar; } // getEchoChar()
30,128
public char getEchoChar() { return echoChar; } // getEchoChar()
public char getEchoChar() { return echoChar; } // getEchoChar()
30,129
public char[] getPassword() { return null; // TODO } // getPassword()
public char[] getPassword() { return null; // TODO } // getPassword()
30,130
public char[] getPassword() { return null; // TODO } // getPassword()
public char[] getPassword() { return null; // TODO } // getPassword()
30,131
public String getText() { return null; // TODO } // getText()
public String getText() { return null; // TODO } // getText()
30,132
public String getText() { return null; // TODO } // getText()
public String getText() { return null; // TODO } // getText()
30,133
public String getUIClassID() { return uiClassID; } // getUIClassID()
public String getUIClassID() { return uiClassID; } // getUIClassID()
30,134
protected String paramString() { return null; // TODO } // paramString()
protected String paramString() { return null; // TODO } // paramString()
30,135