rem stringlengths 0 477k | add stringlengths 0 313k | context stringlengths 6 599k |
|---|---|---|
c.setOpaque(true); c.setBackground(javax.swing.UIManager.getColor("control")); | public void installUI(JComponent c) { super.installUI(c); } | |
UIDefaults defaults = UIManager.getLookAndFeelDefaults(); checkIcon = defaults.getIcon("CheckBoxMenuItem.checkIcon"); | checkIcon = UIManager.getIcon("CheckBoxMenuItem.checkIcon"); | protected void installDefaults() { super.installDefaults(); UIDefaults defaults = UIManager.getLookAndFeelDefaults(); checkIcon = defaults.getIcon("CheckBoxMenuItem.checkIcon"); } |
m_parameter_buffer.setBigEndian(Big_endian); | public streamRequest getParameterStream() { m_parameter_buffer = new streamRequest(); m_parameter_buffer.request = this; m_parameter_buffer.setVersion(ior.Internet.version); m_parameter_buffer.setCodeSet(cxCodeSet.negotiate(ior.CodeSets)); m_parameter_buffer.setOrb(orb); return m_parameter_buffer; ... | |
request_part.setBigEndian(header.isBigEndian()); | public synchronized binaryReply submit() { gnu.CORBA.GIOP.MessageHeader header = new gnu.CORBA.GIOP.MessageHeader(); // The byte order will be Big Endian by default. header.message_type = gnu.CORBA.GIOP.MessageHeader.REQUEST; header.version = useVersion(ior.Internet.version); RequestHeader rh = header... | |
static public int[] getScanline (Reader in, int len) throws IOException | public static int[] getScanline (Reader in, int len) throws IOException | static public int[] getScanline (Reader in, int len) throws IOException { char byteStr[] = new char[2]; int scanline[] = new int[len]; int x = 0; while (x < len) { int ch = in.read (); if (ch == '0') { in.read (); // 'x' byteStr[0] = (char) in.read (); byteStr[1] = (char) in.read... |
{ | TemplateNode clone(Stylesheet stylesheet) { TemplateNode ret = new MessageNode(terminate); 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 MessageNode(terminate); if (children != null) { ret.children = children.clone(stylesheet); } if (next != null) { ret.next = next.clone(stylesheet); } return ret; } | |
System.err.println(message); | logger.info(message); | void doApply(Stylesheet stylesheet, QName mode, Node context, int pos, int len, Node parent, Node nextSibling) throws TransformerException { if (children != null) { Document doc = (parent instanceof Document) ? (Document) parent : parent.getOwnerDocument(); ... |
{ | void doApply(Stylesheet stylesheet, QName mode, Node context, int pos, int len, Node parent, Node nextSibling) throws TransformerException { if (children != null) { Document doc = (parent instanceof Document) ? (Document) parent : parent.getOwnerDocument(); ... | |
} | void doApply(Stylesheet stylesheet, QName mode, Node context, int pos, int len, Node parent, Node nextSibling) throws TransformerException { if (children != null) { Document doc = (parent instanceof Document) ? (Document) parent : parent.getOwnerDocument(); ... | |
sum = hi - lo; | sum = hi - lo + 1; | private static int countSelections(ListSelectionModel lsm) { int lo = lsm.getMinSelectionIndex(); int hi = lsm.getMaxSelectionIndex(); int sum = 0; if (lo != -1 && hi != -1) { switch (lsm.getSelectionMode()) { case ListSelectionModel.SINGLE_SELECTION: sum = 1; ... |
for (int i = lo; i < hi; ++i) | for (int i = lo; i <= hi; ++i) | private static int countSelections(ListSelectionModel lsm) { int lo = lsm.getMinSelectionIndex(); int hi = lsm.getMaxSelectionIndex(); int sum = 0; if (lo != -1 && hi != -1) { switch (lsm.getSelectionMode()) { case ListSelectionModel.SINGLE_SELECTION: sum = 1; ... |
for (int i = lo; i < hi; ++i) | for (int i = lo; i <= hi; ++i) | private static int[] getSelections(ListSelectionModel lsm) { int sz = countSelections(lsm); int [] ret = new int[sz]; int lo = lsm.getMinSelectionIndex(); int hi = lsm.getMaxSelectionIndex(); int j = 0; java.util.ArrayList ls = new java.util.ArrayList(); if (lo != -1 && hi != -1) { s... |
columnModel.getSelectionModel().setSelectionMode(s); | public void setSelectionMode(int s) { selectionModel.setSelectionMode(s); repaint(); } | |
String FEATURES = "http: String PROPERTIES = "http: | final String FEATURES = "http: final String PROPERTIES = "http: final String GNU_FEATURES = "http: final String GNU_PROPERTIES = "http: if ((GNU_FEATURES + "base-uri").equals(name)) return baseURI; | public Object getProperty(String name) throws SAXNotRecognizedException, SAXNotSupportedException { String FEATURES = "http://xml.org/sax/features/"; String PROPERTIES = "http://xml.org/sax/properties/"; if ((FEATURES + "is-standalone").equals(name)) return xmlStandalone ? Boolean.TRUE : Boolean.FAL... |
if ((GNU_FEATURES + "xml-base").equals(name)) return baseAware ? Boolean.TRUE : Boolean.FALSE; if ((GNU_PROPERTIES + "document-xml-encoding").equals(name)) return xmlEncoding; | public Object getProperty(String name) throws SAXNotRecognizedException, SAXNotSupportedException { String FEATURES = "http://xml.org/sax/features/"; String PROPERTIES = "http://xml.org/sax/properties/"; if ((FEATURES + "is-standalone").equals(name)) return xmlStandalone ? Boolean.TRUE : Boolean.FAL... | |
switch (parser.next()) | int event = parser.next(); if (baseAware) baseURI = parser.getXMLBase(); switch (event) | public synchronized void parse(InputSource input) throws IOException, SAXException { reset(); String systemId = input.getSystemId(); InputStream in = input.getByteStream(); boolean opened = false; if (in != null) parser = new XMLParser(in, systemId, validating, ... |
if (isIgnorableWhitespace(parser, b, false)) contentHandler.ignorableWhitespace(b, 0, b.length); else | public synchronized void parse(InputSource input) throws IOException, SAXException { reset(); String systemId = input.getSystemId(); InputStream in = input.getByteStream(); boolean opened = false; if (in != null) parser = new XMLParser(in, systemId, validating, ... | |
if (isIgnorableWhitespace(parser, b, true)) contentHandler.ignorableWhitespace(b, 0, b.length); else | public synchronized void parse(InputSource input) throws IOException, SAXException { reset(); String systemId = input.getSystemId(); InputStream in = input.getByteStream(); boolean opened = false; if (in != null) parser = new XMLParser(in, systemId, validating, ... | |
String model = doctype.getElementModel(name); declHandler.elementDecl(name, model); | XMLParser.ContentModel model = doctype.getElementModel(name); declHandler.elementDecl(name, model.text); | public synchronized void parse(InputSource input) throws IOException, SAXException { reset(); String systemId = input.getSystemId(); InputStream in = input.getByteStream(); boolean opened = false; if (in != null) parser = new XMLParser(in, systemId, validating, ... |
else if ('c' == c) { if (lexicalHandler != null) { String comment = doctype.getComment(name); char[] b = comment.toCharArray(); lexicalHandler.comment(b, 0, b.length); } } else if ('p' == c) { if (contentHandler != null) { String[] pi = doctype.getPI(name); String target = pi[0]; String data = pi[1]; if (data == null... | public synchronized void parse(InputSource input) throws IOException, SAXException { reset(); String systemId = input.getSystemId(); InputStream in = input.getByteStream(); boolean opened = false; if (in != null) parser = new XMLParser(in, systemId, validating, ... | |
String FEATURES = "http: String PROPERTIES = "http: | final String FEATURES = "http: final String PROPERTIES = "http: final String GNU_FEATURES = "http: | public void setProperty(String name, Object value) throws SAXNotRecognizedException, SAXNotSupportedException { if (parser != null) throw new IllegalStateException("parsing in progress"); String FEATURES = "http://xml.org/sax/features/"; String PROPERTIES = "http://xml.org/sax/properties/"; if ((... |
else if ((GNU_FEATURES + "xml-base").equals(name)) baseAware = Boolean.TRUE.equals(value); | public void setProperty(String name, Object value) throws SAXNotRecognizedException, SAXNotSupportedException { if (parser != null) throw new IllegalStateException("parsing in progress"); String FEATURES = "http://xml.org/sax/features/"; String PROPERTIES = "http://xml.org/sax/properties/"; if ((... | |
this.policyFile = new PolicyFile(ClassLoader .getSystemResource("/org/jnode/security/jnode.policy")); | this.policyFile = new PolicyFile(); | public JNodePolicy(ExtensionPoint permissionsEp) { this.policyFile = new PolicyFile(ClassLoader .getSystemResource("/org/jnode/security/jnode.policy")); this.codeSource2Permissions = new HashMap<CodeSource, PermissionCollection>(); this.permissionsEp = permissionsEp; loadE... |
JDialog(Frame owner) | public JDialog() | JDialog(Frame owner) { this(owner, "dialog"); } |
this(owner, "dialog"); | this(SwingUtilities.getOwnerFrame(), "", false, null); | JDialog(Frame owner) { this(owner, "dialog"); } |
{ super.addImpl(comp, constraints, index); } | { if (isRootPaneCheckingEnabled()) throw new Error("rootPaneChecking is enabled - adding components disallowed."); super.addImpl(comp, constraints, index); } | protected void addImpl(Component comp, Object constraints, int index) { super.addImpl(comp, constraints, index); } |
JRootPane createRootPane() { return new JRootPane(); } | protected JRootPane createRootPane() { return new JRootPane(); } | JRootPane createRootPane() { return new JRootPane(); } |
Container getContentPane() { return getRootPane().getContentPane(); } | public Container getContentPane() { return getRootPane().getContentPane(); } | Container getContentPane() { return getRootPane().getContentPane(); } |
Component getGlassPane() { return getRootPane().getGlassPane(); } | public Component getGlassPane() { return getRootPane().getGlassPane(); } | Component getGlassPane() { return getRootPane().getGlassPane(); } |
JMenuBar getJMenuBar() { return getRootPane().getJMenuBar(); } | public JMenuBar getJMenuBar() { return getRootPane().getJMenuBar(); } | JMenuBar getJMenuBar() { return getRootPane().getJMenuBar(); } |
JLayeredPane getLayeredPane() { return getRootPane().getLayeredPane(); } | public JLayeredPane getLayeredPane() { return getRootPane().getLayeredPane(); } | JLayeredPane getLayeredPane() { return getRootPane().getLayeredPane(); } |
{ return checking; } | { return rootPaneCheckingEnabled; } | protected boolean isRootPaneCheckingEnabled() { return checking; } |
switch(close_action) | switch (getDefaultCloseOperation()) | protected void processWindowEvent(WindowEvent e) { // System.out.println("PROCESS_WIN_EV-1: " + e); super.processWindowEvent(e); // System.out.println("PROCESS_WIN_EV-2: " + e); switch (e.getID()) { case WindowEvent.WINDOW_CLOSING: { switch(close_action) { case DISPOSE_ON_CLOSE: { Sy... |
System.out.println("user requested dispose on close"); | protected void processWindowEvent(WindowEvent e) { // System.out.println("PROCESS_WIN_EV-1: " + e); super.processWindowEvent(e); // System.out.println("PROCESS_WIN_EV-2: " + e); switch (e.getID()) { case WindowEvent.WINDOW_CLOSING: { switch(close_action) { case DISPOSE_ON_CLOSE: { Sy... | |
{ getContentPane().remove(comp); } | { if (comp == rootPane) super.remove(rootPane); else getContentPane().remove(comp); } | public void remove(Component comp) { getContentPane().remove(comp); } |
void setContentPane(Container contentPane) { getRootPane().setContentPane(contentPane); } | public void setContentPane(Container contentPane) { if (contentPane == null) throw new IllegalComponentStateException("contentPane cannot be null."); getRootPane().setContentPane(contentPane); } | void setContentPane(Container contentPane) { getRootPane().setContentPane(contentPane); } |
void setDefaultCloseOperation(int operation) { close_action = operation; } | public void setDefaultCloseOperation(int operation) { if (operation == DO_NOTHING_ON_CLOSE || operation == HIDE_ON_CLOSE || operation == DISPOSE_ON_CLOSE) close_action = operation; else throw new IllegalArgumentException("Default close operation must be one of DO_NOTHING_ON_CLOSE, HIDE_ON_CLOSE, or DISPOSE_ON_CLOSE"); ... | void setDefaultCloseOperation(int operation) { close_action = operation; } |
void setGlassPane(Component glassPane) { getRootPane().setGlassPane(glassPane); } | public void setGlassPane(Component glassPane) { getRootPane().setGlassPane(glassPane); } | void setGlassPane(Component glassPane) { getRootPane().setGlassPane(glassPane); } |
void setJMenuBar(JMenuBar menubar) { getRootPane().setJMenuBar(menubar); } | public void setJMenuBar(JMenuBar menubar) { getRootPane().setJMenuBar(menubar); } | void setJMenuBar(JMenuBar menubar) { getRootPane().setJMenuBar(menubar); } |
void setLayeredPane(JLayeredPane layeredPane) { getRootPane().setLayeredPane(layeredPane); } | public void setLayeredPane(JLayeredPane layeredPane) { if (layeredPane == null) throw new IllegalComponentStateException("layeredPane cannot be null."); getRootPane().setLayeredPane(layeredPane); } | void setLayeredPane(JLayeredPane layeredPane) { getRootPane().setLayeredPane(layeredPane); } |
{ super.setLayout(manager); } | { if (isRootPaneCheckingEnabled()) throw new Error("rootPaneChecking is enabled - cannot set layout."); super.setLayout(manager); } | public void setLayout(LayoutManager manager) { super.setLayout(manager); } |
void setRootPane(JRootPane root) | protected void setRootPane(JRootPane root) | void setRootPane(JRootPane root) { if (rootPane != null) remove(rootPane); rootPane = root; add(rootPane, BorderLayout.CENTER); } |
add(rootPane, BorderLayout.CENTER); | rootPane.show(); add(rootPane); | void setRootPane(JRootPane root) { if (rootPane != null) remove(rootPane); rootPane = root; add(rootPane, BorderLayout.CENTER); } |
{ checking = enabled; } | { rootPaneCheckingEnabled = enabled; } | protected void setRootPaneCheckingEnabled(boolean enabled) { checking = enabled; } |
public WrongPolicy(String why) | public WrongPolicy() | public WrongPolicy(String why) { super(why); } |
super(why); | public WrongPolicy(String why) { super(why); } | |
public ServantNotActive(String why) | public ServantNotActive() | public ServantNotActive(String why) { super(why); } |
super(why); | public ServantNotActive(String why) { super(why); } | |
public IllegalPathStateException(String msg) | public IllegalPathStateException() | public IllegalPathStateException(String msg) { super(msg); } |
super(msg); | public IllegalPathStateException(String msg) { super(msg); } | |
if (ti < bt.length) { byte[] tmp = new byte[ti]; System.arraycopy(bt, 0, tmp, 0, ti); bt = tmp; } | public static byte[] encode(byte[] bs) { int si = 0, ti = 0; // source/target array indices byte[] bt = new byte[((bs.length + 2) * 4) / 3]; // target byte array for (; si < bs.length; si += 3) { int buflen = bs.length - si; if (buflen == 1) { byte b = bs[s... | |
public void update(byte[] input) | public void update(byte input) | public void update(byte[] input) { engineUpdate(input, 0, input.length); } |
engineUpdate(input, 0, input.length); | engineUpdate(input); | public void update(byte[] input) { engineUpdate(input, 0, input.length); } |
int codeClass, String message, Headers headers) | String message, Headers headers, InputStream body) | protected Response(int majorVersion, int minorVersion, int code, int codeClass, String message, Headers headers) { this.majorVersion = majorVersion; this.minorVersion = minorVersion; this.code = code; this.codeClass = codeClass; this.message = message; this.h... |
this.codeClass = codeClass; | protected Response(int majorVersion, int minorVersion, int code, int codeClass, String message, Headers headers) { this.majorVersion = majorVersion; this.minorVersion = minorVersion; this.code = code; this.codeClass = codeClass; this.message = message; this.h... | |
this.body = body; | protected Response(int majorVersion, int minorVersion, int code, int codeClass, String message, Headers headers) { this.majorVersion = majorVersion; this.minorVersion = minorVersion; this.code = code; this.codeClass = codeClass; this.message = message; this.h... | |
ULongLongSeqHolder h = new ULongLongSeqHolder(); h._read(input); return h.value; | long[] value = new long[ input.read_long() ]; input.read_ulonglong_array(value, 0, value.length); return value; | public static long[] read(InputStream input) { ULongLongSeqHolder h = new ULongLongSeqHolder(); h._read(input); return h.value; } |
return new primitiveArrayTypeCode(TCKind.tk_long); | return new primitiveArrayTypeCode(TCKind.tk_ulong); | public static TypeCode type() { return new primitiveArrayTypeCode(TCKind.tk_long); } |
ULongLongSeqHolder h = new ULongLongSeqHolder(value); h._write(output); | output.write_long(value.length); output.write_ulonglong_array(value, 0, value.length); | public static void write(OutputStream output, long[] value) { ULongLongSeqHolder h = new ULongLongSeqHolder(value); h._write(output); } |
public CommandRunner(Class cx, Method method, Object[] args) { | public CommandRunner(Class cx, Method method, Object target, Object[] args) { | public CommandRunner(Class cx, Method method, Object[] args) { this.cx = cx; this.method = method; this.args = args; } |
this.target = target; | public CommandRunner(Class cx, Method method, Object[] args) { this.cx = cx; this.method = method; this.args = args; } | |
Object obj = null; if(!Modifier.isStatic(method.getModifiers())) { obj = cx.newInstance(); } AccessController.doPrivileged(new InvokeAction(method, obj, args)); | AccessController.doPrivileged( new InvokeAction(method, target, args)); | public void run() { try { // System.err.println("Registering shell in new thread."); // to // ensure // access // to // the // command // shell // in /... |
err.println("Exception in command"); ex.printStackTrace(err); unblock(); | err.println("Exception in command"); ex.printStackTrace(err); unblock(); } catch (Error ex) { err.println("Error in command"); ex.printStackTrace(err); unblock(); | public void run() { try { // System.err.println("Registering shell in new thread."); // to // ensure // access // to // the // command // shell // in /... |
InputStream inputStream = System.in; InputStream nextInputStream = null; PrintStream errStream = System.err; PrintStream outputStream = null; | StreamHolder streams = new StreamHolder(System.in, null, System.err); | public void invoke(String cmdLineStr) { commandShell.addCommandToHistory(cmdLineStr); InputStream inputStream = System.in; // will also be dynamic later InputStream nextInputStream = null; PrintStream errStream = System.err; // will also be dynamic later PrintStream outputStream =... |
Method method; | public void invoke(String cmdLineStr) { commandShell.addCommandToHistory(cmdLineStr); InputStream inputStream = System.in; // will also be dynamic later InputStream nextInputStream = null; PrintStream errStream = System.err; // will also be dynamic later PrintStream outputStream =... | |
ByteArrayOutputStream byteArrayOutputStream = null; | public void invoke(String cmdLineStr) { commandShell.addCommandToHistory(cmdLineStr); InputStream inputStream = System.in; // will also be dynamic later InputStream nextInputStream = null; PrintStream errStream = System.err; // will also be dynamic later PrintStream outputStream =... | |
try { method = cmdInfo.getCommandClass().getMethod( EXECUTE_METHOD, EXECUTE_ARG_TYPES); if (cmdLine.sendToOutFile()) { File file = new File(cmdLine.getOutFileName()); try { FileOutputStream fileOutputStream = new FileOutputStream( file); outputStream = new PrintStream(fileOutputStream); } catch (SecurityException e) ... | cr = buildExecuteRunner(cmdName, cmdLine, cmdInfo, streams, i != commands.length - 1); if (cr == null) { cr = buildMainRunner(cmdName, cmdLine, cmdInfo); } if (cr == null) { err.println("Class " + cmdInfo.getCommandClass().getName() + " has no suitable 'execute' or 'main' method"); break; | public void invoke(String cmdLineStr) { commandShell.addCommandToHistory(cmdLineStr); InputStream inputStream = System.in; // will also be dynamic later InputStream nextInputStream = null; PrintStream errStream = System.err; // will also be dynamic later PrintStream outputStream =... |
if (outputStream != null && outputStream != System.out) { outputStream.close(); | if (streams.outputStream != null && streams.outputStream != System.out) { streams.outputStream.close(); | public void invoke(String cmdLineStr) { commandShell.addCommandToHistory(cmdLineStr); InputStream inputStream = System.in; // will also be dynamic later InputStream nextInputStream = null; PrintStream errStream = System.err; // will also be dynamic later PrintStream outputStream =... |
} catch (NoSuchMethodException ex) { err.println("Alias class has no main method " + cmdName); | } catch (NoGo ex) { err.println("Exception occurred while prepareing to run command"); ex.getCause().printStackTrace(err); | public void invoke(String cmdLineStr) { commandShell.addCommandToHistory(cmdLineStr); InputStream inputStream = System.in; // will also be dynamic later InputStream nextInputStream = null; PrintStream errStream = System.err; // will also be dynamic later PrintStream outputStream =... |
nextInputStream = null; | public void invoke(String cmdLineStr) { commandShell.addCommandToHistory(cmdLineStr); InputStream inputStream = System.in; // will also be dynamic later InputStream nextInputStream = null; PrintStream errStream = System.err; // will also be dynamic later PrintStream outputStream =... | |
return Class.forName(cmd); | final ClassLoader cl = Thread.currentThread().getContextClassLoader(); return cl.loadClass(cmd); | protected Class getCommandClass(String cmd) throws ClassNotFoundException { try { return aliasMgr.getAliasClass(cmd); } catch (NoSuchAliasException ex) { return Class.forName(cmd); } } |
if (is_trying) return null; try { is_trying = true; | public static synchronized JarFile get (URL url) throws IOException { JarFile jf = (JarFile) cache.get (url); if (jf != null) return jf; if (is_trying) return null; try { is_trying = true; if ("file".equals (url.getProtocol())) { ... | |
jf = new JarFile (f, true, ZipFile.OPEN_READ); | jf = new JarFile (f, true, ZipFile.OPEN_READ | ZipFile.OPEN_DELETE); | public static synchronized JarFile get (URL url) throws IOException { JarFile jf = (JarFile) cache.get (url); if (jf != null) return jf; if (is_trying) return null; try { is_trying = true; if ("file".equals (url.getProtocol())) { ... |
} finally { is_trying = false; } | public static synchronized JarFile get (URL url) throws IOException { JarFile jf = (JarFile) cache.get (url); if (jf != null) return jf; if (is_trying) return null; try { is_trying = true; if ("file".equals (url.getProtocol())) { ... | |
public static ComponentUI createUI(final JComponent c) { return new BasicTabbedPaneUI(); } | public static ComponentUI createUI(JComponent c) { return new BasicTabbedPaneUI(); } | public static ComponentUI createUI(final JComponent c) { return new BasicTabbedPaneUI(); } |
public Dimension getPreferredSize(JComponent c) { JTabbedPane p = (JTabbedPane) c; Dimension d = new Dimension(50,50); for (int i=0;i<p.getTabCount();i++) { Component comp = p.getComponentAt(i); Dimension pr = comp.getPreferredSize(); d.width = Math.max(d.width, comp.getWidth()); d.height = Math.max(d.height, comp.... | public Dimension getPreferredSize(JComponent c) { return layoutManager.preferredLayoutSize(tabPane); } | public Dimension getPreferredSize(JComponent c) { JTabbedPane p = (JTabbedPane) c; Dimension d = new Dimension(50,50); for (int i=0;i<p.getTabCount();i++) { Component comp = p.getComponentAt(i); Dimension pr = comp.getPreferredSize(); d.width = Math.max(d.width, comp.getWidth()); d.height = Math.max(... |
public Rectangle getTabBounds(JTabbedPane pane, int index) { return null; } | public Rectangle getTabBounds(JTabbedPane pane, int i) { return rects[i]; } | public Rectangle getTabBounds(JTabbedPane pane, int index) { return null; } |
{ return 0; } | { return runCount; } | public int getTabRunCount(JTabbedPane pane) { return 0; } |
public void installUI(final JComponent c) { super.installUI(c); } | public void installUI(JComponent c) { super.installUI(c); if (c instanceof JTabbedPane) { tabPane = (JTabbedPane) c; installComponents(); installDefaults(); installListeners(); installKeyboardActions(); layoutManager = createLayoutManager(); tabPane.setLayout(layoutManager); tabPane.layout(); } } | public void installUI(final JComponent c) { super.installUI(c); } |
{ return 0; } | { Point p = new Point(x, y); int tabCount = tabPane.getTabCount(); int currRun = 1; for (int i = 0; i < runCount; i++) { int first = lastTabInRun(tabCount, getPreviousTabRun(currRun)) + 1; if (first == tabCount) first = 0; int last = lastTabInRun(tabCount, currRun); for (int j = first; j <= last; j++) { if (getTabBound... | public int tabForCoordinate(JTabbedPane pane, int x, int y) { return 0; } |
getLayeredPane().add(menuBar, JLayeredPane.FRAME_CONTENT_LAYER); | if (menuBar != null) jlPane.add(menuBar, JLayeredPane.FRAME_CONTENT_LAYER); | public void setJMenuBar(JMenuBar m) { menuBar = m; getLayeredPane().add(menuBar, JLayeredPane.FRAME_CONTENT_LAYER); } |
{ } | { layers = new TreeMap (); componentToLayer = new Hashtable (); } | JLayeredPane() { } |
public boolean isPressed() { return pressed; } | public boolean isPressed() { return (stateMask & PRESSED) == PRESSED; } | public boolean isPressed() { return pressed; } |
public void fireActionPerformed(ActionEvent event) { for (int i = 0; i < actions.size(); i++) { ActionListener a = (ActionListener) actions.get(i); a.actionPerformed(event); } } | public void fireActionPerformed(ActionEvent e) { EventListener[] ll = listenerList.getListeners(ActionListener.class); for (int i = 0; i < ll.length; i++) ((ActionListener)ll[i]).actionPerformed(e); } | public void fireActionPerformed(ActionEvent event) { for (int i = 0; i < actions.size(); i++) { ActionListener a = (ActionListener) actions.get(i); a.actionPerformed(event); } } |
s.setOpaque(true); | protected void installDefaults(JSeparator s) { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); shadow = defaults.getColor("Separator.shadow"); highlight = defaults.getColor("Separator.highlight"); } | |
public Iterator<FSEntry> iterator() | public Iterator<? extends FSEntry> iterator() | public Iterator<FSEntry> iterator() throws IOException; |
UIDefaults defaults = UIManager.getLookAndFeelDefaults(); header.setBackground(defaults.getColor("TableHeader.background")); header.setForeground(defaults.getColor("TableHeader.foreground")); header.setFont(defaults.getFont("TableHeader.font")); cellBorder = defaults.getBorder("TableHeader.cellBorder"); | LookAndFeel.installColorsAndFont(header, "TableHeader.background", "TableHeader.foreground", "TableHeader.font"); cellBorder = UIManager.getBorder("TableHeader.cellBorder"); | protected void installDefaults() { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); header.setBackground(defaults.getColor("TableHeader.background")); header.setForeground(defaults.getColor("TableHeader.foreground")); header.setFont(defaults.getFont("TableHeader.font")); cellBorder = defaults... |
gfx.setClip(oldClip); | public void paint(Graphics gfx, JComponent c) { TableColumnModel cmod = header.getColumnModel(); int ncols = cmod.getColumnCount(); if (ncols == 0) return; Rectangle clip = gfx.getClipBounds(); TableCellRenderer defaultRend = header.getDefaultRenderer(); for (int i = 0; i < ncols; ++i) ... | |
"TextPane.selectionForeground", new ColorUIResource(Color.white)/*, | "TextPane.selectionForeground", new ColorUIResource(Color.white), | protected void initComponentDefaults(UIDefaults defaults) { Object[] uiDefaults; 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); uiDefaults = new Object[] { "AbstractUndoa... |
"Viewport.font", new FontUIResource("Dialog", Font.PLAIN, 12)*/ | "Viewport.font", new FontUIResource("Dialog", Font.PLAIN, 12) | protected void initComponentDefaults(UIDefaults defaults) { Object[] uiDefaults; 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); uiDefaults = new Object[] { "AbstractUndoa... |
bundles = new LinkedList (); listeners = new HashSet (); defaultLocale = Locale.getDefault (); | public UIDefaults() { } | |
return new DummyIcon(); | return getCheckBoxIcon(); | public static Icon getCheckBoxMenuItemIcon() { return new DummyIcon(); } |
return new DummyIcon(); | return new Icon() { public int getIconHeight() { return 12; } public int getIconWidth() { return 12; } public void paintIcon(Component c, Graphics g, int x, int y) { g.translate(x, y); Color saved = g.getColor(); g.setColor(Color.BLACK); g.fillPolygon(new Polygon(new int[] { 3, 9, 3 }, new int[] { 2, 6, 10 }, 3));... | public static Icon getMenuArrowIcon() { return new DummyIcon(); } |
return new DummyIcon(); | return getRadioButtonIcon(); | public static Icon getRadioButtonMenuItemIcon() { return new DummyIcon(); } |
modifiers = EventModifier.extend(modifiers); | modifiersEx = EventModifier.extend(modifiers) & EventModifier.NEW_MASK; | private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException { s.defaultReadObject(); modifiers = EventModifier.extend(modifiers); } |
{ get_listeners().addElement(listener); } | { listenerList.add (ListSelectionListener.class, listener); } | public void addListSelectionListener(ListSelectionListener listener) { get_listeners().addElement(listener); } |
{ get_listeners().removeElement(listener); } | { listenerList.remove (ListSelectionListener.class, listener); } | public void removeListSelectionListener(ListSelectionListener listener) { get_listeners().removeElement(listener); } |
throw new DomEx(DomEx.NO_MODIFICATION_ALLOWED_ERR); | throw new DomDOMException(DOMException.NO_MODIFICATION_ALLOWED_ERR); | public Entity declareEntity(String name, String publicId, String systemId, String notation) { DomEntity entity; if (name.charAt(0) == '%' || "[dtd]".equals(name)) { return null; } if (isReadonly()) ... |
throw new DomEx(DomEx.NO_MODIFICATION_ALLOWED_ERR); | throw new DomDOMException(DOMException.NO_MODIFICATION_ALLOWED_ERR); | public Notation declareNotation(String name, String publicId, String systemId) { DomNotation notation; if (isReadonly()) { throw new DomEx(DomEx.NO_MODIFICATION_ALLOWED_ERR); } getNotations(); DomDocument.checkName... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.