bugged
stringlengths
6
599k
fixed
stringlengths
6
40.8M
__index_level_0__
int64
0
3.24M
public SecureRandom() { Provider p[] = Security.getProviders(); //Format of Key: SecureRandom.algname String key; String classname = null; int i; Enumeration e; for (i = 0; i < p.length; i++) { e = p[i].propertyNames(); while (e.hasMoreElements()) { key = (String) e.nextElement(); if (key.startsWith("SECURERANDOM.")) { if ((classname = p[i].getProperty(key)) != null) { try { secureRandomSpi = (SecureRandomSpi) Class. forName(classname).newInstance(); provider = p[i]; return; } catch (Throwable ignore) { } } } } } // Nothing found. Fall back to SHA1PRNG secureRandomSpi = new gnu.java.security.provider.SHA1PRNG(); }
public SecureRandom() { Provider[] p = Security.getProviders(); //Format of Key: SecureRandom.algname String key; String classname = null; int i; Enumeration e; for (i = 0; i < p.length; i++) { e = p[i].propertyNames(); while (e.hasMoreElements()) { key = (String) e.nextElement(); if (key.startsWith("SECURERANDOM.")) { if ((classname = p[i].getProperty(key)) != null) { try { secureRandomSpi = (SecureRandomSpi) Class. forName(classname).newInstance(); provider = p[i]; return; } catch (Throwable ignore) { } } } } } // Nothing found. Fall back to SHA1PRNG secureRandomSpi = new gnu.java.security.provider.SHA1PRNG(); }
14,578
public SecureRandom() { Provider p[] = Security.getProviders(); //Format of Key: SecureRandom.algname String key; String classname = null; int i; Enumeration e; for (i = 0; i < p.length; i++) { e = p[i].propertyNames(); while (e.hasMoreElements()) { key = (String) e.nextElement(); if (key.startsWith("SECURERANDOM.")) { if ((classname = p[i].getProperty(key)) != null) { try { secureRandomSpi = (SecureRandomSpi) Class. forName(classname).newInstance(); provider = p[i]; return; } catch (Throwable ignore) { } } } } } // Nothing found. Fall back to SHA1PRNG secureRandomSpi = new gnu.java.security.provider.SHA1PRNG(); }
public SecureRandom() { Provider p[] = Security.getProviders(); //Format of Key: SecureRandom.algname String key; String classname = null; int i; Enumeration e; for (i = 0; i < p.length; i++) { e = p[i].propertyNames(); while (e.hasMoreElements()) { key = (String) e.nextElement(); if (key.startsWith("SECURERANDOM.")) { if ((classname = p[i].getProperty(key)) != null) { try { secureRandomSpi = (SecureRandomSpi) Class. forName(classname).newInstance(); provider = p[i]; return; } catch (Throwable ignore) { } } } } } // Nothing found. Fall back to SHA1PRNG secureRandomSpi = new gnu.java.security.provider.SHA1PRNG(); }
14,579
public static SecureRandom getInstance(String algorithm) throws NoSuchAlgorithmException { Provider p[] = Security.getProviders(); for (int i = 0; i < p.length; i++) { try { return getInstance(algorithm, p[i]); } catch (NoSuchAlgorithmException ignored) { } } // None found. throw new NoSuchAlgorithmException(algorithm); }
public static SecureRandom getInstance(String algorithm) throws NoSuchAlgorithmException { Provider p[] = Security.getProviders(); for (int i = 0; i < p.length; i++) { try { return getInstance(algorithm, p[i]); } catch (NoSuchAlgorithmException ignored) { } } // None found. throw new NoSuchAlgorithmException(algorithm); }
14,580
public static SecureRandom getInstance(String algorithm) throws NoSuchAlgorithmException { Provider p[] = Security.getProviders(); for (int i = 0; i < p.length; i++) { try { return getInstance(algorithm, p[i]); } catch (NoSuchAlgorithmException ignored) { } } // None found. throw new NoSuchAlgorithmException(algorithm); }
public static SecureRandom getInstance(String algorithm) throws NoSuchAlgorithmException { Provider[] p = Security.getProviders(); for (int i = 0; i < p.length; i++) { try { return getInstance(algorithm, p[i]); } catch (NoSuchAlgorithmException ignored) { } } // None found. throw new NoSuchAlgorithmException(algorithm); }
14,581
public static SecureRandom getInstance(String algorithm) throws NoSuchAlgorithmException { Provider p[] = Security.getProviders(); for (int i = 0; i < p.length; i++) { try { return getInstance(algorithm, p[i]); } catch (NoSuchAlgorithmException ignored) { } } // None found. throw new NoSuchAlgorithmException(algorithm); }
public static SecureRandom getInstance(String algorithm) throws NoSuchAlgorithmException { Provider p[] = Security.getProviders(); for (int i = 0; i < p.length; i++) { try { return getInstance(algorithm, p[i]); } catch (NoSuchAlgorithmException e) { } } // None found. throw new NoSuchAlgorithmException(algorithm); }
14,582
public static byte[] getSeed(int numBytes) { byte tmp[] = new byte[numBytes]; new Random().nextBytes(tmp); return tmp; //return secureRandomSpi.engineGenerateSeed( numBytes ); }
public static byte[] getSeed(int numBytes) { byte[] tmp = new byte[numBytes]; new Random().nextBytes(tmp); return tmp; //return secureRandomSpi.engineGenerateSeed( numBytes ); }
14,584
protected final int next(int numBits) { if (numBits == 0) return 0; byte tmp[] = new byte[numBits / 8 + (1 * (numBits % 8))]; secureRandomSpi.engineNextBytes(tmp); randomBytesUsed += tmp.length; counter++; int ret = 0; for (int i = 0; i < tmp.length; i++) ret |= (tmp[i] & 0xFF) << (8 * i); long mask = (1L << numBits) - 1; return (int) (ret & mask); }
protected final int next(int numBits) { if (numBits == 0) return 0; byte[] tmp = new byte[numBits / 8 + (1 * (numBits % 8))]; secureRandomSpi.engineNextBytes(tmp); randomBytesUsed += tmp.length; counter++; int ret = 0; for (int i = 0; i < tmp.length; i++) ret |= (tmp[i] & 0xFF) << (8 * i); long mask = (1L << numBits) - 1; return (int) (ret & mask); }
14,585
public NoSuchAlgorithmException(String msg) { super(msg); }
public NoSuchAlgorithmException() { super(msg); }
14,586
public NoSuchAlgorithmException(String msg) { super(msg); }
public NoSuchAlgorithmException(String msg) { }
14,587
public DropTargetDropEvent (DropTargetContext dtc, Point location, int dropAction, int actions) { this (dtc, location, dropAction, actions, false); }
public DropTargetDropEvent(DropTargetContext dtc, Point location, int dropAction, int actions) { this (dtc, location, dropAction, actions, false); }
14,588
public DropTargetDropEvent (DropTargetContext dtc, Point location, int dropAction, int actions) { this (dtc, location, dropAction, actions, false); }
public DropTargetDropEvent (DropTargetContext dtc, Point location, int dropAction, int actions) { this(dtc, location, dropAction, actions, false); }
14,589
public void acceptDrop (int dropAction) { context.acceptDrop (dropAction); }
public void acceptDrop(int dropAction) { context.acceptDrop (dropAction); }
14,590
public void acceptDrop (int dropAction) { context.acceptDrop (dropAction); }
public void acceptDrop (int dropAction) { context.acceptDrop(dropAction); }
14,591
public void dropComplete (boolean success) { // FIXME: implement this }
public void dropComplete(boolean success) throws NotImplementedException { // FIXME: implement this }
14,592
public DataFlavor[] getCurrentDataFlavors () { return context.getCurrentDataFlavors (); }
public DataFlavor[] getCurrentDataFlavors() { return context.getCurrentDataFlavors (); }
14,593
public DataFlavor[] getCurrentDataFlavors () { return context.getCurrentDataFlavors (); }
public DataFlavor[] getCurrentDataFlavors () { return context.getCurrentDataFlavors(); }
14,594
public List getCurrentDataFlavorsAsList () { return context.getCurrentDataFlavorsAsList (); }
public List getCurrentDataFlavorsAsList() { return context.getCurrentDataFlavorsAsList (); }
14,595
public List getCurrentDataFlavorsAsList () { return context.getCurrentDataFlavorsAsList (); }
public List getCurrentDataFlavorsAsList () { return context.getCurrentDataFlavorsAsList(); }
14,596
public int getDropAction () { return dropAction; }
public int getDropAction() { return dropAction; }
14,597
public Point getLocation () { return location; }
public Point getLocation() { return location; }
14,598
public int getSourceActions () { return actions; }
public int getSourceActions() { return actions; }
14,599
public Transferable getTransferable () { return context.getTransferable (); }
public Transferable getTransferable() { return context.getTransferable (); }
14,600
public boolean isDataFlavorSupported (DataFlavor flavor) { return context.isDataFlavorSupported (flavor); }
public boolean isDataFlavorSupported(DataFlavor flavor) { return context.isDataFlavorSupported (flavor); }
14,601
public boolean isDataFlavorSupported (DataFlavor flavor) { return context.isDataFlavorSupported (flavor); }
public boolean isDataFlavorSupported (DataFlavor flavor) { return context.isDataFlavorSupported(flavor); }
14,602
public void rejectDrop () { context.rejectDrop (); }
public void rejectDrop() { context.rejectDrop (); }
14,603
public void rejectDrop () { context.rejectDrop (); }
public void rejectDrop () { context.rejectDrop(); }
14,604
public void add(Permission permission) { if (isReadOnly()) { throw new SecurityException("readonly"); } if (!(permission instanceof PropertyPermission)) { throw new IllegalArgumentException(); } PropertyPermission pp = (PropertyPermission) permission; final String name = pp.getName(); if (name.equals("*")) { all_allowed = true; } final PropertyPermission old = (PropertyPermission) permissions.get(name); if (old != null) { if ((pp.actions | old.actions) == old.actions) { // Old implies pp. pp = old; } else if ((pp.actions | old.actions) != pp.actions) { // Here pp doesn't imply old; the only case left is both // actions. pp = new PropertyPermission(name, "read,write"); } } permissions.put(name, pp); }
public void add(Permission permission) { if (isReadOnly()) { throw new SecurityException("readonly"); } if (!(permission instanceof PropertyPermission)) { throw new IllegalArgumentException(); } PropertyPermission pp = (PropertyPermission) permission; final String name = pp.getName(); if (name.equals("*")) { all_allowed = true; } final PropertyPermission old = (PropertyPermission) permissions.get(name); if (old != null) { if ((pp.actions | old.actions) == old.actions) { // Old implies pp. pp = old; } else if ((pp.actions | old.actions) != pp.actions) { // Here pp doesn't imply old; the only case left is both // actions. pp = new PropertyPermission(name, "read,write"); } } permissions.put(name, pp); }
14,605
public void add(Permission permission) { if (isReadOnly()) { throw new SecurityException("readonly"); } if (!(permission instanceof PropertyPermission)) { throw new IllegalArgumentException(); } PropertyPermission pp = (PropertyPermission) permission; final String name = pp.getName(); if (name.equals("*")) { all_allowed = true; } final PropertyPermission old = (PropertyPermission) permissions.get(name); if (old != null) { if ((pp.actions | old.actions) == old.actions) { // Old implies pp. pp = old; } else if ((pp.actions | old.actions) != pp.actions) { // Here pp doesn't imply old; the only case left is both // actions. pp = new PropertyPermission(name, "read,write"); } } permissions.put(name, pp); }
public void add(Permission permission) { if (isReadOnly()) { throw new SecurityException("readonly"); } if (!(permission instanceof PropertyPermission)) { throw new IllegalArgumentException(); } PropertyPermission pp = (PropertyPermission) permission; final String name = pp.getName(); if (name.equals("*")) { all_allowed = true; } final PropertyPermission old = (PropertyPermission) permissions.get(name); if (old != null) { if ((pp.actions | old.actions) == old.actions) { // Old implies pp. pp = old; } else if ((pp.actions | old.actions) != pp.actions) { // Here pp doesn't imply old; the only case left is both // actions. pp = new PropertyPermission(name, "read,write"); } } permissions.put(name, pp); }
14,606
public void add(Permission permission) { if (isReadOnly()) { throw new SecurityException("readonly"); } if (!(permission instanceof PropertyPermission)) { throw new IllegalArgumentException(); } PropertyPermission pp = (PropertyPermission) permission; final String name = pp.getName(); if (name.equals("*")) { all_allowed = true; } final PropertyPermission old = (PropertyPermission) permissions.get(name); if (old != null) { if ((pp.actions | old.actions) == old.actions) { // Old implies pp. pp = old; } else if ((pp.actions | old.actions) != pp.actions) { // Here pp doesn't imply old; the only case left is both // actions. pp = new PropertyPermission(name, "read,write"); } } permissions.put(name, pp); }
public void add(Permission permission) { if (isReadOnly()) { throw new SecurityException("readonly"); } if (!(permission instanceof PropertyPermission)) { throw new IllegalArgumentException(); } PropertyPermission pp = (PropertyPermission) permission; final String name = pp.getName(); if (name.equals("*")) { all_allowed = true; } final PropertyPermission old = (PropertyPermission) permissions.get(name); if (old != null) { if ((pp.actions | old.actions) == old.actions) { // Old implies pp. pp = old; } else if ((pp.actions | old.actions) != pp.actions) { // Here pp doesn't imply old; the only case left is both // actions. pp = new PropertyPermission(name, "read,write"); } } permissions.put(name, pp); }
14,607
public void add(Permission permission) { if (isReadOnly()) { throw new SecurityException("readonly"); } if (!(permission instanceof PropertyPermission)) { throw new IllegalArgumentException(); } PropertyPermission pp = (PropertyPermission) permission; final String name = pp.getName(); if (name.equals("*")) { all_allowed = true; } final PropertyPermission old = (PropertyPermission) permissions.get(name); if (old != null) { if ((pp.actions | old.actions) == old.actions) { // Old implies pp. pp = old; } else if ((pp.actions | old.actions) != pp.actions) { // Here pp doesn't imply old; the only case left is both // actions. pp = new PropertyPermission(name, "read,write"); } } permissions.put(name, pp); }
public void add(Permission permission) { if (isReadOnly()) { throw new SecurityException("readonly"); if (!(permission instanceof PropertyPermission)) { throw new IllegalArgumentException(); PropertyPermission pp = (PropertyPermission) permission; final String name = pp.getName(); if (name.equals("*")) { all_allowed = true; final PropertyPermission old = (PropertyPermission) permissions.get(name); if (old != null) { if ((pp.actions | old.actions) == old.actions) { // Old implies pp. pp = old; else if ((pp.actions | old.actions) != pp.actions) { // Here pp doesn't imply old; the only case left is both // actions. pp = new PropertyPermission(name, "read,write"); permissions.put(name, pp); }
14,608
public Enumeration elements() { return permissions.elements(); }
public Enumeration elements() { return permissions.elements(); }
14,609
public boolean implies(Permission permission) { if (!(permission instanceof PropertyPermission)) { return false; } final PropertyPermission toImply = (PropertyPermission) permission; int actions = toImply.actions; if (all_allowed) { int all_actions = ((PropertyPermission) permissions.get("*")).actions; actions &= ~all_actions; if (actions == 0) { return true; } } String name = toImply.getName(); if (name.equals("*")) { return false; } int prefixLength = name.length(); if (name.endsWith("*")) { prefixLength -= 2; } while (true) { PropertyPermission forName = (PropertyPermission) permissions .get(name); if (forName != null) { actions &= ~forName.actions; if (actions == 0) { return true; } } prefixLength = name.lastIndexOf('.', prefixLength - 1); if (prefixLength < 0) { return false; } name = name.substring(0, prefixLength + 1) + '*'; } }
public boolean implies(Permission permission) { if (!(permission instanceof PropertyPermission)) { return false; } final PropertyPermission toImply = (PropertyPermission) permission; int actions = toImply.actions; if (all_allowed) { int all_actions = ((PropertyPermission) permissions.get("*")).actions; actions &= ~all_actions; if (actions == 0) { return true; } } String name = toImply.getName(); if (name.equals("*")) { return false; } int prefixLength = name.length(); if (name.endsWith("*")) { prefixLength -= 2; } while (true) { PropertyPermission forName = (PropertyPermission) permissions .get(name); if (forName != null) { actions &= ~forName.actions; if (actions == 0) { return true; } } prefixLength = name.lastIndexOf('.', prefixLength - 1); if (prefixLength < 0) { return false; } name = name.substring(0, prefixLength + 1) + '*'; } }
14,610
public boolean implies(Permission permission) { if (!(permission instanceof PropertyPermission)) { return false; } final PropertyPermission toImply = (PropertyPermission) permission; int actions = toImply.actions; if (all_allowed) { int all_actions = ((PropertyPermission) permissions.get("*")).actions; actions &= ~all_actions; if (actions == 0) { return true; } } String name = toImply.getName(); if (name.equals("*")) { return false; } int prefixLength = name.length(); if (name.endsWith("*")) { prefixLength -= 2; } while (true) { PropertyPermission forName = (PropertyPermission) permissions .get(name); if (forName != null) { actions &= ~forName.actions; if (actions == 0) { return true; } } prefixLength = name.lastIndexOf('.', prefixLength - 1); if (prefixLength < 0) { return false; } name = name.substring(0, prefixLength + 1) + '*'; } }
public boolean implies(Permission permission) { if (!(permission instanceof PropertyPermission)) { return false; } final PropertyPermission toImply = (PropertyPermission) permission; int actions = toImply.actions; if (all_allowed) { int all_actions = ((PropertyPermission) permissions.get("*")).actions; actions &= ~all_actions; if (actions == 0) { return true; } } String name = toImply.getName(); if (name.equals("*")) { return false; } int prefixLength = name.length(); if (name.endsWith("*")) { prefixLength -= 2; } while (true) { PropertyPermission forName = (PropertyPermission) permissions .get(name); if (forName != null) { actions &= ~forName.actions; if (actions == 0) { return true; } } prefixLength = name.lastIndexOf('.', prefixLength - 1); if (prefixLength < 0) { return false; } name = name.substring(0, prefixLength + 1) + '*'; } }
14,611
public boolean implies(Permission permission) { if (!(permission instanceof PropertyPermission)) { return false; } final PropertyPermission toImply = (PropertyPermission) permission; int actions = toImply.actions; if (all_allowed) { int all_actions = ((PropertyPermission) permissions.get("*")).actions; actions &= ~all_actions; if (actions == 0) { return true; } } String name = toImply.getName(); if (name.equals("*")) { return false; } int prefixLength = name.length(); if (name.endsWith("*")) { prefixLength -= 2; } while (true) { PropertyPermission forName = (PropertyPermission) permissions .get(name); if (forName != null) { actions &= ~forName.actions; if (actions == 0) { return true; } } prefixLength = name.lastIndexOf('.', prefixLength - 1); if (prefixLength < 0) { return false; } name = name.substring(0, prefixLength + 1) + '*'; } }
public boolean implies(Permission permission) { if (!(permission instanceof PropertyPermission)) { return false; } final PropertyPermission toImply = (PropertyPermission) permission; int actions = toImply.actions; if (all_allowed) { int all_actions = ((PropertyPermission) permissions.get("*")).actions; actions &= ~all_actions; if (actions == 0) return true; } String name = toImply.getName(); if (name.equals("*")) { return false; } int prefixLength = name.length(); if (name.endsWith("*")) { prefixLength -= 2; } while (true) { PropertyPermission forName = (PropertyPermission) permissions .get(name); if (forName != null) { actions &= ~forName.actions; if (actions == 0) return true; } prefixLength = name.lastIndexOf('.', prefixLength - 1); if (prefixLength < 0) { return false; } name = name.substring(0, prefixLength + 1) + '*'; } }
14,612
public boolean implies(Permission permission) { if (!(permission instanceof PropertyPermission)) { return false; } final PropertyPermission toImply = (PropertyPermission) permission; int actions = toImply.actions; if (all_allowed) { int all_actions = ((PropertyPermission) permissions.get("*")).actions; actions &= ~all_actions; if (actions == 0) { return true; } } String name = toImply.getName(); if (name.equals("*")) { return false; } int prefixLength = name.length(); if (name.endsWith("*")) { prefixLength -= 2; } while (true) { PropertyPermission forName = (PropertyPermission) permissions .get(name); if (forName != null) { actions &= ~forName.actions; if (actions == 0) { return true; } } prefixLength = name.lastIndexOf('.', prefixLength - 1); if (prefixLength < 0) { return false; } name = name.substring(0, prefixLength + 1) + '*'; } }
public boolean implies(Permission permission) { if (!(permission instanceof PropertyPermission)) { return false; } final PropertyPermission toImply = (PropertyPermission) permission; int actions = toImply.actions; if (all_allowed) { int all_actions = ((PropertyPermission) permissions.get("*")).actions; actions &= ~all_actions; if (actions == 0) { return true; } } String name = toImply.getName(); if (name.equals("*")) return false; int prefixLength = name.length(); if (name.endsWith("*")) { prefixLength -= 2; } while (true) { PropertyPermission forName = (PropertyPermission) permissions .get(name); if (forName != null) { actions &= ~forName.actions; if (actions == 0) { return true; } } prefixLength = name.lastIndexOf('.', prefixLength - 1); if (prefixLength < 0) { return false; } name = name.substring(0, prefixLength + 1) + '*'; } }
14,613
public boolean implies(Permission permission) { if (!(permission instanceof PropertyPermission)) { return false; } final PropertyPermission toImply = (PropertyPermission) permission; int actions = toImply.actions; if (all_allowed) { int all_actions = ((PropertyPermission) permissions.get("*")).actions; actions &= ~all_actions; if (actions == 0) { return true; } } String name = toImply.getName(); if (name.equals("*")) { return false; } int prefixLength = name.length(); if (name.endsWith("*")) { prefixLength -= 2; } while (true) { PropertyPermission forName = (PropertyPermission) permissions .get(name); if (forName != null) { actions &= ~forName.actions; if (actions == 0) { return true; } } prefixLength = name.lastIndexOf('.', prefixLength - 1); if (prefixLength < 0) { return false; } name = name.substring(0, prefixLength + 1) + '*'; } }
public boolean implies(Permission permission) { if (!(permission instanceof PropertyPermission)) { return false; } final PropertyPermission toImply = (PropertyPermission) permission; int actions = toImply.actions; if (all_allowed) { int all_actions = ((PropertyPermission) permissions.get("*")).actions; actions &= ~all_actions; if (actions == 0) { return true; } } String name = toImply.getName(); if (name.equals("*")) { return false; } int prefixLength = name.length(); if (name.endsWith("*")) prefixLength -= 2; } while (true) { PropertyPermission forName = (PropertyPermission) permissions .get(name); if (forName != null) { actions &= ~forName.actions; if (actions == 0) { return true; } } prefixLength = name.lastIndexOf('.', prefixLength - 1); if (prefixLength < 0) { return false; } name = name.substring(0, prefixLength + 1) + '*'; } }
14,614
public boolean implies(Permission permission) { if (!(permission instanceof PropertyPermission)) { return false; } final PropertyPermission toImply = (PropertyPermission) permission; int actions = toImply.actions; if (all_allowed) { int all_actions = ((PropertyPermission) permissions.get("*")).actions; actions &= ~all_actions; if (actions == 0) { return true; } } String name = toImply.getName(); if (name.equals("*")) { return false; } int prefixLength = name.length(); if (name.endsWith("*")) { prefixLength -= 2; } while (true) { PropertyPermission forName = (PropertyPermission) permissions .get(name); if (forName != null) { actions &= ~forName.actions; if (actions == 0) { return true; } } prefixLength = name.lastIndexOf('.', prefixLength - 1); if (prefixLength < 0) { return false; } name = name.substring(0, prefixLength + 1) + '*'; } }
public boolean implies(Permission permission) { if (!(permission instanceof PropertyPermission)) { return false; final PropertyPermission toImply = (PropertyPermission) permission; int actions = toImply.actions; if (all_allowed) { int all_actions = ((PropertyPermission) permissions.get("*")).actions; actions &= ~all_actions; if (actions == 0) { return true; String name = toImply.getName(); if (name.equals("*")) { return false; int prefixLength = name.length(); if (name.endsWith("*")) { prefixLength -= 2; while (true) { PropertyPermission forName = (PropertyPermission) permissions .get(name); if (forName != null) { actions &= ~forName.actions; if (actions == 0) { return true; prefixLength = name.lastIndexOf('.', prefixLength - 1); if (prefixLength < 0) { return false; name = name.substring(0, prefixLength + 1) + '*'; }
14,615
public boolean implies(Permission permission) { if (!(permission instanceof PropertyPermission)) { return false; } final PropertyPermission toImply = (PropertyPermission) permission; int actions = toImply.actions; if (all_allowed) { int all_actions = ((PropertyPermission) permissions.get("*")).actions; actions &= ~all_actions; if (actions == 0) { return true; } } String name = toImply.getName(); if (name.equals("*")) { return false; } int prefixLength = name.length(); if (name.endsWith("*")) { prefixLength -= 2; } while (true) { PropertyPermission forName = (PropertyPermission) permissions .get(name); if (forName != null) { actions &= ~forName.actions; if (actions == 0) { return true; } } prefixLength = name.lastIndexOf('.', prefixLength - 1); if (prefixLength < 0) { return false; } name = name.substring(0, prefixLength + 1) + '*'; } }
public boolean implies(Permission permission) { if (!(permission instanceof PropertyPermission)) { return false; } final PropertyPermission toImply = (PropertyPermission) permission; int actions = toImply.actions; if (all_allowed) { int all_actions = ((PropertyPermission) permissions.get("*")).actions; actions &= ~all_actions; if (actions == 0) { return true; } } String name = toImply.getName(); if (name.equals("*")) { return false; } int prefixLength = name.length(); if (name.endsWith("*")) { prefixLength -= 2; } while (true) { PropertyPermission forName = (PropertyPermission) permissions .get(name); if (forName != null) { actions &= ~forName.actions; if (actions == 0) { return true; } } prefixLength = name.lastIndexOf('.', prefixLength - 1); if (prefixLength < 0) { return false; } name = name.substring(0, prefixLength + 1) + '*'; } }
14,616
public boolean implies(Permission permission) { if (!(permission instanceof PropertyPermission)) { return false; } final PropertyPermission toImply = (PropertyPermission) permission; int actions = toImply.actions; if (all_allowed) { int all_actions = ((PropertyPermission) permissions.get("*")).actions; actions &= ~all_actions; if (actions == 0) { return true; } } String name = toImply.getName(); if (name.equals("*")) { return false; } int prefixLength = name.length(); if (name.endsWith("*")) { prefixLength -= 2; } while (true) { PropertyPermission forName = (PropertyPermission) permissions .get(name); if (forName != null) { actions &= ~forName.actions; if (actions == 0) { return true; } } prefixLength = name.lastIndexOf('.', prefixLength - 1); if (prefixLength < 0) { return false; } name = name.substring(0, prefixLength + 1) + '*'; } }
public boolean implies(Permission permission) { if (!(permission instanceof PropertyPermission)) { return false; } final PropertyPermission toImply = (PropertyPermission) permission; int actions = toImply.actions; if (all_allowed) { int all_actions = ((PropertyPermission) permissions.get("*")).actions; actions &= ~all_actions; if (actions == 0) return true; } String name = toImply.getName(); if (name.equals("*")) { return false; } int prefixLength = name.length(); if (name.endsWith("*")) { prefixLength -= 2; } while (true) { PropertyPermission forName = (PropertyPermission) permissions .get(name); if (forName != null) { actions &= ~forName.actions; if (actions == 0) return true; } prefixLength = name.lastIndexOf('.', prefixLength - 1); if (prefixLength < 0) { return false; } name = name.substring(0, prefixLength + 1) + '*'; } }
14,617
public boolean implies(Permission permission) { if (!(permission instanceof PropertyPermission)) { return false; } final PropertyPermission toImply = (PropertyPermission) permission; int actions = toImply.actions; if (all_allowed) { int all_actions = ((PropertyPermission) permissions.get("*")).actions; actions &= ~all_actions; if (actions == 0) { return true; } } String name = toImply.getName(); if (name.equals("*")) { return false; } int prefixLength = name.length(); if (name.endsWith("*")) { prefixLength -= 2; } while (true) { PropertyPermission forName = (PropertyPermission) permissions .get(name); if (forName != null) { actions &= ~forName.actions; if (actions == 0) { return true; } } prefixLength = name.lastIndexOf('.', prefixLength - 1); if (prefixLength < 0) { return false; } name = name.substring(0, prefixLength + 1) + '*'; } }
public boolean implies(Permission permission) { if (!(permission instanceof PropertyPermission)) { return false; } final PropertyPermission toImply = (PropertyPermission) permission; int actions = toImply.actions; if (all_allowed) { int all_actions = ((PropertyPermission) permissions.get("*")).actions; actions &= ~all_actions; if (actions == 0) { return true; } } String name = toImply.getName(); if (name.equals("*")) { return false; } int prefixLength = name.length(); if (name.endsWith("*")) { prefixLength -= 2; } while (true) { PropertyPermission forName = (PropertyPermission) permissions .get(name); if (forName != null) { actions &= ~forName.actions; if (actions == 0) { return true; } } prefixLength = name.lastIndexOf('.', prefixLength - 1); if (prefixLength < 0) return false; name = name.substring(0, prefixLength + 1) + '*'; } }
14,618
public SecurityException(String s) { super(s); }
public SecurityException(String s) { super(s); }
14,619
public PropertyPermission(String name, String actions) { super(name); if (actions == null) throw new IllegalArgumentException(); setActions(actions.toLowerCase()); }
public PropertyPermission(String name, String actions) { super(name); if (actions == null) throw new IllegalArgumentException(); setActions(actions); }
14,620
public ButtonModel getModel() { return model; }
public ButtonModel getModel() { return model; }
14,621
public boolean isRolloverEnabled() { return getModel().isRollover(); }
public boolean isRolloverEnabled() { return getModel().isRollover(); }
14,622
private ScrollingButton createDecreaseButton() { if (decrButton == null) decrButton = new ScrollingButton(SwingConstants.SOUTH); if (tabPane.getTabPlacement() == SwingConstants.TOP || tabPane.getTabPlacement() == SwingConstants.BOTTOM) decrButton.setDirection(SwingConstants.WEST); else decrButton.setDirection(SwingConstants.NORTH); return decrButton; }
ScrollingButton createDecreaseButton() { if (decrButton == null) decrButton = new ScrollingButton(SwingConstants.SOUTH); if (tabPane.getTabPlacement() == SwingConstants.TOP || tabPane.getTabPlacement() == SwingConstants.BOTTOM) decrButton.setDirection(SwingConstants.WEST); else decrButton.setDirection(SwingConstants.NORTH); return decrButton; }
14,623
private ScrollingButton createIncreaseButton() { if (incrButton == null) incrButton = new ScrollingButton(SwingConstants.NORTH); if (tabPane.getTabPlacement() == SwingConstants.TOP || tabPane.getTabPlacement() == SwingConstants.BOTTOM) incrButton.setDirection(SwingConstants.EAST); else incrButton.setDirection(SwingConstants.SOUTH); return incrButton; }
ScrollingButton createIncreaseButton() { if (incrButton == null) incrButton = new ScrollingButton(SwingConstants.NORTH); if (tabPane.getTabPlacement() == SwingConstants.TOP || tabPane.getTabPlacement() == SwingConstants.BOTTOM) incrButton.setDirection(SwingConstants.EAST); else incrButton.setDirection(SwingConstants.SOUTH); return incrButton; }
14,624
private Point findPointForIndex(int index) { int tabPlacement = tabPane.getTabPlacement(); int selectedIndex = tabPane.getSelectedIndex(); Insets insets = getSelectedTabPadInsets(tabPlacement); int w = 0; int h = 0; if (tabPlacement == TOP || tabPlacement == BOTTOM) { if (index > 0) { w += rects[index - 1].x + rects[index - 1].width; if (index > selectedIndex) w -= insets.left + insets.right; } } else { if (index > 0) { h += rects[index - 1].y + rects[index - 1].height; if (index > selectedIndex) h -= insets.top + insets.bottom; } } Point p = new Point(w, h); return p; }
Point findPointForIndex(int index) { int tabPlacement = tabPane.getTabPlacement(); int selectedIndex = tabPane.getSelectedIndex(); Insets insets = getSelectedTabPadInsets(tabPlacement); int w = 0; int h = 0; if (tabPlacement == TOP || tabPlacement == BOTTOM) { if (index > 0) { w += rects[index - 1].x + rects[index - 1].width; if (index > selectedIndex) w -= insets.left + insets.right; } } else { if (index > 0) { h += rects[index - 1].y + rects[index - 1].height; if (index > selectedIndex) h -= insets.top + insets.bottom; } } Point p = new Point(w, h); return p; }
14,625
public int getTabCount() { return tabs.size(); }
public int getTabCount() { return tabs.size(); }
14,626
public void setEnabled(boolean b) { super.setEnabled(b); getModel().setEnabled(b); repaint(); }
public void setEnabled(boolean b) { super.setEnabled(b); getModel().setEnabled(b); repaint(); }
14,627
public void updateUI() { setUI((PanelUI) UIManager.getUI(this)); }
public void updateUI() { setUI((PanelUI) UIManager.getUI(this)); }
14,628
public void setUI(PanelUI ui) { super.setUI(ui); }
public void setUI(PanelUI ui) { super.setUI(ui); }
14,629
public Component getComponentAt(int i) { Tab t = (Tab) tabs.elementAt(i); return t.tab; }
public Component getComponentAt(int i) { Tab t = (Tab) tabs.elementAt(i); return t.tab; }
14,630
public void show() { // We must set visible before showing the peer. Otherwise the // peer could post paint events before visible is true, in which // case lightweight components are not initially painted -- // Container.paint first calls isShowing () before painting itself // and its children. if(!isVisible()) { this.visible = true; // Avoid NullPointerExceptions by creating a local reference. ComponentPeer currentPeer=peer; if (currentPeer != null) currentPeer.setVisible(true); // The JDK repaints the component before invalidating the parent. // So do we. if (isShowing()) repaint(); // Invalidate the parent if we have one. The component itself must // not be invalidated. We also avoid NullPointerException with // a local reference here. Container currentParent = parent; if (currentParent != null) currentParent.invalidate(); ComponentEvent ce = new ComponentEvent(this,ComponentEvent.COMPONENT_SHOWN); getToolkit().getSystemEventQueue().postEvent(ce); } }
public void show() { // We must set visible before showing the peer. Otherwise the // peer could post paint events before visible is true, in which // case lightweight components are not initially painted -- // Container.paint first calls isShowing () before painting itself // and its children. if(!isVisible()) { this.visible = true; // Avoid NullPointerExceptions by creating a local reference. ComponentPeer currentPeer=peer; if (currentPeer != null) currentPeer.show(); // The JDK repaints the component before invalidating the parent. // So do we. if (isShowing()) repaint(); // Invalidate the parent if we have one. The component itself must // not be invalidated. We also avoid NullPointerException with // a local reference here. Container currentParent = parent; if (currentParent != null) currentParent.invalidate(); ComponentEvent ce = new ComponentEvent(this,ComponentEvent.COMPONENT_SHOWN); getToolkit().getSystemEventQueue().postEvent(ce); } }
14,631
public int getInt(Object key) { Object o = get(key); return o instanceof Integer ? ((Integer) o).intValue() : 0; }
int getInt(Object key) { Object o = get(key); return o instanceof Integer ? ((Integer) o).intValue() : 0; }
14,632
static public String layoutCompoundLabel(JComponent c, FontMetrics fm, String text, Icon i, int vert_a, int hor_i, int vert_text_pos, int hor_text_pos, Rectangle vr, Rectangle ir, Rectangle tr, int gap) { // view rect 'vr' already ok, // we need to compute ir (icon rect) and tr (text-rect) int next_x = 0;//vr.x; int next_y = 0;//vr.y; ir.height = ir.width = ir.y = ir.x = 0; if (i != null) { ir.x = vr.x; ir.y = vr.y; ir.width = i.getIconWidth(); ir.height = i.getIconWidth(); next_x += gap + i.getIconWidth(); next_y += gap + i.getIconHeight(); } tr.x = next_x; tr.y = vr.y + (vr.height/2); tr.width = fm.stringWidth(text); tr.height = fm.getHeight() + fm.getAscent()/2; return text; }
static public String layoutCompoundLabel(JComponent c, FontMetrics fm, String text, Icon i, int vert_a, int hor_i, int vert_text_pos, int hor_text_pos, Rectangle vr, Rectangle ir, Rectangle tr, int gap) { // view rect 'vr' already ok, // we need to compute ir (icon rect) and tr (text-rect) int next_x = 0;//vr.x; int next_y = 0;//vr.y; ir.height = ir.width = ir.y = ir.x = 0; if (i != null) { ir.x = vr.x; ir.y = vr.y; ir.width = i.getIconWidth(); ir.height = i.getIconWidth(); next_x += gap + i.getIconWidth(); next_y += gap + i.getIconHeight(); } tr.x = next_x; tr.y = vr.y + (vr.height/2); tr.width = fm.stringWidth(text); tr.height = fm.getHeight() + fm.getAscent()/2; return text; }
14,633
static public String layoutCompoundLabel(JComponent c, FontMetrics fm, String text, Icon i, int vert_a, int hor_i, int vert_text_pos, int hor_text_pos, Rectangle vr, Rectangle ir, Rectangle tr, int gap) { // view rect 'vr' already ok, // we need to compute ir (icon rect) and tr (text-rect) int next_x = 0;//vr.x; int next_y = 0;//vr.y; ir.height = ir.width = ir.y = ir.x = 0; if (i != null) { ir.x = vr.x; ir.y = vr.y; ir.width = i.getIconWidth(); ir.height = i.getIconWidth(); next_x += gap + i.getIconWidth(); next_y += gap + i.getIconHeight(); } tr.x = next_x; tr.y = vr.y + (vr.height/2); tr.width = fm.stringWidth(text); tr.height = fm.getHeight() + fm.getAscent()/2; return text; }
static public String layoutCompoundLabel(JComponent c, FontMetrics fm, String text, Icon i, int vert_a, int hor_i, int vert_text_pos, int hor_text_pos, Rectangle vr, Rectangle ir, Rectangle tr, int gap) { // view rect 'vr' already ok, // we need to compute ir (icon rect) and tr (text-rect) int next_x = 0;//vr.x; int next_y = 0;//vr.y; ir.height = ir.width = ir.y = ir.x = 0; if (i != null) { ir.x = vr.x; ir.y = vr.y; ir.width = i.getIconWidth(); ir.height = i.getIconWidth(); next_x += gap + i.getIconWidth(); next_y += gap + i.getIconHeight(); } tr.x = next_x; tr.y = vr.y + (vr.height/2); tr.width = fm.stringWidth(text); tr.height = fm.getHeight() + fm.getAscent()/2; return text; }
14,634
static public String layoutCompoundLabel(JComponent c, FontMetrics fm, String text, Icon i, int vert_a, int hor_i, int vert_text_pos, int hor_text_pos, Rectangle vr, Rectangle ir, Rectangle tr, int gap) { // view rect 'vr' already ok, // we need to compute ir (icon rect) and tr (text-rect) int next_x = 0;//vr.x; int next_y = 0;//vr.y; ir.height = ir.width = ir.y = ir.x = 0; if (i != null) { ir.x = vr.x; ir.y = vr.y; ir.width = i.getIconWidth(); ir.height = i.getIconWidth(); next_x += gap + i.getIconWidth(); next_y += gap + i.getIconHeight(); } tr.x = next_x; tr.y = vr.y + (vr.height/2); tr.width = fm.stringWidth(text); tr.height = fm.getHeight() + fm.getAscent()/2; return text; }
static public String layoutCompoundLabel(JComponent c, FontMetrics fm, String text, Icon i, int vert_a, int hor_i, int vert_text_pos, int hor_text_pos, Rectangle vr, Rectangle ir, Rectangle tr, int gap) { // view rect 'vr' already ok, // we need to compute ir (icon rect) and tr (text-rect) int next_x = 0;//vr.x; int next_y = 0;//vr.y; ir.height = ir.width = ir.y = ir.x = 0; if (i != null) { ir.x = vr.x; ir.y = vr.y; ir.width = i.getIconWidth(); ir.height = i.getIconWidth(); next_x += gap + i.getIconWidth(); next_y += gap + i.getIconHeight(); } tr.x = next_x; tr.y = vr.y + (vr.height/2); tr.width = fm.stringWidth(text); tr.height = fm.getHeight() + fm.getAscent()/2; return text; }
14,635
static public String layoutCompoundLabel(JComponent c, FontMetrics fm, String text, Icon i, int vert_a, int hor_i, int vert_text_pos, int hor_text_pos, Rectangle vr, Rectangle ir, Rectangle tr, int gap) { // view rect 'vr' already ok, // we need to compute ir (icon rect) and tr (text-rect) int next_x = 0;//vr.x; int next_y = 0;//vr.y; ir.height = ir.width = ir.y = ir.x = 0; if (i != null) { ir.x = vr.x; ir.y = vr.y; ir.width = i.getIconWidth(); ir.height = i.getIconWidth(); next_x += gap + i.getIconWidth(); next_y += gap + i.getIconHeight(); } tr.x = next_x; tr.y = vr.y + (vr.height/2); tr.width = fm.stringWidth(text); tr.height = fm.getHeight() + fm.getAscent()/2; return text; }
static public String layoutCompoundLabel(JComponent c, FontMetrics fm, String text, Icon i, int vert_a, int hor_i, int vert_text_pos, int hor_text_pos, Rectangle vr, Rectangle ir, Rectangle tr, int gap) { // view rect 'vr' already ok, // we need to compute ir (icon rect) and tr (text-rect) int next_x = 0;//vr.x; int next_y = 0;//vr.y; ir.height = ir.width = ir.y = ir.x = 0; if (i != null) { ir.x = vr.x; ir.y = vr.y; ir.width = i.getIconWidth(); ir.height = i.getIconWidth(); next_x += gap + i.getIconWidth(); next_y += gap + i.getIconHeight(); } tr.x = next_x; tr.y = vr.y + (vr.height/2); tr.width = fm.stringWidth(text); tr.height = fm.getHeight() + fm.getAscent()/2; return text; }
14,636
public StringTokenizer(String str, String delim) { this(str, delim, false); }
public StringTokenizer(String str) { this(str, delim, false); }
14,637
public StringTokenizer(String str, String delim) { this(str, delim, false); }
public StringTokenizer(String str, String delim) { this(str, delim, false); }
14,638
public String nextToken() throws NoSuchElementException { if (pos < len && delim.indexOf(str.charAt(pos)) >= 0) { if (retDelims) return str.substring(pos, ++pos); while (++pos < len && delim.indexOf(str.charAt(pos)) >= 0); } if (pos < len) { int start = pos; while (++pos < len && delim.indexOf(str.charAt(pos)) < 0); return str.substring(start, pos); } throw new NoSuchElementException(); }
public String nextToken(String delim) throws NoSuchElementException { if (pos < len && delim.indexOf(str.charAt(pos)) >= 0) { if (retDelims) return str.substring(pos, ++pos); while (++pos < len && delim.indexOf(str.charAt(pos)) >= 0); } if (pos < len) { int start = pos; while (++pos < len && delim.indexOf(str.charAt(pos)) < 0); return str.substring(start, pos); } throw new NoSuchElementException(); }
14,639
public String nextToken() throws NoSuchElementException { if (pos < len && delim.indexOf(str.charAt(pos)) >= 0) { if (retDelims) return str.substring(pos, ++pos); while (++pos < len && delim.indexOf(str.charAt(pos)) >= 0); } if (pos < len) { int start = pos; while (++pos < len && delim.indexOf(str.charAt(pos)) < 0); return str.substring(start, pos); } throw new NoSuchElementException(); }
public String nextToken() throws NoSuchElementException { if (pos < len && delim.indexOf(str.charAt(pos)) >= 0) { if (retDelims) return str.substring(pos, ++pos); while (++pos < len && delim.indexOf(str.charAt(pos)) >= 0); } if (pos < len) { int start = pos; while (++pos < len && delim.indexOf(str.charAt(pos)) < 0); return str.substring(start, pos); } throw new NoSuchElementException(); }
14,640
protected IIOParam() { // Do nothing here. }
protectedIIOParam(){//Donothinghere.}
14,641
public boolean activateController() { if (controller == null) return false; return controller.activate(this); }
else return defaultController.activate (this); } else else return defaultController.activate (this); } else publicelse return defaultController.activate (this); } else booleanelse return defaultController.activate (this); } else activateController()else return defaultController.activate (this); } else else return defaultController.activate (this); } else {else return defaultController.activate (this); } else else return defaultController.activate (this); } else else return defaultController.activate (this); } else else return defaultController.activate (this); } else ifelse return defaultController.activate (this); } else (controllerelse return defaultController.activate (this); } else ==else return defaultController.activate (this); } else null)else return defaultController.activate (this); } else else return defaultController.activate (this); } else else return defaultController.activate (this); } else else return defaultController.activate (this); } else else return defaultController.activate (this); } else else return defaultController.activate (this); } else returnelse return defaultController.activate (this); } else false;else return defaultController.activate (this); } else else return defaultController.activate (this); } else else return defaultController.activate (this); } else else return defaultController.activate (this); } else else return defaultController.activate (this); } else else return defaultController.activate (this); } else else return defaultController.activate (this); } else else return defaultController.activate (this); } else returnelse return defaultController.activate (this); } else controller.activate(this);else return defaultController.activate (this); } else else return defaultController.activate (this); } else }
14,642
public IIOParamController getController() { return controller; }
public IIOParamController getController() { return controller == null ? (no_controller ? null : defaultController) : controller; }
14,643
public int[] getSourceBands() { return sourceBands; }
public int[] getSourceBands() { if (sourceBands == null) return null; int[] sourceBandsCopy = new int[sourceBands.length]; System.arraycopy (sourceBands, 0, sourceBandsCopy, 0, sourceBands.length); return sourceBandsCopy; }
14,644
public void setSourceBands(int[] sourceBands) { this.sourceBands = sourceBands; }
public void setSourceBands(int[] sourceBands) { int[] sourceBandsCopy = new int[sourceBands.length]; System.arraycopy (sourceBands, 0, sourceBandsCopy, 0, sourceBands.length); this.sourceBands = sourceBandsCopy; }
14,646
public void setSourceRegion(Rectangle sourceRegion) { if (sourceRegion != null && (sourceRegion.x < 0 || sourceRegion.y < 0 || sourceRegion.width <= 0 || sourceRegion.height <= 0)) throw new IllegalArgumentException("illegal source region"); // FIXME: Throw IllegalStateException. this.sourceRegion = sourceRegion; }
if (sourceRegion != null) { int num_rows = (sourceRegion.height - subsamplingYOffset + sourceYSubsampling - 1) / sourceYSubsampling; int num_columns = (sourceRegion.width - subsamplingXOffset + sourceXSubsampling - 1) / sourceXSubsampling; if (num_rows <= 0 || num_columns <= 0) throw new IllegalStateException("zero pixels in source region"); } if (sourceRegion != null) { int num_rows = (sourceRegion.height - subsamplingYOffset + sourceYSubsampling - 1) / sourceYSubsampling; int num_columns = (sourceRegion.width - subsamplingXOffset + sourceXSubsampling - 1) / sourceXSubsampling; if (num_rows <= 0 || num_columns <= 0) throw new IllegalStateException("zero pixels in source region"); } publicif (sourceRegion != null) { int num_rows = (sourceRegion.height - subsamplingYOffset + sourceYSubsampling - 1) / sourceYSubsampling; int num_columns = (sourceRegion.width - subsamplingXOffset + sourceXSubsampling - 1) / sourceXSubsampling; if (num_rows <= 0 || num_columns <= 0) throw new IllegalStateException("zero pixels in source region"); } voidif (sourceRegion != null) { int num_rows = (sourceRegion.height - subsamplingYOffset + sourceYSubsampling - 1) / sourceYSubsampling; int num_columns = (sourceRegion.width - subsamplingXOffset + sourceXSubsampling - 1) / sourceXSubsampling; if (num_rows <= 0 || num_columns <= 0) throw new IllegalStateException("zero pixels in source region"); } setSourceRegion(Rectangleif (sourceRegion != null) { int num_rows = (sourceRegion.height - subsamplingYOffset + sourceYSubsampling - 1) / sourceYSubsampling; int num_columns = (sourceRegion.width - subsamplingXOffset + sourceXSubsampling - 1) / sourceXSubsampling; if (num_rows <= 0 || num_columns <= 0) throw new IllegalStateException("zero pixels in source region"); } sourceRegion)if (sourceRegion != null) { int num_rows = (sourceRegion.height - subsamplingYOffset + sourceYSubsampling - 1) / sourceYSubsampling; int num_columns = (sourceRegion.width - subsamplingXOffset + sourceXSubsampling - 1) / sourceXSubsampling; if (num_rows <= 0 || num_columns <= 0) throw new IllegalStateException("zero pixels in source region"); } if (sourceRegion != null) { int num_rows = (sourceRegion.height - subsamplingYOffset + sourceYSubsampling - 1) / sourceYSubsampling; int num_columns = (sourceRegion.width - subsamplingXOffset + sourceXSubsampling - 1) / sourceXSubsampling; if (num_rows <= 0 || num_columns <= 0) throw new IllegalStateException("zero pixels in source region"); } {if (sourceRegion != null) { int num_rows = (sourceRegion.height - subsamplingYOffset + sourceYSubsampling - 1) / sourceYSubsampling; int num_columns = (sourceRegion.width - subsamplingXOffset + sourceXSubsampling - 1) / sourceXSubsampling; if (num_rows <= 0 || num_columns <= 0) throw new IllegalStateException("zero pixels in source region"); } if (sourceRegion != null) { int num_rows = (sourceRegion.height - subsamplingYOffset + sourceYSubsampling - 1) / sourceYSubsampling; int num_columns = (sourceRegion.width - subsamplingXOffset + sourceXSubsampling - 1) / sourceXSubsampling; if (num_rows <= 0 || num_columns <= 0) throw new IllegalStateException("zero pixels in source region"); } if (sourceRegion != null) { int num_rows = (sourceRegion.height - subsamplingYOffset + sourceYSubsampling - 1) / sourceYSubsampling; int num_columns = (sourceRegion.width - subsamplingXOffset + sourceXSubsampling - 1) / sourceXSubsampling; if (num_rows <= 0 || num_columns <= 0) throw new IllegalStateException("zero pixels in source region"); } if (sourceRegion != null) { int num_rows = (sourceRegion.height - subsamplingYOffset + sourceYSubsampling - 1) / sourceYSubsampling; int num_columns = (sourceRegion.width - subsamplingXOffset + sourceXSubsampling - 1) / sourceXSubsampling; if (num_rows <= 0 || num_columns <= 0) throw new IllegalStateException("zero pixels in source region"); } ifif (sourceRegion != null) { int num_rows = (sourceRegion.height - subsamplingYOffset + sourceYSubsampling - 1) / sourceYSubsampling; int num_columns = (sourceRegion.width - subsamplingXOffset + sourceXSubsampling - 1) / sourceXSubsampling; if (num_rows <= 0 || num_columns <= 0) throw new IllegalStateException("zero pixels in source region"); } (sourceRegionif (sourceRegion != null) { int num_rows = (sourceRegion.height - subsamplingYOffset + sourceYSubsampling - 1) / sourceYSubsampling; int num_columns = (sourceRegion.width - subsamplingXOffset + sourceXSubsampling - 1) / sourceXSubsampling; if (num_rows <= 0 || num_columns <= 0) throw new IllegalStateException("zero pixels in source region"); } !=if (sourceRegion != null) { int num_rows = (sourceRegion.height - subsamplingYOffset + sourceYSubsampling - 1) / sourceYSubsampling; int num_columns = (sourceRegion.width - subsamplingXOffset + sourceXSubsampling - 1) / sourceXSubsampling; if (num_rows <= 0 || num_columns <= 0) throw new IllegalStateException("zero pixels in source region"); } null &&if (sourceRegion != null) { int num_rows = (sourceRegion.height - subsamplingYOffset + sourceYSubsampling - 1) / sourceYSubsampling; int num_columns = (sourceRegion.width - subsamplingXOffset + sourceXSubsampling - 1) / sourceXSubsampling; if (num_rows <= 0 || num_columns <= 0) throw new IllegalStateException("zero pixels in source region"); } (sourceRegion.xif (sourceRegion != null) { int num_rows = (sourceRegion.height - subsamplingYOffset + sourceYSubsampling - 1) / sourceYSubsampling; int num_columns = (sourceRegion.width - subsamplingXOffset + sourceXSubsampling - 1) / sourceXSubsampling; if (num_rows <= 0 || num_columns <= 0) throw new IllegalStateException("zero pixels in source region"); } <if (sourceRegion != null) { int num_rows = (sourceRegion.height - subsamplingYOffset + sourceYSubsampling - 1) / sourceYSubsampling; int num_columns = (sourceRegion.width - subsamplingXOffset + sourceXSubsampling - 1) / sourceXSubsampling; if (num_rows <= 0 || num_columns <= 0) throw new IllegalStateException("zero pixels in source region"); } 0 if (sourceRegion != null) { int num_rows = (sourceRegion.height - subsamplingYOffset + sourceYSubsampling - 1) / sourceYSubsampling; int num_columns = (sourceRegion.width - subsamplingXOffset + sourceXSubsampling - 1) / sourceXSubsampling; if (num_rows <= 0 || num_columns <= 0) throw new IllegalStateException("zero pixels in source region"); } if (sourceRegion != null) { int num_rows = (sourceRegion.height - subsamplingYOffset + sourceYSubsampling - 1) / sourceYSubsampling; int num_columns = (sourceRegion.width - subsamplingXOffset + sourceXSubsampling - 1) / sourceXSubsampling; if (num_rows <= 0 || num_columns <= 0) throw new IllegalStateException("zero pixels in source region"); } if (sourceRegion != null) { int num_rows = (sourceRegion.height - subsamplingYOffset + sourceYSubsampling - 1) / sourceYSubsampling; int num_columns = (sourceRegion.width - subsamplingXOffset + sourceXSubsampling - 1) / sourceXSubsampling; if (num_rows <= 0 || num_columns <= 0) throw new IllegalStateException("zero pixels in source region"); } if (sourceRegion != null) { int num_rows = (sourceRegion.height - subsamplingYOffset + sourceYSubsampling - 1) / sourceYSubsampling; int num_columns = (sourceRegion.width - subsamplingXOffset + sourceXSubsampling - 1) / sourceXSubsampling; if (num_rows <= 0 || num_columns <= 0) throw new IllegalStateException("zero pixels in source region"); } ||if (sourceRegion != null) { int num_rows = (sourceRegion.height - subsamplingYOffset + sourceYSubsampling - 1) / sourceYSubsampling; int num_columns = (sourceRegion.width - subsamplingXOffset + sourceXSubsampling - 1) / sourceXSubsampling; if (num_rows <= 0 || num_columns <= 0) throw new IllegalStateException("zero pixels in source region"); } sourceRegion.yif (sourceRegion != null) { int num_rows = (sourceRegion.height - subsamplingYOffset + sourceYSubsampling - 1) / sourceYSubsampling; int num_columns = (sourceRegion.width - subsamplingXOffset + sourceXSubsampling - 1) / sourceXSubsampling; if (num_rows <= 0 || num_columns <= 0) throw new IllegalStateException("zero pixels in source region"); } <if (sourceRegion != null) { int num_rows = (sourceRegion.height - subsamplingYOffset + sourceYSubsampling - 1) / sourceYSubsampling; int num_columns = (sourceRegion.width - subsamplingXOffset + sourceXSubsampling - 1) / sourceXSubsampling; if (num_rows <= 0 || num_columns <= 0) throw new IllegalStateException("zero pixels in source region"); } 0 if (sourceRegion != null) { int num_rows = (sourceRegion.height - subsamplingYOffset + sourceYSubsampling - 1) / sourceYSubsampling; int num_columns = (sourceRegion.width - subsamplingXOffset + sourceXSubsampling - 1) / sourceXSubsampling; if (num_rows <= 0 || num_columns <= 0) throw new IllegalStateException("zero pixels in source region"); } if (sourceRegion != null) { int num_rows = (sourceRegion.height - subsamplingYOffset + sourceYSubsampling - 1) / sourceYSubsampling; int num_columns = (sourceRegion.width - subsamplingXOffset + sourceXSubsampling - 1) / sourceXSubsampling; if (num_rows <= 0 || num_columns <= 0) throw new IllegalStateException("zero pixels in source region"); } if (sourceRegion != null) { int num_rows = (sourceRegion.height - subsamplingYOffset + sourceYSubsampling - 1) / sourceYSubsampling; int num_columns = (sourceRegion.width - subsamplingXOffset + sourceXSubsampling - 1) / sourceXSubsampling; if (num_rows <= 0 || num_columns <= 0) throw new IllegalStateException("zero pixels in source region"); } if (sourceRegion != null) { int num_rows = (sourceRegion.height - subsamplingYOffset + sourceYSubsampling - 1) / sourceYSubsampling; int num_columns = (sourceRegion.width - subsamplingXOffset + sourceXSubsampling - 1) / sourceXSubsampling; if (num_rows <= 0 || num_columns <= 0) throw new IllegalStateException("zero pixels in source region"); } ||if (sourceRegion != null) { int num_rows = (sourceRegion.height - subsamplingYOffset + sourceYSubsampling - 1) / sourceYSubsampling; int num_columns = (sourceRegion.width - subsamplingXOffset + sourceXSubsampling - 1) / sourceXSubsampling; if (num_rows <= 0 || num_columns <= 0) throw new IllegalStateException("zero pixels in source region"); } sourceRegion.widthif (sourceRegion != null) { int num_rows = (sourceRegion.height - subsamplingYOffset + sourceYSubsampling - 1) / sourceYSubsampling; int num_columns = (sourceRegion.width - subsamplingXOffset + sourceXSubsampling - 1) / sourceXSubsampling; if (num_rows <= 0 || num_columns <= 0) throw new IllegalStateException("zero pixels in source region"); } <=if (sourceRegion != null) { int num_rows = (sourceRegion.height - subsamplingYOffset + sourceYSubsampling - 1) / sourceYSubsampling; int num_columns = (sourceRegion.width - subsamplingXOffset + sourceXSubsampling - 1) / sourceXSubsampling; if (num_rows <= 0 || num_columns <= 0) throw new IllegalStateException("zero pixels in source region"); } 0 if (sourceRegion != null) { int num_rows = (sourceRegion.height - subsamplingYOffset + sourceYSubsampling - 1) / sourceYSubsampling; int num_columns = (sourceRegion.width - subsamplingXOffset + sourceXSubsampling - 1) / sourceXSubsampling; if (num_rows <= 0 || num_columns <= 0) throw new IllegalStateException("zero pixels in source region"); } if (sourceRegion != null) { int num_rows = (sourceRegion.height - subsamplingYOffset + sourceYSubsampling - 1) / sourceYSubsampling; int num_columns = (sourceRegion.width - subsamplingXOffset + sourceXSubsampling - 1) / sourceXSubsampling; if (num_rows <= 0 || num_columns <= 0) throw new IllegalStateException("zero pixels in source region"); } if (sourceRegion != null) { int num_rows = (sourceRegion.height - subsamplingYOffset + sourceYSubsampling - 1) / sourceYSubsampling; int num_columns = (sourceRegion.width - subsamplingXOffset + sourceXSubsampling - 1) / sourceXSubsampling; if (num_rows <= 0 || num_columns <= 0) throw new IllegalStateException("zero pixels in source region"); } if (sourceRegion != null) { int num_rows = (sourceRegion.height - subsamplingYOffset + sourceYSubsampling - 1) / sourceYSubsampling; int num_columns = (sourceRegion.width - subsamplingXOffset + sourceXSubsampling - 1) / sourceXSubsampling; if (num_rows <= 0 || num_columns <= 0) throw new IllegalStateException("zero pixels in source region"); } ||if (sourceRegion != null) { int num_rows = (sourceRegion.height - subsamplingYOffset + sourceYSubsampling - 1) / sourceYSubsampling; int num_columns = (sourceRegion.width - subsamplingXOffset + sourceXSubsampling - 1) / sourceXSubsampling; if (num_rows <= 0 || num_columns <= 0) throw new IllegalStateException("zero pixels in source region"); } sourceRegion.heightif (sourceRegion != null) { int num_rows = (sourceRegion.height - subsamplingYOffset + sourceYSubsampling - 1) / sourceYSubsampling; int num_columns = (sourceRegion.width - subsamplingXOffset + sourceXSubsampling - 1) / sourceXSubsampling; if (num_rows <= 0 || num_columns <= 0) throw new IllegalStateException("zero pixels in source region"); } <=if (sourceRegion != null) { int num_rows = (sourceRegion.height - subsamplingYOffset + sourceYSubsampling - 1) / sourceYSubsampling; int num_columns = (sourceRegion.width - subsamplingXOffset + sourceXSubsampling - 1) / sourceXSubsampling; if (num_rows <= 0 || num_columns <= 0) throw new IllegalStateException("zero pixels in source region"); } 0))if (sourceRegion != null) { int num_rows = (sourceRegion.height - subsamplingYOffset + sourceYSubsampling - 1) / sourceYSubsampling; int num_columns = (sourceRegion.width - subsamplingXOffset + sourceXSubsampling - 1) / sourceXSubsampling; if (num_rows <= 0 || num_columns <= 0) throw new IllegalStateException("zero pixels in source region"); } if (sourceRegion != null) { int num_rows = (sourceRegion.height - subsamplingYOffset + sourceYSubsampling - 1) / sourceYSubsampling; int num_columns = (sourceRegion.width - subsamplingXOffset + sourceXSubsampling - 1) / sourceXSubsampling; if (num_rows <= 0 || num_columns <= 0) throw new IllegalStateException("zero pixels in source region"); } if (sourceRegion != null) { int num_rows = (sourceRegion.height - subsamplingYOffset + sourceYSubsampling - 1) / sourceYSubsampling; int num_columns = (sourceRegion.width - subsamplingXOffset + sourceXSubsampling - 1) / sourceXSubsampling; if (num_rows <= 0 || num_columns <= 0) throw new IllegalStateException("zero pixels in source region"); } if (sourceRegion != null) { int num_rows = (sourceRegion.height - subsamplingYOffset + sourceYSubsampling - 1) / sourceYSubsampling; int num_columns = (sourceRegion.width - subsamplingXOffset + sourceXSubsampling - 1) / sourceXSubsampling; if (num_rows <= 0 || num_columns <= 0) throw new IllegalStateException("zero pixels in source region"); } if (sourceRegion != null) { int num_rows = (sourceRegion.height - subsamplingYOffset + sourceYSubsampling - 1) / sourceYSubsampling; int num_columns = (sourceRegion.width - subsamplingXOffset + sourceXSubsampling - 1) / sourceXSubsampling; if (num_rows <= 0 || num_columns <= 0) throw new IllegalStateException("zero pixels in source region"); } if (sourceRegion != null) { int num_rows = (sourceRegion.height - subsamplingYOffset + sourceYSubsampling - 1) / sourceYSubsampling; int num_columns = (sourceRegion.width - subsamplingXOffset + sourceXSubsampling - 1) / sourceXSubsampling; if (num_rows <= 0 || num_columns <= 0) throw new IllegalStateException("zero pixels in source region"); } throwif (sourceRegion != null) { int num_rows = (sourceRegion.height - subsamplingYOffset + sourceYSubsampling - 1) / sourceYSubsampling; int num_columns = (sourceRegion.width - subsamplingXOffset + sourceXSubsampling - 1) / sourceXSubsampling; if (num_rows <= 0 || num_columns <= 0) throw new IllegalStateException("zero pixels in source region"); } newif (sourceRegion != null) { int num_rows = (sourceRegion.height - subsamplingYOffset + sourceYSubsampling - 1) / sourceYSubsampling; int num_columns = (sourceRegion.width - subsamplingXOffset + sourceXSubsampling - 1) / sourceXSubsampling; if (num_rows <= 0 || num_columns <= 0) throw new IllegalStateException("zero pixels in source region"); } IllegalArgumentException("illegalif (sourceRegion != null) { int num_rows = (sourceRegion.height - subsamplingYOffset + sourceYSubsampling - 1) / sourceYSubsampling; int num_columns = (sourceRegion.width - subsamplingXOffset + sourceXSubsampling - 1) / sourceXSubsampling; if (num_rows <= 0 || num_columns <= 0) throw new IllegalStateException("zero pixels in source region"); } sourceif (sourceRegion != null) { int num_rows = (sourceRegion.height - subsamplingYOffset + sourceYSubsampling - 1) / sourceYSubsampling; int num_columns = (sourceRegion.width - subsamplingXOffset + sourceXSubsampling - 1) / sourceXSubsampling; if (num_rows <= 0 || num_columns <= 0) throw new IllegalStateException("zero pixels in source region"); } region");if (sourceRegion != null) { int num_rows = (sourceRegion.height - subsamplingYOffset + sourceYSubsampling - 1) / sourceYSubsampling; int num_columns = (sourceRegion.width - subsamplingXOffset + sourceXSubsampling - 1) / sourceXSubsampling; if (num_rows <= 0 || num_columns <= 0) throw new IllegalStateException("zero pixels in source region"); } if (sourceRegion != null) { int num_rows = (sourceRegion.height - subsamplingYOffset + sourceYSubsampling - 1) / sourceYSubsampling; int num_columns = (sourceRegion.width - subsamplingXOffset + sourceXSubsampling - 1) / sourceXSubsampling; if (num_rows <= 0 || num_columns <= 0) throw new IllegalStateException("zero pixels in source region"); } if (sourceRegion != null) { int num_rows = (sourceRegion.height - subsamplingYOffset + sourceYSubsampling - 1) / sourceYSubsampling; int num_columns = (sourceRegion.width - subsamplingXOffset + sourceXSubsampling - 1) / sourceXSubsampling; if (num_rows <= 0 || num_columns <= 0) throw new IllegalStateException("zero pixels in source region"); } if (sourceRegion != null) { int num_rows = (sourceRegion.height - subsamplingYOffset + sourceYSubsampling - 1) / sourceYSubsampling; int num_columns = (sourceRegion.width - subsamplingXOffset + sourceXSubsampling - 1) / sourceXSubsampling; if (num_rows <= 0 || num_columns <= 0) throw new IllegalStateException("zero pixels in source region"); } if (sourceRegion != null) { int num_rows = (sourceRegion.height - subsamplingYOffset + sourceYSubsampling - 1) / sourceYSubsampling; int num_columns = (sourceRegion.width - subsamplingXOffset + sourceXSubsampling - 1) / sourceXSubsampling; if (num_rows <= 0 || num_columns <= 0) throw new IllegalStateException("zero pixels in source region"); } if (sourceRegion != null) { int num_rows = (sourceRegion.height - subsamplingYOffset + sourceYSubsampling - 1) / sourceYSubsampling; int num_columns = (sourceRegion.width - subsamplingXOffset + sourceXSubsampling - 1) / sourceXSubsampling; if (num_rows <= 0 || num_columns <= 0) throw new IllegalStateException("zero pixels in source region"); } if (sourceRegion != null) { int num_rows = (sourceRegion.height - subsamplingYOffset + sourceYSubsampling - 1) / sourceYSubsampling; int num_columns = (sourceRegion.width - subsamplingXOffset + sourceXSubsampling - 1) / sourceXSubsampling; if (num_rows <= 0 || num_columns <= 0) throw new IllegalStateException("zero pixels in source region"); } if (sourceRegion != null) { int num_rows = (sourceRegion.height - subsamplingYOffset + sourceYSubsampling - 1) / sourceYSubsampling; int num_columns = (sourceRegion.width - subsamplingXOffset + sourceXSubsampling - 1) / sourceXSubsampling; if (num_rows <= 0 || num_columns <= 0) throw new IllegalStateException("zero pixels in source region"); } //if (sourceRegion != null) { int num_rows = (sourceRegion.height - subsamplingYOffset + sourceYSubsampling - 1) / sourceYSubsampling; int num_columns = (sourceRegion.width - subsamplingXOffset + sourceXSubsampling - 1) / sourceXSubsampling; if (num_rows <= 0 || num_columns <= 0) throw new IllegalStateException("zero pixels in source region"); } FIXME:if (sourceRegion != null) { int num_rows = (sourceRegion.height - subsamplingYOffset + sourceYSubsampling - 1) / sourceYSubsampling; int num_columns = (sourceRegion.width - subsamplingXOffset + sourceXSubsampling - 1) / sourceXSubsampling; if (num_rows <= 0 || num_columns <= 0) throw new IllegalStateException("zero pixels in source region"); } Throwif (sourceRegion != null) { int num_rows = (sourceRegion.height - subsamplingYOffset + sourceYSubsampling - 1) / sourceYSubsampling; int num_columns = (sourceRegion.width - subsamplingXOffset + sourceXSubsampling - 1) / sourceXSubsampling; if (num_rows <= 0 || num_columns <= 0) throw new IllegalStateException("zero pixels in source region"); } IllegalStateException.if (sourceRegion != null) { int num_rows = (sourceRegion.height - subsamplingYOffset + sourceYSubsampling - 1) / sourceYSubsampling; int num_columns = (sourceRegion.width - subsamplingXOffset + sourceXSubsampling - 1) / sourceXSubsampling; if (num_rows <= 0 || num_columns <= 0) throw new IllegalStateException("zero pixels in source region"); } if (sourceRegion != null) { int num_rows = (sourceRegion.height - subsamplingYOffset + sourceYSubsampling - 1) / sourceYSubsampling; int num_columns = (sourceRegion.width - subsamplingXOffset + sourceXSubsampling - 1) / sourceXSubsampling; if (num_rows <= 0 || num_columns <= 0) throw new IllegalStateException("zero pixels in source region"); } if (sourceRegion != null) { int num_rows = (sourceRegion.height - subsamplingYOffset + sourceYSubsampling - 1) / sourceYSubsampling; int num_columns = (sourceRegion.width - subsamplingXOffset + sourceXSubsampling - 1) / sourceXSubsampling; if (num_rows <= 0 || num_columns <= 0) throw new IllegalStateException("zero pixels in source region"); } if (sourceRegion != null) { int num_rows = (sourceRegion.height - subsamplingYOffset + sourceYSubsampling - 1) / sourceYSubsampling; int num_columns = (sourceRegion.width - subsamplingXOffset + sourceXSubsampling - 1) / sourceXSubsampling; if (num_rows <= 0 || num_columns <= 0) throw new IllegalStateException("zero pixels in source region"); } this.sourceRegionif (sourceRegion != null) { int num_rows = (sourceRegion.height - subsamplingYOffset + sourceYSubsampling - 1) / sourceYSubsampling; int num_columns = (sourceRegion.width - subsamplingXOffset + sourceXSubsampling - 1) / sourceXSubsampling; if (num_rows <= 0 || num_columns <= 0) throw new IllegalStateException("zero pixels in source region"); } =if (sourceRegion != null) { int num_rows = (sourceRegion.height - subsamplingYOffset + sourceYSubsampling - 1) / sourceYSubsampling; int num_columns = (sourceRegion.width - subsamplingXOffset + sourceXSubsampling - 1) / sourceXSubsampling; if (num_rows <= 0 || num_columns <= 0) throw new IllegalStateException("zero pixels in source region"); } sourceRegion;if (sourceRegion != null) { int num_rows = (sourceRegion.height - subsamplingYOffset + sourceYSubsampling - 1) / sourceYSubsampling; int num_columns = (sourceRegion.width - subsamplingXOffset + sourceXSubsampling - 1) / sourceXSubsampling; if (num_rows <= 0 || num_columns <= 0) throw new IllegalStateException("zero pixels in source region"); } if (sourceRegion != null) { int num_rows = (sourceRegion.height - subsamplingYOffset + sourceYSubsampling - 1) / sourceYSubsampling; int num_columns = (sourceRegion.width - subsamplingXOffset + sourceXSubsampling - 1) / sourceXSubsampling; if (num_rows <= 0 || num_columns <= 0) throw new IllegalStateException("zero pixels in source region"); } }
14,647
public JApplet() { frameInit(); }
public JApplet() { frameInit(); }
14,649
protected void addImpl(Component comp, Object constraints, int index) { super.addImpl(comp, constraints, index); }
protected void addImpl(Component comp, Object constraints, int index) { super.addImpl(comp, constraints, index); }
14,650
JRootPane createRootPane() { return new JRootPane(); }
JRootPane createRootPane() { return new JRootPane(); }
14,651
protected void frameInit() { super.setLayout(new BorderLayout(1, 1)); getRootPane(); // will do set/create }
protected void frameInit() { super.setLayout(new BorderLayout(1, 1)); getRootPane(); // will do set/create }
14,652
public AccessibleContext getAccessibleContext() { return null; }
public AccessibleContext getAccessibleContext() { return null; }
14,653
Container getContentPane() { return getRootPane().getContentPane(); }
Container getContentPane() { return getRootPane().getContentPane(); }
14,654
int getDefaultCloseOperation() { return close_action; }
int getDefaultCloseOperation() { return close_action; }
14,655
Component getGlassPane() { return getRootPane().getGlassPane(); }
Component getGlassPane() { return getRootPane().getGlassPane(); }
14,656
JMenuBar getJMenuBar() { return getRootPane().getJMenuBar(); }
JMenuBar getJMenuBar() { return getRootPane().getJMenuBar(); }
14,657
JLayeredPane getLayeredPane() { return getRootPane().getLayeredPane(); }
JLayeredPane getLayeredPane() { return getRootPane().getLayeredPane(); }
14,658
public Dimension getPreferredSize() { Dimension d = super.getPreferredSize(); System.out.println("JFrame.getPrefSize(): " + d + " , comp=" + countComponents() + ", layout=" + getLayout()); return d; }
public Dimension getPreferredSize() { Dimension d = super.getPreferredSize(); System.out.println("JFrame.getPrefSize(): " + d + " , comp=" + countComponents() + ", layout=" + getLayout()); return d; }
14,659
JRootPane getRootPane() { if (rootPane == null) setRootPane(createRootPane()); return rootPane; }
JRootPane getRootPane() { if (rootPane == null) setRootPane(createRootPane()); return rootPane; }
14,660
protected boolean isRootPaneCheckingEnabled() { return checking; }
protected boolean isRootPaneCheckingEnabled() { return checking; }
14,661
protected String paramString() { return "JFrame"; }
protected String paramString() { return "JFrame"; }
14,662
protected void processKeyEvent(KeyEvent e) { super.processKeyEvent(e); }
protected void processKeyEvent(KeyEvent e) { super.processKeyEvent(e); }
14,663
protected void processWindowEvent(WindowEvent e) { // System.out.println("PROCESS_WIN_EV-1: " + e); // super.processWindowEvent(e); // System.out.println("PROCESS_WIN_EV-2: " + e); switch (e.getID()) { case WindowEvent.WINDOW_CLOSING : { switch (close_action) { case EXIT_ON_CLOSE : { System.out.println("user requested exit on close"); System.exit(1); break; } case DISPOSE_ON_CLOSE : { System.out.println("user requested dispose on close"); //dispose(); break; } case HIDE_ON_CLOSE : case DO_NOTHING_ON_CLOSE : break; } break; } case WindowEvent.WINDOW_CLOSED : case WindowEvent.WINDOW_OPENED : case WindowEvent.WINDOW_ICONIFIED : case WindowEvent.WINDOW_DEICONIFIED : case WindowEvent.WINDOW_ACTIVATED : case WindowEvent.WINDOW_DEACTIVATED : break; } }
protected void processWindowEvent(WindowEvent e) { // System.out.println("PROCESS_WIN_EV-1: " + e); // super.processWindowEvent(e); // System.out.println("PROCESS_WIN_EV-2: " + e); switch (e.getID()) { case WindowEvent.WINDOW_CLOSING : { switch (close_action) { case EXIT_ON_CLOSE : { System.out.println("user requested exit on close"); System.exit(1); break; } case DISPOSE_ON_CLOSE : { System.out.println("user requested dispose on close"); //dispose(); break; } case HIDE_ON_CLOSE : case DO_NOTHING_ON_CLOSE : break; } break; } case WindowEvent.WINDOW_CLOSED : case WindowEvent.WINDOW_OPENED : case WindowEvent.WINDOW_ICONIFIED : case WindowEvent.WINDOW_DEICONIFIED : case WindowEvent.WINDOW_ACTIVATED : case WindowEvent.WINDOW_DEACTIVATED : break; } }
14,664
protected void processWindowEvent(WindowEvent e) { // System.out.println("PROCESS_WIN_EV-1: " + e); // super.processWindowEvent(e); // System.out.println("PROCESS_WIN_EV-2: " + e); switch (e.getID()) { case WindowEvent.WINDOW_CLOSING : { switch (close_action) { case EXIT_ON_CLOSE : { System.out.println("user requested exit on close"); System.exit(1); break; } case DISPOSE_ON_CLOSE : { System.out.println("user requested dispose on close"); //dispose(); break; } case HIDE_ON_CLOSE : case DO_NOTHING_ON_CLOSE : break; } break; } case WindowEvent.WINDOW_CLOSED : case WindowEvent.WINDOW_OPENED : case WindowEvent.WINDOW_ICONIFIED : case WindowEvent.WINDOW_DEICONIFIED : case WindowEvent.WINDOW_ACTIVATED : case WindowEvent.WINDOW_DEACTIVATED : break; } }
protected void processWindowEvent(WindowEvent e) { // System.out.println("PROCESS_WIN_EV-1: " + e); // super.processWindowEvent(e); // System.out.println("PROCESS_WIN_EV-2: " + e); switch (e.getID()) { case WindowEvent.WINDOW_CLOSING : { switch (close_action) { case EXIT_ON_CLOSE : { System.out.println("user requested exit on close"); System.exit(1); break; } case DISPOSE_ON_CLOSE : { System.out.println("user requested dispose on close"); //dispose(); break; } case HIDE_ON_CLOSE : case DO_NOTHING_ON_CLOSE : break; } break; } case WindowEvent.WINDOW_CLOSED : case WindowEvent.WINDOW_OPENED : case WindowEvent.WINDOW_ICONIFIED : case WindowEvent.WINDOW_DEICONIFIED : case WindowEvent.WINDOW_ACTIVATED : case WindowEvent.WINDOW_DEACTIVATED : break; } }
14,665
protected void processWindowEvent(WindowEvent e) { // System.out.println("PROCESS_WIN_EV-1: " + e); // super.processWindowEvent(e); // System.out.println("PROCESS_WIN_EV-2: " + e); switch (e.getID()) { case WindowEvent.WINDOW_CLOSING : { switch (close_action) { case EXIT_ON_CLOSE : { System.out.println("user requested exit on close"); System.exit(1); break; } case DISPOSE_ON_CLOSE : { System.out.println("user requested dispose on close"); //dispose(); break; } case HIDE_ON_CLOSE : case DO_NOTHING_ON_CLOSE : break; } break; } case WindowEvent.WINDOW_CLOSED : case WindowEvent.WINDOW_OPENED : case WindowEvent.WINDOW_ICONIFIED : case WindowEvent.WINDOW_DEICONIFIED : case WindowEvent.WINDOW_ACTIVATED : case WindowEvent.WINDOW_DEACTIVATED : break; } }
protected void processWindowEvent(WindowEvent e) { // System.out.println("PROCESS_WIN_EV-1: " + e); // super.processWindowEvent(e); // System.out.println("PROCESS_WIN_EV-2: " + e); switch (e.getID()) { case WindowEvent.WINDOW_CLOSING : { switch (close_action) { case EXIT_ON_CLOSE : { System.out.println("user requested exit on close"); System.exit(1); break; } case DISPOSE_ON_CLOSE : { System.out.println("user requested dispose on close"); //dispose(); break; } case HIDE_ON_CLOSE : case DO_NOTHING_ON_CLOSE : break; } break; } case WindowEvent.WINDOW_CLOSED : case WindowEvent.WINDOW_OPENED : case WindowEvent.WINDOW_ICONIFIED : case WindowEvent.WINDOW_DEICONIFIED : case WindowEvent.WINDOW_ACTIVATED : case WindowEvent.WINDOW_DEACTIVATED : break; } }
14,666
protected void processWindowEvent(WindowEvent e) { // System.out.println("PROCESS_WIN_EV-1: " + e); // super.processWindowEvent(e); // System.out.println("PROCESS_WIN_EV-2: " + e); switch (e.getID()) { case WindowEvent.WINDOW_CLOSING : { switch (close_action) { case EXIT_ON_CLOSE : { System.out.println("user requested exit on close"); System.exit(1); break; } case DISPOSE_ON_CLOSE : { System.out.println("user requested dispose on close"); //dispose(); break; } case HIDE_ON_CLOSE : case DO_NOTHING_ON_CLOSE : break; } break; } case WindowEvent.WINDOW_CLOSED : case WindowEvent.WINDOW_OPENED : case WindowEvent.WINDOW_ICONIFIED : case WindowEvent.WINDOW_DEICONIFIED : case WindowEvent.WINDOW_ACTIVATED : case WindowEvent.WINDOW_DEACTIVATED : break; } }
protected void processWindowEvent(WindowEvent e) { // System.out.println("PROCESS_WIN_EV-1: " + e); // super.processWindowEvent(e); // System.out.println("PROCESS_WIN_EV-2: " + e); switch (e.getID()) { case WindowEvent.WINDOW_CLOSING : { switch (close_action) { case EXIT_ON_CLOSE : { System.out.println("user requested exit on close"); System.exit(1); break; } case DISPOSE_ON_CLOSE : { System.out.println("user requested dispose on close"); //dispose(); break; } case HIDE_ON_CLOSE : case DO_NOTHING_ON_CLOSE : break; } break; } case WindowEvent.WINDOW_CLOSED : case WindowEvent.WINDOW_OPENED : case WindowEvent.WINDOW_ICONIFIED : case WindowEvent.WINDOW_DEICONIFIED : case WindowEvent.WINDOW_ACTIVATED : case WindowEvent.WINDOW_DEACTIVATED : break; } }
14,667
public void remove(Component comp) { getContentPane().remove(comp); }
public void remove(Component comp) { getContentPane().remove(comp); }
14,668
void setContentPane(Container contentPane) { getRootPane().setContentPane(contentPane); }
void setContentPane(Container contentPane) { getRootPane().setContentPane(contentPane); }
14,669
void setDefaultCloseOperation(int operation) { close_action = operation; }
void setDefaultCloseOperation(int operation) { close_action = operation; }
14,670
void setGlassPane(Component glassPane) { getRootPane().setGlassPane(glassPane); }
void setGlassPane(Component glassPane) { getRootPane().setGlassPane(glassPane); }
14,671
void setJMenuBar(JMenuBar menubar) { getRootPane().setJMenuBar(menubar); }
void setJMenuBar(JMenuBar menubar) { getRootPane().setJMenuBar(menubar); }
14,672
void setLayeredPane(JLayeredPane layeredPane) { getRootPane().setLayeredPane(layeredPane); }
void setLayeredPane(JLayeredPane layeredPane) { getRootPane().setLayeredPane(layeredPane); }
14,673
public void setLayout(LayoutManager manager) { super.setLayout(manager); }
public void setLayout(LayoutManager manager) { super.setLayout(manager); }
14,674
void setRootPane(JRootPane root) { if (rootPane != null) remove(rootPane); rootPane = root; add(rootPane, BorderLayout.CENTER); }
void setRootPane(JRootPane root) { if (rootPane != null) remove(rootPane); rootPane = root; add(rootPane, BorderLayout.CENTER); }
14,675
protected void setRootPaneCheckingEnabled(boolean enabled) { checking = enabled; }
protected void setRootPaneCheckingEnabled(boolean enabled) { checking = enabled; }
14,676
public void update(Graphics g) { paint(g); }
public void update(Graphics g) { paint(g); }
14,677
JRootPane() { setLayout(createRootLayout()); getGlassPane(); getLayeredPane(); getContentPane(); setDoubleBuffered(true); updateUI(); }
JRootPane() { setLayout(createRootLayout()); getGlassPane(); getLayeredPane(); getContentPane(); setDoubleBuffered(true); updateUI(); }
14,678
JRootPane() { setLayout(createRootLayout()); getGlassPane(); getLayeredPane(); getContentPane(); setDoubleBuffered(true); updateUI(); }
JRootPane() { setLayout(createRootLayout()); getGlassPane(); getLayeredPane(); getContentPane(); setDoubleBuffered(true); updateUI(); }
14,679
public Container getContentPane() { if (contentPane == null) { setContentPane(createContentPane()); } return contentPane; }
public Container getContentPane() { if (contentPane == null) { setContentPane(createContentPane()); } return contentPane; }
14,680