bugged stringlengths 6 599k | fixed stringlengths 10 599k | __index_level_0__ int64 0 1.13M |
|---|---|---|
protected Rectangle getInsideAllocation(Shape a) { if (a == null) return null; Rectangle alloc = a.getBounds(); // Initialize the inside allocation rectangle. This is done inside // a synchronized block in order to avoid multiple threads creating // this instance simultanously. Rectangle insid... | protected Rectangle getInsideAllocation(Shape a) { if (a == null) return null; Rectangle alloc = a.getBounds(); // Initialize the inside allocation rectangle. This is done inside // a synchronized block in order to avoid multiple threads creating // this instance simultanously. Rectangle insid... | 20,955 |
public int getViewCount() { return children.length; } | public int getViewCount() { return numChildren; } | 20,956 |
public Shape modelToView(int pos, Shape a, Position.Bias bias) throws BadLocationException { boolean backward = bias == Position.Bias.Backward; int testpos = backward ? Math.max(0, pos - 1) : pos; Shape ret = null; if (! backward || testpos >= getStartOffset()) { int childIndex = get... | public Shape modelToView(int pos, Shape a, Position.Bias bias) throws BadLocationException { boolean backward = bias == Position.Bias.Backward; int testpos = backward ? Math.max(0, pos - 1) : pos; Shape ret = null; if (! backward || testpos >= getStartOffset()) { int childIndex = get... | 20,958 |
public Shape modelToView(int pos, Shape a, Position.Bias bias) throws BadLocationException { boolean backward = bias == Position.Bias.Backward; int testpos = backward ? Math.max(0, pos - 1) : pos; Shape ret = null; if (! backward || testpos >= getStartOffset()) { int childIndex = get... | public Shape modelToView(int pos, Shape a, Position.Bias bias) throws BadLocationException { boolean backward = bias == Position.Bias.Backward; int testpos = backward ? Math.max(0, pos - 1) : pos; Shape ret = null; if (! backward || testpos >= getStartOffset()) { int childIndex = get... | 20,959 |
public void replace(int offset, int length, View[] views) { // Make sure we have an array. The Harmony testsuite indicates that we // have to do something like this. if (views == null) views = new View[0]; // Check for null views to add. for (int i = 0; i < views.length; ++i) if (views[i] ==... | public void replace(int offset, int length, View[] views) { // Make sure we have an array. The Harmony testsuite indicates that we // have to do something like this. if (views == null) views = new View[0]; // Check for null views to add. for (int i = 0; i < views.length; ++i) if (views[i] ==... | 20,960 |
public void replace(int offset, int length, View[] views) { // Make sure we have an array. The Harmony testsuite indicates that we // have to do something like this. if (views == null) views = new View[0]; // Check for null views to add. for (int i = 0; i < views.length; ++i) if (views[i] ==... | public void replace(int offset, int length, View[] views) { // Make sure we have an array. The Harmony testsuite indicates that we // have to do something like this. if (views == null) views = new View[0]; // Check for null views to add. for (int i = 0; i < views.length; ++i) if (views[i] ==... | 20,961 |
public void replace(int offset, int length, View[] views) { // Make sure we have an array. The Harmony testsuite indicates that we // have to do something like this. if (views == null) views = new View[0]; // Check for null views to add. for (int i = 0; i < views.length; ++i) if (views[i] ==... | public void replace(int offset, int length, View[] views) { // Make sure we have an array. The Harmony testsuite indicates that we // have to do something like this. if (views == null) views = new View[0]; // Check for null views to add. for (int i = 0; i < views.length; ++i) if (views[i] ==... | 20,962 |
public void setParent(View parent) { super.setParent(parent); if (parent != null && ((children == null) || children.length == 0)) loadChildren(getViewFactory()); } | public void setParent(View parent) { super.setParent(parent); if (parent != null && numChildren == 0) loadChildren(getViewFactory()); } | 20,964 |
public AbstractAction() { this(null); } | public AbstractAction() { } | 20,965 |
public void putValue(String key, Object value) { Object old = getValue(key); if (old == null || !old.equals(value)) { store.put(key, value); firePropertyChange(key, old, value); } } | public void putValue(String key, Object value) { Object old = getValue(key); if ((old == null && value != null) || (old != null && !old.equals(value))) { store.put(key, value); firePropertyChange(key, old, value); } } | 20,966 |
PrinterJob(){ ;} | PrinterJob(){ ;} | 20,967 |
cancel(); | public abstract void cancel(); | 20,968 |
defaultPage(){ return(new PageFormat());} | defaultPage(){ return(new PageFormat());} | 20,969 |
getCopies(); | public abstract int getCopies(); | 20,970 |
getJobName(); | public abstract String getJobName(); | 20,971 |
getPrinterJob(){ // FIXME: Need to fix this to load a default implementation instance. return(null);} | getPrinterJob(){ // FIXME: Need to fix this to load a default implementation instance. return(null);} | 20,972 |
getPrinterJob(){ // FIXME: Need to fix this to load a default implementation instance. return(null);} | getPrinterJob(){ // FIXME: Need to fix this to load a default implementation instance. return(null);} | 20,973 |
getUserName(); | public abstract String getUserName(); | 20,974 |
isCancelled(); | public abstract boolean isCancelled(); | 20,975 |
pageDialog(PageFormat page_format); | public abstract PageFormat pageDialog(PageFormat page_format); | 20,976 |
printDialog(); | public abstract boolean printDialog(); | 20,977 |
setPageable(Pageable pageable); | public abstract void setPageable(Pageable pageable); | 20,978 |
setPrintable(Printable printable); | public abstract void setPrintable(Printable printable); | 20,979 |
validatePage(PageFormat page); | public abstract PageFormat validatePage(PageFormat page_format); | 20,980 |
public void mouseDragged(MouseEvent e) { // If the frame is maximized, there is nothing that // can be dragged around. if (frame.isMaximum()) return; DesktopManager dm = getDesktopManager(); Rectangle b = frame.getBounds(); Dimension min = frame.getMinimumSize(); if (min... | public void mouseDragged(MouseEvent e) { // If the frame is maximized, there is nothing that // can be dragged around. if (frame.isMaximum()) return; DesktopManager dm = getDesktopManager(); Rectangle b = frame.getBounds(); Dimension min = frame.getMinimumSize(); if (min... | 20,982 |
public void mouseDragged(MouseEvent e) { // If the frame is maximized, there is nothing that // can be dragged around. if (frame.isMaximum()) return; DesktopManager dm = getDesktopManager(); Rectangle b = frame.getBounds(); Dimension min = frame.getMinimumSize(); if (min... | public void mouseDragged(MouseEvent e) { // If the frame is maximized, there is nothing that // can be dragged around. if (frame.isMaximum()) return; DesktopManager dm = getDesktopManager(); Rectangle b = frame.getBounds(); Dimension min = frame.getMinimumSize(); if (min... | 20,983 |
public void mouseDragged(MouseEvent e) { // If the frame is maximized, there is nothing that // can be dragged around. if (frame.isMaximum()) return; DesktopManager dm = getDesktopManager(); Rectangle b = frame.getBounds(); Dimension min = frame.getMinimumSize(); if (min... | public void mouseDragged(MouseEvent e) { // If the frame is maximized, there is nothing that // can be dragged around. if (frame.isMaximum()) return; DesktopManager dm = getDesktopManager(); Rectangle b = frame.getBounds(); Dimension min = frame.getMinimumSize(); if (min... | 20,984 |
public void mouseDragged(MouseEvent e) { // If the frame is maximized, there is nothing that // can be dragged around. if (frame.isMaximum()) return; DesktopManager dm = getDesktopManager(); Rectangle b = frame.getBounds(); Dimension min = frame.getMinimumSize(); if (min... | public void mouseDragged(MouseEvent e) { // If the frame is maximized, there is nothing that // can be dragged around. if (frame.isMaximum()) return; DesktopManager dm = getDesktopManager(); Rectangle b = frame.getBounds(); Dimension min = frame.getMinimumSize(); if (min... | 20,985 |
public void mouseDragged(MouseEvent e) { // If the frame is maximized, there is nothing that // can be dragged around. if (frame.isMaximum()) return; DesktopManager dm = getDesktopManager(); Rectangle b = frame.getBounds(); Dimension min = frame.getMinimumSize(); if (min... | public void mouseDragged(MouseEvent e) { // If the frame is maximized, there is nothing that // can be dragged around. if (frame.isMaximum()) return; DesktopManager dm = getDesktopManager(); Rectangle b = frame.getBounds(); Dimension min = frame.getMinimumSize(); if (min... | 20,986 |
public void mouseDragged(MouseEvent e) { // If the frame is maximized, there is nothing that // can be dragged around. if (frame.isMaximum()) return; DesktopManager dm = getDesktopManager(); Rectangle b = frame.getBounds(); Dimension min = frame.getMinimumSize(); if (min... | public void mouseDragged(MouseEvent e) { // If the frame is maximized, there is nothing that // can be dragged around. if (frame.isMaximum()) return; DesktopManager dm = getDesktopManager(); Rectangle b = frame.getBounds(); Dimension min = frame.getMinimumSize(); if (min... | 20,987 |
public void mouseDragged(MouseEvent e) { // If the frame is maximized, there is nothing that // can be dragged around. if (frame.isMaximum()) return; DesktopManager dm = getDesktopManager(); Rectangle b = frame.getBounds(); Dimension min = frame.getMinimumSize(); if (min... | public void mouseDragged(MouseEvent e) { // If the frame is maximized, there is nothing that // can be dragged around. if (frame.isMaximum()) return; DesktopManager dm = getDesktopManager(); Rectangle b = frame.getBounds(); Dimension min = frame.getMinimumSize(); if (min... | 20,988 |
public void mouseDragged(MouseEvent e) { // If the frame is maximized, there is nothing that // can be dragged around. if (frame.isMaximum()) return; DesktopManager dm = getDesktopManager(); Rectangle b = frame.getBounds(); Dimension min = frame.getMinimumSize(); if (min... | public void mouseDragged(MouseEvent e) { // If the frame is maximized, there is nothing that // can be dragged around. if (frame.isMaximum()) return; DesktopManager dm = getDesktopManager(); Rectangle b = frame.getBounds(); Dimension min = frame.getMinimumSize(); if (min... | 20,989 |
public void mouseDragged(MouseEvent e) { // If the frame is maximized, there is nothing that // can be dragged around. if (frame.isMaximum()) return; DesktopManager dm = getDesktopManager(); Rectangle b = frame.getBounds(); Dimension min = frame.getMinimumSize(); if (min... | public void mouseDragged(MouseEvent e) { // If the frame is maximized, there is nothing that // can be dragged around. if (frame.isMaximum()) return; DesktopManager dm = getDesktopManager(); Rectangle b = frame.getBounds(); Dimension min = frame.getMinimumSize(); if (min... | 20,990 |
public void mouseDragged(MouseEvent e) { // If the frame is maximized, there is nothing that // can be dragged around. if (frame.isMaximum()) return; DesktopManager dm = getDesktopManager(); Rectangle b = frame.getBounds(); Dimension min = frame.getMinimumSize(); if (min... | public void mouseDragged(MouseEvent e) { // If the frame is maximized, there is nothing that // can be dragged around. if (frame.isMaximum()) return; DesktopManager dm = getDesktopManager(); Rectangle b = frame.getBounds(); Dimension min = frame.getMinimumSize(); if (min... | 20,991 |
public void mouseExited(MouseEvent e) { // Reset the cursor shape. if (showingResizeCursor) { frame.setCursor(Cursor.getDefaultCursor()); showingResizeCursor = false; } } | public void mouseExited(MouseEvent e) { // Reset the cursor shape. if (showingCursor != Cursor.DEFAULT_CURSOR) { frame.setCursor(Cursor.getDefaultCursor()); showingResizeCursor = false; } } | 20,993 |
public void mouseExited(MouseEvent e) { // Reset the cursor shape. if (showingResizeCursor) { frame.setCursor(Cursor.getDefaultCursor()); showingResizeCursor = false; } } | public void mouseExited(MouseEvent e) { // Reset the cursor shape. if (showingResizeCursor) { frame.setCursor(Cursor.getDefaultCursor()); showingCursor = Cursor.DEFAULT_CURSOR; } } | 20,994 |
public void mouseMoved(MouseEvent e) { // Turn off the resize cursor if we are in the frame header. if (showingResizeCursor && e.getSource() != frame) { frame.setCursor(Cursor.getDefaultCursor()); showingResizeCursor = false; } else if (e.getSource()==frame && frame... | public void mouseMoved(MouseEvent e) { // Turn off the resize cursor if we are in the frame header. if (showingCursor != Cursor.DEFAULT_CURSOR && e.getSource() != frame) { frame.setCursor(Cursor.getDefaultCursor()); showingResizeCursor = false; } else if (e.getSourc... | 20,995 |
public void mouseMoved(MouseEvent e) { // Turn off the resize cursor if we are in the frame header. if (showingResizeCursor && e.getSource() != frame) { frame.setCursor(Cursor.getDefaultCursor()); showingResizeCursor = false; } else if (e.getSource()==frame && frame... | public void mouseMoved(MouseEvent e) { // Turn off the resize cursor if we are in the frame header. if (showingResizeCursor && e.getSource() != frame) { frame.setCursor(Cursor.getDefaultCursor()); showingCursor = Cursor.DEFAULT_CURSOR; } else if (e.getSource()==fram... | 20,996 |
public void mouseMoved(MouseEvent e) { // Turn off the resize cursor if we are in the frame header. if (showingResizeCursor && e.getSource() != frame) { frame.setCursor(Cursor.getDefaultCursor()); showingResizeCursor = false; } else if (e.getSource()==frame && frame... | public void mouseMoved(MouseEvent e) { // Turn off the resize cursor if we are in the frame header. if (showingResizeCursor && e.getSource() != frame) { frame.setCursor(Cursor.getDefaultCursor()); showingResizeCursor = false; } else if (e.getSource()==frame && frame... | 20,997 |
public void mouseMoved(MouseEvent e) { // Turn off the resize cursor if we are in the frame header. if (showingResizeCursor && e.getSource() != frame) { frame.setCursor(Cursor.getDefaultCursor()); showingResizeCursor = false; } else if (e.getSource()==frame && frame... | public void mouseMoved(MouseEvent e) { // Turn off the resize cursor if we are in the frame header. if (showingResizeCursor && e.getSource() != frame) { frame.setCursor(Cursor.getDefaultCursor()); showingResizeCursor = false; } else if (e.getSource()==frame && frame... | 20,998 |
private int sectionOfClick(int x, int y) { Insets insets = frame.getInsets(); Rectangle b = frame.getBounds(); if (x < insets.left && y < insets.top) return NORTH_WEST; else if (x > b.width - insets.right && y < insets.top) return NORTH_EAST; else if (x > b.width - insets.r... | private int sectionOfClick(int x, int y) { Rectangle b = frame.getBounds(); if (x < insets.left && y < insets.top) return NORTH_WEST; else if (x > b.width - insets.right && y < insets.top) return NORTH_EAST; else if (x > b.width - insets.right && y > b.height - insets.bott... | 21,000 |
private int sectionOfClick(int x, int y) { Insets insets = frame.getInsets(); Rectangle b = frame.getBounds(); if (x < insets.left && y < insets.top) return NORTH_WEST; else if (x > b.width - insets.right && y < insets.top) return NORTH_EAST; else if (x > b.width - insets.r... | private int sectionOfClick(int x, int y) { Insets insets = frame.getInsets(); Rectangle b = frame.getBounds(); if (x < insets.left && y < insets.top) return NORTH_WEST; else if (x > b.width - insets.right && y < insets.top) return NORTH_EAST; else if (x > b.width - insets.r... | 21,001 |
private int sectionOfClick(int x, int y) { Insets insets = frame.getInsets(); Rectangle b = frame.getBounds(); if (x < insets.left && y < insets.top) return NORTH_WEST; else if (x > b.width - insets.right && y < insets.top) return NORTH_EAST; else if (x > b.width - insets.r... | private int sectionOfClick(int x, int y) { Insets insets = frame.getInsets(); Rectangle b = frame.getBounds(); if (x < insets.left && y < insets.top) return NORTH_WEST; else if (x > b.width - insets.right && y < insets.top) return NORTH_EAST; else if (x > b.width - insets.r... | 21,002 |
public void paintBorder(Component c, Graphics g, int x, int y, int width, int height) { g.translate(x, y); Color saved = g.getColor(); Rectangle b = frame.getBounds(); Color d = c.getBackground(); g.setColor(d); g.fillRect(0, 0, bSize, b.height); g.fi... | public void paintBorder(Component c, Graphics g, int x, int y, int width, int height) { g.translate(x, y); Color saved = g.getColor(); Rectangle b = frame.getBounds(); Color d = c.getBackground(); g.setColor(d); g.fillRect(0, 0, bSize, b.height); g.fi... | 21,003 |
public static final int getTabbedTextOffset(Segment s, FontMetrics fm, int x0, int x, TabExpander te, int p0, boolean round) { // At the end of the for loop, this holds the requested model location int pos; int current... | public static final int getTabbedTextOffset(Segment s, FontMetrics fm, int x0, int x, TabExpander te, int p0, boolean round) { // At the end of the for loop, this holds the requested model location int pos; int current... | 21,005 |
public static final int getTabbedTextOffset(Segment s, FontMetrics fm, int x0, int x, TabExpander te, int p0, boolean round) { // At the end of the for loop, this holds the requested model location int pos; int current... | public static final int getTabbedTextOffset(Segment s, FontMetrics fm, int x0, int x, TabExpander te, int p0, boolean round) { // At the end of the for loop, this holds the requested model location int pos; int current... | 21,006 |
public static final int getTabbedTextOffset(Segment s, FontMetrics fm, int x0, int x, TabExpander te, int p0, boolean round) { // At the end of the for loop, this holds the requested model location int pos; int current... | public static final int getTabbedTextOffset(Segment s, FontMetrics fm, int x0, int x, TabExpander te, int p0, boolean round) { // At the end of the for loop, this holds the requested model location int pos; int current... | 21,007 |
public static final int getTabbedTextOffset(Segment s, FontMetrics fm, int x0, int x, TabExpander te, int p0, boolean round) { // At the end of the for loop, this holds the requested model location int pos; int current... | public static final int getTabbedTextOffset(Segment s, FontMetrics fm, int x0, int x, TabExpander te, int p0, boolean round) { // At the end of the for loop, this holds the requested model location int pos; int current... | 21,008 |
public FunctionCall(XPathFunctionResolver resolver, String name, List args) { this.resolver = resolver; this.name = name; this.args = args; } | public FunctionCall(XPathFunctionResolver resolver, String name) { this.resolver = resolver; this.name = name; this.args = args; } | 21,009 |
public FunctionCall(XPathFunctionResolver resolver, String name, List args) { this.resolver = resolver; this.name = name; this.args = args; } | public FunctionCall(XPathFunctionResolver resolver, String name, List args) { this.resolver = resolver; this.name = name; this.args = args; } | 21,010 |
protected void modelChanged() { ViewFactory factory = rootView.getViewFactory(); Element elem = textComponent.getDocument().getDefaultRootElement(); setView(factory.create(elem)); } | protected void modelChanged() { ViewFactory factory = rootView.getViewFactory(); if (factory == null) return; Document doc = textComponent.getDocument(); if (doc == null) return; Element elem = doc.getDefaultRootElement(); if (elem == null) return; setView(factory.create(elem)); } | 21,012 |
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, ... | 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, ... | 21,015 |
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, ... | public synchronized void parse(InputSource input) throws IOException, SAXException { String systemId = input.getSystemId(); InputStream in = input.getByteStream(); boolean opened = false; if (in != null) parser = new XMLParser(in, systemId, validating, ... | 21,016 |
public Dimension getPreferredSize() { Dimension d = super.getPreferredSize(); System.out.println("JFrame.getPrefSize(): " + d + " , comp=" + getComponentCount() + ", layout=" + getLayout()); return d; } | public Dimension getPreferredSize() { Dimension d = super.getPreferredSize(); System.out.println("JFrame.getPrefSize(): " + d + " , comp=" + getComponentCount() + ", layout=" + getLayout()); return d; } | 21,017 |
public byte[] decode(final byte[] EM) { // Separate the encoded message EM into an // octet string PS consisting of nonzero octets and a message M as // // EM = 0x00 || 0x02 || PS || 0x00 || M. // // If the first octet of EM does not have hexadecimal value 0x00, if // the second octet of EM does... | public byte[] decode(final byte[] EM) // Separate the encoded message EM into an // octet string PS consisting of nonzero octets and a message M as // // EM = 0x00 || 0x02 || PS || 0x00 || M. // // If the first octet of EM does not have hexadecimal value 0x00, if // the second octet of EM does ... | 21,018 |
public byte[] decode(final byte[] EM) { // Separate the encoded message EM into an // octet string PS consisting of nonzero octets and a message M as // // EM = 0x00 || 0x02 || PS || 0x00 || M. // // If the first octet of EM does not have hexadecimal value 0x00, if // the second octet of EM does... | public byte[] decode(final byte[] EM) { // Separate the encoded message EM into an // octet string PS consisting of nonzero octets and a message M as // // EM = 0x00 || 0x02 || PS || 0x00 || M. // // If the first octet of EM does not have hexadecimal value 0x00, if // the second octet of EM does... | 21,019 |
public static final EME_PKCS1_V1_5 getInstance(final int k) { if (k < 0) { throw new IllegalArgumentException("k must be a positive integer"); } return new EME_PKCS1_V1_5(k); } | public static final EME_PKCS1_V1_5 getInstance(final int k) if (k < 0) throw new IllegalArgumentException("k must be a positive integer"); } return new EME_PKCS1_V1_5(k); } | 21,020 |
public static final EME_PKCS1_V1_5 getInstance(final int k) { if (k < 0) { throw new IllegalArgumentException("k must be a positive integer"); } return new EME_PKCS1_V1_5(k); } | public static final EME_PKCS1_V1_5 getInstance(final int k) { if (k < 0) { throw new IllegalArgumentException("k must be a positive integer"); return new EME_PKCS1_V1_5(k); | 21,021 |
public gnuServantObject(Servant a_servant, byte[] an_id, ORB_1_4 an_orb, gnuPOA a_poa ) { Id = an_id; setServant(a_servant); poa = a_poa; if (poa != null) manager = poa.the_POAManager(); else manager = null; repository_ids = null; orb = ... | public gnuServantObject(Servant a_servant, byte[] an_id, ORB_1_4 an_orb, gnuPOA a_poa ) { Id = an_id; setServant(a_servant); poa = a_poa; if (poa != null) manager = poa.the_POAManager(); else manager = null; repository_ids = null; orb = ... | 21,022 |
public gnuServantObject(Servant a_servant, byte[] an_id, ORB_1_4 an_orb, gnuPOA a_poa ) { Id = an_id; setServant(a_servant); poa = a_poa; if (poa != null) manager = poa.the_POAManager(); else manager = null; repository_ids = null; orb = ... | public gnuServantObject(Servant a_servant, byte[] an_id, ORB_1_4 an_orb, gnuPOA a_poa ) { Id = an_id; manager = a_poa.the_POAManager(); poa = a_poa; if (poa != null) manager = poa.the_POAManager(); else manager = null; repository_ids = null... | 21,023 |
public gnuServantObject(Servant a_servant, byte[] an_id, ORB_1_4 an_orb, gnuPOA a_poa ) { Id = an_id; setServant(a_servant); poa = a_poa; if (poa != null) manager = poa.the_POAManager(); else manager = null; repository_ids = null; orb = ... | public gnuServantObject(Servant a_servant, byte[] an_id, ORB_1_4 an_orb, gnuPOA a_poa ) { Id = an_id; setServant(a_servant); poa = a_poa; if (poa != null) manager = poa.the_POAManager(); else manager = null; repository_ids = null; orb = ... | 21,024 |
public SwingPanelPeer(SwingToolkit toolkit, Panel panel) { super(toolkit, panel, new SwingPanel(panel)); final SwingPanel jPanel = (SwingPanel) jComponent; SwingToolkit.add(panel, jPanel); SwingToolkit.copyAwtProperties(panel, jPanel); jComponent.setLayout(new SwingContainerLayout(this)); } | public SwingPanelPeer(SwingToolkit toolkit, Panel panel) { super(toolkit, panel, new SwingPanel(panel)); final SwingPanel jPanel = (SwingPanel) jComponent; SwingToolkit.add(panel, jPanel); SwingToolkit.copyAwtProperties(panel, jPanel); jComponent.setLayout(new SwingContainerLayout(panel, this)); } | 21,025 |
public static void bind(String name, Remote obj) throws AlreadyBoundException, MalformedURLException, RemoteException { URL u = new URL("http:" + name); String filename = u.getFile(); // If the filename begins with a slash we must cut it for // name resolution. if (filename.charAt(0) == '/') getRegistry(u).bind(filena... | public static void bind(String name, Remote obj) throws AlreadyBoundException, MalformedURLException, RemoteException { URL u = new URL("http:" + name); String filename = u.getFile(); // If the filename begins with a slash we must cut it for // name resolution. if (filename.charAt(0) == '/') getRegistry(u).bind(filena... | 21,026 |
public static String[] list(String name) throws RemoteException, MalformedURLException { return (getRegistry(new URL("http:" + name)).list());} | public static String[] list(String name) throws RemoteException, MalformedURLException { return (getRegistry(parseURL(name)).list());} | 21,027 |
public static Remote lookup(String name) throws NotBoundException, MalformedURLException, RemoteException { // hack to accept "rmi://host:port/service" strings if(name.startsWith("rmi:")){ name = name.substring(4); } URL u = new URL("http:" + name); String filename = u.getFile(); // If the filename begins with a slash ... | public static Remote lookup(String name) throws NotBoundException, MalformedURLException, RemoteException { // hack to accept "rmi://host:port/service" strings if(name.startsWith("rmi:")){ name = name.substring(4); } URL u = new URL("http:" + name); String filename = u.getFile(); // If the filename begins with a slash ... | 21,028 |
public static void rebind(String name, Remote obj) throws RemoteException, MalformedURLException { URL u = new URL("http:" + name); String filename = u.getFile(); // If the filename begins with a slash we must cut it for // name resolution. if (filename.charAt(0) == '/') getRegistry(u).rebind(filename.substring(1), ob... | public static void rebind(String name, Remote obj) throws RemoteException, MalformedURLException { URL u = new URL("http:" + name); String filename = u.getFile(); // If the filename begins with a slash we must cut it for // name resolution. if (filename.charAt(0) == '/') getRegistry(u).rebind(filename.substring(1), ob... | 21,029 |
public static void unbind(String name) throws RemoteException, NotBoundException, MalformedURLException { URL u = new URL("http:" + name); String filename = u.getFile(); // If the filename begins with a slash we must cut it for // name resolution. if (filename.charAt(0) == '/') getRegistry(u).unbind(filename.substring... | public static void unbind(String name) throws RemoteException, NotBoundException, MalformedURLException { URL u = new URL("http:" + name); String filename = u.getFile(); // If the filename begins with a slash we must cut it for // name resolution. if (filename.charAt(0) == '/') getRegistry(u).unbind(filename.substring... | 21,030 |
protected InitialContext (boolean lazy) throws NamingException { if (! lazy) init (null); } | protected InitialContext (boolean lazy) throws NamingException { if (! lazy) init (null); } | 21,031 |
protected InitialContext (boolean lazy) throws NamingException { if (! lazy) init (null); } | protected InitialContext (boolean lazy) throws NamingException { if (! lazy) init (null); } | 21,032 |
protected void changeState(int stateflag, boolean b) { int oldstate = stateMask; int newstate; if (b) newstate = oldstate | stateflag; else newstate = oldstate & ~stateflag; if (oldstate == newstate) return; if ((stateflag != SELECTED) && (stateflag != ENABLED) && (s... | protected void changeState(int stateflag, boolean b) { int oldstate = stateMask; int newstate; if (b) newstate = oldstate | stateflag; else newstate = oldstate & ~stateflag; if (oldstate == newstate) return; if ((stateflag != SELECTED) && (stateflag != ENABLED) && (s... | 21,033 |
protected void changeState(int stateflag, boolean b) { int oldstate = stateMask; int newstate; if (b) newstate = oldstate | stateflag; else newstate = oldstate & ~stateflag; if (oldstate == newstate) return; if ((stateflag != SELECTED) && (stateflag != ENABLED) && (s... | protected void changeState(int stateflag, boolean b) { int oldstate = stateMask; int newstate; if (b) newstate = oldstate | stateflag; else newstate = oldstate & ~stateflag; if (oldstate == newstate) return; if ((stateflag != SELECTED) && (stateflag != ENABLED) && (s... | 21,034 |
protected void changeState(int stateflag, boolean b) { int oldstate = stateMask; int newstate; if (b) newstate = oldstate | stateflag; else newstate = oldstate & ~stateflag; if (oldstate == newstate) return; if ((stateflag != SELECTED) && (stateflag != ENABLED) && (s... | protected void changeState(int stateflag, boolean b) { int oldstate = stateMask; int newstate; if (b) newstate = oldstate | stateflag; else newstate = oldstate & ~stateflag; if (oldstate == newstate) return; if ((stateflag != SELECTED) && (stateflag != ENABLED) && (s... | 21,035 |
protected void changeState(int stateflag, boolean b) { int oldstate = stateMask; int newstate; if (b) newstate = oldstate | stateflag; else newstate = oldstate & ~stateflag; if (oldstate == newstate) return; if ((stateflag != SELECTED) && (stateflag != ENABLED) && (s... | protected void changeState(int stateflag, boolean b) { int oldstate = stateMask; int newstate; if (b) newstate = oldstate | stateflag; else newstate = oldstate & ~stateflag; if (oldstate == newstate) return; if ((stateflag != SELECTED) && (stateflag != ENABLED) && (s... | 21,036 |
public ByteBuffer compact () { int pos = position(); if (pos > 0) { int count = remaining(); // Call shiftDown method optimized for direct buffers. DirectByteBufferImpl.shiftDown(address, 0, pos, count); position(count); limit(capacity()); } return this; } | public ByteBuffer compact () { int pos = position(); if (pos > 0) { int count = remaining(); // Call shiftDown method optimized for direct buffers. VMDirectByteBuffer.shiftDown(address, 0, pos, count); position(count); limit(capacity()); } return this; } | 21,038 |
private ByteBuffer duplicate (boolean readOnly) { int pos = position(); reset(); int mark = position(); position(pos); DirectByteBufferImpl result = new DirectByteBufferImpl (this, address, capacity (), limit (), pos, readOnly); if (mark != pos) { result.position(mark); result.mark()... | private ByteBuffer duplicate (boolean readOnly) { int pos = position(); reset(); int mark = position(); position(pos); DirectByteBufferImpl result = new DirectByteBufferImpl (this, address, capacity (), limit (), pos, readOnly); if (mark != pos) { result.position(mark); result.mark()... | 21,039 |
public byte get () { checkForUnderflow(); int pos = position(); byte result = DirectByteBufferImpl.getImpl(address, pos); position (pos + 1); return result; } | public byte get () { checkForUnderflow(); int pos = position(); byte result = DirectByteBufferImpl.getImpl(address, pos); position (pos + 1); return result; } | 21,040 |
public ByteBuffer put (byte value) { checkIfReadOnly(); checkForOverflow(); int pos = position(); DirectByteBufferImpl.putImpl(address, pos, value); position(pos + 1); return this; } | public ByteBuffer put (byte value) { checkIfReadOnly(); checkForOverflow(); int pos = position(); VMDirectByteBuffer.put(address, pos, value); position(pos + 1); return this; } | 21,041 |
public ByteBuffer slice () { int rem = remaining(); return new DirectByteBufferImpl (this, DirectByteBufferImpl .adjustAddress(address, position()), rem, rem, 0, isReadOnly ()); } | public ByteBuffer slice () { int rem = remaining(); return new DirectByteBufferImpl (this, DirectByteBufferImpl .adjustAddress(address, position()), rem, rem, 0, isReadOnly ()); } | 21,042 |
private void executeMethods(ByteBuffer bb, DataOutputStream os) throws JdwpException, IOException { ReferenceTypeId refId = idMan.readReferenceTypeId(bb); Class clazz = refId.getType(); Method[] methods = clazz.getMethods(); os.writeInt(methods.length); for (int i = 0; i < methods.length; i++) ... | private void executeMethods(ByteBuffer bb, DataOutputStream os) throws JdwpException, IOException { ClassReferenceTypeId refId = (ClassReferenceTypeId) idMan.readReferenceTypeId(bb); Class clazz = refId.getType(); Method[] methods = clazz.getMethods(); os.writeInt(methods.length); for (int i = 0; i... | 21,043 |
private void executeMethods(ByteBuffer bb, DataOutputStream os) throws JdwpException, IOException { ReferenceTypeId refId = idMan.readReferenceTypeId(bb); Class clazz = refId.getType(); Method[] methods = clazz.getMethods(); os.writeInt(methods.length); for (int i = 0; i < methods.length; i++) ... | private void executeMethods(ByteBuffer bb, DataOutputStream os) throws JdwpException, IOException { ReferenceTypeId refId = idMan.readReferenceTypeId(bb); Class clazz = refId.getType(); Method[] methods = clazz.getMethods(); os.writeInt(methods.length); for (int i = 0; i < methods.length; i++) ... | 21,044 |
private void executeMethods(ByteBuffer bb, DataOutputStream os) throws JdwpException, IOException { ReferenceTypeId refId = idMan.readReferenceTypeId(bb); Class clazz = refId.getType(); Method[] methods = clazz.getMethods(); os.writeInt(methods.length); for (int i = 0; i < methods.length; i++) ... | private void executeMethods(ByteBuffer bb, DataOutputStream os) throws JdwpException, IOException { ReferenceTypeId refId = idMan.readReferenceTypeId(bb); Class clazz = refId.getType(); Method[] methods = clazz.getMethods(); os.writeInt(methods.length); for (int i = 0; i < methods.length; i++) ... | 21,045 |
private void executeMethods(ByteBuffer bb, DataOutputStream os) throws JdwpException, IOException { ReferenceTypeId refId = idMan.readReferenceTypeId(bb); Class clazz = refId.getType(); Method[] methods = clazz.getMethods(); os.writeInt(methods.length); for (int i = 0; i < methods.length; i++) ... | private void executeMethods(ByteBuffer bb, DataOutputStream os) throws JdwpException, IOException { ReferenceTypeId refId = idMan.readReferenceTypeId(bb); Class clazz = refId.getType(); Method[] methods = clazz.getMethods(); os.writeInt(methods.length); for (int i = 0; i < methods.length; i++) ... | 21,046 |
public byte get () { checkForUnderflow(); byte result = backing_buffer [position () + array_offset]; position (position () + 1); return result; } | public byte get () { if (pos >= limit) throw new BufferUnderflowException(); byte result = backing_buffer [position () + array_offset]; position (position () + 1); return result; } | 21,047 |
public byte get () { checkForUnderflow(); byte result = backing_buffer [position () + array_offset]; position (position () + 1); return result; } | public byte get () { checkForUnderflow(); byte result = backing_buffer [position () + array_offset]; position (position () + 1); return result; } | 21,048 |
public ByteBuffer put (byte value) { checkIfReadOnly(); checkForOverflow(); int pos = position(); backing_buffer [pos + array_offset] = value; position (pos + 1); return this; } | public ByteBuffer put (byte[] src, int offset, int length) { checkIfReadOnly(); checkForOverflow(); int pos = position(); backing_buffer [pos + array_offset] = value; position (pos + 1); return this; } | 21,049 |
public ByteBuffer put (byte value) { checkIfReadOnly(); checkForOverflow(); int pos = position(); backing_buffer [pos + array_offset] = value; position (pos + 1); return this; } | public ByteBuffer put (byte value) { checkIfReadOnly(); checkForOverflow(); int pos = position(); backing_buffer [pos + array_offset] = value; position (pos + 1); return this; } | 21,050 |
public ByteBuffer put (byte value) { checkIfReadOnly(); checkForOverflow(); int pos = position(); backing_buffer [pos + array_offset] = value; position (pos + 1); return this; } | public ByteBuffer put (byte value) { checkIfReadOnly(); checkForOverflow(); int pos = position(); backing_buffer [pos + array_offset] = value; position (pos + 1); return this; } | 21,051 |
public ByteBuffer putChar (char value) { ByteBufferHelper.putChar(this, value, order()); return this; } | public ByteBuffer putChar (char value) { if (readOnly) throw new ReadOnlyBufferException (); if ( (limit-pos) < 2) throw new BufferOverflowException(); if (endian == ByteOrder.LITTLE_ENDIAN) { backing_buffer [(pos++) + array_offset] = (byte)(value&0xFF); backing_buffer [(pos++) + array_offset] = (byte)(value>>8)... | 21,052 |
public void mouseClicked(MouseEvent event) { int count = event.getClickCount(); if (count >= 2) { int newDot = getComponent().viewToModel(event.getPoint()); JTextComponent t = getComponent(); try { if (count == 3) { setDot(Utilities.... | public void mouseClicked(MouseEvent event) { int count = event.getClickCount(); if (event.getButton() == MouseEvent.BUTTON1 && count >= 2) { int newDot = getComponent().viewToModel(event.getPoint()); JTextComponent t = getComponent(); try { if (count == 3) ... | 21,055 |
public void moveDot(int dot) { if (dot >= 0) { Document doc = textComponent.getDocument(); if (doc != null) this.dot = Math.min(dot, doc.getLength()); this.dot = Math.max(this.dot, 0); handleHighlight(); adjustVisibility(this); appear(); } } | public void moveDot(int dot) { if (dot >= 0) { Document doc = textComponent.getDocument(); if (doc != null) this.dot = Math.min(dot, doc.getLength()); this.dot = Math.max(this.dot, 0); handleHighlight(); appear(); } } | 21,058 |
public void setDot(int dot) { if (dot >= 0) { Document doc = textComponent.getDocument(); if (doc != null) this.dot = Math.min(dot, doc.getLength()); this.dot = Math.max(this.dot, 0); this.mark = this.dot; clearHighlight(); adjustVisibility(this); ... | public void setDot(int dot) { if (dot >= 0) { Document doc = textComponent.getDocument(); if (doc != null) this.dot = Math.min(dot, doc.getLength()); this.dot = Math.max(this.dot, 0); this.mark = this.dot; clearHighlight(); appear(); } } | 21,060 |
public final Class getCategory() { return JobSheets.class; } | public Class getCategory() { return JobSheets.class; } | 21,062 |
public final String getName() { return "job-sheets"; } | public String getName() { return "job-sheets"; } | 21,063 |
protected AccessibleJScrollBar(JScrollBar value0) { super(value0); } | protected AccessibleJScrollBar() { super(value0); } | 21,064 |
protected AccessibleJScrollBar(JScrollBar value0) { super(value0); } | protected AccessibleJScrollBar(JScrollBar value0) { super(); } | 21,065 |
public AccessibleContext getAccessibleContext() { if (accessibleContext == null) accessibleContext = new AccessibleJScrollBar(this); return accessibleContext; } | public AccessibleContext getAccessibleContext() { if (accessibleContext == null) accessibleContext = new AccessibleJScrollBar(); return accessibleContext; } | 21,066 |
public void showDocument(URL url, String target) { System.err.println("showDocument is not implemented in standalone mode"); } | public void showDocument(URL url, String target) { System.err.println (Messages.getString("StandaloneAppletContext.ShowDocumentError")); } | 21,067 |
public static TypeCode type() { return new primitiveArrayTypeCode(TCKind.tk_char); } | public static TypeCode type() { return new ArrayTypeCode(TCKind.tk_char); } | 21,068 |
protected void removeUpdate(DefaultDocumentEvent event) { super.removeUpdate(event); int p0 = event.getOffset(); int p1 = event.getLength() + p0; int len = event.getLength(); // check if we must collapse some elements int i1 = rootElement.getElementIndex(p0); int i2 = rootElement.getElementIndex... | protected void removeUpdate(DefaultDocumentEvent event) { super.removeUpdate(event); int p0 = event.getOffset(); int len = event.getLength(); // check if we must collapse some elements int i1 = rootElement.getElementIndex(p0); int i2 = rootElement.getElementIndex(p1); if (i1 != i2) { ... | 21,070 |
protected void removeUpdate(DefaultDocumentEvent event) { super.removeUpdate(event); int p0 = event.getOffset(); int p1 = event.getLength() + p0; int len = event.getLength(); // check if we must collapse some elements int i1 = rootElement.getElementIndex(p0); int i2 = rootElement.getElementIndex... | protected void removeUpdate(DefaultDocumentEvent event) { super.removeUpdate(event); int p0 = event.getOffset(); int p1 = event.getLength() + p0; int len = event.getLength(); // check if we must collapse some elements int i1 = rootElement.getElementIndex(p0); int i2 = rootElement.getElementIndex... | 21,071 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.