rem stringlengths 0 477k | add stringlengths 0 313k | context stringlengths 6 599k |
|---|---|---|
else return view.getPreferredSize(); } | public Dimension preferredLayoutSize(Container parent) { return null; } | |
if (layoutMgr != null) | if (layoutMgr == null) | protected String paramString() { if (layoutMgr != null) return super.paramString(); StringBuffer sb = new StringBuffer(); sb.append(super.paramString()); sb.append(",layout="); sb.append(layoutMgr.getClass().getName()); return sb.toString(); } |
mouseWheelListener = new MouseWheelHandler(); | mouseWheelListener = createMouseWheelListener(); | protected void installListeners(JScrollPane sp) { if (spPropertyChangeListener == null) spPropertyChangeListener = createPropertyChangeListener(); sp.addPropertyChangeListener(spPropertyChangeListener); if (hsbChangeListener == null) hsbChangeListener = createHSBChangeListener(); sp.getHorizont... |
{ | void addAttributeSet(Stylesheet stylesheet, QName mode, Node context, int pos, int len, Node parent, Node nextSibling, String attributeSet) throws TransformerException { for (Iterator i = stylesheet.attributeSets.iterator(); i.hasNext(); ) { AttributeSet ... | |
} | void addAttributeSet(Stylesheet stylesheet, QName mode, Node context, int pos, int len, Node parent, Node nextSibling, String attributeSet) throws TransformerException { for (Iterator i = stylesheet.attributeSets.iterator(); i.hasNext(); ) { AttributeSet ... | |
{ | TemplateNode clone(Stylesheet stylesheet) { TemplateNode ret = new CopyNode(uas); 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 CopyNode(uas); 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 { Node copy = parent; switch (context.getNodeType()) { case Node.TEXT_NODE: case Node.ATTRIBUTE_NODE: case Node.ELEMENT_N... | |
} | void doApply(Stylesheet stylesheet, QName mode, Node context, int pos, int len, Node parent, Node nextSibling) throws TransformerException { Node copy = parent; switch (context.getNodeType()) { case Node.TEXT_NODE: case Node.ATTRIBUTE_NODE: case Node.ELEMENT_N... | |
StringBuffer buf = new StringBuffer(getClass().getName()); | StringBuffer buf = new StringBuffer("copy"); if (uas != null) { | public String toString() { StringBuffer buf = new StringBuffer(getClass().getName()); buf.append('['); buf.append(']'); return buf.toString(); } |
} | public String toString() { StringBuffer buf = new StringBuffer(getClass().getName()); buf.append('['); buf.append(']'); return buf.toString(); } | |
vmClass.resolveCpRefs(clsMgr); | vmClass.resolveCpRefs(); | private final void compileClasses(NativeStream os, VmArchitecture arch) throws ClassNotFoundException { final NativeCodeCompiler[] compilers = arch.getCompilers(); final int optLevel = compilers.length - 1; // Use the most optimizing compiler here final NativeCodeCompiler comp... |
public void setLexicalHandler(LexicalHandler lexHandler) { this.lexhandler = lexHandler; | public void setLexicalHandler(LexicalHandler handler) { lexicalHandler = handler; | public void setLexicalHandler(LexicalHandler lexHandler) { this.lexhandler = lexHandler; } |
public void setSystemId(String systemID) { this.systemId = systemID; | public void setSystemId(String systemId) { this.systemId = systemId; | public void setSystemId(String systemID) { this.systemId = systemID; } |
return (localName.equals(node.getLocalName())); | String nodeLocalName = node.getLocalName(); if (nodeLocalName == null) { nodeLocalName = node.getNodeName(); } return (localName.equals(nodeLocalName)); | public boolean matches(Node node, int pos, int len) { switch (node.getNodeType()) { case Node.ATTRIBUTE_NODE: // Only match namespace attributes String uri = node.getNamespaceURI(); if (XMLConstants.XMLNS_ATTRIBUTE_NS_URI.equals(uri) || XMLConstants.XMLNS_ATTRIBUTE.equals... |
public CertPathValidatorException(String msg) | public CertPathValidatorException() | public CertPathValidatorException(String msg) { super(msg); index = -1; certPath = null; } |
super(msg); index = -1; certPath = null; | this((String) null); | public CertPathValidatorException(String msg) { super(msg); index = -1; certPath = null; } |
put("Alg.Alias.MessageDigest.SHA-160", "SHA"); | public Object run() { // Note that all implementation class names are referenced by using // Class.getName(). That way when we staticly link the Gnu provider // we automatically get all the implementation classes. // Signature put("Signature.SHA1withDSA", gnu.java.security.provider.DSAS... | |
private void hideTip() | void hideTip() | private void hideTip() { if (currentTip == null || ! currentTip.isVisible() || ! enabled) return; currentTip.setVisible(false); if (containerPanel != null) { Container parent = containerPanel.getParent(); if (parent == null) return; parent.remove(containerPanel); parent.invalidate(); parent.vali... |
private void showTip() | void showTip() | private void showTip() { if (! enabled || currentComponent == null) return; if (currentTip == null || currentTip.getComponent() != currentComponent && currentComponent instanceof JComponent) currentTip = ((JComponent) currentComponent).createToolTip(); Point p = currentPoint; Dime... |
if (vgap < 0) throw new IllegalArgumentException ("vertical gap must be nonnegative"); | public void setVgap (int vgap) { if (vgap < 0) throw new IllegalArgumentException ("vertical gap must be nonnegative"); this.vgap = vgap; } | |
if (hgap < 0) throw new IllegalArgumentException ("horizontal gap must be nonnegative"); | public void setHgap (int hgap) { if (hgap < 0) throw new IllegalArgumentException ("horizontal gap must be nonnegative"); this.hgap = hgap; } | |
try { return res.getString ("intlCurrencySymbol"); } catch (Exception _) { return null; } | return currencyCode; | public String getCurrencyCode () { try { return res.getString ("intlCurrencySymbol"); } catch (Exception _) { return null; } } |
try { return res.getString ("intlCurrencySymbol"); | return getCurrencyCode(); | public String toString() { try { return res.getString ("intlCurrencySymbol"); } catch (Exception _) { return "(unknown currency)"; } } |
catch (Exception _) { return "(unknown currency)"; } } | public String toString() { try { return res.getString ("intlCurrencySymbol"); } catch (Exception _) { return "(unknown currency)"; } } | |
long tmp = getStartLba() + getNrSectors(); | long tmp = getStartLba() + getNrSectors() - 1; | public String toString() { StringBuilder b = new StringBuilder(32); b.append('['); b.append(getBootIndicator() ? 'A' : ' '); b.append(' '); b.append(NumberUtils.hex(getSystemIndicator(), 2)); b.append(' '); b.append("s:"+getStartLba()); b.append(' '); long tmp = getStartLba() + getNrSectors(); b.ap... |
int hour = zoneOffs / (60 * 60 * 1000); int minute = (zoneOffs - 60 * 60 * 1000 * hour) / (60 * 1000); int seconds = (zoneOffs - 60 * 60 * 1000 * hour - 60 * 1000 * minute) / 1000; int millis = zoneOffs - 60 * 60 * 1000 * hour - 60 * 1000 * minute - seconds * 1000; | public final void clear() { isTimeSet = false; areFieldsSet = false; int zoneOffs = zone.getRawOffset(); int hour = zoneOffs / (60 * 60 * 1000); int minute = (zoneOffs - 60 * 60 * 1000 * hour) / (60 * 1000); int seconds = (zoneOffs - 60 * 60 * 1000 * hour - 60 * 1000 * minute) / 1000; int millis = z... | |
1, 1970, JANUARY, 1, 1, 1, 1, THURSDAY, 1, AM, hour, hour, minute, seconds, millis, zoneOffs, 0 | 1, 1970, JANUARY, 1, 1, 1, 1, THURSDAY, 1, AM, 0, 0, 0, 0, 0, zoneOffs, 0 | public final void clear() { isTimeSet = false; areFieldsSet = false; int zoneOffs = zone.getRawOffset(); int hour = zoneOffs / (60 * 60 * 1000); int minute = (zoneOffs - 60 * 60 * 1000 * hour) / (60 * 1000); int seconds = (zoneOffs - 60 * 60 * 1000 * hour - 60 * 1000 * minute) / 1000; int millis = z... |
private void checkDiscarding() | void checkDiscarding() | private void checkDiscarding() throws TRANSIENT { if (m_manager.get_state() == State.DISCARDING) throw new TRANSIENT("Discarding mode", 1, CompletionStatus.COMPLETED_MAYBE); } |
public AdapterAlreadyExists(String why) | public AdapterAlreadyExists() | public AdapterAlreadyExists(String why) { super(why); } |
super(why); | public AdapterAlreadyExists(String why) { super(why); } | |
public Obj add(ServantDelegateImpl delegate) | public Obj add(gnuServantObject object, Servant servant, gnuPOA poa) | public Obj add(ServantDelegateImpl delegate) { Obj rec = new Obj(delegate.object, delegate.servant_id, delegate.servant, delegate.poa ); objects.put(delegate.servant_id, rec); return rec; } |
Obj rec = new Obj(delegate.object, delegate.servant_id, delegate.servant, delegate.poa ); objects.put(delegate.servant_id, rec); return rec; | return add(generateObjectKey(object), object, servant, poa); | public Obj add(ServantDelegateImpl delegate) { Obj rec = new Obj(delegate.object, delegate.servant_id, delegate.servant, delegate.poa ); objects.put(delegate.servant_id, rec); return rec; } |
Iterator iter = objects.entrySet().iterator(); | Iterator iter; | public Obj findObject(org.omg.CORBA.Object stored_object) { if (stored_object == null) return null; Map.Entry item; Iterator iter = objects.entrySet().iterator(); Obj ref; while (iter.hasNext()) { item = (Map.Entry) iter.next(); ref = (Obj) item.getValue(); if (stored_ob... |
if (stored_object instanceof ObjectImpl) { Delegate d = ((ObjectImpl) stored_object)._get_delegate(); Delegate d2; if (d != null) { iter = objects.entrySet().iterator(); while (iter.hasNext()) { item = (Map.Entry) iter.next(); ref = (Obj) item.getValue(); d2 = ref.object._get_delegate(); if (d == d2 || (d2 != null &... | public Obj findObject(org.omg.CORBA.Object stored_object) { if (stored_object == null) return null; Map.Entry item; Iterator iter = objects.entrySet().iterator(); Obj ref; while (iter.hasNext()) { item = (Map.Entry) iter.next(); ref = (Obj) item.getValue(); if (stored_ob... | |
public OBJ_ADAPTER(String reason, int minor, CompletionStatus completed) | public OBJ_ADAPTER(String message) | public OBJ_ADAPTER(String reason, int minor, CompletionStatus completed) { super(reason, minor, completed); } |
super(reason, minor, completed); | super(message, 0, CompletionStatus.COMPLETED_NO); | public OBJ_ADAPTER(String reason, int minor, CompletionStatus completed) { super(reason, minor, completed); } |
if (b.getDisabledIcon() == null) b.setDisabledIcon(icon); if (b.getDisabledSelectedIcon() == null) b.setDisabledSelectedIcon(icon); | protected void installDefaults(AbstractButton b) { super.installDefaults(b); if (b.getIcon() == null) b.setIcon(icon); if (b.getSelectedIcon() == null) b.setSelectedIcon(icon); } | |
if (b.isSelected()) | if (b.isSelected() && b.isEnabled()) | public void paint(Graphics g, JComponent c) { AbstractButton b = (AbstractButton) c; Rectangle tr = new Rectangle(); Rectangle ir = new Rectangle(); Rectangle vr = new Rectangle(); Font f = c.getFont(); g.setFont(f); Icon currentIcon = null; if (b.isSelected()) currentIcon = b.getSelecte... |
else | else if (!b.isSelected() && b.isEnabled()) | public void paint(Graphics g, JComponent c) { AbstractButton b = (AbstractButton) c; Rectangle tr = new Rectangle(); Rectangle ir = new Rectangle(); Rectangle vr = new Rectangle(); Font f = c.getFont(); g.setFont(f); Icon currentIcon = null; if (b.isSelected()) currentIcon = b.getSelecte... |
if (b.hasFocus()) | if (b.hasFocus() && b.isFocusPainted()) | public void paint(Graphics g, JComponent c) { AbstractButton b = (AbstractButton) c; Rectangle tr = new Rectangle(); Rectangle ir = new Rectangle(); Rectangle vr = new Rectangle(); Font f = c.getFont(); g.setFont(f); Icon currentIcon = null; if (b.isSelected()) currentIcon = b.getSelecte... |
public void setSelectedIcon(Icon selectedIcon) { } | public void setSelectedIcon(Icon selectedIcon) { Icon old = selected_icon; selected_icon = selectedIcon; if (old != selectedIcon) { firePropertyChange(SELECTED_ICON_CHANGED_PROPERTY, old, selectedIcon); revalidate(); repaint(); } } | public void setSelectedIcon(Icon selectedIcon) { // Sets the selected icon for the button. } |
public void setDisabledIcon(Icon disabledIcon) { disabled_button = disabledIcon; revalidate(); repaint(); } | public void setDisabledIcon(Icon disabledIcon) { disabled_icon = disabledIcon; revalidate(); repaint(); } | public void setDisabledIcon(Icon disabledIcon) { disabled_button = disabledIcon; revalidate(); repaint(); } |
public void setDisabledSelectedIcon(Icon disabledSelectedIcon) { } | public void setDisabledSelectedIcon(Icon disabledSelectedIcon) { Icon old = disabled_selected_icon; disabled_selected_icon = disabledSelectedIcon; if (old != disabledSelectedIcon) { firePropertyChange(DISABLED_SELECTED_ICON_CHANGED_PROPERTY, old, disabledSelectedIcon); revalidate(); repaint(); } } | public void setDisabledSelectedIcon(Icon disabledSelectedIcon) { // Sets the disabled selection icon for the button. } |
public final void resolveCpRefs(VmClassLoader clc) { | public final void resolveCpRefs() { | public final void resolveCpRefs(VmClassLoader clc) { if (!resolvedCpRefs) { prepare(); if (superClass != null) { superClass.resolveCpRefs(clc); } /** * Step 2b: Load the classes of my fields */ final int fcnt = getNoDeclaredFields(); for (int i = 0; i < fcnt; i++) { final VmField fs = fieldTab... |
superClass.resolveCpRefs(clc); | superClass.resolveCpRefs(); | public final void resolveCpRefs(VmClassLoader clc) { if (!resolvedCpRefs) { prepare(); if (superClass != null) { superClass.resolveCpRefs(clc); } /** * Step 2b: Load the classes of my fields */ final int fcnt = getNoDeclaredFields(); for (int i = 0; i < fcnt; i++) { final VmField fs = fieldTab... |
fs.resolve(clc); | fs.resolve(); | public final void resolveCpRefs(VmClassLoader clc) { if (!resolvedCpRefs) { prepare(); if (superClass != null) { superClass.resolveCpRefs(clc); } /** * Step 2b: Load the classes of my fields */ final int fcnt = getNoDeclaredFields(); for (int i = 0; i < fcnt; i++) { final VmField fs = fieldTab... |
mts.resolve(clc); | mts.resolve(); | public final void resolveCpRefs(VmClassLoader clc) { if (!resolvedCpRefs) { prepare(); if (superClass != null) { superClass.resolveCpRefs(clc); } /** * Step 2b: Load the classes of my fields */ final int fcnt = getNoDeclaredFields(); for (int i = 0; i < fcnt; i++) { final VmField fs = fieldTab... |
((VmResolvableConstObject) obj).resolve(clc); | ((VmResolvableConstObject) obj).resolve(loader); | public final void resolveCpRefs(VmClassLoader clc) { if (!resolvedCpRefs) { prepare(); if (superClass != null) { superClass.resolveCpRefs(clc); } /** * Step 2b: Load the classes of my fields */ final int fcnt = getNoDeclaredFields(); for (int i = 0; i < fcnt; i++) { final VmField fs = fieldTab... |
public ExceptionInInitializerError(Throwable t) | public ExceptionInInitializerError() | public ExceptionInInitializerError(Throwable t) { super(null); initCause(t); exception = t; } |
super(null); initCause(t); exception = t; | this((String) null); | public ExceptionInInitializerError(Throwable t) { super(null); initCause(t); exception = t; } |
this.data = (VmInterfaceClass)type; | this.data = (VmInterfaceClass<?>)type; | protected void resolve(VmClassLoader clc) throws ClassNotFoundException { final Object data = this.data; if (data instanceof String) { final String className = (String)data; final VmType<?> type = clc.loadClass(className, true); if (type instanceof VmInterfaceClass) { this.data = (VmInterfac... |
protected synchronized void resolve(VmClassLoader cl) { | protected final synchronized void resolve() { | protected synchronized void resolve(VmClassLoader cl) { try { type = new Signature(getSignature(), declaringClass.getLoader()).getType(); } catch (ClassNotFoundException ex) { throw (Error)new NoClassDefFoundError().initCause(ex); } } |
protected void resolve(VmClassLoader cl) { | protected final void resolve() { | protected void resolve(VmClassLoader cl) { resolveTypes(); } |
{ throw new IndexOutOfBoundsException("index=" + index + ", size=" + size()); } | throw new IndexOutOfBoundsException("index=" + index + ", size=" + size()); | public Object get(int index) { if (index < 0 || index >= size()) { throw new IndexOutOfBoundsException("index=" + index + ", size=" + size()); } return sequence[index]; } |
CallTemplateNode(TemplateNode children, TemplateNode next, QName name, List withParams) | CallTemplateNode(QName name, List withParams) | CallTemplateNode(TemplateNode children, TemplateNode next, QName name, List withParams) { super(children, next); this.name = name; this.withParams = withParams; } |
super(children, next); | CallTemplateNode(TemplateNode children, TemplateNode next, QName name, List withParams) { super(children, next); this.name = name; this.withParams = withParams; } | |
return new CallTemplateNode((children == null) ? null : children.clone(stylesheet), (next == null) ? null : next.clone(stylesheet), name, withParams2); | TemplateNode ret = new CallTemplateNode(name, withParams2); if (children != null) { ret.children = children.clone(stylesheet); } if (next != null) { ret.next = next.clone(stylesheet); } return ret; | TemplateNode clone(Stylesheet stylesheet) { int len = withParams.size(); List withParams2 = new ArrayList(len); for (int i = 0; i < len; i++) { withParams2.add(((WithParam) withParams.get(i)).clone(stylesheet)); } return new CallTemplateNode((children == null) ? null : ... |
invalidate(); | public void updateUI() { setUI((SeparatorUI) UIManager.getUI(this)); invalidate(); } | |
throw new Error ("Not implemented"); | if (targetChild == null) throw new IllegalArgumentException(); if (children.containsKey(targetChild)) return false; children.put(targetChild, targetChild); return true; | public boolean add (Object targetChild) { throw new Error ("Not implemented"); } |
throw new Error ("Not implemented"); | throw new UnsupportedOperationException(); | public boolean addAll (Collection c) { throw new Error ("Not implemented"); } |
public void addBeanContextMembershipListener (BeanContextMembershipListener bcml) | public void addBeanContextMembershipListener (BeanContextMembershipListener listener) | public void addBeanContextMembershipListener (BeanContextMembershipListener bcml) { throw new Error ("Not implemented"); } |
throw new Error ("Not implemented"); | if (! bcmListeners.contains(listener)) bcmListeners.add(listener); | public void addBeanContextMembershipListener (BeanContextMembershipListener bcml) { throw new Error ("Not implemented"); } |
throw new Error ("Not implemented"); | throw new UnsupportedOperationException(); | public void clear () { throw new Error ("Not implemented"); } |
throw new Error ("Not implemented"); | return locale; | public Locale getLocale () { throw new Error ("Not implemented"); } |
throw new Error ("Not implemented"); | bcmListeners = new ArrayList(); children = new HashMap(); | protected void initialize () { throw new Error ("Not implemented"); } |
throw new Error ("Not implemented"); | return children.keySet().iterator(); | public Iterator iterator () { throw new Error ("Not implemented"); } |
throw new Error ("Not implemented"); | return remove(targetChild, true); | public boolean remove (Object targetChild) { throw new Error ("Not implemented"); } |
throw new Error ("Not implemented"); | throw new UnsupportedOperationException(); | public boolean removeAll (Collection c) { throw new Error ("Not implemented"); } |
throw new Error ("Not implemented"); | throw new UnsupportedOperationException(); | public boolean retainAll (Collection c) { throw new Error ("Not implemented"); } |
throw new Error ("Not implemented"); | return children.keySet().toArray(); | public Object[] toArray () { throw new Error ("Not implemented"); } |
Enumeration enum; | Enumeration e; | public int getLeafCount() { // Variables Enumeration enum; int count; TreeNode current; // Get Enumeration of all descendants enum = depthFirstEnumeration(); // Process Nodes count = 0; while (enum.hasMoreElements() == true) { current = (TreeNode) enum.nextElement(); if (current.isLeaf() == true) { c... |
enum = depthFirstEnumeration(); | e = depthFirstEnumeration(); | public int getLeafCount() { // Variables Enumeration enum; int count; TreeNode current; // Get Enumeration of all descendants enum = depthFirstEnumeration(); // Process Nodes count = 0; while (enum.hasMoreElements() == true) { current = (TreeNode) enum.nextElement(); if (current.isLeaf() == true) { c... |
while (enum.hasMoreElements() == true) { current = (TreeNode) enum.nextElement(); | while (e.hasMoreElements() == true) { current = (TreeNode) e.nextElement(); | public int getLeafCount() { // Variables Enumeration enum; int count; TreeNode current; // Get Enumeration of all descendants enum = depthFirstEnumeration(); // Process Nodes count = 0; while (enum.hasMoreElements() == true) { current = (TreeNode) enum.nextElement(); if (current.isLeaf() == true) { c... |
return count; } | public int getLeafCount() { // Variables Enumeration enum; int count; TreeNode current; // Get Enumeration of all descendants enum = depthFirstEnumeration(); // Process Nodes count = 0; while (enum.hasMoreElements() == true) { current = (TreeNode) enum.nextElement(); if (current.isLeaf() == true) { c... | |
UIDefaults defaults = UIManager.getLookAndFeelDefaults(); list.setForeground(defaults.getColor("List.foreground")); list.setBackground(defaults.getColor("List.background")); list.setSelectionForeground(defaults.getColor("List.selectionForeground")); list.setSelectionBackground(defaults.getColor("List.selectionBackgroun... | LookAndFeel.installColorsAndFont(list, "List.background", "List.foreground", "List.font"); list.setSelectionForeground(UIManager.getColor("List.selectionForeground")); list.setSelectionBackground(UIManager.getColor("List.selectionBackground")); | protected void installDefaults() { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); list.setForeground(defaults.getColor("List.foreground")); list.setBackground(defaults.getColor("List.background")); list.setSelectionForeground(defaults.getColor("List.selectionForeground")); list.setSelection... |
r.translate(0, (int) r.getHeight()); | r.translate(0, (int) r.getHeight() - 1); | public int getLastVisibleIndex() { ComponentOrientation or = getComponentOrientation(); Rectangle r = getVisibleRect(); r.translate(0, (int) r.getHeight()); if (or == ComponentOrientation.LEFT_TO_RIGHT) r.translate((int) r.getWidth(), 0); return getUI().locationToIndex(this, r.getLocation()); ... |
r.translate((int) r.getWidth(), 0); | r.translate((int) r.getWidth() - 1, 0); | public int getLastVisibleIndex() { ComponentOrientation or = getComponentOrientation(); Rectangle r = getVisibleRect(); r.translate(0, (int) r.getHeight()); if (or == ComponentOrientation.LEFT_TO_RIGHT) r.translate((int) r.getWidth(), 0); return getUI().locationToIndex(this, r.getLocation()); ... |
this.threadGroup = new ThreadGroup("Process-" + id, this); | this.threadGroup = new ThreadGroup("Process-" + id); | public VmProcess(String mainClassName, String[] args, InputStream in, PrintStream out, PrintStream err) { synchronized (getClass()) { this.id = lastId++; } this.running = true; this.threadGroup = new ThreadGroup("Process-" + id, this); this.mainClassName = mainClassName; if (args == null) { this.args = new S... |
JMenuBar() { } | public JMenuBar() { selectionModel = new DefaultSingleSelectionModel(); paintBorder = true; updateUI(); } | JMenuBar() { } |
FileDescriptor(ByteChannel channel) | public FileDescriptor() | FileDescriptor(ByteChannel channel) { this.channel = channel; } |
this.channel = channel; | channel = null; | FileDescriptor(ByteChannel channel) { this.channel = channel; } |
if (tc.isEnabled() && tc.isEditable()) | enabledTextBorder = tc.isEnabled() && tc.isEditable(); } else enabledTextBorder = false; if (enabledTextBorder) | public void paintBorder(Component c, Graphics g, int x, int y, int w, int h) { JTextComponent tc = (JTextComponent) c; if (tc.isEnabled() && tc.isEditable()) super.paintBorder(c, g, x, y, w, h); else { Color savedColor = g.getColor(); g.setColor(MetalLookAnd... |
if (gt) { | if (!gt) { | final static void compare(AbstractX86Stream os, EmitterContext ec, VirtualStack vstack, boolean gt, int type, Label curInstrLabel) { final Item v2 = vstack.pop(type); final Item v1 = vstack.pop(type); // Prepare operands final FPUStack fpuStack = vstack.fpuStack; final Register reg; reg = prepareForOperation(o... |
queue.stop(); | public void run() { TimerTask task; while ((task = queue.serve()) != null) { // If this task has not been canceled if (task.scheduled >= 0) { // Mark execution time task.lastExecutionTime = task.scheduled; // Repeatable task? if (task.period < 0) { // Last time this ... | |
throw new IOException(ex.getException()); | final IOException ioe = new IOException(); ioe.initCause(ex.getException()); throw ioe; | public void write(final byte[] b, final int off, final int len) throws IOException, NullPointerException, IndexOutOfBoundsException { try { AccessController.doPrivileged(new PrivilegedExceptionAction() { public Object run() throws IOException { final DatagramPacket p = new DatagramPacket(b, off, ... |
d.pack(); | Insets i = d.getInsets(); d.setSize(500 + i.top + i.bottom, d.getPreferredSize().height); | public int showDialog(Component parent, String approveButtonText) throws HeadlessException { JDialog d = createDialog(parent); setApproveButtonText(approveButtonText); setDialogType(CUSTOM_DIALOG); retval = ERROR_OPTION; d.pack(); d.show(); return retval; } |
d.pack(); | Insets i = d.getInsets(); d.setSize(500 + i.top + i.bottom, d.getPreferredSize().height); | public int showOpenDialog(Component parent) throws HeadlessException { JDialog d = createDialog(parent); // FIXME: Remove when we get ancestor property d.setTitle("Open"); setDialogType(OPEN_DIALOG); retval = ERROR_OPTION; d.pack(); d.show(); return retval; } |
d.pack(); | Insets i = d.getInsets(); d.setSize(500 + i.top + i.bottom, d.getPreferredSize().height); | public int showSaveDialog(Component parent) throws HeadlessException { JDialog d = createDialog(parent); setDialogType(SAVE_DIALOG); retval = ERROR_OPTION; d.pack(); d.show(); return retval; } |
MetalUtils.fillMetalPattern(g, startX, 3, endX - startX, getHeight() - 6, Color.white, Color.gray); | MetalUtils.fillMetalPattern(this, g, startX, 3, endX - startX, getHeight() - 6, Color.white, Color.gray); | public void paintComponent(Graphics g) { Color savedColor = g.getColor(); if (isPalette) paintPalette(g); else { paintTitleBackground(g); paintChildren(g); Dimension d = getSize(); if (frame.isSelected()) g.setColor(MetalLookAndFeel.getPrimaryControlDarkShadow(... |
MetalUtils.fillMetalPattern(g, b.x + 4, b.y + 2, b.width | MetalUtils.fillMetalPattern(this, g, b.x + 4, b.y + 2, b.width | public void paintPalette(Graphics g) { Color savedColor = g.getColor(); Rectangle b = SwingUtilities.getLocalBounds(this); g.setColor(MetalLookAndFeel.getPrimaryControlShadow()); g.fillRect(b.x, b.y, b.width, b.height); MetalUtils.fillMetalPattern(g, b.x + 4, b.y + 2, b.width - paletteClos... |
if (instances == null) instances = new HashMap(); Object o = instances.get(component); MetalTextFieldUI instance; if (o == null) { instance = new MetalTextFieldUI(); instances.put(component, instance); } else instance = (MetalTextFieldUI) o; return instance; | return new MetalTextFieldUI(); | public static ComponentUI createUI(JComponent component) { if (instances == null) instances = new HashMap(); Object o = instances.get(component); MetalTextFieldUI instance; if (o == null) { instance = new MetalTextFieldUI(); instances.put(component, instance); } else instance ... |
protected void addImpl(Component comp, Object constraints, int index) { super.addImpl(comp, constraints, index); | protected void addImpl(Component comp, Object layerConstraint, int index) { Integer layer; if (layerConstraint != null && layerConstraint instanceof Integer) layer = (Integer) layerConstraint; else if (componentToLayer.containsKey (comp)) layer = (Integer) componentToLayer.remove (comp); else layer = DEFAULT_LAYER; in... | protected void addImpl(Component comp, Object constraints, int index) { super.addImpl(comp, constraints, index); comp.validate(); comp.repaint(); } |
comp.validate(); comp.repaint(); } | super.addImpl(comp, null, newIdx); validate(); repaint(); } | protected void addImpl(Component comp, Object constraints, int index) { super.addImpl(comp, constraints, index); comp.validate(); comp.repaint(); } |
this(""); | this(null); | public AbstractAction() { this(""); // TODO: default name } |
public void removePropertyChangeListener(PropertyChangeListener listener); | void removePropertyChangeListener(PropertyChangeListener listener); | public void removePropertyChangeListener(PropertyChangeListener listener); |
private static NameSpace getNameSpace() { if(namespace == null) { | static NameSpace getNameSpace() { if (namespace == null) { | private static NameSpace getNameSpace() { if(namespace == null) { namespace = new DefaultNameSpace(); } return namespace; } |
public NameAlreadyBoundException (String msg) | public NameAlreadyBoundException () | public NameAlreadyBoundException (String msg) { super (msg); } |
super (msg); | super (); | public NameAlreadyBoundException (String msg) { super (msg); } |
public static CompoundBorder createCompoundBorder() { return null; } | public static CompoundBorder createCompoundBorder () { return new CompoundBorder (); } | public static CompoundBorder createCompoundBorder() { /* Create a compound border with a null inside edge and a null outside edge. Returns: the CompoundBorder object createCompoundBorder */ return null; } |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.