rem
stringlengths
0
477k
add
stringlengths
0
313k
context
stringlengths
6
599k
getFont();
public abstract Font getFont();
getFont();
getFontMetrics()
public FontMetrics getFontMetrics()
getFontMetrics(){ return(getFontMetrics(getFont()));}
return(getFontMetrics(getFont()));
return getFontMetrics(getFont());
getFontMetrics(){ return(getFontMetrics(getFont()));}
hitClip(int x, int y, int width, int height)
public boolean hitClip(int x, int y, int width, int height)
hitClip(int x, int y, int width, int height){ throw new UnsupportedOperationException("not implemented yet");}
throw new UnsupportedOperationException("not implemented yet");
return getClip().intersects(x, y, width, height);
hitClip(int x, int y, int width, int height){ throw new UnsupportedOperationException("not implemented yet");}
setClip(int x, int y, int width, int height);
public abstract void setClip(int x, int y, int width, int height);
setClip(int x, int y, int width, int height);
setColor(Color color);
public abstract void setColor(Color color);
setColor(Color color);
setFont(Font font);
public abstract void setFont(Font font);
setFont(Font font);
setPaintMode();
public abstract void setPaintMode();
setPaintMode();
setXORMode(Color color);
public abstract void setXORMode(Color color);
setXORMode(Color color);
toString()
public String toString()
toString(){ return getClass ().getName () + "[font=" + getFont () + ",color=" + getColor () + "]";}
translate(int x, int y);
public abstract void translate(int x, int y);
translate(int x, int y);
private void addGroup(ThreadGroup grp) {
private void addGroup(final ThreadGroup grp) {
private void addGroup(ThreadGroup grp) { final int max = grp.activeCount() * 2; final Thread[] ts = new Thread[max]; grp.enumerate(ts,false); for (int i = 0; i < max; i++) { final Thread t = ts[i]; if (t != null) { JIFSFile F = new JIFSFthread(t.getName(),t, this); addFSE(F); } } final int...
grp.enumerate(ts,false);
AccessController.doPrivileged(new PrivilegedAction() { public Object run() { grp.enumerate(ts,false); return null; } });
private void addGroup(ThreadGroup grp) { final int max = grp.activeCount() * 2; final Thread[] ts = new Thread[max]; grp.enumerate(ts,false); for (int i = 0; i < max; i++) { final Thread t = ts[i]; if (t != null) { JIFSFile F = new JIFSFthread(t.getName(),t, this); addFSE(F); } } final int...
grp.enumerate(tgs, false);
AccessController.doPrivileged(new PrivilegedAction() { public Object run() { grp.enumerate(tgs, false); return null; } });
private void addGroup(ThreadGroup grp) { final int max = grp.activeCount() * 2; final Thread[] ts = new Thread[max]; grp.enumerate(ts,false); for (int i = 0; i < max; i++) { final Thread t = ts[i]; if (t != null) { JIFSFile F = new JIFSFthread(t.getName(),t, this); addFSE(F); } } final int...
public JIFSFthread(String name, Thread t, FSDirectory parent) { super(name,parent); this.t = t; refresh();
public JIFSFthread() { return;
public JIFSFthread(String name, Thread t, FSDirectory parent) { super(name,parent); this.t = t; refresh(); }
}
public void close() throws IOException { channel.close(); // Makes sure all intermediate data is released by the decoder. if (decoder != null) decoder.reset(); }
}
public int read(char[] buf, int offset, int count) throws IOException { // I declared channel being null meaning that the reader is closed. if (!channel.isOpen()) throw new IOException("Reader was already closed."); // I declared decoder being null meaning that there is no more data to read // and c...
public int read (ByteBuffer dst) throws IOException;
int read(ByteBuffer dst) throws IOException;
public int read (ByteBuffer dst) throws IOException;
public Position createPosition(int offset) throws BadLocationException;
Position createPosition(int offset) throws BadLocationException;
public Position createPosition(int offset) throws BadLocationException;
public void getChars(int where, int len, Segment txt) throws BadLocationException;
void getChars(int where, int len, Segment txt) throws BadLocationException;
public void getChars(int where, int len, Segment txt) throws BadLocationException;
public String getString(int where, int len) throws BadLocationException;
String getString(int where, int len) throws BadLocationException;
public String getString(int where, int len) throws BadLocationException;
public UndoableEdit insertString(int where, String str) throws BadLocationException;
UndoableEdit insertString(int where, String str) throws BadLocationException;
public UndoableEdit insertString(int where, String str) throws BadLocationException;
public int length();
int length();
public int length();
public UndoableEdit remove(int where, int nitems) throws BadLocationException;
UndoableEdit remove(int where, int nitems) throws BadLocationException;
public UndoableEdit remove(int where, int nitems) throws BadLocationException;
Dictionary getDocumentProperties()
public Dictionary getDocumentProperties()
Dictionary getDocumentProperties() { return null; }
EventListener[] getListeners(Class listenerType)
public EventListener[] getListeners(Class listenerType)
EventListener[] getListeners(Class listenerType) { return null; }
void readLock()
public void readLock()
void readLock() { }
void readUnlock()
public void readUnlock()
void readUnlock() { }
public static Collator getInstance (Locale loc)
public static Collator getInstance ()
public static Collator getInstance (Locale loc) { ResourceBundle res; String pattern; try { res = ResourceBundle.getBundle("gnu.java.locale.LocaleInformation", loc); pattern = res.getString("collation_rules"); } catch (MissingResourceException x) { return null; } try ...
ResourceBundle res; String pattern; try { res = ResourceBundle.getBundle("gnu.java.locale.LocaleInformation", loc); pattern = res.getString("collation_rules"); } catch (MissingResourceException x) { return null; } try { return new RuleBasedCollator (pattern); } catch (ParseException x) { return null; }
return getInstance (Locale.getDefault());
public static Collator getInstance (Locale loc) { ResourceBundle res; String pattern; try { res = ResourceBundle.getBundle("gnu.java.locale.LocaleInformation", loc); pattern = res.getString("collation_rules"); } catch (MissingResourceException x) { return null; } try ...
public TransformerFactoryConfigurationError (Exception e, String msg) { super (msg); exception = e; }
public TransformerFactoryConfigurationError() { this(null, null); }
public TransformerFactoryConfigurationError (Exception e, String msg) { super (msg); exception = e; }
out.println("Total memory " + (rt.totalMemory()/1048576) + "Mb"); out.println("Used memory " + ((rt.totalMemory() - rt.freeMemory())/1048576) + "Mb"); out.println("Free memory " + (rt.freeMemory()/1048576) + "Mb");
out.println("Total memory " + NumberUtils.size(rt.totalMemory())); out.println("Used memory " + NumberUtils.size(rt.totalMemory() - rt.freeMemory())); out.println("Free memory " + NumberUtils.size(rt.freeMemory()));
public void execute(CommandLine cmdLine, InputStream in, PrintStream out, PrintStream err) throws Exception { final Runtime rt = Runtime.getRuntime(); out.println("Total memory " + (rt.totalMemory()/1048576) + "Mb"); out.println("Used memory " + ((rt.totalMemory() - rt.freeMemory())/1048576) + "Mb"); out.println(...
if ((v & (K-1)) != 0) {
if (v < K) {
public static String size(long v) { // Is < 1Kb? if ((v & (K-1)) != 0) { return String.valueOf(v) + "b"; } // Is < 1Mb? v = v >>> 10; if ((v & (K-1)) != 0) { return String.valueOf(v) + "K"; } // Is < 1Gb? v = v >>> 10; if ((v & (K-1)) != 0) { return Strin...
if (((dir_str == null)&&(System.getProperty("user.dir").equals("/")))||(dir_str.equals("/"))){
if (((dir_str == null)&&(System.getProperty("user.dir").equals("/")))||((dir_str != null)&&(dir_str.equals("/")))){
public void execute(CommandLine commandLine, InputStream in, PrintStream out, PrintStream err) throws Exception { ParsedArguments cmdLine = HELP_INFO.parse(commandLine.toStringArray()); String dir_str = ARG_DIR.getValue(cmdLine); if (((dir_str == null)&&(System.getProperty("user.dir").equals("/")))||(dir_str.equa...
public List getDataRuns() {
public List<DataRun> getDataRuns() {
public List getDataRuns() { return dataRuns; }
final List dataruns = getDataRuns();
final List<DataRun> dataruns = getDataRuns();
private void readDataRuns(int parentoffset) { int offset = parentoffset; long previousLCN = 0; final List dataruns = getDataRuns(); long vcn = 0; while (getUInt8(offset) != 0x0) { final DataRun dataRun = new DataRun(this, offset, vcn, previousLCN); // map VCN...
for (Iterator it = this.getDataRuns().iterator(); it.hasNext();) { final DataRun dataRun = (DataRun) it.next();
for (DataRun dataRun : this.getDataRuns()) {
public int readVCN(long vcn, byte[] dst, int dstOffset, int nrClusters) throws IOException { final NTFSVolume volume = getFileRecord().getVolume(); final int clusterSize = volume.getClusterSize(); int readClusters = 0; for (Iterator it = this.getDataRuns().iterator(); it.hasNe...
public IORHolder(IOR initialValue)
public IORHolder()
public IORHolder(IOR initialValue) { value = initialValue; }
value = initialValue;
public IORHolder(IOR initialValue) { value = initialValue; }
final ParsedArguments cmdLine = HELP_INFO.parse(args); final File file = ARG_TOUCH.getFile(cmdLine); final File parentFile = file.getParentFile(); if (!file.exists()) { if (parentFile!=null && !parentFile.exists()) { if (!parentFile.mkdirs()) { System.err.println("Parent dirs can't create"); } } if (file.createNewFile...
new TouchCommand().execute(new CommandLine(args), System.in, System.out, System.err);
public static void main(String[] args) throws Exception { final ParsedArguments cmdLine = HELP_INFO.parse(args); final File file = ARG_TOUCH.getFile(cmdLine); final File parentFile = file.getParentFile(); if (!file.exists()) { if (parentFile!=null && !parentFile.exists()) { ...
Segment segment = new Segment();
Segment segment = getLineBuffer();
protected int drawSelectedText(Graphics g, int x, int y, int p0, int p1) throws BadLocationException { g.setColor(selectedColor); Segment segment = new Segment(); getDocument().getText(p0, p1 - p0, segment); return Utilities.drawTabbedText(segment, x, y, g, this, 0); }
Segment segment = new Segment();
Segment segment = getLineBuffer();
protected int drawUnselectedText(Graphics g, int x, int y, int p0, int p1) throws BadLocationException { JTextComponent textComponent = (JTextComponent) getContainer(); if (textComponent.isEnabled()) g.setColor(unselectedColor); else g.setColor(disabledColor); Segment segment = new Segment(); ...
Document doc = el.getDocument(); Segment seg = new Segment();
public float getPreferredSpan(int axis) { if (axis != X_AXIS && axis != Y_AXIS) throw new IllegalArgumentException(); // make sure we have the metrics updateMetrics(); float span = 0; Element el = getElement(); Document doc = el.getDocument(); Segment seg = new Segment(); switch (axis) ...
for (int i = 0; i < el.getElementCount(); i++) { Element child = el.getElement(i); int start = child.getStartOffset(); int end = child.getEndOffset(); try { doc.getText(start, start + end, seg); } catch (BadLocationException ex) { } int width = metrics.charsWidth(seg.array, seg.offset, seg.count); span = Math.max(spa...
span = determineMaxLineLength();
public float getPreferredSpan(int axis) { if (axis != X_AXIS && axis != Y_AXIS) throw new IllegalArgumentException(); // make sure we have the metrics updateMetrics(); float span = 0; Element el = getElement(); Document doc = el.getDocument(); Segment seg = new Segment(); switch (axis) ...
return ((Integer)tabSize).intValue();
protected int getTabSize() { return 8; }
Segment segment = new Segment();
Segment segment = getLineBuffer();
public Shape modelToView(int position, Shape a, Position.Bias b) throws BadLocationException { // Ensure metrics are up-to-date. updateMetrics(); Document document = getDocument(); // Get rectangle of the line containing position. int lineIndex = getElement().getElementIndex(position); Recta...
float tabSizePixels = getTabSize() + metrics.charWidth('m');
float tabSizePixels = getTabSize() * metrics.charWidth('m');
public float nextTabStop(float x, int tabStop) { float tabSizePixels = getTabSize() + metrics.charWidth('m'); return (float) (Math.floor(x / tabSizePixels) + 1) * tabSizePixels; }
return 0;
Rectangle rec = a.getBounds(); Document doc = getDocument(); Element root = doc.getDefaultRootElement(); int lineClicked = (int) (y - rec.y) / metrics.getHeight(); if (lineClicked >= root.getElementCount()) return getEndOffset() - 1; Element line = root.getElement(lineClicked); Segment s = getLineBuffer(); int sta...
public int viewToModel(float x, float y, Shape a, Position.Bias[] b) { // FIXME: not implemented return 0; }
public ShortMessage(byte[] data)
public ShortMessage()
public ShortMessage(byte[] data) { super(data); }
super(data);
this(defaultMessage);
public ShortMessage(byte[] data) { super(data); }
private void setMessage(int status, int data1, int data2)
public void setMessage(int status, int data1, int data2)
private void setMessage(int status, int data1, int data2) throws InvalidMidiDataException { length = getDataLength(status); length++; if (data == null || data.length < length) data = new byte[length]; data[0] = (byte) status; if (length > 1) { if (data1 < 0 || data1 > 127) throw...
baseJarURL = new URL(null, jarURL, classloader.getURLStreamHandler("jar")); jarfile = ((JarURLConnection) baseJarURL.openConnection()).getJarFile();
baseJarURL = new URL(null, jarURL, classloader.getURLStreamHandler("jar")); jarfile = ((JarURLConnection) baseJarURL.openConnection()).getJarFile(); } catch (IOException ioe) {
public JarURLLoader(URLClassLoader classloader, URL baseURL) { super(classloader, baseURL); // cache url prefix for all resources in this jar url String external = baseURL.toExternalForm(); StringBuffer sb = new StringBuffer(external.length() + 6); sb.append("jar:"); sb.append(exter...
catch (IOException ioe) { }
public JarURLLoader(URLClassLoader classloader, URL baseURL) { super(classloader, baseURL); // cache url prefix for all resources in this jar url String external = baseURL.toExternalForm(); StringBuffer sb = new StringBuffer(external.length() + 6); sb.append("jar:"); sb.append(exter...
synchronized(urlloaders) { if (newUrl == null) return; URLLoader loader = (URLLoader)urlloaders.get(newUrl); if (loader == null) { String file = newUrl.getFile(); if (! (file.endsWith("/") || file.endsWith(File.separator))) loader = new JarURLLoader(this, newUrl); else if ("file".equals(newUrl.getProtocol())) loade...
addURLImpl(newUrl);
protected void addURL(URL newUrl) { synchronized(urlloaders) { if (newUrl == null) return; // Silently ignore... // check global cache to see if there're already url loader // for this url URLLoader loader = (URLLoader)urlloaders.get(newUrl); if (loader == null) { String file = newUrl.getFile...
{ addURL(newUrls[i]); }
addURLImpl(newUrls[i]);
private void addURLs(URL[] newUrls) { for (int i = 0; i < newUrls.length; i++) { addURL(newUrls[i]); } }
{
protected Package definePackage(String name, Manifest manifest, URL url) throws IllegalArgumentException { Attributes attr = manifest.getMainAttributes(); String specTitle = attr.getValue(Attributes.Name.SPECIFICATION_TITLE); String specVersion = attr.getValue(Attributes.Name.SPECIFICATION_VE...
}
protected Package definePackage(String name, Manifest manifest, URL url) throws IllegalArgumentException { Attributes attr = manifest.getMainAttributes(); String specTitle = attr.getValue(Attributes.Name.SPECIFICATION_TITLE); String specVersion = attr.getValue(Attributes.Name.SPECIFICATION_VE...
byte b[] = new byte[4096];
byte[] b = new byte[4096];
protected Class findClass(final String className) throws ClassNotFoundException { // Just try to find the resource by the (almost) same name String resourceName = className.replace('.', '/') + ".class"; Resource resource = findURLResource(resourceName); if (resource == null) throw new ClassNotFou...
{ return (Class)AccessController.doPrivileged (new PrivilegedAction()
return (Class) AccessController.doPrivileged(new PrivilegedAction()
protected Class findClass(final String className) throws ClassNotFoundException { // Just try to find the resource by the (almost) same name String resourceName = className.replace('.', '/') + ".class"; Resource resource = findURLResource(resourceName); if (resource == null) throw new ClassNotFou...
}
protected Class findClass(final String className) throws ClassNotFoundException { // Just try to find the resource by the (almost) same name String resourceName = className.replace('.', '/') + ".class"; Resource resource = findURLResource(resourceName); if (resource == null) throw new ClassNotFou...
{
protected PermissionCollection getPermissions(CodeSource source) { // XXX - This implementation does exactly as the Javadoc describes. // But maybe we should/could use URLConnection.getPermissions()? // First get the permissions that would normally be granted PermissionCollection permissions = super.getP...
}
protected PermissionCollection getPermissions(CodeSource source) { // XXX - This implementation does exactly as the Javadoc describes. // But maybe we should/could use URLConnection.getPermissions()? // First get the permissions that would normally be granted PermissionCollection permissions = super.getP...
public static URLClassLoader newInstance(URL urls[])
public static URLClassLoader newInstance(URL[] urls)
public static URLClassLoader newInstance(URL urls[]) throws SecurityException { return newInstance(urls, null); }
protected SecureClassLoader()
protected SecureClassLoader(ClassLoader parent)
protected SecureClassLoader() { SecurityManager sm = System.getSecurityManager(); if(sm != null) sm.checkCreateClassLoader(); }
super(parent);
protected SecureClassLoader() { SecurityManager sm = System.getSecurityManager(); if(sm != null) sm.checkCreateClassLoader(); }
ProtectionDomain protectionDomain
ProtectionDomain protectionDomain; synchronized (protectionDomainCache) { protectionDomain = (ProtectionDomain)protectionDomainCache.get(cs); } if (protectionDomain == null) { protectionDomain
protected final Class defineClass(String name, byte[] b, int off, int len, CodeSource cs) { // FIXME: Need to cache ProtectionDomains according to 1.3 docs. if (cs != null) { ProtectionDomain protectionDomain = new ProtectionDomain(cs, getPermissions(cs), this, null); return super.defineCl...
synchronized (protectionDomainCache) { ProtectionDomain domain = (ProtectionDomain)protectionDomainCache.get(cs); if (domain == null) protectionDomainCache.put(cs, protectionDomain); else protectionDomain = domain; } }
protected final Class defineClass(String name, byte[] b, int off, int len, CodeSource cs) { // FIXME: Need to cache ProtectionDomains according to 1.3 docs. if (cs != null) { ProtectionDomain protectionDomain = new ProtectionDomain(cs, getPermissions(cs), this, null); return super.defineCl...
super(message, cause);
super(message); initCause(cause);
public ReadOnlyFileSystemException(String message, Throwable cause) { super(message, cause); }
"ScrollBar.shadow", new ColorUIResource(getControlShadow()), "ScrollBar.thumb", new ColorUIResource(getPrimaryControlShadow()), "ScrollBar.thumbDarkShadow", new ColorUIResource(getPrimaryControlDarkShadow()), "ScrollBar.thumbHighlight", new ColorUIResource(getPrimaryControl()),
protected void initComponentDefaults(UIDefaults defaults) { super.initComponentDefaults(defaults); Object[] myDefaults = new Object[] { "Button.background", new ColorUIResource(getControl()), "Button.border", MetalBorders.getButtonBorder(), "Button.font", getControlTextFont(), "Button.margi...
return getSecondary3();
return getSecondary2();
public ColorUIResource getMenuDisabledForeground() { return getSecondary3(); }
public void putDefaults(Object[] list)
public void putDefaults(Object[] entries)
public void putDefaults(Object[] list) { throw new Error("not implemented"); }
throw new Error("not implemented");
for (int i = 0; (2*i+1) < entries.length; ++i) { super.put (entries[2*i], entries[2*i+1]); } firePropertyChange ("UIDefaults", null, null);
public void putDefaults(Object[] list) { throw new Error("not implemented"); }
Color lightPurple = new Color(0xCC, 0xCC, 0xFF); Color midPurple = new Color(0x99, 0x99, 0xCC); Color darkPurple = new Color(0x66, 0x66, 0x99);
Color highLight = new Color(249, 247, 246); Color light = new Color(239, 235, 231); Color shadow = new Color(139, 136, 134); Color darkShadow = new Color(16, 16, 16);
protected void initComponentDefaults(UIDefaults defaults) { Object[] uiDefaults; // The default Look and Feel happens to use these three purple shades // extensively. Color lightPurple = new Color(0xCC, 0xCC, 0xFF); Color midPurple = new Color(0x99, 0x99, 0xCC); Color darkPurple = new Color(0x6...
"Button.background", new ColorUIResource(Color.lightGray),
"Button.background", new ColorUIResource(light),
protected void initComponentDefaults(UIDefaults defaults) { Object[] uiDefaults; // The default Look and Feel happens to use these three purple shades // extensively. Color lightPurple = new Color(0xCC, 0xCC, 0xFF); Color midPurple = new Color(0x99, 0x99, 0xCC); Color darkPurple = new Color(0x6...
"Button.darkShadow", new ColorUIResource(Color.darkGray),
"Button.darkShadow", new ColorUIResource(shadow),
protected void initComponentDefaults(UIDefaults defaults) { Object[] uiDefaults; // The default Look and Feel happens to use these three purple shades // extensively. Color lightPurple = new Color(0xCC, 0xCC, 0xFF); Color midPurple = new Color(0x99, 0x99, 0xCC); Color darkPurple = new Color(0x6...
"Button.focus", midPurple,
protected void initComponentDefaults(UIDefaults defaults) { Object[] uiDefaults; // The default Look and Feel happens to use these three purple shades // extensively. Color lightPurple = new Color(0xCC, 0xCC, 0xFF); Color midPurple = new Color(0x99, 0x99, 0xCC); Color darkPurple = new Color(0x6...
"Button.foreground", new ColorUIResource(Color.black), "Button.highlight", new ColorUIResource(Color.white), "Button.light", new ColorUIResource(Color.lightGray.brighter()),
"Button.foreground", new ColorUIResource(darkShadow), "Button.highlight", new ColorUIResource(highLight), "Button.light", new ColorUIResource(highLight),
protected void initComponentDefaults(UIDefaults defaults) { Object[] uiDefaults; // The default Look and Feel happens to use these three purple shades // extensively. Color lightPurple = new Color(0xCC, 0xCC, 0xFF); Color midPurple = new Color(0x99, 0x99, 0xCC); Color darkPurple = new Color(0x6...
"Button.shadow", new ColorUIResource(Color.gray),
"Button.shadow", new ColorUIResource(shadow),
protected void initComponentDefaults(UIDefaults defaults) { Object[] uiDefaults; // The default Look and Feel happens to use these three purple shades // extensively. Color lightPurple = new Color(0xCC, 0xCC, 0xFF); Color midPurple = new Color(0x99, 0x99, 0xCC); Color darkPurple = new Color(0x6...
"CheckBox.background", new ColorUIResource(Color.lightGray),
"CheckBox.background", new ColorUIResource(light),
protected void initComponentDefaults(UIDefaults defaults) { Object[] uiDefaults; // The default Look and Feel happens to use these three purple shades // extensively. Color lightPurple = new Color(0xCC, 0xCC, 0xFF); Color midPurple = new Color(0x99, 0x99, 0xCC); Color darkPurple = new Color(0x6...
"CheckBox.darkShadow", new ColorUIResource(Color.darkGray),
protected void initComponentDefaults(UIDefaults defaults) { Object[] uiDefaults; // The default Look and Feel happens to use these three purple shades // extensively. Color lightPurple = new Color(0xCC, 0xCC, 0xFF); Color midPurple = new Color(0x99, 0x99, 0xCC); Color darkPurple = new Color(0x6...
"CheckBox.foreground", new ColorUIResource(Color.black), "CheckBox.highlight", new ColorUIResource(Color.white),
"CheckBox.foreground", new ColorUIResource(darkShadow),
protected void initComponentDefaults(UIDefaults defaults) { Object[] uiDefaults; // The default Look and Feel happens to use these three purple shades // extensively. Color lightPurple = new Color(0xCC, 0xCC, 0xFF); Color midPurple = new Color(0x99, 0x99, 0xCC); Color darkPurple = new Color(0x6...
"CheckBox.light", new ColorUIResource(Color.lightGray.brighter()),
protected void initComponentDefaults(UIDefaults defaults) { Object[] uiDefaults; // The default Look and Feel happens to use these three purple shades // extensively. Color lightPurple = new Color(0xCC, 0xCC, 0xFF); Color midPurple = new Color(0x99, 0x99, 0xCC); Color darkPurple = new Color(0x6...
"CheckBox.shadow", new ColorUIResource(Color.gray),
protected void initComponentDefaults(UIDefaults defaults) { Object[] uiDefaults; // The default Look and Feel happens to use these three purple shades // extensively. Color lightPurple = new Color(0xCC, 0xCC, 0xFF); Color midPurple = new Color(0x99, 0x99, 0xCC); Color darkPurple = new Color(0x6...
"CheckBoxMenuItem.acceleratorForeground", new ColorUIResource(Color.black), "CheckBoxMenuItem.acceleratorSelectionForeground", new ColorUIResource(Color.white),
"CheckBoxMenuItem.acceleratorForeground", new ColorUIResource(darkShadow), "CheckBoxMenuItem.acceleratorSelectionForeground", new ColorUIResource(Color.white),
protected void initComponentDefaults(UIDefaults defaults) { Object[] uiDefaults; // The default Look and Feel happens to use these three purple shades // extensively. Color lightPurple = new Color(0xCC, 0xCC, 0xFF); Color midPurple = new Color(0x99, 0x99, 0xCC); Color darkPurple = new Color(0x6...
"CheckBoxMenuItem.background", new ColorUIResource(Color.lightGray),
"CheckBoxMenuItem.background", new ColorUIResource(light),
protected void initComponentDefaults(UIDefaults defaults) { Object[] uiDefaults; // The default Look and Feel happens to use these three purple shades // extensively. Color lightPurple = new Color(0xCC, 0xCC, 0xFF); Color midPurple = new Color(0x99, 0x99, 0xCC); Color darkPurple = new Color(0x6...
"CheckBoxMenuItem.foreground", new ColorUIResource(Color.black),
"CheckBoxMenuItem.foreground", new ColorUIResource(darkShadow),
protected void initComponentDefaults(UIDefaults defaults) { Object[] uiDefaults; // The default Look and Feel happens to use these three purple shades // extensively. Color lightPurple = new Color(0xCC, 0xCC, 0xFF); Color midPurple = new Color(0x99, 0x99, 0xCC); Color darkPurple = new Color(0x6...
"CheckBoxMenuItem.selectionBackground", new ColorUIResource(lightPurple), "CheckBoxMenuItem.selectionForeground", new ColorUIResource(Color.black), "ColorChooser.background", new ColorUIResource(Color.lightGray),
"CheckBoxMenuItem.selectionBackground", new ColorUIResource(Color.black), "CheckBoxMenuItem.selectionForeground", new ColorUIResource(Color.white), "ColorChooser.background", new ColorUIResource(light),
protected void initComponentDefaults(UIDefaults defaults) { Object[] uiDefaults; // The default Look and Feel happens to use these three purple shades // extensively. Color lightPurple = new Color(0xCC, 0xCC, 0xFF); Color midPurple = new Color(0x99, 0x99, 0xCC); Color darkPurple = new Color(0x6...
"ColorChooser.foreground", new ColorUIResource(Color.black),
"ColorChooser.foreground", new ColorUIResource(darkShadow),
protected void initComponentDefaults(UIDefaults defaults) { Object[] uiDefaults; // The default Look and Feel happens to use these three purple shades // extensively. Color lightPurple = new Color(0xCC, 0xCC, 0xFF); Color midPurple = new Color(0x99, 0x99, 0xCC); Color darkPurple = new Color(0x6...
"ColorChooser.swatchesDefaultRecentColor", new ColorUIResource(Color.lightGray),
"ColorChooser.swatchesDefaultRecentColor", new ColorUIResource(light),
protected void initComponentDefaults(UIDefaults defaults) { Object[] uiDefaults; // The default Look and Feel happens to use these three purple shades // extensively. Color lightPurple = new Color(0xCC, 0xCC, 0xFF); Color midPurple = new Color(0x99, 0x99, 0xCC); Color darkPurple = new Color(0x6...
"ComboBox.background", new ColorUIResource(Color.white), "ComboBox.disabledBackground", new ColorUIResource(Color.lightGray),
"ComboBox.background", new ColorUIResource(light), "ComboBox.buttonBackground", new ColorUIResource(light), "ComboBox.buttonDarkShadow", new ColorUIResource(shadow), "ComboBox.buttonHighlight", new ColorUIResource(highLight), "ComboBox.buttonShadow", new ColorUIResource(shadow), "ComboBox.disabledBackground", new Color...
protected void initComponentDefaults(UIDefaults defaults) { Object[] uiDefaults; // The default Look and Feel happens to use these three purple shades // extensively. Color lightPurple = new Color(0xCC, 0xCC, 0xFF); Color midPurple = new Color(0x99, 0x99, 0xCC); Color darkPurple = new Color(0x6...
"ComboBox.selectionBackground", new ColorUIResource(lightPurple), "ComboBox.selectionForeground", new ColorUIResource(Color.black),
"ComboBox.selectionBackground", new ColorUIResource(Color.black), "ComboBox.selectionForeground", new ColorUIResource(Color.white),
protected void initComponentDefaults(UIDefaults defaults) { Object[] uiDefaults; // The default Look and Feel happens to use these three purple shades // extensively. Color lightPurple = new Color(0xCC, 0xCC, 0xFF); Color midPurple = new Color(0x99, 0x99, 0xCC); Color darkPurple = new Color(0x6...
"Desktop.background", new ColorUIResource(175, 163, 236),
"Desktop.background", new ColorUIResource(0, 92, 92),
protected void initComponentDefaults(UIDefaults defaults) { Object[] uiDefaults; // The default Look and Feel happens to use these three purple shades // extensively. Color lightPurple = new Color(0xCC, 0xCC, 0xFF); Color midPurple = new Color(0x99, 0x99, 0xCC); Color darkPurple = new Color(0x6...
"EditorPane.caretForeground", new ColorUIResource(Color.red),
"EditorPane.caretForeground", new ColorUIResource(Color.black),
protected void initComponentDefaults(UIDefaults defaults) { Object[] uiDefaults; // The default Look and Feel happens to use these three purple shades // extensively. Color lightPurple = new Color(0xCC, 0xCC, 0xFF); Color midPurple = new Color(0x99, 0x99, 0xCC); Color darkPurple = new Color(0x6...
"EditorPane.selectionBackground", new ColorUIResource(Color.lightGray),
"EditorPane.selectionBackground", new ColorUIResource(Color.black),
protected void initComponentDefaults(UIDefaults defaults) { Object[] uiDefaults; // The default Look and Feel happens to use these three purple shades // extensively. Color lightPurple = new Color(0xCC, 0xCC, 0xFF); Color midPurple = new Color(0x99, 0x99, 0xCC); Color darkPurple = new Color(0x6...
"InternalFrame.activeTitleBackground", new ColorUIResource(162, 167, 241), "InternalFrame.activeTitleForeground", new ColorUIResource(Color.black), "InternalFrame.border", new BorderUIResource.CompoundBorderUIResource(null, null),
"InternalFrame.activeTitleBackground", new ColorUIResource(0, 0, 128), "InternalFrame.activeTitleForeground", new ColorUIResource(Color.white), "InternalFrame.border", new BorderUIResource.CompoundBorderUIResource(null, null), "InternalFrame.borderColor", new ColorUIResource(light), "InternalFrame.borderDarkShadow", ne...
protected void initComponentDefaults(UIDefaults defaults) { Object[] uiDefaults; // The default Look and Feel happens to use these three purple shades // extensively. Color lightPurple = new Color(0xCC, 0xCC, 0xFF); Color midPurple = new Color(0x99, 0x99, 0xCC); Color darkPurple = new Color(0x6...
"InternalFrame.inactiveTitleBackground", new ColorUIResource(Color.lightGray), "InternalFrame.inactiveTitleForeground", new ColorUIResource(Color.black),
"InternalFrame.inactiveTitleBackground", new ColorUIResource(Color.gray), "InternalFrame.inactiveTitleForeground", new ColorUIResource(Color.lightGray),
protected void initComponentDefaults(UIDefaults defaults) { Object[] uiDefaults; // The default Look and Feel happens to use these three purple shades // extensively. Color lightPurple = new Color(0xCC, 0xCC, 0xFF); Color midPurple = new Color(0x99, 0x99, 0xCC); Color darkPurple = new Color(0x6...
"Label.background", new ColorUIResource(Color.lightGray),
"Label.background", new ColorUIResource(light),
protected void initComponentDefaults(UIDefaults defaults) { Object[] uiDefaults; // The default Look and Feel happens to use these three purple shades // extensively. Color lightPurple = new Color(0xCC, 0xCC, 0xFF); Color midPurple = new Color(0x99, 0x99, 0xCC); Color darkPurple = new Color(0x6...
"Label.disabledShadow", new ColorUIResource(Color.gray),
"Label.disabledShadow", new ColorUIResource(shadow),
protected void initComponentDefaults(UIDefaults defaults) { Object[] uiDefaults; // The default Look and Feel happens to use these three purple shades // extensively. Color lightPurple = new Color(0xCC, 0xCC, 0xFF); Color midPurple = new Color(0x99, 0x99, 0xCC); Color darkPurple = new Color(0x6...
"Label.foreground", new ColorUIResource(Color.black), "List.background", new ColorUIResource(Color.white),
"Label.foreground", new ColorUIResource(darkShadow), "List.background", new ColorUIResource(light),
protected void initComponentDefaults(UIDefaults defaults) { Object[] uiDefaults; // The default Look and Feel happens to use these three purple shades // extensively. Color lightPurple = new Color(0xCC, 0xCC, 0xFF); Color midPurple = new Color(0x99, 0x99, 0xCC); Color darkPurple = new Color(0x6...