bugged stringlengths 6 599k | fixed stringlengths 6 40.8M | __index_level_0__ int64 0 3.24M |
|---|---|---|
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 ((... | 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 ((... | 17,854 |
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... | 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... | 17,856 |
JDialog(Frame owner) { this(owner, "dialog"); } | public JDialog() { this(owner, "dialog"); } | 17,857 |
JDialog(Frame owner) { this(owner, "dialog"); } | JDialog(Frame owner) { this(SwingUtilities.getOwnerFrame(), "", false, null); } | 17,858 |
protected void addImpl(Component comp, Object constraints, int index) { super.addImpl(comp, constraints, index); } | protected void addImpl(Component comp, Object constraints, int index) { super.addImpl(comp, constraints, index); } | 17,859 |
JRootPane createRootPane() { return new JRootPane(); } | JRootPane createRootPane() { return new JRootPane(); } | 17,860 |
Container getContentPane() { return getRootPane().getContentPane(); } | Container getContentPane() { return getRootPane().getContentPane(); } | 17,861 |
Component getGlassPane() { return getRootPane().getGlassPane(); } | Component getGlassPane() { return getRootPane().getGlassPane(); } | 17,862 |
JMenuBar getJMenuBar() { return getRootPane().getJMenuBar(); } | JMenuBar getJMenuBar() { return getRootPane().getJMenuBar(); } | 17,863 |
JLayeredPane getLayeredPane() { return getRootPane().getLayeredPane(); } | JLayeredPane getLayeredPane() { return getRootPane().getLayeredPane(); } | 17,864 |
JRootPane getRootPane() { if (rootPane == null) setRootPane(createRootPane()); return rootPane; } | public JRootPane getRootPane() { if (rootPane == null) setRootPane(createRootPane()); return rootPane; } | 17,865 |
protected boolean isRootPaneCheckingEnabled() { return checking; } | protected boolean isRootPaneCheckingEnabled() { return checking; } | 17,866 |
protected String paramString() { return "JDialog"; } | protected String paramString() { return "JDialog"; } | 17,867 |
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... | 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... | 17,868 |
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... | 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... | 17,869 |
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... | protectedvoidprocessWindowEvent(WindowEvente){ // System.out.println("PROCESS_WIN_EV-1:"+e); super.processWindowEvent(e); // System.out.println("PROCESS_WIN_EV-2:"+e); switch(e.getID()) { caseWindowEvent.WINDOW_CLOSING: { switch(close_action) { caseDISPOSE_ON_CLOSE: { System.out.println("userrequesteddispose... | 17,870 |
public void remove(Component comp) { getContentPane().remove(comp); } | public void remove(Component comp) { getContentPane().remove(comp); } | 17,871 |
void setContentPane(Container contentPane) { getRootPane().setContentPane(contentPane); } | void setContentPane(Container contentPane) { getRootPane().setContentPane(contentPane); } | 17,872 |
void setDefaultCloseOperation(int operation) { close_action = operation; } | void setDefaultCloseOperation(int operation) { close_action = operation; } | 17,873 |
void setGlassPane(Component glassPane) { getRootPane().setGlassPane(glassPane); } | void setGlassPane(Component glassPane) { getRootPane().setGlassPane(glassPane); } | 17,874 |
void setJMenuBar(JMenuBar menubar) { getRootPane().setJMenuBar(menubar); } | void setJMenuBar(JMenuBar menubar) { getRootPane().setJMenuBar(menubar); } | 17,875 |
void setLayeredPane(JLayeredPane layeredPane) { getRootPane().setLayeredPane(layeredPane); } | void setLayeredPane(JLayeredPane layeredPane) { getRootPane().setLayeredPane(layeredPane); } | 17,876 |
public void setLayout(LayoutManager manager) { super.setLayout(manager); } | public void setLayout(LayoutManager manager) { super.setLayout(manager); } | 17,877 |
void setRootPane(JRootPane root) { if (rootPane != null) remove(rootPane); rootPane = root; add(rootPane, BorderLayout.CENTER); } | protected void setRootPane(JRootPane root) { if (rootPane != null) remove(rootPane); rootPane = root; add(rootPane, BorderLayout.CENTER); } | 17,878 |
void setRootPane(JRootPane root) { if (rootPane != null) remove(rootPane); rootPane = root; add(rootPane, BorderLayout.CENTER); } | void setRootPane(JRootPane root) { if (rootPane != null) remove(rootPane); rootPane = root; rootPane.show(); add(rootPane); } | 17,879 |
protected void setRootPaneCheckingEnabled(boolean enabled) { checking = enabled; } | protected void setRootPaneCheckingEnabled(boolean enabled) { checking = enabled; } | 17,880 |
public void update(Graphics g) { paint(g); } | public void update(Graphics g) { paint(g); } | 17,881 |
Dialog (Dialog parent, String title, boolean modal, GraphicsConfiguration gc){ super (parent, parent.getGraphicsConfiguration ()); // A null title is equivalent to an empty title this.title = (title != null) ? title : ""; this.modal = modal; visible = false; setLayout (new BorderLayout ());} | Dialog (Dialog parent, String title, boolean modal, GraphicsConfiguration gc){ super (parent, parent.getGraphicsConfiguration ()); // A null title is equivalent to an empty title this.title = (title != null) ? title : ""; this.modal = modal; visible = false; setLayout (new BorderLayout ());} | 17,882 |
Dialog (Dialog parent, String title, boolean modal, GraphicsConfiguration gc){ super (parent, parent.getGraphicsConfiguration ()); // A null title is equivalent to an empty title this.title = (title != null) ? title : ""; this.modal = modal; visible = false; setLayout (new BorderLayout ());} | Dialog (Dialog parent, String title, boolean modal, GraphicsConfiguration gc){ super (parent, parent.getGraphicsConfiguration ()); // A null title is equivalent to an empty title this.title = (title != null) ? title : ""; this.modal = modal; visible = false; setLayout (new BorderLayout ());} | 17,883 |
public WrongPolicy(String why) { super(why); } | public WrongPolicy() { super(why); } | 17,884 |
public WrongPolicy(String why) { super(why); } | public WrongPolicy(String why) { } | 17,885 |
public ServantNotActive(String why) { super(why); } | public ServantNotActive() { super(why); } | 17,886 |
public ServantNotActive(String why) { super(why); } | public ServantNotActive(String why) { } | 17,887 |
public IllegalPathStateException(String msg) { super(msg); } | public IllegalPathStateException() { super(msg); } | 17,888 |
public IllegalPathStateException(String msg) { super(msg); } | public IllegalPathStateException(String msg) { } | 17,889 |
public void update(byte[] input) { engineUpdate(input, 0, input.length); } | public void update(byte input) { engineUpdate(input, 0, input.length); } | 17,891 |
public void update(byte[] input) { engineUpdate(input, 0, input.length); } | public void update(byte[] input) { engineUpdate(input); } | 17,892 |
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... | 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... | 17,893 |
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... | protected Response(int majorVersion, int minorVersion, int code, int codeClass, String message, Headers headers) { this.majorVersion = majorVersion; this.minorVersion = minorVersion; this.code = code; this.message = message; this.headers = headers; } | 17,894 |
public static long[] read(InputStream input) { ULongLongSeqHolder h = new ULongLongSeqHolder(); h._read(input); return h.value; } | public static long[] read(InputStream input) { ULongLongSeqHolder h = new ULongLongSeqHolder(); h._read(input); return h.value; } | 17,896 |
public static TypeCode type() { return new primitiveArrayTypeCode(TCKind.tk_long); } | public static TypeCode type() { return new primitiveArrayTypeCode(TCKind.tk_ulong); } | 17,897 |
public static void write(OutputStream output, long[] value) { ULongLongSeqHolder h = new ULongLongSeqHolder(value); h._write(output); } | public static void write(OutputStream output, long[] value) { ULongLongSeqHolder h = new ULongLongSeqHolder(value); h._write(output); } | 17,898 |
public CommandRunner(Class cx, Method method, Object[] args) { this.cx = cx; this.method = method; this.args = args; } | public CommandRunner(Class cx, Method method, Object target, Object[] args) { this.cx = cx; this.method = method; this.args = args; } | 17,899 |
public void run() { try { // System.err.println("Registering shell in new thread."); // to // ensure // access // to // the // command // shell // in /... | public void run() { try { // System.err.println("Registering shell in new thread."); // to // ensure // access // to // the // command // shell // in // this // new // thread? try { Object obj = null; if(!Modifier.isStatic(method.getModifiers())) { ... | 17,901 |
public void run() { try { // System.err.println("Registering shell in new thread."); // to // ensure // access // to // the // command // shell // in /... | public void run() { try { // System.err.println("Registering shell in new thread."); // to // ensure // access // to // the // command // shell // in /... | 17,902 |
public void run() { try { // System.err.println("Registering shell in new thread."); // to // ensure // access // to // the // command // shell // in /... | public void run() { try { // System.err.println("Registering shell in new thread."); // to // ensure // access // to // the // command // shell // in /... | 17,903 |
public void run() { try { // System.err.println("Registering shell in new thread."); // to // ensure // access // to // the // command // shell // in /... | public void run() { try { // System.err.println("Registering shell in new thread."); // to // ensure // access // to // the // command // shell // in /... | 17,904 |
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 =... | 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 =... | 17,905 |
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 =... | 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 =... | 17,906 |
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 =... | 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 =... | 17,907 |
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 =... | 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 =... | 17,908 |
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 =... | publicvoidinvoke(StringcmdLineStr){commandShell.addCommandToHistory(cmdLineStr);InputStreaminputStream=System.in;//willalsobedynamiclaterInputStreamnextInputStream=null;PrintStreamerrStream=System.err;//willalsobedynamiclaterPrintStreamoutputStream=null;CommandLinecmdLine;Methodmethod;CommandRunnercr;CommandInfocmdInfo... | 17,909 |
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 =... | publicvoidinvoke(StringcmdLineStr){commandShell.addCommandToHistory(cmdLineStr);InputStreaminputStream=System.in;//willalsobedynamiclaterInputStreamnextInputStream=null;PrintStreamerrStream=System.err;//willalsobedynamiclaterPrintStreamoutputStream=null;CommandLinecmdLine;Methodmethod;CommandRunnercr;CommandInfocmdInfo... | 17,910 |
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 =... | 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 =... | 17,911 |
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 =... | 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 =... | 17,912 |
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 =... | public void invoke(String cmdLineStr) { commandShell.addCommandToHistory(cmdLineStr); InputStream inputStream = System.in; // will also be dynamic later InputStream PrintStream errStream = System.err; // will also be dynamic later PrintStream outputStream = null; CommandLine... | 17,913 |
protected Class getCommandClass(String cmd) throws ClassNotFoundException { try { return aliasMgr.getAliasClass(cmd); } catch (NoSuchAliasException ex) { return Class.forName(cmd); } } | protected Class getCommandClass(String cmd) throws ClassNotFoundException { try { return aliasMgr.getAliasClass(cmd); } catch (NoSuchAliasException ex) { return Class.forName(cmd); } } | 17,914 |
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 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())) { ... | 17,915 |
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 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())) { ... | 17,916 |
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 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())) { ... | 17,917 |
public static ComponentUI createUI(final JComponent c) { return new BasicTabbedPaneUI(); } | public static ComponentUI createUI(final JComponent c) { return new BasicTabbedPaneUI(); } | 17,918 |
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 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(... | 17,919 |
public Rectangle getTabBounds(JTabbedPane pane, int index) { return null; } | public Rectangle getTabBounds(JTabbedPane pane, int index) { return null; } | 17,920 |
public int getTabRunCount(JTabbedPane pane) { return 0; } | public int getTabRunCount(JTabbedPane pane) { return 0; } | 17,921 |
public void installUI(final JComponent c) { super.installUI(c); } | public void installUI(final JComponent c) { super.installUI(c); } | 17,922 |
public int tabForCoordinate(JTabbedPane pane, int x, int y) { return 0; } | public int tabForCoordinate(JTabbedPane pane, int x, int y) { return 0; } | 17,923 |
public void setJMenuBar(JMenuBar m) { menuBar = m; getLayeredPane().add(menuBar, JLayeredPane.FRAME_CONTENT_LAYER); } | public void setJMenuBar(JMenuBar m) { menuBar = m; if (menuBar != null) jlPane.add(menuBar, JLayeredPane.FRAME_CONTENT_LAYER); } | 17,924 |
JLayeredPane() { } | JLayeredPane() { } | 17,925 |
public boolean isPressed() { return pressed; } | public boolean isPressed() { return pressed; } | 17,926 |
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 event) { for (int i = 0; i < actions.size(); i++) { ActionListener a = (ActionListener) actions.get(i); a.actionPerformed(event); } } | 17,927 |
Button(String label){ this.label = label; actionCommand = label; if (GraphicsEnvironment.isHeadless ()) throw new HeadlessException ();} | Button(String label){ this.label = label; actionCommand = label; if (GraphicsEnvironment.isHeadless ()) throw new HeadlessException ();} | 17,928 |
Button(String label){ this.label = label; actionCommand = label; if (GraphicsEnvironment.isHeadless ()) throw new HeadlessException ();} | Button(String label){ this.label = label; actionCommand = label; if (GraphicsEnvironment.isHeadless ()) throw new HeadlessException ();} | 17,929 |
public void setSystemId(String systemID); | public void setSystemId(String systemID); | 17,930 |
public Iterator<FSEntry> iterator() throws IOException; | public Iterator<FSEntry> iterator() throws IOException; | 17,933 |
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... | 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... | 17,934 |
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... | 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... | 17,936 |
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... | 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... | 17,937 |
public static Icon getCheckBoxMenuItemIcon() { return new DummyIcon(); } | public static Icon getCheckBoxMenuItemIcon() { return getCheckBoxIcon(); } | 17,939 |
public static Icon getMenuArrowIcon() { return new DummyIcon(); } | public static Icon getMenuArrowIcon() { 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 i... | 17,940 |
public static Icon getRadioButtonMenuItemIcon() { return new DummyIcon(); } | public static Icon getRadioButtonMenuItemIcon() { return getRadioButtonIcon(); } | 17,941 |
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException { s.defaultReadObject(); modifiers = EventModifier.extend(modifiers); } | private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException { s.defaultReadObject(); modifiersEx = EventModifier.extend(modifiers) & EventModifier.NEW_MASK; } | 17,942 |
public void addListSelectionListener(ListSelectionListener listener) { get_listeners().addElement(listener); } | public void addListSelectionListener(ListSelectionListener listener) { get_listeners().addElement(listener); } | 17,943 |
public void removeListSelectionListener(ListSelectionListener listener) { get_listeners().removeElement(listener); } | public void removeListSelectionListener(ListSelectionListener listener) { get_listeners().removeElement(listener); } | 17,944 |
public Entity declareEntity(String name, String publicId, String systemId, String notation) { DomEntity entity; if (name.charAt(0) == '%' || "[dtd]".equals(name)) { return null; } if (isReadonly()) ... | public Entity declareEntity(String name, String publicId, String systemId, String notation) { DomEntity entity; if (name.charAt(0) == '%' || "[dtd]".equals(name)) { return null; } if (isReadonly()) ... | 17,945 |
public Notation declareNotation(String name, String publicId, String systemId) { DomNotation notation; if (isReadonly()) { throw new DomEx(DomEx.NO_MODIFICATION_ALLOWED_ERR); } getNotations(); DomDocument.checkName... | public Notation declareNotation(String name, String publicId, String systemId) { DomNotation notation; if (isReadonly()) { throw new DomDOMException(DOMException.NO_MODIFICATION_ALLOWED_ERR); } getNotations(); DomD... | 17,946 |
public LRUCache(int max) { super(max, 0.75f, true); max_entries = max; } | public LRUCache(int max) { super(max, 0.75f, true); max_entries = max; } | 17,947 |
protected boolean removeEldestEntry(Map.Entry eldest) { return size() > max_entries; } | protected boolean removeEldestEntry(Map.Entry eldest) { return size() > max_entries; } | 17,948 |
public JNodeToolkit() { refCount = 0; this.focusHandler = new FocusHandler(this); JNodeGenericPeer.enableQueue(eventQueue); } | public JNodeToolkit() { refCount = 0; this.focusHandler = new FocusHandler(this); JNodeGenericPeer.enableQueue(eventQueue); } | 17,949 |
public void beep() { SpeakerUtils.beep(); } | public void beep() { SpeakerUtils.beep(); } | 17,950 |
public int checkImage(Image image, int width, int height, ImageObserver observer) { // TODO Auto-generated method stub return 0; } | public int checkImage(Image image, int width, int height, ImageObserver observer) { // TODO Auto-generated method stub return 0; } | 17,951 |
public BufferedImage createCompatibleImage(int width, int height) { return config.createCompatibleImage(width, height); } | public BufferedImage createCompatibleImage(int width, int height) { return config.createCompatibleImage(width, height); } | 17,952 |
public Font createFont(int format, InputStream stream) { // TODO Auto-generated method stub return null; } | public Font createFont(int format, InputStream stream) { // TODO Auto-generated method stub return null; } | 17,953 |
public Image createImage(byte[] data, int offset, int len) { if (len >= 4 && data[offset + 0] == 'G' && data[offset + 1] == 'I' && data[offset + 2] == 'F' && data[offset + 3] == '8') { try { return createImage(new GIFDecoder(new ByteArrayInputStream( ... | public Image createImage(byte[] data, int offset, int len) { if (len >= 4 && data[offset + 0] == 'G' && data[offset + 1] == 'I' && data[offset + 2] == 'F' && data[offset + 3] == '8') { try { return createImage(new GIFDecoder(new ByteArrayInputStream( ... | 17,954 |
public Image createImage(byte[] data, int offset, int len) { if (len >= 4 && data[offset + 0] == 'G' && data[offset + 1] == 'I' && data[offset + 2] == 'F' && data[offset + 3] == '8') { try { return createImage(new GIFDecoder(new ByteArrayInputStream( ... | public Image createImage(byte[] data, int offset, int len) { if (len >= 4 && data[offset + 0] == 'G' && data[offset + 1] == 'I' && data[offset + 2] == 'F' && data[offset + 3] == '8') { try { return createImage(new GIFDecoder(new ByteArrayInputStream( ... | 17,955 |
public ImageProducer createImageProducer(URL url) { // TODO Auto-generated method stub return super.createImageProducer(url); } | public ImageProducer createImageProducer(URL url) { // TODO Auto-generated method stub return super.createImageProducer(url); } | 17,956 |
public VolatileImage createVolatileImage(int width, int height) { throw new RuntimeException("Not implemented"); } | public VolatileImage createVolatileImage(int width, int height) { throw new RuntimeException("Not implemented"); } | 17,957 |
private final synchronized int decRefCount(boolean forceClose) { refCount--; log.debug("refCount.dec=" + refCount); if ((refCount == 0) || forceClose) { onClose(); if (keyboardHandler != null) { this.keyboardHandler.close(); } if (mouse... | private final synchronized int decRefCount(boolean forceClose) { refCount--; log.debug("refCount.dec=" + refCount); if ((refCount == 0) || forceClose) { onClose(); if (keyboardHandler != null) { this.keyboardHandler.close(); } if (mouse... | 17,958 |
private final synchronized void doWaitUntilStopped() { while (graphics != null) { try { wait(); } catch (InterruptedException ex) { // Ignore } } } | private final synchronized void doWaitUntilStopped() { while (graphics != null) { try { wait(); } catch (InterruptedException ex) { // Ignore } } } | 17,959 |
public ClasspathFontPeer getClasspathFontPeer(String name, Map attrs) { Map keyMap = new HashMap(attrs); // We don't know what kind of "name" the user requested (logical, face, // family), and we don't actually *need* to know here. The worst case // involves failure to consolidate fonts ... | public ClasspathFontPeer getClasspathFontPeer(String name, Map attrs) { Map keyMap = new HashMap(attrs); // We don't know what kind of "name" the user requested (logical, face, // family), and we don't actually *need* to know here. The worst case // involves failure to consolidate fonts ... | 17,960 |
public ClasspathTextLayoutPeer getClasspathTextLayoutPeer( AttributedString str, FontRenderContext frc) { throw new UnsupportedOperationException(); // TODO Auto-generated method stub //return super.getClasspathTextLayoutPeer(str, frc); } | public ClasspathTextLayoutPeer getClasspathTextLayoutPeer( AttributedString str, FontRenderContext frc) { throw new UnsupportedOperationException(); // TODO Auto-generated method stub //return super.getClasspathTextLayoutPeer(str, frc); } | 17,961 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.