rem
stringlengths
0
477k
add
stringlengths
0
313k
context
stringlengths
6
599k
return null;
public static ColorUIResource getMenuForeground() { return theme.getMenuForeground(); }
return null;
public static ColorUIResource getMenuSelectedBackground() { return theme.getMenuSelectedBackground(); }
return null;
public static ColorUIResource getMenuSelectedForeground() { return theme.getMenuSelectedForeground(); }
return null;
public static FontUIResource getMenuTextFont() { return theme.getMenuTextFont(); }
return "MetalLookAndFeel";
return "Metal";
public String getName() { return "MetalLookAndFeel"; }
return null;
public static ColorUIResource getPrimaryControl() { return theme.getPrimaryControl(); }
return null;
public static ColorUIResource getPrimaryControlDarkShadow() { return theme.getPrimaryControlDarkShadow(); }
return null;
public static ColorUIResource getPrimaryControlHighlight() { return theme.getPrimaryControlHighlight(); }
return null;
public static ColorUIResource getPrimaryControlInfo() { return theme.getPrimaryControlInfo(); }
return null;
public static ColorUIResource getPrimaryControlShadow() { return theme.getPrimaryControlShadow(); }
return null;
public static ColorUIResource getSeparatorBackground() { return theme.getSeparatorBackground(); }
return null;
public static ColorUIResource getSeparatorForeground() { return theme.getSeparatorForeground(); }
return null;
public static FontUIResource getSubTextFont() { return theme.getSubTextFont(); }
return null;
public static ColorUIResource getSystemTextColor() { return theme.getSystemTextColor(); }
return null;
public static FontUIResource getSystemTextFont() { return theme.getSystemTextFont(); }
return null;
public static ColorUIResource getTextHighlightColor() { return theme.getTextHighlightColor(); }
return null;
public static ColorUIResource getUserTextColor() { return theme.getUserTextColor(); }
return null;
public static FontUIResource getUserTextFont() { return theme.getUserTextFont(); }
return null;
public static ColorUIResource getWhite() { return theme.getWhite(); }
return null;
public static ColorUIResource getWindowBackground() { return theme.getWindowBackground(); }
return null;
public static ColorUIResource getWindowTitleBackground() { return theme.getWindowTitleBackground(); }
return null;
public static FontUIResource getWindowTitleFont() { return theme.getWindowTitleFont(); }
return null;
public static ColorUIResource getWindowTitleForeground() { return theme.getWindowTitleForeground(); }
return null;
public static ColorUIResource getWindowTitleInactiveBackground() { return theme.getWindowTitleInactiveBackground(); }
return null;
public static ColorUIResource getWindowTitleInactiveForeground() { return theme.getWindowTitleInactiveForeground(); }
"EditorPane.font", new FontUIResource("Dialog", Font.PLAIN, 12),
"EditorPane.font", new FontUIResource("Dialog", Font.BOLD, 12),
protected void initComponentDefaults(UIDefaults defaults) { super.initComponentDefaults(defaults); Object[] myDefaults = new Object[] { "Button.background", getControl(), "Button.border", MetalBorders.getButtonBorder(), "Button.darkShadow", getControlDarkShadow(), "Button.disabledText", get...
"FileChooser.fileNameLabelMnemonic", new Integer(78), "FileChooser.filesOfTypeLabelMnemonic",new Integer(84), "FileChooser.lookInLabelMnemonic", new Integer(73),
protected void initComponentDefaults(UIDefaults defaults) { super.initComponentDefaults(defaults); Object[] myDefaults = new Object[] { "Button.background", getControl(), "Button.border", MetalBorders.getButtonBorder(), "Button.darkShadow", getControlDarkShadow(), "Button.disabledText", get...
"Menu.checkIcon", MetalIconFactory.getMenuItemCheckIcon(),
"MenuItem.commandSound", "sounds/MenuItemCommand.wav",
protected void initComponentDefaults(UIDefaults defaults) { super.initComponentDefaults(defaults); Object[] myDefaults = new Object[] { "Button.background", getControl(), "Button.border", MetalBorders.getButtonBorder(), "Button.darkShadow", getControlDarkShadow(), "Button.disabledText", get...
"ToolTip.hideAccelerator", Boolean.FALSE,
protected void initComponentDefaults(UIDefaults defaults) { super.initComponentDefaults(defaults); Object[] myDefaults = new Object[] { "Button.background", getControl(), "Button.border", MetalBorders.getButtonBorder(), "Button.darkShadow", getControlDarkShadow(), "Button.disabledText", get...
final private void flushDirectories() throws IOException
final private void flushDirectories()
final private void flushDirectories() throws IOException { log.info("flushing directories ..."); for (FSDirectory d : directories.values()) { log.debug("flush: flushing directory "+d); //TODO: uncomment this line //d.flush(); } }
log.debug("flush: flushing directory "+d);
if(log.isDebugEnabled()) { log.debug("flush: flushing directory "+d); }
final private void flushDirectories() throws IOException { log.info("flushing directories ..."); for (FSDirectory d : directories.values()) { log.debug("flush: flushing directory "+d); //TODO: uncomment this line //d.flush(); } }
log.debug("flush: flushing file "+f);
if(log.isDebugEnabled()) { log.debug("flush: flushing file "+f); }
final private void flushFiles() throws IOException { log.info("flushing files ..."); for (FSFile f : files.values()) { log.debug("flush: flushing file "+f); f.flush(); } }
FSDirectory dir = (FSDirectory)directories.get(entry);
FSDirectory dir = directories.get(entry);
final public synchronized FSDirectory getDirectory(FSEntry entry) throws IOException { if(isClosed()) throw new IOException("FileSystem is closed"); FSDirectory dir = (FSDirectory)directories.get(entry); if (dir == null) { dir = createDirectory(entry); directories.put(entry, dir); } return dir; ...
return (FSBlockDeviceAPI) device.getAPI(FSBlockDeviceAPI.class);
return device.getAPI(FSBlockDeviceAPI.class);
final public FSBlockDeviceAPI getFSApi() throws ApiNotFoundException { return (FSBlockDeviceAPI) device.getAPI(FSBlockDeviceAPI.class); }
FSFile file = (FSFile)files.get(entry);
FSFile file = files.get(entry);
final public synchronized FSFile getFile(FSEntry entry) throws IOException { if(isClosed()) throw new IOException("FileSystem is closed"); FSFile file = (FSFile)files.get(entry); if (file == null) { file = createFile(entry); files.put(entry, file); } return file; }
getViewSize());
getExtentSize());
public Rectangle getViewRect() { return new Rectangle(getViewPosition(), getViewSize()); }
if (viewExtent == null) return getPreferredSize();
if (viewSize == null) return getView().getPreferredSize();
public Dimension getViewSize() { if (viewExtent == null) return getPreferredSize(); else return viewExtent; }
return viewExtent;
return viewSize;
public Dimension getViewSize() { if (viewExtent == null) return getPreferredSize(); else return viewExtent; }
viewExtent = newSize;
viewSize = newSize; Component view = getView(); if (view != null) view.setSize(newSize);
public void setViewSize(Dimension newSize) { viewExtent = newSize; fireStateChanged(); }
menuBar.remove(menu);
if (menu == menuBar) { if (menuBar != null) { if (peer != null) { ((FramePeer) peer).setMenuBar(null); menuBar.removeNotify(); } menuBar.setParent(null); } menuBar = null; } else super.remove(menu);
public void remove(MenuComponent menu) { menuBar.remove(menu); }
if (this.menuBar != null) this.menuBar.removeNotify();
public synchronized void setMenuBar(MenuBar menuBar) { if (peer != null) { if (this.menuBar != null) this.menuBar.removeNotify(); if (menuBar != null) menuBar.addNotify(); invalidateTree (); ((FramePeer) peer).setMenuBar(menuBar); } menuBar.frame = this; this.menuBar = menuBar; }
menuBar.frame = this; this.menuBar = menuBar;
}
public synchronized void setMenuBar(MenuBar menuBar) { if (peer != null) { if (this.menuBar != null) this.menuBar.removeNotify(); if (menuBar != null) menuBar.addNotify(); invalidateTree (); ((FramePeer) peer).setMenuBar(menuBar); } menuBar.frame = this; this.menuBar = menuBar; }
System.out.println("hh0'");
public ProtocolAddress[] getByName(String hostname) throws UnknownHostException { ProtocolAddress[] protocolAddresses = null; System.out.println("hh0"); protocolAddresses = getFromHostsFile(hostname); if (protocolAddresses != null) { return protocolAddresses; } System.out.println("hh1"); Lookup lookup = null;...
SwingConstants.TOP, SwingConstants.LEFT,
SwingConstants.CENTER, SwingConstants.LEFT,
public void paintComponent(Graphics g) { super.paintComponent(g); if (iconOnly) { Rectangle bounds = getBounds(); int x = (bounds.width - comboIcon.getIconWidth()) / 2; int y = (bounds.height - comboIcon.getIconHeight()) / 2; comboIcon.paintIcon(comboBox, g, x, y); } ...
innerArea, new Rectangle(), textR, 0); int yAdj = (textR.height - fm.getAscent()) / 2 + 1;
viewArea, new Rectangle(), textR, 0); text = truncateText(text, innerArea.width - comboIcon.getIconWidth() - 7, fm); int yAdj = fm.getDescent() + fm.getLeading();
public void paintComponent(Graphics g) { super.paintComponent(g); if (iconOnly) { Rectangle bounds = getBounds(); int x = (bounds.width - comboIcon.getIconWidth()) / 2; int y = (bounds.height - comboIcon.getIconHeight()) / 2; comboIcon.paintIcon(comboBox, g, x, y); } ...
accessibleContext = new AccessibleAWTScrollbar();
accessibleContext = new AccessibleAWTScrollBar();
public AccessibleContext getAccessibleContext() { /* Create the context if this is the first request */ if (accessibleContext == null) accessibleContext = new AccessibleAWTScrollbar(); return accessibleContext; }
{
TemplateNode clone(Stylesheet stylesheet) { TemplateNode ret = new ApplyImportsNode(); if (children != null) { ret.children = children.clone(stylesheet); } if (next != null) { ret.next = next.clone(stylesheet); } return ret; }
}
TemplateNode clone(Stylesheet stylesheet) { TemplateNode ret = new ApplyImportsNode(); if (children != null) { ret.children = children.clone(stylesheet); } if (next != null) { ret.next = next.clone(stylesheet); } return ret; }
{
void doApply(Stylesheet stylesheet, QName mode, Node context, int pos, int len, Node parent, Node nextSibling) throws TransformerException { TemplateNode t = stylesheet.getTemplate(mode, context, true); if (t != null) { t.apply(stylesheet, mode, context, pos, len, ...
}
void doApply(Stylesheet stylesheet, QName mode, Node context, int pos, int len, Node parent, Node nextSibling) throws TransformerException { TemplateNode t = stylesheet.getTemplate(mode, context, true); if (t != null) { t.apply(stylesheet, mode, context, pos, len, ...
InputMap keyMap = getInputMap( JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT); SwingUtilities.replaceUIInputMap(scrollbar, JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, keyMap); ActionMap map = getActionMap(); SwingUtilities.replaceUIActionMap(scrollbar, map);
protected void installKeyboardActions() throws NotImplementedException { // FIXME: implement. }
installKeyboardActions();
public void installUI(JComponent c) { super.installUI(c); if (c instanceof JScrollBar) { scrollbar = (JScrollBar) c; trackRect = new Rectangle(); thumbRect = new Rectangle(); scrollTimer = new Timer(300, null); installDefaults(); installComponents(); configureScrollBarColors(); installListeners(); calcula...
SwingUtilities.replaceUIActionMap(scrollbar, null); SwingUtilities.replaceUIInputMap(scrollbar, JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, null);
protected void uninstallKeyboardActions() throws NotImplementedException { // FIXME: implement. }
uninstallKeyboardActions();
public void uninstallUI(JComponent c) { uninstallListeners(); uninstallDefaults(); uninstallComponents(); scrollTimer = null; thumbRect = null; trackRect = null; trackColor = null; trackHighlightColor = null; thumbColor = null; thumbHighlightColor = null; thumbDarkShadowColor = null;...
StringBuilder builder;
StringBuffer builder;
public String toString() { StringBuilder builder; builder = new StringBuilder(getClass().getName()); builder.append("[field="); builder.append(field); builder.append(", size="); builder.append(size); builder.append(", character="); builder.append(character); builder.a...
builder = new StringBuilder(getClass().getName());
builder = new StringBuffer(getClass().getName());
public String toString() { StringBuilder builder; builder = new StringBuilder(getClass().getName()); builder.append("[field="); builder.append(field); builder.append(", size="); builder.append(size); builder.append(", character="); builder.append(character); builder.a...
else calendar.set (Calendar.DST_OFFSET, 0);
public Date parse (String dateStr, ParsePosition pos) { int fmt_index = 0; int fmt_max = pattern.length(); calendar.clear(); boolean saw_timezone = false; int quote_start = -1; boolean is2DigitYear = false; try { for (; fmt_index < fmt_max; ++fmt_index) { char ch = pattern.charAt(fm...
StringBuilder output = new StringBuilder(getClass().getName());
StringBuffer output = new StringBuffer(getClass().getName());
public String toString() { StringBuilder output = new StringBuilder(getClass().getName()); output.append("[tokens="); output.append(tokens); output.append(", formatData="); output.append(formatData); output.append(", defaultCenturyStart="); output.append(defaultCenturyStart); output.append("...
return is_def;
JRootPane rp = SwingUtilities.getRootPane(this); boolean isDefault = false; if (rp != null) isDefault = rp.getDefaultButton() == this; return isDefault;
public boolean isDefaultButton() { // Returns whether or not this button is the default button on the // RootPane. return is_def; }
return def;
return defaultCapable;
public boolean isDefaultCapable() { // Returns whether or not this button is capable of being the default // button on the RootPane. return def; }
sb.append(",defaultButton=").append(is_def); sb.append(",defaultCapable=").append(def);
sb.append(",defaultButton=").append(isDefaultButton()); sb.append(",defaultCapable=").append(defaultCapable);
protected String paramString() { String superParam = super.paramString(); // 41 is the maximum number of chars which may be needed. StringBuffer sb = new StringBuffer(41); sb.append(",defaultButton=").append(is_def); sb.append(",defaultCapable=").append(def); return superParam + sb.toString(); }
def = defaultCapable;
this.defaultCapable = defaultCapable;
public void setDefaultCapable(boolean defaultCapable) { def = defaultCapable; }
doc.building = building;
public Node cloneNode(boolean deep) { DomNode node = (DomNode) clone(); if (deep) { DomDocument doc = (nodeType == DOCUMENT_NODE) ? (DomDocument) node : node.owner; for (DomNode ctx = first; ctx != null; ctx = ctx.next) { DomNode newChild = (DomNode) ctx.clon...
throws NotImplementedException
public AccessibleJTableHeaderEntry(int c, JTableHeader p, JTable t) throws NotImplementedException { throw new Error("not implemented"); }
throw new Error("not implemented");
columnIndex = c; parent = p; table = t;
public AccessibleJTableHeaderEntry(int c, JTableHeader p, JTable t) throws NotImplementedException { throw new Error("not implemented"); }
throws NotImplementedException
public void addFocusListener(FocusListener l) throws NotImplementedException { throw new Error("not implemented"); }
throw new Error("not implemented");
AccessibleContext ac = getAccessibleColumnHeaderRenderer(); AccessibleComponent c = ac.getAccessibleComponent(); if (c != null) c.addFocusListener(l);
public void addFocusListener(FocusListener l) throws NotImplementedException { throw new Error("not implemented"); }
throws NotImplementedException
public void addPropertyChangeListener(PropertyChangeListener l) throws NotImplementedException { throw new Error("not implemented"); }
throw new Error("not implemented");
AccessibleContext ac = getAccessibleColumnHeaderRenderer(); if (ac != null) ac.addPropertyChangeListener(l);
public void addPropertyChangeListener(PropertyChangeListener l) throws NotImplementedException { throw new Error("not implemented"); }
throws NotImplementedException
public boolean contains(Point p) throws NotImplementedException { throw new Error("not implemented"); }
throw new Error("not implemented");
AccessibleContext ac = getAccessibleColumnHeaderRenderer(); AccessibleComponent c = ac.getAccessibleComponent(); if (c != null) return c.contains(p); else return false;
public boolean contains(Point p) throws NotImplementedException { throw new Error("not implemented"); }
throws NotImplementedException
public AccessibleAction getAccessibleAction() throws NotImplementedException { throw new Error("not implemented"); }
throw new Error("not implemented");
AccessibleContext ac = getAccessibleColumnHeaderRenderer(); if (ac instanceof AccessibleAction) return (AccessibleAction) ac; else return null;
public AccessibleAction getAccessibleAction() throws NotImplementedException { throw new Error("not implemented"); }
throws NotImplementedException
public Accessible getAccessibleAt(Point p) throws NotImplementedException { throw new Error("not implemented"); }
throw new Error("not implemented");
AccessibleContext ac = getAccessibleColumnHeaderRenderer(); AccessibleComponent c = ac.getAccessibleComponent(); if (c != null) return c.getAccessibleAt(p); else return null;
public Accessible getAccessibleAt(Point p) throws NotImplementedException { throw new Error("not implemented"); }
throws NotImplementedException
public Accessible getAccessibleChild(int i) throws NotImplementedException { throw new Error("not implemented"); }
throw new Error("not implemented");
return null;
public Accessible getAccessibleChild(int i) throws NotImplementedException { throw new Error("not implemented"); }
throws NotImplementedException
public int getAccessibleChildrenCount() throws NotImplementedException { throw new Error("not implemented"); }
throw new Error("not implemented");
return 0;
public int getAccessibleChildrenCount() throws NotImplementedException { throw new Error("not implemented"); }
throws NotImplementedException
public AccessibleComponent getAccessibleComponent() throws NotImplementedException { throw new Error("not implemented"); }
throw new Error("not implemented");
return this;
public AccessibleComponent getAccessibleComponent() throws NotImplementedException { throw new Error("not implemented"); }
throws NotImplementedException
public AccessibleContext getAccessibleContext() throws NotImplementedException { throw new Error("not implemented"); }
throw new Error("not implemented");
return this;
public AccessibleContext getAccessibleContext() throws NotImplementedException { throw new Error("not implemented"); }
throws NotImplementedException
public String getAccessibleDescription() throws NotImplementedException { throw new Error("not implemented"); }
throw new Error("not implemented");
AccessibleContext ac = getAccessibleColumnHeaderRenderer(); if (ac != null) return ac.getAccessibleDescription(); return accessibleDescription;
public String getAccessibleDescription() throws NotImplementedException { throw new Error("not implemented"); }
throws NotImplementedException
public int getAccessibleIndexInParent() throws NotImplementedException { throw new Error("not implemented"); }
throw new Error("not implemented");
return columnIndex;
public int getAccessibleIndexInParent() throws NotImplementedException { throw new Error("not implemented"); }
throws NotImplementedException
public String getAccessibleName() throws NotImplementedException { throw new Error("not implemented"); }
throw new Error("not implemented");
AccessibleContext ac = getAccessibleColumnHeaderRenderer(); if (ac != null) return ac.getAccessibleName(); return accessibleName;
public String getAccessibleName() throws NotImplementedException { throw new Error("not implemented"); }
throws NotImplementedException
public AccessibleRole getAccessibleRole() throws NotImplementedException { throw new Error("not implemented"); }
throw new Error("not implemented");
AccessibleContext ac = getAccessibleColumnHeaderRenderer(); if (ac != null) return ac.getAccessibleRole(); else return null;
public AccessibleRole getAccessibleRole() throws NotImplementedException { throw new Error("not implemented"); }
throws NotImplementedException
public AccessibleSelection getAccessibleSelection() throws NotImplementedException { throw new Error("not implemented"); }
throw new Error("not implemented");
AccessibleContext ac = getAccessibleColumnHeaderRenderer(); if (ac instanceof AccessibleValue) return (AccessibleSelection) ac; else return null;
public AccessibleSelection getAccessibleSelection() throws NotImplementedException { throw new Error("not implemented"); }
throws NotImplementedException
public AccessibleStateSet getAccessibleStateSet() throws NotImplementedException { throw new Error("not implemented"); }
throw new Error("not implemented");
AccessibleContext ac = getAccessibleColumnHeaderRenderer(); if (ac != null) return ac.getAccessibleStateSet(); else return null;
public AccessibleStateSet getAccessibleStateSet() throws NotImplementedException { throw new Error("not implemented"); }
throws NotImplementedException
public AccessibleText getAccessibleText() throws NotImplementedException { throw new Error("not implemented"); }
throw new Error("not implemented");
AccessibleContext ac = getAccessibleColumnHeaderRenderer(); if (ac != null) return ac.getAccessibleText(); else return null;
public AccessibleText getAccessibleText() throws NotImplementedException { throw new Error("not implemented"); }
throws NotImplementedException
public AccessibleValue getAccessibleValue() throws NotImplementedException { throw new Error("not implemented"); }
throw new Error("not implemented");
AccessibleContext ac = getAccessibleColumnHeaderRenderer(); if (ac instanceof AccessibleValue) return (AccessibleValue) ac; else return null;
public AccessibleValue getAccessibleValue() throws NotImplementedException { throw new Error("not implemented"); }
throws NotImplementedException
public Color getBackground() throws NotImplementedException { throw new Error("not implemented"); }