bugged stringlengths 6 599k | fixed stringlengths 6 40.8M | __index_level_0__ int64 0 3.24M |
|---|---|---|
public void beginResizingFrame(JComponent component, int direction) { // TODO } // beginResizingFrame() | public void beginResizingFrame(JComponent component, int direction) { // TODO } // beginResizingFrame() | 34,773 |
public void closeFrame(JInternalFrame frame) { // TODO } // closeFrame() | public void closeFrame(JInternalFrame frame) { // TODO } // closeFrame() | 34,774 |
public void deactivateFrame(JInternalFrame frame) { // TODO } // deactivateFrame() | public void deactivateFrame(JInternalFrame frame) { // TODO } // deactivateFrame() | 34,775 |
public void deiconifyFrame(JInternalFrame frame) { // TODO } // deiconifyFrame() | public void deiconifyFrame(JInternalFrame frame) { // TODO } // deiconifyFrame() | 34,776 |
public void dragFrame(JComponent component, int newX, int newY) { // TODO } // dragFrame() | public void dragFrame(JComponent component, int newX, int newY) { // TODO } // dragFrame() | 34,777 |
public void endDraggingFrame(JComponent component) { // TODO } // endDraggingFrame() | public void endDraggingFrame(JComponent component) { // TODO } // endDraggingFrame() | 34,778 |
public void endResizingFrame(JComponent component) { // TODO } // endResizingFrame() | public void endResizingFrame(JComponent component) { // TODO } // endResizingFrame() | 34,779 |
protected Rectangle getBoundsForIconOf(JInternalFrame frame) { return null; // TODO } // getBoundsForIconOf() | protected Rectangle getBoundsForIconOf(JInternalFrame frame) { return null; // TODO } // getBoundsForIconOf() | 34,780 |
protected Rectangle getPreviousBounds(JInternalFrame frame) { return null; // TODO } // getPreviousBounds() | protected Rectangle getPreviousBounds(JInternalFrame frame) { return null; // TODO } // getPreviousBounds() | 34,781 |
public void iconifyFrame(JInternalFrame frame) { // TODO } // iconifyFrame() | public void iconifyFrame(JInternalFrame frame) { // TODO } // iconifyFrame() | 34,782 |
public void maximizeFrame(JInternalFrame frame) { // TODO } // maximizeFrame() | public void maximizeFrame(JInternalFrame frame) { // TODO } // maximizeFrame() | 34,783 |
public void minimizeFrame(JInternalFrame frame) { // TODO } // minimizeFrame() | public void minimizeFrame(JInternalFrame frame) { // TODO } // minimizeFrame() | 34,784 |
public void openFrame(JInternalFrame frame) { // TODO } // openFrame() | public void openFrame(JInternalFrame frame) { // TODO } // openFrame() | 34,785 |
protected void removeIconFor(JInternalFrame frame) { // TODO } // removeIconFor() | protected void removeIconFor(JInternalFrame frame) { // TODO } // removeIconFor() | 34,786 |
public void resizeFrame(JComponent component, int newX, int newY, int newWidth, int newHeight) { // TODO } // resizeFrame() | public void resizeFrame(JComponent component, int newX, int newY, int newWidth, int newHeight) { // TODO } // resizeFrame() | 34,787 |
public void setBoundsForFrame(JComponent component, int newX, int newY, int newWidth, int newHeight) { // TODO } // setBoundsForFrame() | public void setBoundsForFrame(JComponent component, int newX, int newY, int newWidth, int newHeight) { // TODO } // setBoundsForFrame() | 34,788 |
protected void setPreviousBounds(JInternalFrame frame, Rectangle rect) { // TODO } // setPreviousBounds() | protected void setPreviousBounds(JInternalFrame frame, Rectangle rect) { // TODO } // setPreviousBounds() | 34,789 |
protected void setWasIcon(JInternalFrame frame, Boolean value) { // TODO } // setWasIcon() | protected void setWasIcon(JInternalFrame frame, Boolean value) { // TODO } // setWasIcon() | 34,790 |
protected boolean wasIcon(JInternalFrame frame) { return false; // TODO } // wasIcon() | protected boolean wasIcon(JInternalFrame frame) { return false; // TODO } // wasIcon() | 34,791 |
public String getAccessibleDescription() { return null; } | public String getAccessibleDescription() { String result = super.getAccessibleDescription(); if (result == null) result = text; return result; } | 34,793 |
public AccessibleRole getAccessibleRole() { return null; } | public AccessibleRole getAccessibleRole() { return AccessibleRole.TOOL_TIP; } | 34,794 |
public AccessibleContext getAccessibleContext() { return null; } | public AccessibleContext getAccessibleContext() { if (accessibleContext == null) accessibleContext = new AccessibleJToolTip(); return accessibleContext; } | 34,795 |
protected String paramString() { return "JToolTip"; } | protected String paramString() { StringBuffer sb = new StringBuffer(super.paramString()); sb.append(",tiptext="); if (text != null); sb.append(text); return sb.toString(); } | 34,796 |
public SummedAreaTable(Raster src) { if (src.getNumBands() != 1) { throw new IllegalArgumentException("src.bands != 1"); } this.width = src.getWidth(); this.height = src.getHeight(); this.table = new float[width * height]; createTable(src); } | public SummedAreaTable(Raster src) { if (src.getNumBands() != 1) { throw new IllegalArgumentException("src.bands != 1"); } this.width = src.getWidth(); this.height = src.getHeight(); this.table = new float[width * height]; createTable(src); } | 34,799 |
public SummedAreaTable(Raster src) { if (src.getNumBands() != 1) { throw new IllegalArgumentException("src.bands != 1"); } this.width = src.getWidth(); this.height = src.getHeight(); this.table = new float[width * height]; createTable(src); } | public SummedAreaTable(Raster src) { if (src.getNumBands() != 1) { throw new IllegalArgumentException("src.bands != 1"); } this.width = src.getWidth(); this.height = src.getHeight(); this.table = new float[width * height]; createTable(src); } | 34,800 |
private final void createTable(Raster src) { for (int y = 0; y < height; y++) { final int yOfs = y * width; for (int x = 0; x < width; x++) { float sum; // Start with the sum directly above me if (y > 0) { sum = table[(y - 1) * width + x]; } else { sum = 0.0f; } // Add the sum of the val... | private final void createTable(Raster src) { for (int y = 0; y < height; y++) { final int yOfs = y * width; for (int x = 0; x < width; x++) { float sum; // Start with the sum directly above me if (y > 0) { sum = table[(y - 1) * width + x]; } else { sum = 0.0f; } // Add the sum of the val... | 34,801 |
private final void createTable(Raster src) { for (int y = 0; y < height; y++) { final int yOfs = y * width; for (int x = 0; x < width; x++) { float sum; // Start with the sum directly above me if (y > 0) { sum = table[(y - 1) * width + x]; } else { sum = 0.0f; } // Add the sum of the val... | private final void createTable(Raster src) { for (int y = 0; y < height; y++) { final int yOfs = y * width; for (int x = 0; x < width; x++) { float sum; // Start with the sum directly above me if (y > 0) { sum = table[(y - 1) * width + x]; } else { sum = 0.0f; } // Add the sum of the val... | 34,802 |
private final void createTable(Raster src) { for (int y = 0; y < height; y++) { final int yOfs = y * width; for (int x = 0; x < width; x++) { float sum; // Start with the sum directly above me if (y > 0) { sum = table[(y - 1) * width + x]; } else { sum = 0.0f; } // Add the sum of the val... | private final void createTable(Raster src) { for (int y = 0; y < height; y++) { final int yOfs = y * width; for (int x = 0; x < width; x++) { float sum; // Start with the sum directly above me if (y > 0) { sum = table[(y - 1) * width + x]; } else { sum = 0.0f; } // Add the sum of the val... | 34,803 |
private final void createTable(Raster src) { for (int y = 0; y < height; y++) { final int yOfs = y * width; for (int x = 0; x < width; x++) { float sum; // Start with the sum directly above me if (y > 0) { sum = table[(y - 1) * width + x]; } else { sum = 0.0f; } // Add the sum of the val... | private final void createTable(Raster src) { for (int y = 0; y < height; y++) { final int yOfs = y * width; for (int x = 0; x < width; x++) { float sum; // Start with the sum directly above me if (y > 0) { sum = table[(y - 1) * width + x]; } else { sum = 0.0f; } // Add the sum of the val... | 34,804 |
public final float getIntensity(int x, int y, int w, int h) { if (x < 0) { w += x; x = 0; } if (y < 0) { h += y; y = 0; } if (x + w > width) { w = Math.max(0, width - x); } if (y + h > height) { h = Math.max(0, height - y); } if ((w <= 0) || (h <= 0)) { return 0.0f; } final int x2 = x + w; fi... | public final float getIntensity(int x, int y, int w, int h) { if (x < 0) { w += x; x = 0; } if (y < 0) { h += y; y = 0; } if (x + w > width) { w = Math.max(0, width - x); } if (y + h > height) { h = Math.max(0, height - y); } if ((w <= 0) || (h <= 0)) { return 0.0f; } final int x2 = x + w; fi... | 34,805 |
public final float getIntensity(int x, int y, int w, int h) { if (x < 0) { w += x; x = 0; } if (y < 0) { h += y; y = 0; } if (x + w > width) { w = Math.max(0, width - x); } if (y + h > height) { h = Math.max(0, height - y); } if ((w <= 0) || (h <= 0)) { return 0.0f; } final int x2 = x + w; fi... | public final float getIntensity(int x, int y, int w, int h) { if (x < 0) { w += x; x = 0; } if (y < 0) { h += y; y = 0; } if (x + w > width) { w = Math.max(0, width - x); } if (y + h > height) { h = Math.max(0, height - y); } if ((w <= 0) || (h <= 0)) { return 0.0f; } final int x2 = x + w; fi... | 34,806 |
public final float getSum(int x, int y) { if ((x < 0) || (x >= width)) { throw new IllegalArgumentException("x"); } if ((y < 0) || (y >= height)) { throw new IllegalArgumentException("y"); } return table[y * width + x]; } | public final float getSum(int x, int y) { if ((x < 0) || (x >= width)) { throw new IllegalArgumentException("x"); } if ((y < 0) || (y >= height)) { throw new IllegalArgumentException("y"); } return table[y * width + x]; } | 34,807 |
public static VMOpenMode valueOf(int mode) { // These are mode values for open(). VMOpenMode value = null; switch(mode) { case FileChannelImpl.READ: value = READ; break; case FileChannelImpl.WRITE: value = WRITE; break; case FileChannelImpl.APPEND: value =... | public static VMOpenMode valueOf(int mode) { // These are mode values for open(). VMOpenMode value = null; if(read) { case FileChannelImpl.READ: value = READ; break; case FileChannelImpl.WRITE: value = WRITE; break; case FileChannelImpl.APPEND: value = REA... | 34,808 |
public static VMOpenMode valueOf(int mode) { // These are mode values for open(). VMOpenMode value = null; switch(mode) { case FileChannelImpl.READ: value = READ; break; case FileChannelImpl.WRITE: value = WRITE; break; case FileChannelImpl.APPEND: value =... | public static VMOpenMode valueOf(int mode) { // These are mode values for open(). VMOpenMode value = null; switch(mode) { case FileChannelImpl.READ: value = READ; break; case FileChannelImpl.WRITE: value = WRITE; break; case FileChannelImpl.APPEND: value =... | 34,809 |
public static VMOpenMode valueOf(int mode) { // These are mode values for open(). VMOpenMode value = null; switch(mode) { case FileChannelImpl.READ: value = READ; break; case FileChannelImpl.WRITE: value = WRITE; break; case FileChannelImpl.APPEND: value =... | public static VMOpenMode valueOf(int mode) { // These are mode values for open(). VMOpenMode value = null; switch(mode) { case FileChannelImpl.READ: value = READ; break; case FileChannelImpl.WRITE: value = WRITE; break; case FileChannelImpl.APPEND: value =... | 34,810 |
public int getActualMaximum(int field) { switch (field) { case WEEK_OF_YEAR: { if (!areFieldsSet || !isSet[ERA] || !isSet[YEAR]) complete(); // This is wrong for the year that contains the gregorian change. // I.e it gives the weeks in the julian year or in the gregorian // year ... | public int getActualMaximum(int field) { switch (field) { case WEEK_OF_YEAR: { if (!areFieldsSet || !isSet[ERA] || !isSet[YEAR]) complete(); // This is wrong for the year that contains the gregorian change. // I.e it gives the weeks in the julian year or in the gregorian // year ... | 34,811 |
private long getLinearTime(int year, int dayOfYear, int millis) { // The 13 is the number of days, that were omitted in the Gregorian // Calender until the epoch. // We shift right by 2 instead of dividing by 4, to get correct // results for negative years (and this is even more efficient). int julianDay = ((... | private long getLinearTime(int year, int dayOfYear, int millis) { // The 13 is the number of days, that were omitted in the Gregorian // Calender until the epoch. // We shift right by 2 instead of dividing by 4, to get correct // results for negative years (and this is even more efficient). int julianDay = ((... | 34,812 |
public DropTarget () { this (null, 0, null, true, null); } | public DropTarget () { this (null, DnDConstants.ACTION_COPY_OR_MOVE, null, true, null); } | 34,816 |
public void addNotify(java.awt.peer.ComponentPeer peer) { } | public void addNotify(ComponentPeer p) { } | 34,818 |
protected DropTarget.DropTargetAutoScroller createDropTargetAutoScroller (Component c, Point p) { return new DropTarget.DropTargetAutoScroller (c, p); } | protected DropTarget.DropTargetAutoScroller createDropTargetAutoScroller (Component c, Point p) { if (autoscroller == null) autoscroller = new DropTarget.DropTargetAutoScroller (c, p); return autoscroller; } | 34,821 |
protected DropTargetContext createDropTargetContext() { return new DropTargetContext (this); } | protected DropTargetContext createDropTargetContext() { if (dropTargetContext == null) dropTargetContext = new DropTargetContext (this); return dropTargetContext; } | 34,822 |
public void removeDropTargetListener(DropTargetListener dtl) { // FIXME: Do we need to do something with dtl ? dropTargetListener = null; } | if (dropTargetListener != null) if (dropTargetListener != null) publicif (dropTargetListener != null) voidif (dropTargetListener != null) removeDropTargetListener(DropTargetListenerif (dropTargetListener != null) dtl)if (dropTargetListener != null) if (dropTargetListener != null) {if (dropTargetListener != null) if (dr... | 34,829 |
public void removeNotify(java.awt.peer.ComponentPeer peer) { } | public void removeNotify(ComponentPeer p) { } | 34,830 |
public void receive(SocketBuffer skbuf, NetDeviceAPI deviceAPI) throws SocketException { // Update statistics stat.ipackets.inc(); // Get IP header final IPv4Header hdr = new IPv4Header(skbuf); if (!hdr.isChecksumOk()) { stat.badsum.inc(); //log.de... | public void receive(SocketBuffer skbuf, NetDeviceAPI deviceAPI) throws SocketException { // Update statistics stat.ipackets.inc(); // Get IP header final IPv4Header hdr = new IPv4Header(skbuf); if (!hdr.isChecksumOk()) { stat.badsum.inc(); //log.de... | 34,833 |
public void receive(SocketBuffer skbuf, NetDeviceAPI deviceAPI) throws SocketException { // Update statistics stat.ipackets.inc(); // Get IP header final IPv4Header hdr = new IPv4Header(skbuf); if (!hdr.isChecksumOk()) { stat.badsum.inc(); //log.de... | public void receive(SocketBuffer skbuf, NetDeviceAPI deviceAPI) throws SocketException { // Update statistics stat.ipackets.inc(); // Get IP header final IPv4Header hdr = new IPv4Header(skbuf); if (!hdr.isChecksumOk()) { stat.badsum.inc(); //log.de... | 34,834 |
public boolean contains(IPv4Address address) { return addresses.containsKey(address); } | public boolean contains(IPv4Address address) { return addresses.containsKey(address); } | 34,835 |
public static ComponentUI createUI(JComponent component) { if (instance == null) instance = new MetalSplitPaneUI(); return instance; } | public static ComponentUI createUI(JComponent component) { if (instances == null) instances = new HashMap(); Object o = instances.get(component); MetalSplitPaneUI instance; if (o == null) { instance = new MetalSplitPaneUI(); return instance; } | 34,836 |
public void startSystemPlugins(List descriptors) throws PluginException { SecurityManager sm = System.getSecurityManager(); if (sm != null) { sm.checkPermission(START_SYSTEM_PLUGINS_PERM); } // Resolve all plugins ((PluginRegistryModel) registry).resolveDescript... | public void startSystemPlugins(List descriptors) throws PluginException { SecurityManager sm = System.getSecurityManager(); if (sm != null) { sm.checkPermission(START_SYSTEM_PLUGINS_PERM); } // Resolve all plugins ((PluginRegistryModel) registry).resolveDescript... | 34,838 |
public void startSystemPlugins(List descriptors) throws PluginException { SecurityManager sm = System.getSecurityManager(); if (sm != null) { sm.checkPermission(START_SYSTEM_PLUGINS_PERM); } // Resolve all plugins ((PluginRegistryModel) registry).resolveDescript... | public void startSystemPlugins(List descriptors) throws PluginException { SecurityManager sm = System.getSecurityManager(); if (sm != null) { sm.checkPermission(START_SYSTEM_PLUGINS_PERM); } // Resolve all plugins ((PluginRegistryModel) registry).resolveDescript... | 34,839 |
public void startSystemPlugins(List descriptors) throws PluginException { SecurityManager sm = System.getSecurityManager(); if (sm != null) { sm.checkPermission(START_SYSTEM_PLUGINS_PERM); } // Resolve all plugins ((PluginRegistryModel) registry).resolveDescript... | public void startSystemPlugins(List descriptors) throws PluginException { SecurityManager sm = System.getSecurityManager(); if (sm != null) { sm.checkPermission(START_SYSTEM_PLUGINS_PERM); } // Resolve all plugins ((PluginRegistryModel) registry).resolveDescript... | 34,840 |
public void startSystemPlugins(List descriptors) throws PluginException { SecurityManager sm = System.getSecurityManager(); if (sm != null) { sm.checkPermission(START_SYSTEM_PLUGINS_PERM); } // Resolve all plugins ((PluginRegistryModel) registry).resolveDescript... | public void startSystemPlugins(List descriptors) throws PluginException { SecurityManager sm = System.getSecurityManager(); if (sm != null) { sm.checkPermission(START_SYSTEM_PLUGINS_PERM); } // Resolve all plugins ((PluginRegistryModel) registry).resolveDescript... | 34,841 |
public KeyboardDaemon(String name) { super(name); } | public KeyboardDaemon(String name) { super(name); } | 34,842 |
public void run() { while ((channel != null) && channel.isOpen()) { try { buf.rewind(); if (channel.read(buf) != 1) { continue; } byte scancode = buf.get(0); //Syslog.debug("Interpreting " + scancode); KeyboardEvent event = kbInterpreter.interpretScancode(scancode & 0xff); if (ev... | public void run() { while ((channel != null) && channel.isOpen()) { try { buf.rewind(); if (channel.read(buf) != 1) { continue; } byte scancode = buf.get(0); //Syslog.debug("Interpreting " + scancode); KeyboardEvent event = kbInterpreter.interpretScancode(scancode & 0xff); if (ev... | 34,843 |
public synchronized void addKeyboardListener(KeyboardListener l) { listeners.add(l); } | public synchronized void addKeyboardListener(KeyboardListener l) { listeners.add(l); } | 34,844 |
protected KeyboardInterpreter createKeyboardInterpreter() { return KeyboardInterpreterFactory.getDefaultKeyboardInterpreter(); } | protected KeyboardInterpreter createKeyboardInterpreter() { return KeyboardInterpreterFactory.getDefaultKeyboardInterpreter(); } | 34,845 |
protected void dispatchEvent(KeyboardEvent event) { //Syslog.debug("Dispatching event to " + listeners.size()); for (Iterator i = listeners.iterator(); i.hasNext();) { KeyboardListener l = (KeyboardListener) i.next(); if (event.isKeyPressed()) { l.keyPressed(event); } else if (event.isKeyReleased()) { l.... | protected void dispatchEvent(KeyboardEvent event) { //Syslog.debug("Dispatching event to " + listeners.size()); for (Iterator i = listeners.iterator(); i.hasNext();) { KeyboardListener l = (KeyboardListener) i.next(); if (event.isKeyPressed()) { l.keyPressed(event); } else if (event.isKeyReleased()) { l.... | 34,846 |
public KeyboardInterpreter getKbInterpreter() { return kbInterpreter; } | public KeyboardInterpreter getKbInterpreter() { return kbInterpreter; } | 34,847 |
public synchronized void removeKeyboardListener(KeyboardListener l) { listeners.remove(l); } | public synchronized void removeKeyboardListener(KeyboardListener l) { listeners.remove(l); } | 34,848 |
public void setKbInterpreter(KeyboardInterpreter kbInterpreter) { if (kbInterpreter == null) { throw new IllegalArgumentException("kbInterpreter==null"); } this.kbInterpreter = kbInterpreter; } | public void setKbInterpreter(KeyboardInterpreter kbInterpreter) { if (kbInterpreter == null) { throw new IllegalArgumentException("kbInterpreter==null"); } this.kbInterpreter = kbInterpreter; } | 34,849 |
protected synchronized void startDevice() throws DriverException { this.channel = getChannel(); this.kbInterpreter = createKeyboardInterpreter(); final Device dev = getDevice(); this.daemon = new KeyboardDaemon(dev.getId() + "-daemon"); daemon.start(); dev.registerAPI(KeyboardAPI.class, this); // If no inputstr... | protected synchronized void startDevice() throws DriverException { this.channel = getChannel(); this.kbInterpreter = createKeyboardInterpreter(); final Device dev = getDevice(); this.daemon = new KeyboardDaemon(dev.getId() + "-daemon"); daemon.start(); dev.registerAPI(KeyboardAPI.class, this); // If no inputstr... | 34,850 |
protected synchronized void startDevice() throws DriverException { this.channel = getChannel(); this.kbInterpreter = createKeyboardInterpreter(); final Device dev = getDevice(); this.daemon = new KeyboardDaemon(dev.getId() + "-daemon"); daemon.start(); dev.registerAPI(KeyboardAPI.class, this); // If no inputstr... | protected synchronized void startDevice() throws DriverException { this.channel = getChannel(); this.kbInterpreter = createKeyboardInterpreter(); final Device dev = getDevice(); this.daemon = new KeyboardDaemon(dev.getId() + "-daemon"); daemon.start(); dev.registerAPI(KeyboardAPI.class, this); // If no inputstr... | 34,851 |
protected synchronized void startDevice() throws DriverException { this.channel = getChannel(); this.kbInterpreter = createKeyboardInterpreter(); final Device dev = getDevice(); this.daemon = new KeyboardDaemon(dev.getId() + "-daemon"); daemon.start(); dev.registerAPI(KeyboardAPI.class, this); // If no inputstr... | protected synchronized void startDevice() throws DriverException { this.channel = getChannel(); this.kbInterpreter = createKeyboardInterpreter(); final Device dev = getDevice(); this.daemon = new KeyboardDaemon(dev.getId() + "-daemon"); daemon.start(); dev.registerAPI(KeyboardAPI.class, this); // If no inputstr... | 34,852 |
public int read() { return -1; } | public int read() { return -1; } | 34,853 |
protected synchronized void stopDevice() throws DriverException { getDevice().unregisterAPI(KeyboardAPI.class); KeyboardDaemon daemon = this.daemon; if (System.in == kis) { System.setIn(null); } if (daemon != null) { daemon.interrupt(); } this.daemon = null; try { channel.close(); } catch (IOException e... | protected synchronized void stopDevice() throws DriverException { getDevice().unregisterAPI(KeyboardAPI.class); KeyboardDaemon daemon = this.daemon; if (System.in == kis) { System.setIn(null); } if (daemon != null) { daemon.interrupt(); } this.daemon = null; try { channel.close(); } catch (IOException e... | 34,854 |
protected synchronized void stopDevice() throws DriverException { getDevice().unregisterAPI(KeyboardAPI.class); KeyboardDaemon daemon = this.daemon; if (System.in == kis) { System.setIn(null); } if (daemon != null) { daemon.interrupt(); } this.daemon = null; try { channel.close(); } catch (IOException e... | protected synchronized void stopDevice() throws DriverException { getDevice().unregisterAPI(KeyboardAPI.class); KeyboardDaemon daemon = this.daemon; if (System.in == kis) { System.setIn(null); } if (daemon != null) { daemon.interrupt(); } this.daemon = null; try { channel.close(); } catch (IOException e... | 34,855 |
static EditorKit createEditorKitForContentType(String type) { return new PlainEditorKit(); } | static EditorKit createEditorKitForContentType(String type) { return new PlainEditorKit(); } | 34,856 |
String getContentType() { return ctype; } | String getContentType() { return ctype; } | 34,857 |
static String getEditorKitClassNameForContentType(String type) { return "text/plain"; } | static String getEditorKitClassNameForContentType(String type) { return "text/plain"; } | 34,858 |
EditorKit getEditorKitForContentType(String type) { return kit; } | EditorKit getEditorKitForContentType(String type) { return kit; } | 34,859 |
public HyperlinkListener[] getHyperlinkListeners() { return (HyperlinkListener[]) getListeners (HyperlinkListener.class); } | public HyperlinkListener[] getHyperlinkListeners() { return (HyperlinkListener[]) getListeners(HyperlinkListener.class); } | 34,860 |
public boolean getScrollableTracksViewportHeight() { return false; } | public boolean getScrollableTracksViewportHeight() { return false; } | 34,861 |
public boolean getScrollableTracksViewportWidth() { return false; } | public boolean getScrollableTracksViewportWidth() { return false; } | 34,862 |
protected InputStream getStream(URL page) { try { return page.openStream(); } catch (Exception e) { System.out.println("Hhmmm, failed to open stream: " + e); } return null; } | protected InputStream getStream(URL page) { try { return page.openStream(); } catch (Exception e) { System.out.println("Hhmmm, failed to open stream: " + e); } return null; } | 34,863 |
protected InputStream getStream(URL page) { try { return page.openStream(); } catch (Exception e) { System.out.println("Hhmmm, failed to open stream: " + e); } return null; } | protected InputStream getStream(URL page) { try { return page.openStream(); } catch (Exception e) { System.out.println("Hhmmm, failed to open stream: " + e); } return null; } | 34,864 |
public boolean isFocusCycleRoot() { return focus_root; } | public boolean isFocusCycleRoot() { return focus_root; } | 34,865 |
public boolean isManagingFocus() { return manages_focus; } | public boolean isManagingFocus() { return manages_focus; } | 34,866 |
protected void processComponentKeyEvent(KeyEvent e) { //Overridden to handle processing of tab/shift tab. } | protectedvoidprocessComponentKeyEvent(KeyEvente){ //Overriddentohandleprocessingoftab/shifttab.} | 34,867 |
protected void processKeyEvent(KeyEvent e) { //Make sure that TAB and Shift-TAB events get consumed, so that awt doesn't attempt focus traversal. } | protectedvoidprocessKeyEvent(KeyEvente){ //MakesurethatTABandShift-TABeventsgetconsumed,sothatawtdoesn'tattemptfocustraversal.} | 34,868 |
void read(InputStream in, Object desc) { //This method initializes from a stream. } | public void read(InputStream in, Object desc) { //This method initializes from a stream. } | 34,869 |
void read(InputStream in, Object desc) { //This method initializes from a stream. } | voidread(InputStreamin,Objectdesc){ //Thismethodinitializesfromastream.} | 34,870 |
static void registerEditorKitForContentType(String type, String classname) { //Establishes the default bindings of type to classname. } | public static void registerEditorKitForContentType(String type, String classname) { //Establishes the default bindings of type to classname. } | 34,871 |
static void registerEditorKitForContentType(String type, String classname) { //Establishes the default bindings of type to classname. } | staticvoidregisterEditorKitForContentType(Stringtype,Stringclassname){ //Establishesthedefaultbindingsoftypetoclassname.} | 34,872 |
public void removeHyperlinkListener (HyperlinkListener listener) { listenerList.remove (HyperlinkListener.class, listener); } | public void removeHyperlinkListener(HyperlinkListener listener) { listenerList.remove (HyperlinkListener.class, listener); } | 34,873 |
public void removeHyperlinkListener (HyperlinkListener listener) { listenerList.remove (HyperlinkListener.class, listener); } | public void removeHyperlinkListener (HyperlinkListener listener) { listenerList.remove(HyperlinkListener.class, listener); } | 34,874 |
protected void scrollToReference(String reference) { //Scrolls the view to the given reference location (that is, the value returned by the UL.getRef method for the URL being displayed). } | protectedvoidscrollToReference(Stringreference){ //Scrollstheviewtothegivenreferencelocation(thatis,thevaluereturnedbytheUL.getRefmethodfortheURLbeingdisplayed).} | 34,875 |
void setContentType(String type) { ctype = type; invalidate(); repaint(); } | public void setContentType(String type) { ctype = type; invalidate(); repaint(); } | 34,876 |
void setEditorKitForContentType(String type, EditorKit k) { ctype = type; setEditorKit(k); } | public void setEditorKitForContentType(String type, EditorKit k) { ctype = type; setEditorKit(k); } | 34,877 |
public String format(LogRecord record) { StringBuffer buf = new StringBuffer(400); Level level = record.getLevel(); long millis = record.getMillis(); Object[] params = record.getParameters(); ResourceBundle bundle = record.getResourceBundle(); String message; buf.append("<record>"); buf.append(lin... | public String format(LogRecord record) { StringBuffer buf = new StringBuffer(400); Level level = record.getLevel(); long millis = record.getMillis(); Object[] params = record.getParameters(); ResourceBundle bundle = record.getResourceBundle(); String message; buf.append("<record>"); buf.append(lin... | 34,878 |
static synchronized boolean canRead(String path) { try { return VMIOUtils.getAPI().canRead(path); } catch (IOException ex) { return false; } } | static synchronized boolean canRead(String path) { try { return VMIOUtils.getAPI().canRead(path); } catch (IOException ex) { return false; } } | 34,879 |
static synchronized boolean canRead(String path) { try { return VMIOUtils.getAPI().canRead(path); } catch (IOException ex) { return false; } } | static synchronized boolean canRead(String path) { try { return VMIOUtils.getAPI().canRead(getNormalizedPath(path)); } catch (IOException ex) { return false; } } | 34,880 |
static synchronized boolean canRead(String path) { try { return VMIOUtils.getAPI().canRead(path); } catch (IOException ex) { return false; } } | static synchronized boolean canRead(String path) { try { return VMIOUtils.getAPI().canRead(path); } catch (IOException ex) { return false; } } | 34,881 |
static synchronized boolean canWrite(String path) { try { return VMIOUtils.getAPI().canWrite(path); } catch (IOException ioe) { return (false); } } | static synchronized boolean canWrite(String path) { try { return VMIOUtils.getAPI().canWrite(path); } catch (IOException ioe) { return (false); } } | 34,882 |
static synchronized boolean canWrite(String path) { try { return VMIOUtils.getAPI().canWrite(path); } catch (IOException ioe) { return (false); } } | static synchronized boolean canWrite(String path) { try { return VMIOUtils.getAPI().canWrite(getNormalizedPath(path)); } catch (IOException ioe) { return (false); } } | 34,883 |
static synchronized boolean canWrite(String path) { try { return VMIOUtils.getAPI().canWrite(path); } catch (IOException ioe) { return (false); } } | static synchronized boolean canWrite(String path) { try { return VMIOUtils.getAPI().canWrite(path); } catch (IOException ioe) { return (false); } } | 34,884 |
static boolean canWriteDirectory(File dir) { try { String filename = IS_DOS_8_3 ? "tst" : "test-dir-write"; File test = File.createTempFile(filename, null, dir); return (test != null && test.delete()); } catch (IOException ioe) { return false; } } | static boolean canWriteDirectory(File dir) { try { String filename = IS_DOS_8_3 ? "tst" : "test-dir-write"; File test = File.createTempFile(filename, null, dir); return (test != null && test.delete()); } catch (IOException ioe) { return false; } } | 34,885 |
static boolean create(String path) throws IOException { //moved from JNode File.createInternal(File file) v1.3 : if(exists(path)) return false; VMFileHandle vmFileHandler=VMIOUtils.getAPI().open(path,VMOpenMode.WRITE); vmFileHandler.close(); return true; } | static boolean create(String path) throws IOException { //moved from JNode File.createInternal(File file) v1.3 : if(exists(path)) return false; VMFileHandle vmFileHandler=VMIOUtils.getAPI().open(path,VMOpenMode.WRITE); vmFileHandler.close(); return true; } | 34,886 |
static boolean delete(String path) { try { VMIOUtils.getAPI().delete(path); return true; } catch (IOException ex) { return false; } } | static boolean delete(String path) { try { VMIOUtils.getAPI().delete(path); return true; } catch (IOException ex) { return false; } } | 34,887 |
static boolean exists(String string) { try { return VMIOUtils.getAPI().fileExists(string); } catch (IOException ex) { return false; } } | static boolean exists(String string) { try { return VMIOUtils.getAPI().fileExists(string); } catch (IOException ex) { return false; } } | 34,888 |
static String getName(String path) { int pos = PlatformHelper.lastIndexOfSeparator(path); if (pos == -1) return path; if (PlatformHelper.endWithSeparator(path)) return ""; return path.substring(pos + File.separator.length()); } | static String getName(String path) { int pos = PlatformHelper.lastIndexOfSeparator(path); if (pos == -1) return path; if (PlatformHelper.endWithSeparator(path)) return ""; return path.substring(pos + File.separator.length()); } | 34,889 |
static boolean isDirectory(String string) { try { return VMIOUtils.getAPI().isDirectory(string); } catch (IOException ex) { return false; } } | static boolean isDirectory(String string) { try { return VMIOUtils.getAPI().isDirectory(string); } catch (IOException ex) { return false; } } | 34,890 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.