rem
stringlengths
0
477k
add
stringlengths
0
313k
context
stringlengths
6
599k
}
public void popupMenuWillBecomeInvisible(PopupMenuEvent event) { // remove listener that listens to component events fired // by the top - level window that this popup belongs to. Component invoker = popupMenu.getInvoker(); Component rootContainer = SwingUtilities.getRoot(invoker); if (...
if (mouseInputListener == null && rootContainer instanceof RootPaneContainer) { RootPaneContainer rpContainer = (RootPaneContainer) rootContainer; Container glassPane = (Container) rpContainer.getGlassPane(); glassPane.setVisible(true); mouseInputListener = new MouseInputHandler(rpContainer); glassPane.addMouseListener...
public void popupMenuWillBecomeVisible(PopupMenuEvent event) { // Adds topWindowListener to top-level window to listener to // ComponentEvents fired by it. We need to cancel this popup menu // if topWindow to which this popup belongs was resized or moved. Component invoker = popupMenu.getInv...
if (observer == null) throw new NullPointerException("can't add null observer");
public synchronized void addObserver(Observer observer) { observers.add(observer); }
public void update(Observable observable, Object arg);
void update(Observable observable, Object arg);
public void update(Observable observable, Object arg);
public short[] getData(int bank)
public short[] getData()
public short[] getData(int bank) { return bankData[bank]; }
return bankData[bank];
return data;
public short[] getData(int bank) { return bankData[bank]; }
for (int i = 0; i < count; i++)
if (count > 0)
protected void forwardUpdate(DocumentEvent.ElementChange ec, DocumentEvent ev, Shape shape, ViewFactory vf) { int count = getViewCount(); for (int i = 0; i < count; i++) { View child = getView(i); forwardUpdateToView(child, ev, shape, vf); } }
} }
protected void forwardUpdate(DocumentEvent.ElementChange ec, DocumentEvent ev, Shape shape, ViewFactory vf) { int count = getViewCount(); for (int i = 0; i < count; i++) { View child = getView(i); forwardUpdateToView(child, ev, shape, vf); } }
return getPreferredSpan(axis); return Integer.MAX_VALUE;
max = getPreferredSpan(axis); return max;
public float getMaximumSpan(int axis) { if (getResizeWeight(axis) <= 0) return getPreferredSpan(axis); return Integer.MAX_VALUE; }
return getPreferredSpan(axis); return Integer.MAX_VALUE;
min = getPreferredSpan(axis); return min;
public float getMinimumSpan(int axis) { if (getResizeWeight(axis) <= 0) return getPreferredSpan(axis); return Integer.MAX_VALUE; }
attributes.put(RSAKeyPairGenerator.MODULUS_LENGTH, new Integer(keysize));
attributes.put(RSAKeyPairGenerator.MODULUS_LENGTH, Integer.valueOf(keysize));
public void initialize(int keysize, SecureRandom random) { HashMap attributes = new HashMap(); attributes.put(RSAKeyPairGenerator.MODULUS_LENGTH, new Integer(keysize)); if (random != null) { attributes.put(RSAKeyPairGenerator.SOURCE_OF_RANDOMNESS, random); } attributes.put(RSAKeyPairGene...
{
public void initialize(int keysize, SecureRandom random) { HashMap attributes = new HashMap(); attributes.put(RSAKeyPairGenerator.MODULUS_LENGTH, new Integer(keysize)); if (random != null) { attributes.put(RSAKeyPairGenerator.SOURCE_OF_RANDOMNESS, random); } attributes.put(RSAKeyPairGene...
}
public void initialize(int keysize, SecureRandom random) { HashMap attributes = new HashMap(); attributes.put(RSAKeyPairGenerator.MODULUS_LENGTH, new Integer(keysize)); if (random != null) { attributes.put(RSAKeyPairGenerator.SOURCE_OF_RANDOMNESS, random); } attributes.put(RSAKeyPairGene...
new Integer(Registry.ASN1_ENCODING_ID));
Integer.valueOf(Registry.ASN1_ENCODING_ID));
public void initialize(int keysize, SecureRandom random) { HashMap attributes = new HashMap(); attributes.put(RSAKeyPairGenerator.MODULUS_LENGTH, new Integer(keysize)); if (random != null) { attributes.put(RSAKeyPairGenerator.SOURCE_OF_RANDOMNESS, random); } attributes.put(RSAKeyPairGene...
final String state = " (" + current.getReadableErrorState() + ")";
final String state = "";
public static Throwable systemException(int nr, int address) throws PragmaUninterruptible, PragmaLoadStatics, PragmaPrivilegedAction { //Unsafe.getCurrentProcessor().getArchitecture().getStackReader().debugStackTrace(); //Unsafe.die(); //Unsafe.debug(nr); Unsafe.debug(address); final String hexAddress = NumberU...
dialog = new ModalDialog((Frame) parent, title);
dialog = new JDialog((Frame) parent, title, true);
public static JDialog createDialog(Component component, String title, boolean modal, JColorChooser chooserPane, ActionListener okListener, ActionListener cancelListener) { Component parent = findParent(component); if (parent == null) ...
dialog = new ModalDialog((Dialog) parent, title); dialog.setModal(modal);
dialog = new JDialog((Dialog) parent, title, true);
public static JDialog createDialog(Component component, String title, boolean modal, JColorChooser chooserPane, ActionListener okListener, ActionListener cancelListener) { Component parent = findParent(component); if (parent == null) ...
if (offs <= 0)
if (offs < 0)
protected synchronized void computeTime() { int millisInDay = 0; int era = fields[ERA]; int year = fields[YEAR]; int month = fields[MONTH]; int day = fields[DAY_OF_MONTH]; int minute = fields[MINUTE]; int second = fields[SECOND]; int millis = fields[MILLISECOND]; int[] month_days = { 31, 28, ...
if (table != null && (flags | F_LOOPHEAD) != 0)
if (table != null && (flags & F_LOOPHEAD) != 0)
private void patchNext (Recognizer theNext, Hashtable table) { // backpointers must not be repatched or followed if ((flags & F_LOOPNEXT) != 0) return; // XXX this table "shouldn't" be needed, right? // but some choice nodes looped if it isn't there. if (table != null && table.get (this) != null) ...
return ((1 << getType(ch)) & ((1 << UPPERCASE_LETTER) | (1 << LOWERCASE_LETTER) | (1 << TITLECASE_LETTER) | (1 << MODIFIER_LETTER) | (1 << OTHER_LETTER) | (1 << LETTER_NUMBER))) != 0;
return isUnicodeIdentifierStart((int)ch);
public static boolean isUnicodeIdentifierStart(char ch) { return ((1 << getType(ch)) & ((1 << UPPERCASE_LETTER) | (1 << LOWERCASE_LETTER) | (1 << TITLECASE_LETTER) | (1 << MODIFIER_LETTER) | (1 << OTHER_LETTER) | (1 << LETTER_NUMBER)...
int category = getType(ch); return ((1 << category) & ((1 << UPPERCASE_LETTER) | (1 << LOWERCASE_LETTER) | (1 << TITLECASE_LETTER) | (1 << MODIFIER_LETTER) | (1 << OTHER_LETTER) | (1 << NON_SPACING_MARK) | (1 << COMBINING_SPACING_MARK) | (1 << DECIMAL_DIGIT_NUMBER) | (1 << LETTER_NUMBER) | (1 << CONNECTOR_PUNCTUATION) ...
return isUnicodeIdentifierPart((int)ch);
public static boolean isUnicodeIdentifierPart(char ch) { int category = getType(ch); return ((1 << category) & ((1 << UPPERCASE_LETTER) | (1 << LOWERCASE_LETTER) | (1 << TITLECASE_LETTER) | (1 << MODIFIER_LETTER) | (1 << OTHER_LETTER) ...
return getPreferredSize();
return toViewCoordinates(getSize());
public Dimension getExtentSize() { if (extentSize == null) return getPreferredSize(); else return extentSize; }
byte[] bitmapBlock = getBlock(gdesc.getBlockBitmap());
public BlockReservation findFreeBlocks(int group, long threshold) throws IOException{ GroupDescriptor gdesc = groupDescriptors[group]; //see if it's worth to check the block group at all if( gdesc.getFreeBlocksCount() < threshold) return new BlockReservation(false, -1, -1, gdesc.getFreeBlocksCount()); /* Retur...
synchronized( bitmapBlock ) { result=BlockBitmap.findFreeBlocks( bitmapBlock, metadataLength );
synchronized(blockCache) { byte[] bitmapBlock = getBlock(gdesc.getBlockBitmap());
public BlockReservation findFreeBlocks(int group, long threshold) throws IOException{ GroupDescriptor gdesc = groupDescriptors[group]; //see if it's worth to check the block group at all if( gdesc.getFreeBlocksCount() < threshold) return new BlockReservation(false, -1, -1, gdesc.getFreeBlocksCount()); /* Retur...
if(result.isSuccessful()) { writeBlock(groupDescriptors[group].getBlockBitmap(), bitmapBlock, true); modifyFreeBlocksCount( group, -1-result.getPreallocCount() );
synchronized( bitmapBlock ) { result=BlockBitmap.findFreeBlocks( bitmapBlock, metadataLength ); if(result.isSuccessful()) { writeBlock(groupDescriptors[group].getBlockBitmap(), bitmapBlock, true); modifyFreeBlocksCount( group, -1-result.getPreallocCount() ); }
public BlockReservation findFreeBlocks(int group, long threshold) throws IOException{ GroupDescriptor gdesc = groupDescriptors[group]; //see if it's worth to check the block group at all if( gdesc.getFreeBlocksCount() < threshold) return new BlockReservation(false, -1, -1, gdesc.getFreeBlocksCount()); /* Retur...
byte[] bitmap = getBlock( gdesc.getInodeBitmap() ); synchronized(bitmap) { INodeReservation result = INodeBitmap.findFreeINode(bitmap);
synchronized(blockCache) { byte[] bitmap= getBlock( gdesc.getInodeBitmap() );
protected INodeReservation findFreeINode(int blockGroup) throws IOException{ GroupDescriptor gdesc = groupDescriptors[blockGroup]; if(gdesc.getFreeInodesCount()> 0) { byte[] bitmap = getBlock( gdesc.getInodeBitmap() ); synchronized(bitmap) { INodeReservation result = INodeBitmap.findFreeINode(bitmap); ...
if(result.isSuccessful()){ writeBlock( gdesc.getInodeBitmap(), bitmap, true); modifyFreeInodesCount(blockGroup, -1);
synchronized(bitmap) { INodeReservation result = INodeBitmap.findFreeINode(bitmap);
protected INodeReservation findFreeINode(int blockGroup) throws IOException{ GroupDescriptor gdesc = groupDescriptors[blockGroup]; if(gdesc.getFreeInodesCount()> 0) { byte[] bitmap = getBlock( gdesc.getInodeBitmap() ); synchronized(bitmap) { INodeReservation result = INodeBitmap.findFreeINode(bitmap); ...
result.setGroup(blockGroup); return result;
if(result.isSuccessful()){ writeBlock( gdesc.getInodeBitmap(), bitmap, true); modifyFreeInodesCount(blockGroup, -1); result.setGroup(blockGroup); return result; }
protected INodeReservation findFreeINode(int blockGroup) throws IOException{ GroupDescriptor gdesc = groupDescriptors[blockGroup]; if(gdesc.getFreeInodesCount()> 0) { byte[] bitmap = getBlock( gdesc.getInodeBitmap() ); synchronized(bitmap) { INodeReservation result = INodeBitmap.findFreeINode(bitmap); ...
byte[] bitmap = getBlock(gdesc.getBlockBitmap()); synchronized( bitmap ) { BlockBitmap.freeBit( bitmap, index ); writeBlock(groupDescriptors[group].getBlockBitmap(), bitmap, false); modifyFreeBlocksCount(group, 1);
synchronized(blockCache) { byte[] bitmap = getBlock(gdesc.getBlockBitmap()); synchronized( bitmap ) { BlockBitmap.freeBit( bitmap, index ); writeBlock(groupDescriptors[group].getBlockBitmap(), bitmap, false); modifyFreeBlocksCount(group, 1); }
public void freeBlock(long blockNr) throws FileSystemException, IOException{ if(blockNr<0 || blockNr>=superblock.getBlocksCount()) throw new FileSystemException("Attempt to free nonexisting block ("+blockNr+")"); int group = translateToGroup(blockNr); int index = translateToIndex(blockNr); GroupDescriptor gde...
log.debug("iNodeCache size: "+inodeCache.size());
public INode getINode(int iNodeNr) throws IOException, FileSystemException{ if((iNodeNr<1)||(iNodeNr>superblock.getINodesCount())) throw new FileSystemException("INode number ("+iNodeNr+") out of range (0-"+superblock.getINodesCount()+")"); Integer key=new Integer(iNodeNr); //log.debug("iNodeCache size: "+in...
byte[] bitmap = getBlock(groupDescriptors[group].getBlockBitmap()); synchronized( bitmap ) { BlockReservation result = BlockBitmap.testAndSetBlock( bitmap, index ); if(result.isSuccessful()) { writeBlock(groupDescriptors[group].getBlockBitmap(), bitmap, false); modifyFreeBlocksCount(group, -1-result.getPreallocCoun...
synchronized(blockCache) { byte[] bitmap= getBlock(groupDescriptors[group].getBlockBitmap()); synchronized( bitmap) { BlockReservation result = BlockBitmap.testAndSetBlock( bitmap, index ); if(result.isSuccessful()) { writeBlock(groupDescriptors[group].getBlockBitmap(), bitmap, false); modifyFreeBlocksCount(group, -1-...
public BlockReservation testAndSetBlock(long blockNr) throws IOException{ if(blockNr<superblock.getFirstDataBlock() || blockNr>=superblock.getBlocksCount()) return new BlockReservation(false, -1, -1); int group = translateToGroup(blockNr); int index = translateToIndex(blockNr); /* Return false if the block is no...
return result;
public BlockReservation testAndSetBlock(long blockNr) throws IOException{ if(blockNr<superblock.getFirstDataBlock() || blockNr>=superblock.getBlocksCount()) return new BlockReservation(false, -1, -1); int group = translateToGroup(blockNr); int index = translateToIndex(blockNr); /* Return false if the block is no...
super(initialCapacity, loadFactor, true);
super(Math.min(MAX_SIZE, initialCapacity), loadFactor, true);
public BlockCache(int initialCapacity, float loadFactor) { super(initialCapacity, loadFactor, true); cacheListeners = new Vector(); }
locked = 0;
public INode(Ext2FileSystem fs, INodeDescriptor desc) { this.fs = fs; this.desc = desc; this.data = new byte[INODE_LENGTH]; log.setLevel(Level.INFO); }
protected long getINodeNr() {
protected int getINodeNr() {
protected long getINodeNr() { return desc.getINodeNr(); }
VmNormalClass superClass, AbstractVmClassLoader loader, boolean primitive, int typeSize) { super(name, superClass, loader, primitive, typeSize);
String superClassName, VmClassLoader loader, int accessFlags) { super(name, superClassName, loader, accessFlags);
public VmClassType( String name, VmNormalClass superClass, AbstractVmClassLoader loader, boolean primitive, int typeSize) { super(name, superClass, loader, primitive, typeSize); }
int h = calendar.get(Calendar.HOUR_OF_DAY); int m = calendar.get(Calendar.MINUTE); setText((h < 10 ? "0" : "") + h + ":" + (m < 10 ? "0" : "") + m);
final int h = calendar.get(Calendar.HOUR_OF_DAY); final int m = calendar.get(Calendar.MINUTE); SwingUtilities.invokeLater(new Runnable() { public void run() { setText((h < 10 ? "0" : "") + h + ":" + (m < 10 ? "0" : "") + m); } });
private void startTimer() { timer.schedule(task = new TimerTask() { Calendar calendar = new GregorianCalendar(); public void run() { calendar.setTimeInMillis(System.currentTimeMillis()); int h = calendar.get(Calendar.HOUR_OF_DAY); ...
int h = calendar.get(Calendar.HOUR_OF_DAY); int m = calendar.get(Calendar.MINUTE); setText((h < 10 ? "0" : "") + h + ":" + (m < 10 ? "0" : "") + m);
final int h = calendar.get(Calendar.HOUR_OF_DAY); final int m = calendar.get(Calendar.MINUTE); SwingUtilities.invokeLater(new Runnable() { public void run() { setText((h < 10 ? "0" : "") + h + ":" + (m < 10 ? "0" : "") + m); } });
public void run() { calendar.setTimeInMillis(System.currentTimeMillis()); int h = calendar.get(Calendar.HOUR_OF_DAY); int m = calendar.get(Calendar.MINUTE); setText((h < 10 ? "0" : "") + h + ":" + (m < 10 ? "0" : "") + m); ...
public Timer(boolean daemon)
public Timer()
public Timer(boolean daemon) { this(daemon, Thread.NORM_PRIORITY); }
this(daemon, Thread.NORM_PRIORITY);
this(false);
public Timer(boolean daemon) { this(daemon, Thread.NORM_PRIORITY); }
if (Configuration.DEBUG)
protected byte[] getSelfSignedCertificate(X500DistinguishedName distinguishedName, PublicKey publicKey, PrivateKey privateKey) throws IOException, SignatureException, InvalidKeyException { log.entering(this.getClass().getNa...
if (Configuration.DEBUG)
String[] processArgs(String[] args) { log.entering(this.getClass().getName(), "processArgs", args); //$NON-NLS-1$ Parser cmdOptionsParser = getParser(); String[] result = cmdOptionsParser.parse(args); log.exiting(this.getClass().getName(), "processArgs", result); //$NON-NLS-1$ return result; }
protected void setKeystorePasswordParam(String password) throws IOException,
private void setKeystorePasswordParam(String password) throws IOException,
protected void setKeystorePasswordParam(String password) throws IOException, UnsupportedCallbackException { if (password != null) storePasswordChars = password.toCharArray(); else // ask the user to provide one { String prompt = Messages.getString("Command.24"); //$NON-NLS-1$ Passw...
protected void setKeystoreTypeParam(String type)
private void setKeystoreTypeParam(String type)
protected void setKeystoreTypeParam(String type) { log.finest("setKeystoreTypeParam(" + type + ")"); //$NON-NLS-1$ //$NON-NLS-2$ if (type == null || type.trim().length() == 0) storeType = KeyStore.getDefaultType(); else storeType = type.trim(); }
log.finest("setKeystoreTypeParam(" + type + ")");
if (Configuration.DEBUG) log.fine("setKeystoreTypeParam(" + type + ")");
protected void setKeystoreTypeParam(String type) { log.finest("setKeystoreTypeParam(" + type + ")"); //$NON-NLS-1$ //$NON-NLS-2$ if (type == null || type.trim().length() == 0) storeType = KeyStore.getDefaultType(); else storeType = type.trim(); }
protected void setKeystoreURLParam(String url) throws IOException,
private void setKeystoreURLParam(boolean createIfNotFound, String url, String password) throws IOException,
protected void setKeystoreURLParam(String url) throws IOException, KeyStoreException, UnsupportedCallbackException, NoSuchAlgorithmException, CertificateException { log.finest("setKeystoreURLParam(" + url + ")"); //$NON-NLS-1$ //$NON-NLS-2$ if (url == null || url.trim().length() == 0) { S...
log.finest("setKeystoreURLParam(" + url + ")");
if (Configuration.DEBUG) log.fine("setKeystoreURLParam(" + url + ")");
protected void setKeystoreURLParam(String url) throws IOException, KeyStoreException, UnsupportedCallbackException, NoSuchAlgorithmException, CertificateException { log.finest("setKeystoreURLParam(" + url + ")"); //$NON-NLS-1$ //$NON-NLS-2$ if (url == null || url.trim().length() == 0) { S...
if (createIfNotFound)
protected void setKeystoreURLParam(String url) throws IOException, KeyStoreException, UnsupportedCallbackException, NoSuchAlgorithmException, CertificateException { log.finest("setKeystoreURLParam(" + url + ")"); //$NON-NLS-1$ //$NON-NLS-2$ if (url == null || url.trim().length() == 0) { S...
}
protected void setKeystoreURLParam(String url) throws IOException, KeyStoreException, UnsupportedCallbackException, NoSuchAlgorithmException, CertificateException { log.finest("setKeystoreURLParam(" + url + ")"); //$NON-NLS-1$ //$NON-NLS-2$ if (url == null || url.trim().length() == 0) { S...
if (Configuration.DEBUG)
protected void setKeystoreURLParam(String url) throws IOException, KeyStoreException, UnsupportedCallbackException, NoSuchAlgorithmException, CertificateException { log.finest("setKeystoreURLParam(" + url + ")"); //$NON-NLS-1$ //$NON-NLS-2$ if (url == null || url.trim().length() == 0) { S...
protected void setProviderClassNameParam(String className)
private void setProviderClassNameParam(String className)
protected void setProviderClassNameParam(String className) { log.finest("setProviderClassNameParam(" + className + ")"); //$NON-NLS-1$ //$NON-NLS-2$ if (className != null && className.trim().length() > 0) { className = className.trim(); SecurityProviderInfo spi = ProviderUtil.addProvider(cla...
log.finest("setProviderClassNameParam(" + className + ")");
if (Configuration.DEBUG) log.fine("setProviderClassNameParam(" + className + ")");
protected void setProviderClassNameParam(String className) { log.finest("setProviderClassNameParam(" + className + ")"); //$NON-NLS-1$ //$NON-NLS-2$ if (className != null && className.trim().length() > 0) { className = className.trim(); SecurityProviderInfo spi = ProviderUtil.addProvider(cla...
}
protected void setProviderClassNameParam(String className) { log.finest("setProviderClassNameParam(" + className + ")"); //$NON-NLS-1$ //$NON-NLS-2$ if (className != null && className.trim().length() > 0) { className = className.trim(); SecurityProviderInfo spi = ProviderUtil.addProvider(cla...
if (Configuration.DEBUG)
void teardown() { log.entering(this.getClass().getName(), "teardown"); //$NON-NLS-1$ if (storeStream != null) try { storeStream.close(); } catch (IOException ignored) { log.fine("Exception while closing key store URL stream. Ignored: " //$NON-NLS-1$ ...
SecurityManager sm = securityManager;
SecurityManager sm = SecurityManager.current;
public void addShutdownHook(Thread hook) { SecurityManager sm = securityManager; // Be thread-safe! if (sm != null) sm.checkPermission(new RuntimePermission("shutdownHooks")); if (hook.isAlive() || hook.getThreadGroup() == null) throw new IllegalArgumentException("The hook thread " + hook + " must...
}
public void addShutdownHook(Thread hook) { SecurityManager sm = securityManager; // Be thread-safe! if (sm != null) sm.checkPermission(new RuntimePermission("shutdownHooks")); if (hook.isAlive() || hook.getThreadGroup() == null) throw new IllegalArgumentException("The hook thread " + hook + " must...
SecurityManager sm = securityManager;
SecurityManager sm = SecurityManager.current;
public boolean removeShutdownHook(Thread hook) { SecurityManager sm = securityManager; // Be thread-safe! if (sm != null) sm.checkPermission(new RuntimePermission("shutdownHooks")); synchronized (libpath) { if (exitSequence != null) throw new IllegalStateException(); if (shu...
{
public boolean equals(final Object obj) { if (obj == null) { return false; } if (obj instanceof RSAPrivateKey) { final RSAPrivateKey that = (RSAPrivateKey) obj; return super.equals(that) && d.equals(that.getPrivateExponent()); } if (obj instanceof RSAPrivateCrtKey) ...
}
public boolean equals(final Object obj) { if (obj == null) { return false; } if (obj instanceof RSAPrivateKey) { final RSAPrivateKey that = (RSAPrivateKey) obj; return super.equals(that) && d.equals(that.getPrivateExponent()); } if (obj instanceof RSAPrivateCrtKey) ...
String ls = SystemProperties.getProperty("line.separator");
String ls = (String) AccessController.doPrivileged (new GetPropertyAction("line.separator"));
public String toString() { if (str == null) { String ls = SystemProperties.getProperty("line.separator"); str = new StringBuilder(this.getClass().getName()).append("(") .append(super.toString()).append(",").append(ls) .append("d=0x").append(DEBUG ? d.toString(16) : "**...*...
.append("d=0x").append(DEBUG ? d.toString(16) : "**...*").append(ls) .append("p=0x").append(DEBUG ? p.toString(16) : "**...*").append(ls) .append("q=0x").append(DEBUG ? q.toString(16) : "**...*").append(ls) .append("dP=0x").append(DEBUG ? dP.toString(16) : "**...*").append(ls) .append("dQ=0x").append(DEBUG ? dQ.toStrin...
.append("d=0x").append(Configuration.DEBUG ? d.toString(16) : "**...*").append(ls) .append("p=0x").append(Configuration.DEBUG ? p.toString(16) : "**...*").append(ls) .append("q=0x").append(Configuration.DEBUG ? q.toString(16) : "**...*").append(ls) .append("dP=0x").append(Configuration.DEBUG ? dP.toString(16) : "**...*...
public String toString() { if (str == null) { String ls = SystemProperties.getProperty("line.separator"); str = new StringBuilder(this.getClass().getName()).append("(") .append(super.toString()).append(",").append(ls) .append("d=0x").append(DEBUG ? d.toString(16) : "**...*...
public final Class getCategory()
public Class getCategory()
public final Class getCategory() { return PagesPerMinute.class; }
public final String getName()
public String getName()
public final String getName() { return "pages-per-minute"; }
if (isSelected) { checkBox.setBackground(table.getSelectionBackground()); checkBox.setForeground(table.getSelectionForeground()); } else { checkBox.setBackground(table.getBackground()); checkBox.setForeground(table.getForeground()); } if (hasFocus) { checkBox.setBorder( UIManager.getBorder("Table.focusCellHighlightBor...
public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column) { // Null is rendered as...
setBorder(null);
setBorder(BorderFactory.createLineBorder(getGridColor(), 2));
TableTextField() { setBorder(null); }
r.translate(getX(), getY()); super.scrollRectToVisible(r);
public void scrollRectToVisible(Rectangle r) { // In private class we known that the rectangle data will not be // reused and we need not to clone it. r.translate(getX(), getY()); super.scrollRectToVisible(r); }
int xOffset = 5; r.x+=xOffset; r.y++; r.width -=xOffset; r.height --;
private void moveToCellBeingEdited(Component component) { Rectangle r = getCellRect(editingRow, editingColumn, true); // Place the text field so that it would not touch the table // border. // TODO Figure out while 5 and which constant should here be. int xOffset = 5; r.x+=xOffset; r...
revalidate(); repaint();
public void updateUI() { setUI((TableUI) UIManager.getUI(this)); revalidate(); repaint(); }
applet = new ErrorApplet("Error loading applet");
applet = new ErrorApplet(Messages.getString ("Main.ErrorApplet"));
static Applet createApplet(AppletTag tag) { Applet applet = null; try { ClassLoader loader = getClassLoader(tag.prependCodeBase(""), tag.getArchives()); String code = tag.getCode(); if (code.endsWith(".class")) code = code.substring(...
parser.setHeader("usage: appletviewer [OPTION] -code CODE | URL...");
parser.setHeader(Messages.getString("Main.Usage"));
public static void main(String[] args) throws IOException { parser = new ClasspathToolParser("appletviewer", true); parser.setHeader("usage: appletviewer [OPTION] -code CODE | URL..."); OptionGroup attributeGroup = new OptionGroup("Applet tag options"); attributeGroup.add(new Option("code", Main.messages...
OptionGroup attributeGroup = new OptionGroup("Applet tag options");
OptionGroup attributeGroup = new OptionGroup(Messages.getString("Main.AppletTagOptions"));
public static void main(String[] args) throws IOException { parser = new ClasspathToolParser("appletviewer", true); parser.setHeader("usage: appletviewer [OPTION] -code CODE | URL..."); OptionGroup attributeGroup = new OptionGroup("Applet tag options"); attributeGroup.add(new Option("code", Main.messages...
attributeGroup.add(new Option("code", Main.messages.getString ("gcjwebplugin.code_description"), "CODE")
attributeGroup.add(new Option("code", Messages.getString("Main.CodeDescription"), Messages.getString("Main.CodeArgument"))
public static void main(String[] args) throws IOException { parser = new ClasspathToolParser("appletviewer", true); parser.setHeader("usage: appletviewer [OPTION] -code CODE | URL..."); OptionGroup attributeGroup = new OptionGroup("Applet tag options"); attributeGroup.add(new Option("code", Main.messages...
attributeGroup.add(new Option("codebase", Main.messages.getString ("gcjwebplugin.codebase_description"), "CODEBASE")
attributeGroup.add (new Option("codebase", Messages.getString("Main.CodebaseDescription"), Messages.getString("Main.CodebaseArgument"))
public static void main(String[] args) throws IOException { parser = new ClasspathToolParser("appletviewer", true); parser.setHeader("usage: appletviewer [OPTION] -code CODE | URL..."); OptionGroup attributeGroup = new OptionGroup("Applet tag options"); attributeGroup.add(new Option("code", Main.messages...
attributeGroup.add(new Option("archive", Main.messages.getString ("gcjwebplugin.archive_description"), "ARCHIVE")
attributeGroup.add (new Option("archive", Messages.getString("Main.ArchiveDescription"), Messages.getString("Main.ArchiveArgument"))
public static void main(String[] args) throws IOException { parser = new ClasspathToolParser("appletviewer", true); parser.setHeader("usage: appletviewer [OPTION] -code CODE | URL..."); OptionGroup attributeGroup = new OptionGroup("Applet tag options"); attributeGroup.add(new Option("code", Main.messages...
attributeGroup.add(new Option("width", Main.messages.getString ("gcjwebplugin.width_description"), "WIDTH")
attributeGroup.add(new Option("width", Messages.getString("Main.WidthDescription"), Messages.getString("Main.WidthArgument"))
public static void main(String[] args) throws IOException { parser = new ClasspathToolParser("appletviewer", true); parser.setHeader("usage: appletviewer [OPTION] -code CODE | URL..."); OptionGroup attributeGroup = new OptionGroup("Applet tag options"); attributeGroup.add(new Option("code", Main.messages...
attributeGroup.add(new Option("height", Main.messages.getString ("gcjwebplugin.height_description"), "HEIGHT")
attributeGroup.add(new Option("height", Messages.getString("Main.HeightDescription"), Messages.getString("Main.HeightArgument"))
public static void main(String[] args) throws IOException { parser = new ClasspathToolParser("appletviewer", true); parser.setHeader("usage: appletviewer [OPTION] -code CODE | URL..."); OptionGroup attributeGroup = new OptionGroup("Applet tag options"); attributeGroup.add(new Option("code", Main.messages...
attributeGroup.add(new Option("param", Main.messages.getString ("gcjwebplugin.param_description"), "NAME,VALUE")
attributeGroup.add(new Option("param", Messages.getString("Main.ParamDescription"), Messages.getString("Main.ParamArgument"))
public static void main(String[] args) throws IOException { parser = new ClasspathToolParser("appletviewer", true); parser.setHeader("usage: appletviewer [OPTION] -code CODE | URL..."); OptionGroup attributeGroup = new OptionGroup("Applet tag options"); attributeGroup.add(new Option("code", Main.messages...
OptionGroup pluginGroup = new OptionGroup("Plugin option"); pluginGroup.add(new Option("plugin", Main.messages.getString ("gcjwebplugin.plugin_description"), "INPUT,OUTPUT")
OptionGroup pluginGroup = new OptionGroup(Messages.getString("Main.PluginOption")); pluginGroup.add(new Option("plugin", Messages.getString("Main.PluginDescription"), Messages.getString("Main.PluginArgument"))
public static void main(String[] args) throws IOException { parser = new ClasspathToolParser("appletviewer", true); parser.setHeader("usage: appletviewer [OPTION] -code CODE | URL..."); OptionGroup attributeGroup = new OptionGroup("Applet tag options"); attributeGroup.add(new Option("code", Main.messages...
OptionGroup debuggingGroup = new OptionGroup("Debugging option"); debuggingGroup.add(new Option("verbose", Main.messages.getString ("gcjwebplugin.verbose_description"),
OptionGroup debuggingGroup = new OptionGroup(Messages.getString("Main.DebuggingOption")); debuggingGroup.add (new Option("verbose", Messages.getString("Main.VerboseDescription"),
public static void main(String[] args) throws IOException { parser = new ClasspathToolParser("appletviewer", true); parser.setHeader("usage: appletviewer [OPTION] -code CODE | URL..."); OptionGroup attributeGroup = new OptionGroup("Applet tag options"); attributeGroup.add(new Option("code", Main.messages...
OptionGroup compatibilityGroup = new OptionGroup("Compatibility options"); compatibilityGroup.add(new Option("debug", Main.messages.getString ("gcjwebplugin.debug_description"),
OptionGroup compatibilityGroup = new OptionGroup(Messages.getString("Main.CompatibilityOptions")); compatibilityGroup.add (new Option("debug", Messages.getString("Main.DebugDescription"),
public static void main(String[] args) throws IOException { parser = new ClasspathToolParser("appletviewer", true); parser.setHeader("usage: appletviewer [OPTION] -code CODE | URL..."); OptionGroup attributeGroup = new OptionGroup("Applet tag options"); attributeGroup.add(new Option("code", Main.messages...
compatibilityGroup.add(new Option("encoding", Main.messages.getString ("gcjwebplugin.encoding_description"), "CHARSET")
compatibilityGroup.add (new Option("encoding", Messages.getString("Main.EncodingDescription"), Messages.getString("Main.EncodingArgument"))
public static void main(String[] args) throws IOException { parser = new ClasspathToolParser("appletviewer", true); parser.setHeader("usage: appletviewer [OPTION] -code CODE | URL..."); OptionGroup attributeGroup = new OptionGroup("Applet tag options"); attributeGroup.add(new Option("code", Main.messages...
System.err.println("WARNING: CURRENTLY GAPPLETVIEWER RUNS WITH NO SECURITY MANAGER.\n\n" + "THIS MEANS THAT APPLETS YOU LOAD CAN DO ANYTHING A JAVA APPLICATION\n" + "THAT YOU DOWNLOAD AND RUN CAN DO. BE *VERY* CAREFUL WHICH APPLETS YOU RUN.\n" + "DO NOT USE GAPPLETVIEWER ON YOUR SYSTEM IF YOUR SYSTEM STORES IMPORTANT ...
/* @jnode disable security warning System.err.println(Messages.getString("Main.SecurityWarning") + "\n");
public static void main(String[] args) throws IOException { parser = new ClasspathToolParser("appletviewer", true); parser.setHeader("usage: appletviewer [OPTION] -code CODE | URL..."); OptionGroup attributeGroup = new OptionGroup("Applet tag options"); attributeGroup.add(new Option("code", Main.messages...
System.err.println("[press 'c' or 'C' to continue or anything else to quit]");
System.err.println(Messages.getString("Main.ContinuationPrompt"));
public static void main(String[] args) throws IOException { parser = new ClasspathToolParser("appletviewer", true); parser.setHeader("usage: appletviewer [OPTION] -code CODE | URL..."); OptionGroup attributeGroup = new OptionGroup("Applet tag options"); attributeGroup.add(new Option("code", Main.messages...
System.err.println("failed to read response to warning message: " + e); System.exit(1);
throw new RuntimeException("Failed to read response" + " to continuation prompt.", e);
public static void main(String[] args) throws IOException { parser = new ClasspathToolParser("appletviewer", true); parser.setHeader("usage: appletviewer [OPTION] -code CODE | URL..."); OptionGroup attributeGroup = new OptionGroup("Applet tag options"); attributeGroup.add(new Option("code", Main.messages...
System.err.println(Main.messages.getString("gcjwebplugin.no_input_files"));
System.err.println(Messages.getString("Main.NoInputFiles"));
public static void main(String[] args) throws IOException { parser = new ClasspathToolParser("appletviewer", true); parser.setHeader("usage: appletviewer [OPTION] -code CODE | URL..."); OptionGroup attributeGroup = new OptionGroup("Applet tag options"); attributeGroup.add(new Option("code", Main.messages...
System.out.println("raw arguments:");
System.out.println(Messages.getString("Main.RawArguments"));
static void printArguments(String[] args) { if (verbose) { System.out.println("raw arguments:"); for (int i = 0; i < args.length; i++) System.out.println(" " + args[i]); } }
Dimension gap = getIntercellSpacing(); int height = getRowHeight() + (gap == null ? 0 : gap.height);
int height = getRowHeight();
public int rowAtPoint(Point point) { if (point != null) { int y0 = getLocation().y; int nrows = getRowCount(); Dimension gap = getIntercellSpacing(); int height = getRowHeight() + (gap == null ? 0 : gap.height); int y = point.y; for (int i = 0; i < nrows; ++i) ...
firePropertyChange("model", oldModel, dataModel);
public void setModel(TableModel m) { // Throw exception is m is null. if (m == null) throw new IllegalArgumentException(); // Don't do anything if setting the current model again. if (dataModel == m) return; // Remove table as TableModelListener from old model. if (dataModel != nul...
if (instance == null)
if (instances == null) instances = new HashMap(); Object o = instances.get(component); MetalInternalFrameUI instance; if (o == null) {
public static ComponentUI createUI(JComponent component) { if (instance == null) instance = new MetalInternalFrameUI((JInternalFrame) component); return instance; }
instances.put(component, instance); } else instance = (MetalInternalFrameUI) o;
public static ComponentUI createUI(JComponent component) { if (instance == null) instance = new MetalInternalFrameUI((JInternalFrame) component); return instance; }
protected AccessibleJDesktopPane(JDesktopPane component) { super(component); }
protected AccessibleJDesktopPane() { }
protected AccessibleJDesktopPane(JDesktopPane component) { super(component); // TODO } // AccessibleJDesktopPane()
public AccessibleContext getAccessibleContext() { if (accessibleContext == null) { accessibleContext = new AccessibleJDesktopPane(this); } return accessibleContext; }
public AccessibleContext getAccessibleContext() { if (accessibleContext == null) accessibleContext = new AccessibleJDesktopPane(); return accessibleContext; }
public AccessibleContext getAccessibleContext() { if (accessibleContext == null) { accessibleContext = new AccessibleJDesktopPane(this); } // if return accessibleContext; } // getAccessibleContext()
public JInternalFrame[] getAllFrames() { return null; }
public JInternalFrame[] getAllFrames() { return getFramesFromComponents(getComponents()); }
public JInternalFrame[] getAllFrames() { return null; // TODO } // getAllFrames()
public JInternalFrame[] getAllFramesInLayer(int layer) { return null; }
public JInternalFrame[] getAllFramesInLayer(int layer) { return getFramesFromComponents(getComponentsInLayer(layer)); }
public JInternalFrame[] getAllFramesInLayer(int layer) { return null; // TODO } // getAllFramesInLayer()
public JInternalFrame getSelectedFrame() { return null; }
public JInternalFrame getSelectedFrame() { return selectedFrame; }
public JInternalFrame getSelectedFrame() { return null; // TODO } // getSelectedFrame()
public String getUIClassID() { return uiClassID; }
public String getUIClassID() { return "DesktopPaneUI"; }
public String getUIClassID() { return uiClassID; } // getUIClassID()
protected String paramString() { return null; }
protected String paramString() { return "JDesktopPane"; }
protected String paramString() { return null; // TODO } // paramString()
public void setDesktopManager(DesktopManager manager) { this.desktopManager = manager; }
public void setDesktopManager(DesktopManager manager) { desktopManager = manager; }
public void setDesktopManager(DesktopManager manager) { this.desktopManager = manager; // TODO } // setDesktopManager()
public void setDragMode(int mode) { this.dragMode = mode; }
public void setDragMode(int mode) { if ((mode != LIVE_DRAG_MODE) && (mode != OUTLINE_DRAG_MODE)) throw new IllegalArgumentException("Drag mode not valid."); if (mode == OUTLINE_DRAG_MODE) throw new IllegalArgumentException("Outline drag modes are unsupported."); dragMode = mode; }
public void setDragMode(int mode) { this.dragMode = mode; // TODO } // setDragMode()
public void updateUI() { setUI((DesktopPaneUI) UIManager.get(this));
public void updateUI() { setUI((DesktopPaneUI) UIManager.getUI(this));
public void updateUI() { setUI((DesktopPaneUI) UIManager.get(this)); invalidate(); } // updateUI()