bugged stringlengths 6 599k | fixed stringlengths 10 599k | __index_level_0__ int64 0 1.13M |
|---|---|---|
public abstract void insert(String text, int pos); | void insert(String text, int pos); | 18,860 |
public abstract Dimension getMinimumSize(int rows, int cols); | Dimension getMinimumSize(int rows, int cols); | 18,861 |
protected String paramString() { return (getClass().getName() + "(text=" + getText() + ")"); } | protected String paramString() { return (getClass().getName() + "(text=" + getText() + ")"); } | 18,862 |
public boolean isEditable() { return (editable); } | public boolean isEditable() { return (editable); } | 18,863 |
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); } | 18,864 |
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); } | 18,865 |
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); } | 18,866 |
public abstract Dimension getPreferredSize(int rows, int cols); | Dimension getPreferredSize(int rows, int cols); | 18,867 |
public abstract void replaceRange(String text, int start_pos, int end_pos); | void replaceRange(String text, int start_pos, int end_pos); | 18,868 |
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; } | 18,869 |
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); } | 18,870 |
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); } | 18,871 |
public static Object getStaticAttribute(Object key) throws NotImplementedException { throw new InternalError("not implemented"); } | public static Object getStaticAttribute(Object key) { throw new InternalError("not implemented"); } | 18,872 |
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); } | 18,873 |
public static Object getStaticAttributeKey(Object key) throws NotImplementedException { throw new InternalError("not implemented"); } | public static Object getStaticAttributeKey(Object key) { throw new InternalError("not implemented"); } | 18,874 |
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(); } | 18,875 |
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"); } | 18,876 |
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... | 18,877 |
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"); } | 18,878 |
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); } | 18,879 |
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); } | 18,880 |
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 { } | 18,881 |
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"); } | 18,882 |
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); } | 18,883 |
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... | 18,884 |
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; } | 18,885 |
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; | 18,886 |
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; } | 18,887 |
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; | 18,888 |
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... | 18,889 |
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 // i... | 18,890 |
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 // ... | 18,891 |
public boolean isVisible() { return super.isVisible(); } | public boolean isVisible() { return visible; } | 18,892 |
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... | 18,893 |
public Constraints() { x = y = height = width = east = south = null; } | public Constraints() { x = y = height = width = east = south = v = h = null; } | 18,895 |
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)... | 18,896 |
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)... | 18,897 |
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) && (... | 18,898 |
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) && (... | 18,899 |
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; } | 18,900 |
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; } | 18,901 |
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; } | 18,902 |
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; } | 18,903 |
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; ... | 18,904 |
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; ... | 18,905 |
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; ... | 18,906 |
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; ... | 18,907 |
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); } | 18,908 |
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); } | 18,909 |
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)); } | 18,910 |
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)); } | 18,911 |
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); } | 18,912 |
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)... | 18,913 |
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.... | 18,914 |
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.... | 18,915 |
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... | 18,917 |
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... | 18,918 |
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... | 18,919 |
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]; ... | 18,920 |
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]; ... | 18,921 |
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]; ... | 18,922 |
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]; ... | 18,923 |
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]; ... | 18,924 |
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]; ... | 18,925 |
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]; ... | 18,926 |
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]; ... | 18,927 |
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]; ... | 18,928 |
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]; ... | 18,929 |
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... | 18,930 |
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 ... | 18,931 |
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... | 18,932 |
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... | 18,933 |
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 ... | 18,934 |
JToolTip(String text) { this.text = text; } | JToolTip(String text) { this.text = text; } | 18,935 |
public JPasswordField() { // TODO } // JPasswordField() | public JPasswordField() { // TODO } // JPasswordField() | 18,936 |
public void copy() { // TODO } // copy() | public void copy() { // TODO } // copy() | 18,937 |
public void cut() { // TODO } // cut() | public void cut() { // TODO } // cut() | 18,938 |
public boolean echoCharIsSet() { return (echoChar == 0); } // echoCharIsSet() | public boolean echoCharIsSet() { return (echoChar == 0); } // echoCharIsSet() | 18,939 |
public String getUIClassID() { return uiClassID; } // getUIClassID() | public String getUIClassID() { return uiClassID; } // getUIClassID() | 18,940 |
public static byte getDirectionality(char ch) { // The result will correctly be signed. return (byte) (direction[readChar(ch) >> 7] >> 2); } | public static byte getDirectionality(char ch) { // The result will correctly be signed. return getDirectionality((int)ch); } | 18,941 |
public void setResolution(BDFParser.Dimension resolution) { this.resolution = resolution; } | public void setResolution(BDFParser.Dimension resolution) { this.resolution = resolution; } | 18,942 |
public BDFParser(java.io.Reader stream) { jj_input_stream = new SimpleCharStream(stream, 1, 1); token_source = new BDFParserTokenManager(jj_input_stream); token = new Token(); jj_ntk = -1; jj_gen = 0; for (int i = 0; i < 7; i++) jj_la1[i] = -1; } | public BDFParser(java.io.InputStream stream) { jj_input_stream = new SimpleCharStream(stream, 1, 1); token_source = new BDFParserTokenManager(jj_input_stream); token = new Token(); jj_ntk = -1; jj_gen = 0; for (int i = 0; i < 7; i++) jj_la1[i] = -1; } | 18,943 |
private void checkMethods() throws IntrospectionException { if (getMethod != null) { if (getMethod.getParameterTypes().length > 0) { throw new IntrospectionException("get method has parameters"); } this.propertyType = getMethod.getReturnType(); if (propertyType == Void.TYPE) { throw new In... | private Class checkMethods(Method readMethod, Method writeMethod) throws IntrospectionException { if (getMethod != null) { if (getMethod.getParameterTypes().length > 0) { throw new IntrospectionException("get method has parameters"); } this.propertyType = getMethod.getReturnType(); if (pro... | 18,944 |
private void checkMethods() throws IntrospectionException { if (getMethod != null) { if (getMethod.getParameterTypes().length > 0) { throw new IntrospectionException("get method has parameters"); } this.propertyType = getMethod.getReturnType(); if (propertyType == Void.TYPE) { throw new In... | private void checkMethods() throws IntrospectionException { if (getMethod != null) { if (getMethod.getParameterTypes().length > 0) { throw new IntrospectionException("get method has parameters"); } this.propertyType = getMethod.getReturnType(); if (propertyType == Void.TYPE) { throw new In... | 18,945 |
private void checkMethods() throws IntrospectionException { if (getMethod != null) { if (getMethod.getParameterTypes().length > 0) { throw new IntrospectionException("get method has parameters"); } this.propertyType = getMethod.getReturnType(); if (propertyType == Void.TYPE) { throw new In... | private void checkMethods() throws IntrospectionException { if (getMethod != null) { if (getMethod.getParameterTypes().length > 0) { throw new IntrospectionException("get method has parameters"); } this.propertyType = getMethod.getReturnType(); if (propertyType == Void.TYPE) { throw new In... | 18,946 |
private void checkMethods() throws IntrospectionException { if (getMethod != null) { if (getMethod.getParameterTypes().length > 0) { throw new IntrospectionException("get method has parameters"); } this.propertyType = getMethod.getReturnType(); if (propertyType == Void.TYPE) { throw new In... | private void checkMethods() throws IntrospectionException { if (getMethod != null) { if (getMethod.getParameterTypes().length > 0) { throw new IntrospectionException("get method has parameters"); } this.propertyType = getMethod.getReturnType(); if (propertyType == Void.TYPE) { throw new In... | 18,947 |
private void checkMethods() throws IntrospectionException { if (getMethod != null) { if (getMethod.getParameterTypes().length > 0) { throw new IntrospectionException("get method has parameters"); } this.propertyType = getMethod.getReturnType(); if (propertyType == Void.TYPE) { throw new In... | private void checkMethods() throws IntrospectionException { if (getMethod != null) { if (getMethod.getParameterTypes().length > 0) { throw new IntrospectionException("get method has parameters"); } this.propertyType = getMethod.getReturnType(); if (propertyType == Void.TYPE) { throw new In... | 18,948 |
private void checkMethods() throws IntrospectionException { if (getMethod != null) { if (getMethod.getParameterTypes().length > 0) { throw new IntrospectionException("get method has parameters"); } this.propertyType = getMethod.getReturnType(); if (propertyType == Void.TYPE) { throw new In... | private void checkMethods() throws IntrospectionException { if (getMethod != null) { if (getMethod.getParameterTypes().length > 0) { throw new IntrospectionException("get method has parameters"); } this.propertyType = getMethod.getReturnType(); if (propertyType == Void.TYPE) { throw new In... | 18,949 |
private void checkMethods() throws IntrospectionException { if (getMethod != null) { if (getMethod.getParameterTypes().length > 0) { throw new IntrospectionException("get method has parameters"); } this.propertyType = getMethod.getReturnType(); if (propertyType == Void.TYPE) { throw new In... | private void checkMethods() throws IntrospectionException { if (getMethod != null) { if (getMethod.getParameterTypes().length > 0) { throw new IntrospectionException("get method has parameters"); } this.propertyType = getMethod.getReturnType(); if (propertyType == Void.TYPE) { throw new In... | 18,950 |
private void checkMethods() throws IntrospectionException { if (getMethod != null) { if (getMethod.getParameterTypes().length > 0) { throw new IntrospectionException("get method has parameters"); } this.propertyType = getMethod.getReturnType(); if (propertyType == Void.TYPE) { throw new In... | private void checkMethods() throws IntrospectionException { if (getMethod != null) { if (getMethod.getParameterTypes().length > 0) { throw new IntrospectionException("get method has parameters"); this.propertyType = getMethod.getReturnType(); if (propertyType == Void.TYPE) { throw new Int... | 18,951 |
private void findMethods(Class beanClass, String getMethodName1, String getMethodName2, String setMethodName) throws IntrospectionException { try { // Try the first get method name if (getMethodName1 != null) { try { getMethod = beanClass.getMethod(getMethodName1, new Class[0]); } catch (N... | private void findMethods(Class beanClass, String getMethodName1, String getMethodName2, String setMethodName) throws IntrospectionException { try { // Try the first get method name if (getMethodName1 != null) { try { getMethod = beanClass.getMethod(getMethodName1, new Class[0]); } catch (N... | 18,952 |
private void findMethods(Class beanClass, String getMethodName1, String getMethodName2, String setMethodName) throws IntrospectionException { try { // Try the first get method name if (getMethodName1 != null) { try { getMethod = beanClass.getMethod(getMethodName1, new Class[0]); } catch (N... | private void findMethods(Class beanClass, String getMethodName1, String getMethodName2, String setMethodName) throws IntrospectionException { try { // Try the first get method name if (getMethodName1 != null) { try { getMethod = beanClass.getMethod(getMethodName1, new Class[0]); } catch (N... | 18,953 |
public Gnu() { super("GNU", 1.0, "GNU provider v1.0 implementing SHA-1, MD5, DSA, RSA, X.509 Certificates and CRLs, PKIX certificate path validators, Collection cert stores"); AccessController.doPrivileged (new PrivilegedAction() { public Object run() { // Note that all implementation class nam... | public Gnu() { super("GNU", 1.0, "GNU provider v1.0 implementing SHA-1, MD5, DSA, RSA, X.509 Certificates and CRLs, PKIX certificate path validators, Collection cert stores, Diffie-Hellman key agreement"); AccessController.doPrivileged (new PrivilegedAction() { public Object run() { // Note tha... | 18,954 |
public Dimension getPreferredScrollableViewportSize() { Dimension retVal = getPreferredSize(); if (getLayoutOrientation() == VERTICAL) { if (fixedCellHeight != -1) { if (fixedCellWidth != -1) { int size = getModel().getSize(); retVal = new ... | public Dimension getPreferredScrollableViewportSize() { Dimension retVal = getPreferredSize(); if (getLayoutOrientation() == VERTICAL) { if (fixedCellHeight != -1) { if (fixedCellWidth != -1) { int size = getModel().getSize(); retVal = new ... | 18,957 |
public Dimension getPreferredScrollableViewportSize() { Dimension retVal = getPreferredSize(); if (getLayoutOrientation() == VERTICAL) { if (fixedCellHeight != -1) { if (fixedCellWidth != -1) { int size = getModel().getSize(); retVal = new ... | public Dimension getPreferredScrollableViewportSize() { Dimension retVal = getPreferredSize(); if (getLayoutOrientation() == VERTICAL) { if (fixedCellHeight != -1) { if (fixedCellWidth != -1) { int size = getModel().getSize(); retVal = new ... | 18,958 |
public Dimension getPreferredScrollableViewportSize() { Dimension retVal = getPreferredSize(); if (getLayoutOrientation() == VERTICAL) { if (fixedCellHeight != -1) { if (fixedCellWidth != -1) { int size = getModel().getSize(); retVal = new ... | public Dimension getPreferredScrollableViewportSize() { Dimension retVal = getPreferredSize(); if (getLayoutOrientation() == VERTICAL) { if (fixedCellHeight != -1) { if (fixedCellWidth != -1) { int size = getModel().getSize(); retVal = new ... | 18,959 |
public RowView(Element el) { super(el); } | RowView(Element el) { super(el); } | 18,960 |
public RowView(Element el) { super(el); } | public RowView(Element el) { super(el, X_AXIS); } | 18,961 |
public TableView(Element el) { super(el); } | public TableView(Element el) { super(el, Y_AXIS); totalColumnRequirements = new SizeRequirements(); tmpRect = new Rectangle(); } | 18,962 |
protected StyleSheet getStyleSheet() { Document d = getElement().getDocument(); if (d instanceof HTMLDocument) return ((HTMLDocument) d).getStyleSheet(); else return null; } | protected StyleSheet getStyleSheet() { Document d = getElement().getDocument(); if (d instanceof HTMLDocument) return ((HTMLDocument) d).getStyleSheet(); else return null; } | 18,963 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.