bugged
stringlengths
6
599k
fixed
stringlengths
6
40.8M
__index_level_0__
int64
0
3.24M
private static void adjustFromLeft(SizeRequirements reqs, int baseline, int allocated, int[] spanAndOffset) { float left = baseline; // If the resulting span exceeds the maximum of the component, then adjust // accordingly. float maxLeft = ((float) reqs.maximum) * reqs...
private static void adjustFromLeft(SizeRequirements reqs, int baseline, int allocated, int[] spanAndOffset) { float left = baseline; // If the resulting span exceeds the maximum of the component, then adjust // accordingly. float maxLeft = ((float) reqs.maximum) * reqs...
23,881
private static void adjustFromRight(SizeRequirements reqs, int baseline, int allocated, int[] spanAndOffset) { float right = allocated - baseline; // If the resulting span exceeds the maximum of the component, then adjust // accordingly. float maxRight = ((float) reqs...
private static void adjustFromRight(SizeRequirements reqs, float baseline, int allocated, int[] spanAndOffset) { float right = allocated - baseline; // If the resulting span exceeds the maximum of the component, then adjust // accordingly. float maxRight = ((float) re...
23,882
private static void adjustFromRight(SizeRequirements reqs, int baseline, int allocated, int[] spanAndOffset) { float right = allocated - baseline; // If the resulting span exceeds the maximum of the component, then adjust // accordingly. float maxRight = ((float) reqs...
private static void adjustFromRight(SizeRequirements reqs, int baseline, int allocated, int[] spanAndOffset) { float right = allocated - baseline; // If the resulting span exceeds the maximum of the component, then adjust // accordingly. float maxRight = ((float) reqs...
23,883
private static void adjustFromRight(SizeRequirements reqs, int baseline, int allocated, int[] spanAndOffset) { float right = allocated - baseline; // If the resulting span exceeds the maximum of the component, then adjust // accordingly. float maxRight = ((float) reqs...
private static void adjustFromRight(SizeRequirements reqs, int baseline, int allocated, int[] spanAndOffset) { float right = allocated - baseline; // If the resulting span exceeds the maximum of the component, then adjust // accordingly. float maxRight = ((float) reqs...
23,884
protected DragController(MouseEvent e) { }
protected DragController(MouseEvent e) { offset = e.getX(); }
23,886
protected int getNeededLocation(int x, int y) { return 0; }
protected int getNeededLocation(int x, int y) { return x; }
23,889
protected boolean isValid() { // FIXME: Not yet implemented. return true; }
protected boolean isValid() { // FIXME: Not yet implemented. return true; }
23,890
protected int positionForMouseEvent(MouseEvent e) { return 0; }
protected int positionForMouseEvent(MouseEvent e) { return e.getX() + getX() - offset; }
23,891
public void mouseDragged(MouseEvent e) { // FIXME: Not yet implemented. }
if (dragger != null) dragger.continueDrag(e); if (dragger != null) dragger.continueDrag(e); if (dragger != null) dragger.continueDrag(e); if (dragger != null) dragger.continueDrag(e); publicif (dragger != null) dragger.continueDrag(e); voidif (dragger != null) dragger.continueDrag(e); mouseDragged(MouseEventif (dragger...
23,892
public void mouseMoved(MouseEvent e) { // FIXME: Not yet implemented. }
public void mouseMoved(MouseEvent e) { // FIXME: Not yet implemented. }
23,893
public void mousePressed(MouseEvent e) { // FIXME: Not yet implemented. }
if (splitPane.isOneTouchExpandable()) { if (e.getSource() == leftButton) { currentDividerLocation--; if (currentDividerLocation < 0) currentDividerLocation = 0; moveDividerTo(currentDividerLocation); return; } else if (e.getSource() == rightButton) { currentDividerLocation++; if (currentDividerLocation > 2) currentDivi...
23,894
public void mouseReleased(MouseEvent e) { // FIXME: Not yet implemented. }
if (isDragging) dragger.completeDrag(e); isDragging = false; if (isDragging) dragger.completeDrag(e); isDragging = false; if (isDragging) dragger.completeDrag(e); isDragging = false; if (isDragging) dragger.completeDrag(e); isDragging = false; publicif (isDragging) dragger.completeDrag(e); isDragging = false; voidif (i...
23,895
protected JButton createLeftOneTouchButton() { return new OneTouchButton(/* left */ true); }
protected JButton createLeftOneTouchButton() { int dir = SwingConstants.WEST; if (orientation == JSplitPane.VERTICAL_SPLIT) dir = SwingConstants.NORTH; JButton button = new BasicArrowButton(dir); button.setBorderPainted(false); return button; }
23,897
protected JButton createRightOneTouchButton() { return new OneTouchButton(/* left */ false); }
protected JButton createRightOneTouchButton() { int dir = SwingConstants.EAST; if (orientation == JSplitPane.VERTICAL_SPLIT) dir = SwingConstants.SOUTH; JButton button = new BasicArrowButton(dir); button.setBorderPainted(false); return button; }
23,898
public Dimension getPreferredSize() { return new Dimension(dividerSize, dividerSize); }
public Dimension getPreferredSize() { return getLayout().preferredLayoutSize(this); }
23,899
protected void oneTouchExpandableChanged() { // FIXME: Not yet implemented. }
if (splitPane.isOneTouchExpandable()) { leftButton = createLeftOneTouchButton(); rightButton = createRightOneTouchButton(); add(leftButton); add(rightButton); leftButton.addMouseListener(mouseHandler); rightButton.addMouseListener(mouseHandler); currentDividerLocation = 1; if (splitPane.isOneTouchExpandable()) { lef...
23,900
public void paint(Graphics g) { Dimension dividerSize; super.paint(g); if (border != null) { dividerSize = getSize(); border.paintBorder(this, g, 0, 0, dividerSize.width, dividerSize.height); //System.out.println(dividerSize); //g.setColor(java.awt.Color.white); //g.drawRect(0, 0...
public void paint(Graphics g) { Dimension dividerSize; super.paint(g); if (border != null) {dividerSize = getSize();border.paintBorder(this, g, 0, 0, dividerSize.width, dividerSize.height);//System.out.println(dividerSize);//g.setColor(java.awt.Color.white);//g.drawRect(0, 0, 5, 5); } }
23,902
public void propertyChange(PropertyChangeEvent e) { // FIXME: Not yet implemented. }
if (e.getPropertyName().equals(JSplitPane.ONE_TOUCH_EXPANDABLE_PROPERTY)) oneTouchExpandableChanged(); else if (e.getPropertyName().equals(JSplitPane.ORIENTATION_PROPERTY)) { orientation = splitPane.getOrientation(); if (splitPane.isOneTouchExpandable()) { layout(); repaint(); } } else if (e.getPropertyName().equals(JS...
23,903
public SentenceBreakIterator () { iter = null; }
public SentenceBreakIterator () { iter = null; }
23,907
public Beans() { // Do nothing here. }
public Beans() { // Do nothing here. }
23,908
public static Object instantiate (ClassLoader cl, String beanName) throws IOException, ClassNotFoundException { Object bean; InputStream serStream; if (cl == null) { serStream = ClassLoader.getSystemResourceAsStream (beanName.replace ('.','/')+".ser"); } else { ...
public static Object instantiate(ClassLoader cl, String beanName) throws IOException, ClassNotFoundException { Object bean; InputStream serStream; if (cl == null) { serStream = ClassLoader.getSystemResourceAsStream (beanName.replace ('.','/')+".ser"); } else { ...
23,909
public static Object instantiate (ClassLoader cl, String beanName) throws IOException, ClassNotFoundException { Object bean; InputStream serStream; if (cl == null) { serStream = ClassLoader.getSystemResourceAsStream (beanName.replace ('.','/')+".ser"); } else { ...
public static Object instantiate (ClassLoader cl, String beanName) throws IOException, ClassNotFoundException { Object bean; InputStream serStream; if (cl == null) { serStream = ClassLoader.getSystemResourceAsStream (beanName.replace ('.','/')+".ser"); } else { ...
23,910
public Request newRequest(String method, String path) { if (method == null || method.length() == 0) { throw new IllegalArgumentException("method must have non-zero length"); } if (path == null || path.length() == 0) { throw new IllegalArgumentException("path must have non-zero leng...
public Request newRequest(String method, String path) { if (method == null || method.length() == 0) { throw new IllegalArgumentException("method must have non-zero length"); } if (path == null || path.length() == 0) { path = "/"; } Request ret = new Request(this, method, pa...
23,911
public int getMnemonic() { return (int) mnemonicKey; }
public int getMnemonic() { return mnemonicKey; }
23,913
public PaintContext createContext(ColorModel cm, Rectangle deviceBounds, Rectangle2D userBounds, AffineTransform xform, RenderingHints hints) throws NotImplementedException { throw new Error("not implemente...
public PaintContext createContext(ColorModel cm, Rectangle deviceBounds, Rectangle2D userBounds, AffineTransform xform, RenderingHints hints) throws NotImplementedException { throw new Error("not implemente...
23,914
public PaintContext createContext(ColorModel cm, Rectangle deviceBounds, Rectangle2D userBounds, AffineTransform xform, RenderingHints hints) throws NotImplementedException { throw new Error("not implemente...
public PaintContext createContext(ColorModel cm, Rectangle deviceBounds, Rectangle2D userBounds, AffineTransform xform, RenderingHints hints) throws NotImplementedException { return new TexturePaintContex...
23,915
public int getTransparency() throws NotImplementedException { throw new Error("not implemented"); }
public int getTransparency() { throw new Error("not implemented"); }
23,916
public int getTransparency() throws NotImplementedException { throw new Error("not implemented"); }
public int getTransparency() throws NotImplementedException { return texture.getTransparency(); }
23,917
public final boolean equals (Object obj) { // InetSocketAddress objects are equal when addr and port are equal. // The hostname may differ. if (obj instanceof InetSocketAddress) { InetSocketAddress a = (InetSocketAddress) obj; return addr.equals(a.addr) && a.port == port; } re...
public final boolean equals(Object obj) { // InetSocketAddress objects are equal when addr and port are equal. // The hostname may differ. if (obj instanceof InetSocketAddress) { InetSocketAddress a = (InetSocketAddress) obj; return addr.equals(a.addr) && a.port == port; } ret...
23,918
public final boolean equals (Object obj) { // InetSocketAddress objects are equal when addr and port are equal. // The hostname may differ. if (obj instanceof InetSocketAddress) { InetSocketAddress a = (InetSocketAddress) obj; return addr.equals(a.addr) && a.port == port; } re...
publicfinalbooleanequals(Objectobj){//InetSocketAddressobjectsareequalwhenaddrandportareequal.//Thehostnamemaydiffer.if(objinstanceofInetSocketAddress){InetSocketAddressa=(InetSocketAddress)obj;returnaddr.equals(a.addr)&&a.port==port;}returnfalse;}
23,919
public final boolean equals (Object obj) { // InetSocketAddress objects are equal when addr and port are equal. // The hostname may differ. if (obj instanceof InetSocketAddress) { InetSocketAddress a = (InetSocketAddress) obj; return addr.equals(a.addr) && a.port == port; } re...
public final boolean equals (Object obj) { // InetSocketAddress objects are equal when addr and port are equal. // The hostname may differ. if (obj instanceof InetSocketAddress) { InetSocketAddress a = (InetSocketAddress) obj; return addr.equals(a.addr) && a.port == port; } re...
23,920
public String toString() { return addr + ":" + port; }
public String toString() { return (addr == null ? hostname : addr.getHostName()) + ":" + port; }
23,921
public void paintComponent(Graphics graphics, Component c, Container p, int x, int y, int w, int h, boolean shouldValidate) { // reparent c addImpl(c, null, 0); // translate to (x,y) graphics.translate(x, y); // set bounds of c c.setBounds(0, 0, w, h); // validate i...
publicgraphics.clipRect(0, 0, w, h); voidgraphics.clipRect(0, 0, w, h); paintComponent(Graphicsgraphics.clipRect(0, 0, w, h); graphics,graphics.clipRect(0, 0, w, h); Componentgraphics.clipRect(0, 0, w, h); c, Containergraphics.clipRect(0, 0, w, h); p,graphics.clipRect(0, 0, w, h); intgraphics.clipRect(0, 0, w, h); x...
23,922
public void paintComponent(Graphics graphics, Component c, Container p, int x, int y, int w, int h, boolean shouldValidate) { // reparent c addImpl(c, null, 0); // translate to (x,y) graphics.translate(x, y); // set bounds of c c.setBounds(0, 0, w, h); // validate i...
publicgraphics.setClip(oldClip); voidgraphics.setClip(oldClip); paintComponent(Graphicsgraphics.setClip(oldClip); graphics,graphics.setClip(oldClip); Componentgraphics.setClip(oldClip); c, Containergraphics.setClip(oldClip); p,graphics.setClip(oldClip); intgraphics.setClip(oldClip); x,graphics.setClip(oldClip); intg...
23,923
public void invalidateLayout(Container parent) { // FIXME: Implement this properly! }
public void invalidateLayout(Container parent) { // FIXME: Implement this properly! }
23,924
BoxLayout(JComponent p, int way) { int width = 0; int height = 0; this.way = way; if (way == X_AXIS) { width = 1; } else { height = 1; } gridbag = new GridLayout(width, height); }
BoxLayout(JComponent p, int way) { int width = 0; int height = 0; this.way = way; if (way == X_AXIS) { width = 1; } else { height = 1; } gridbag = new GridLayout(width, height); }
23,925
public static void version() { System.out.println("rmiregistry (" + System.getProperty("java.vm.name") + ") " + System.getProperty("java.vm.version")); System.out.println("Copyright 2002 Free Software Foundation, Inc."); System.out.println("This is free software; see the source for copying conditions. T...
public static void version() { System.out.println("rmiregistry (" + System.getProperty("java.vm.name") + ") " + System.getProperty("java.vm.version")); System.out.println("Copyright 2002 Free Software Foundation, Inc."); System.out.println("This is free software; see the source for copying conditions. T...
23,926
public void paint(Graphics g) { RepaintManager rm = RepaintManager.currentManager(this); // We do a little stunt act here to switch on double buffering if it's // not already on. If we are not already doublebuffered, then we jump // into the method paintDoubleBuffered, which turns on the double buffer ...
public void paint(Graphics g) { RepaintManager rm = RepaintManager.currentManager(this); // We do a little stunt act here to switch on double buffering if it's // not already on. If we are not already doublebuffered, then we jump // into the method paintDoubleBuffered, which turns on the double buffer ...
23,927
public void installUI(JComponent c) { c.setBackground(UIManager.getColor("control")); super.installUI(c); }
public void installUI(JComponent c) { super.installUI(c); }
23,929
public void installUI(JComponent c) { c.setBackground(UIManager.getColor("control")); super.installUI(c); }
public void installUI(JComponent c) { c.setBackground(UIManager.getColor("control")); super.installUI(c); }
23,930
public static AffineTransform getTranslateInstance(double tx, double ty) { AffineTransform t = new AffineTransform(); t.setToTranslation(tx, ty); return t; }
public static AffineTransform getTranslateInstance(double tx, double ty) { AffineTransform t = new AffineTransform(); t.setToTranslation(tx, ty); return t; }
23,931
public Rectangle getCellBounds(JList list, int index1, int index2) { Rectangle result = null; Iterator iterator = uis.iterator(); // first UI delegate provides the return value if (iterator.hasNext()) { ListUI ui = (ListUI) iterator.next(); result = ui.getCellBounds(list, index1, index...
public Rectangle getCellBounds(JList list, int index1, int index2) { Rectangle result = null; Iterator iterator = uis.iterator(); // first UI delegate provides the return value if (iterator.hasNext()) { ListUI ui = (ListUI) iterator.next(); result = ui.getCellBounds(list, index1, index...
23,932
public Point indexToLocation(JList list, int index) { Point result = null; Iterator iterator = uis.iterator(); // first UI delegate provides the return value if (iterator.hasNext()) { ListUI ui = (ListUI) iterator.next(); result = ui.indexToLocation(list, index); } // return va...
public Point indexToLocation(JList list, int index) { Point result = null; Iterator iterator = uis.iterator(); // first UI delegate provides the return value if (iterator.hasNext()) { ListUI ui = (ListUI) iterator.next(); result = ui.indexToLocation(list, index); } // return va...
23,933
public int locationToIndex(JList list, Point location) { int result = 0; Iterator iterator = uis.iterator(); // first UI delegate provides the return value if (iterator.hasNext()) { ListUI ui = (ListUI) iterator.next(); result = ui.locationToIndex(list, location); } // return v...
public int locationToIndex(JList list, Point location) { int result = 0; Iterator iterator = uis.iterator(); // first UI delegate provides the return value if (iterator.hasNext()) { ListUI ui = (ListUI) iterator.next(); result = ui.locationToIndex(list, location); } // return v...
23,934
protected AbstractDocument.AbstractElement createDefaultRoot() { rootElement = createBranchElement(null, null); reindex(); return (AbstractElement) rootElement; }
protected AbstractDocument.AbstractElement createDefaultRoot() { rootElement = createBranchElement(null, null); reindex(); return (AbstractElement) rootElement; }
23,935
public Element getParagraphElement(int pos) { return null; }
public Element getParagraphElement(int pos) { Element root = getDefaultRootElement(); return root.getElement(root.getElementIndex(pos)); }
23,936
protected void insertUpdate(DefaultDocumentEvent chng, AttributeSet attr) { reindex(); }
protected void insertUpdate(DefaultDocumentEvent event, AttributeSet attributes) { reindex(); }
23,937
protected void reindex() { Element[] lines; try { String str = content.getString(0, content.length()); ArrayList elts = new ArrayList(); int j = 0; for (int i = str.indexOf('\n', 0); i != -1; i = str.indexOf('\n', i+1)) { elts.add(createLeafElement(rootElem...
protected void reindex() { Element[] lines; try { String str = content.getString(0, content.length()); ArrayList elts = new ArrayList(); int j = 0; for (int i = str.indexOf('\n', 0); i != -1; i = str.indexOf('\n', i + 1)) { elts.add(createLeafElement(rootEl...
23,939
protected void reindex() { Element[] lines; try { String str = content.getString(0, content.length()); ArrayList elts = new ArrayList(); int j = 0; for (int i = str.indexOf('\n', 0); i != -1; i = str.indexOf('\n', i+1)) { elts.add(createLeafElement(rootElem...
protected void reindex() { Element[] lines; try { String str = content.getString(0, content.length()); ArrayList elts = new ArrayList(); int j = 0; for (int i = str.indexOf('\n', 0); i != -1; i = str.indexOf('\n', i+1)) { elts.add(createLeafElement(rootElem...
23,940
protected void reindex() { Element[] lines; try { String str = content.getString(0, content.length()); ArrayList elts = new ArrayList(); int j = 0; for (int i = str.indexOf('\n', 0); i != -1; i = str.indexOf('\n', i+1)) { elts.add(createLeafElement(rootElem...
protected void reindex() { Element[] lines; try { String str = content.getString(0, content.length()); ArrayList elts = new ArrayList(); int j = 0; for (int i = str.indexOf('\n', 0); i != -1; i = str.indexOf('\n', i+1)) { elts.add(createLeafElement(rootElem...
23,941
protected void reindex() { Element[] lines; try { String str = content.getString(0, content.length()); ArrayList elts = new ArrayList(); int j = 0; for (int i = str.indexOf('\n', 0); i != -1; i = str.indexOf('\n', i+1)) { elts.add(createLeafElement(rootElem...
protectedvoidreindex(){Element[]lines;try{Stringstr=content.getString(0,content.length());ArrayListelts=newArrayList();intj=0;for(inti=str.indexOf('\n',0);i!=-1;i=str.indexOf('\n',i+1)){elts.add(createLeafElement(rootElement,null,j,i));j=i;}if(j<content.length())elts.add(createLeafElement(rootElement,null,j,content.len...
23,942
protected void reindex() { Element[] lines; try { String str = content.getString(0, content.length()); ArrayList elts = new ArrayList(); int j = 0; for (int i = str.indexOf('\n', 0); i != -1; i = str.indexOf('\n', i+1)) { elts.add(createLeafElement(rootElem...
protected void reindex() { Element[] lines; try { String str = content.getString(0, content.length()); ArrayList elts = new ArrayList(); int j = 0; for (int i = str.indexOf('\n', 0); i != -1; i = str.indexOf('\n', i+1)) { elts.add(createLeafElement(rootElem...
23,943
protected void removeUpdate(DefaultDocumentEvent chng) { reindex(); }
protected void removeUpdate(DefaultDocumentEvent event) { reindex(); }
23,944
public MetalLookAndFeel() { if (theme == null) createDefaultTheme(); }
public MetalLookAndFeel() { createDefaultTheme(); }
23,946
public String getDescription() { return "Metal look and feel"; }
public String getDescription() { return "The Java(tm) Look and Feel"; }
23,960
public String getID() { return "MetalLookAndFeel"; }
public String getID() { return "Metal"; }
23,964
public String getName() { return "MetalLookAndFeel"; }
public String getName() { return "Metal"; }
23,973
protected void initComponentDefaults(UIDefaults defaults) { super.initComponentDefaults(defaults); Object[] myDefaults = new Object[] { "Button.background", getControl(), "Button.border", MetalBorders.getButtonBorder(), "Button.darkShadow", getControlDarkShadow(), "Button.disabledText", get...
protected void initComponentDefaults(UIDefaults defaults) { super.initComponentDefaults(defaults); Object[] myDefaults = new Object[] { "Button.background", getControl(), "Button.border", MetalBorders.getButtonBorder(), "Button.darkShadow", getControlDarkShadow(), "Button.disabledText", get...
23,994
protected void initComponentDefaults(UIDefaults defaults) { super.initComponentDefaults(defaults); Object[] myDefaults = new Object[] { "Button.background", getControl(), "Button.border", MetalBorders.getButtonBorder(), "Button.darkShadow", getControlDarkShadow(), "Button.disabledText", get...
"FileChooser.fileNameLabelMnemonic", new Integer(78), "FileChooser.filesOfTypeLabelMnemonic",new Integer(84), "FileChooser.lookInLabelMnemonic", new Integer(73), "FileChooser.fileNameLabelMnemonic", new Integer(78), "FileChooser.filesOfTypeLabelMnemonic",new Integer(84), "FileChooser.lookInLabelMnemonic", new Integer(7...
23,995
protected void initComponentDefaults(UIDefaults defaults) { super.initComponentDefaults(defaults); Object[] myDefaults = new Object[] { "Button.background", getControl(), "Button.border", MetalBorders.getButtonBorder(), "Button.darkShadow", getControlDarkShadow(), "Button.disabledText", get...
protected void initComponentDefaults(UIDefaults defaults) { super.initComponentDefaults(defaults); Object[] myDefaults = new Object[] { "Button.background", getControl(), "Button.border", MetalBorders.getButtonBorder(), "Button.darkShadow", getControlDarkShadow(), "Button.disabledText", get...
23,996
final private void flushDirectories() throws IOException { log.info("flushing directories ..."); for (FSDirectory d : directories.values()) { log.debug("flush: flushing directory "+d); //TODO: uncomment this line //d.flush(); } }
final private void flushDirectories() throws IOException { log.info("flushing directories ..."); for (FSDirectory d : directories.values()) { log.debug("flush: flushing directory "+d); //TODO: uncomment this line //d.flush(); } }
23,998
final private void flushDirectories() throws IOException { log.info("flushing directories ..."); for (FSDirectory d : directories.values()) { log.debug("flush: flushing directory "+d); //TODO: uncomment this line //d.flush(); } }
final private void flushDirectories() throws IOException { log.info("flushing directories ..."); for (FSDirectory d : directories.values()) { log.debug("flush: flushing directory "+d); //TODO: uncomment this line //d.flush(); } }
23,999
final private void flushFiles() throws IOException { log.info("flushing files ..."); for (FSFile f : files.values()) { log.debug("flush: flushing file "+f); f.flush(); } }
final private void flushFiles() throws IOException { log.info("flushing files ..."); for (FSFile f : files.values()) { log.debug("flush: flushing file "+f); f.flush(); } }
24,000
final public synchronized FSDirectory getDirectory(FSEntry entry) throws IOException { if(isClosed()) throw new IOException("FileSystem is closed"); FSDirectory dir = (FSDirectory)directories.get(entry); if (dir == null) { dir = createDirectory(entry); directories.put(entry, dir); } return dir; ...
final public synchronized FSDirectory getDirectory(FSEntry entry) throws IOException { if(isClosed()) throw new IOException("FileSystem is closed"); FSDirectory dir = (FSDirectory)directories.get(entry); if (dir == null) { dir = createDirectory(entry); directories.put(entry, dir); } return dir; ...
24,001
final public FSBlockDeviceAPI getFSApi() throws ApiNotFoundException { return (FSBlockDeviceAPI) device.getAPI(FSBlockDeviceAPI.class); }
final public FSBlockDeviceAPI getFSApi() throws ApiNotFoundException { return device.getAPI(FSBlockDeviceAPI.class); }
24,002
final public synchronized FSFile getFile(FSEntry entry) throws IOException { if(isClosed()) throw new IOException("FileSystem is closed"); FSFile file = (FSFile)files.get(entry); if (file == null) { file = createFile(entry); files.put(entry, file); } return file; }
final public synchronized FSFile getFile(FSEntry entry) throws IOException { if(isClosed()) throw new IOException("FileSystem is closed"); FSFile file = (FSFile)files.get(entry); if (file == null) { file = createFile(entry); files.put(entry, file); } return file; }
24,003
public Rectangle getViewRect() { return new Rectangle(getViewPosition(), getViewSize()); }
public Rectangle getViewRect() { return new Rectangle(getViewPosition(), getExtentSize()); }
24,004
public Dimension getViewSize() { if (viewExtent == null) return getPreferredSize(); else return viewExtent; }
public Dimension getViewSize() { if (viewExtent == null) return getPreferredSize(); else return viewExtent; }
24,005
public Dimension getViewSize() { if (viewExtent == null) return getPreferredSize(); else return viewExtent; }
public Dimension getViewSize() { if (viewExtent == null) return getPreferredSize(); else return viewSize; }
24,006
public void setViewSize(Dimension newSize) { viewExtent = newSize; fireStateChanged(); }
public void setViewSize(Dimension newSize) { viewSize = newSize; Component view = getView(); if (view != null) view.setSize(newSize); fireStateChanged(); }
24,007
public void remove(MenuComponent menu) { menuBar.remove(menu); }
public void remove(MenuComponent menu) { if (menu == menuBar) { if (menuBar != null) { if (peer != null) { ((FramePeer) peer).setMenuBar(null); menuBar.removeNotify(); } menuBar.setParent(null); } menuBar = null; } else super.remove(menu); }
24,008
public synchronized void setMenuBar(MenuBar menuBar) { if (peer != null) { if (this.menuBar != null) this.menuBar.removeNotify(); if (menuBar != null) menuBar.addNotify(); invalidateTree (); ((FramePeer) peer).setMenuBar(menuBar); } menuBar.frame = this; this.menuBar = menuBar; }
public synchronized void setMenuBar(MenuBar menuBar) { if (peer != null) { if (this.menuBar != null) this.menuBar.removeNotify(); if (menuBar != null) menuBar.addNotify(); invalidateTree (); ((FramePeer) peer).setMenuBar(menuBar); } menuBar.frame = this; this.menuBar = menuBar; }
24,009
public synchronized void setMenuBar(MenuBar menuBar) { if (peer != null) { if (this.menuBar != null) this.menuBar.removeNotify(); if (menuBar != null) menuBar.addNotify(); invalidateTree (); ((FramePeer) peer).setMenuBar(menuBar); } menuBar.frame = this; this.menuBar = menuBar; }
public synchronized void setMenuBar(MenuBar menuBar) { if (peer != null) { if (this.menuBar != null) this.menuBar.removeNotify(); if (menuBar != null) menuBar.addNotify(); invalidateTree(); ((FramePeer) peer).setMenuBar(menuBar); } menuBar.frame = this; this.menuBar = menuBar; }
24,010
public synchronized void setMenuBar(MenuBar menuBar) { if (peer != null) { if (this.menuBar != null) this.menuBar.removeNotify(); if (menuBar != null) menuBar.addNotify(); invalidateTree (); ((FramePeer) peer).setMenuBar(menuBar); } menuBar.frame = this; this.menuBar = menuBar; }
public synchronized void setMenuBar(MenuBar menuBar) { if (peer != null) { if (this.menuBar != null) this.menuBar.removeNotify(); if (menuBar != null) menuBar.addNotify(); invalidateTree (); ((FramePeer) peer).setMenuBar(menuBar); } menuBar.frame = this; this.menuBar = menuBar; }
24,011
public void run() { try { if (!target.isDestroyed()) target.doDestroy(); } catch (DestroyFailedException dfe) { } }
public void run() { try { if (! target.isDestroyed()) target.doDestroy(); } catch (DestroyFailedException dfe) { } }
24,012
public void paintComponent(Graphics g) { super.paintComponent(g); if (iconOnly) { Rectangle bounds = getBounds(); int x = (bounds.width - comboIcon.getIconWidth()) / 2; int y = (bounds.height - comboIcon.getIconHeight()) / 2; comboIcon.paintIcon(comboBox, g, x, y); } ...
public void paintComponent(Graphics g) { super.paintComponent(g); if (iconOnly) { Rectangle bounds = getBounds(); int x = (bounds.width - comboIcon.getIconWidth()) / 2; int y = (bounds.height - comboIcon.getIconHeight()) / 2; comboIcon.paintIcon(comboBox, g, x, y); } ...
24,014
public void paintComponent(Graphics g) { super.paintComponent(g); if (iconOnly) { Rectangle bounds = getBounds(); int x = (bounds.width - comboIcon.getIconWidth()) / 2; int y = (bounds.height - comboIcon.getIconHeight()) / 2; comboIcon.paintIcon(comboBox, g, x, y); } ...
public void paintComponent(Graphics g) { super.paintComponent(g); if (iconOnly) { Rectangle bounds = getBounds(); int x = (bounds.width - comboIcon.getIconWidth()) / 2; int y = (bounds.height - comboIcon.getIconHeight()) / 2; comboIcon.paintIcon(comboBox, g, x, y); } ...
24,015
public AccessibleContext getAccessibleContext() { /* Create the context if this is the first request */ if (accessibleContext == null) accessibleContext = new AccessibleAWTScrollbar(); return accessibleContext; }
public AccessibleContext getAccessibleContext() { /* Create the context if this is the first request */ if (accessibleContext == null) accessibleContext = new AccessibleAWTScrollBar(); return accessibleContext; }
24,016
TemplateNode clone(Stylesheet stylesheet) { TemplateNode ret = new ApplyImportsNode(); if (children != null) { ret.children = children.clone(stylesheet); } if (next != null) { ret.next = next.clone(stylesheet); } return ret; }
TemplateNode clone(Stylesheet stylesheet) TemplateNode ret = new ApplyImportsNode(); if (children != null) ret.children = children.clone(stylesheet); } if (next != null) ret.next = next.clone(stylesheet); } return ret; }
24,017
TemplateNode clone(Stylesheet stylesheet) { TemplateNode ret = new ApplyImportsNode(); if (children != null) { ret.children = children.clone(stylesheet); } if (next != null) { ret.next = next.clone(stylesheet); } return ret; }
TemplateNode clone(Stylesheet stylesheet) { TemplateNode ret = new ApplyImportsNode(); if (children != null) { ret.children = children.clone(stylesheet); if (next != null) { ret.next = next.clone(stylesheet); return ret; }
24,018
TemplateNode clone(Stylesheet stylesheet) { TemplateNode ret = new ApplyImportsNode(); if (children != null) { ret.children = children.clone(stylesheet); } if (next != null) { ret.next = next.clone(stylesheet); } return ret; }
TemplateNode clone(Stylesheet stylesheet) TemplateNode ret = new ApplyImportsNode(); if (children != null) ret.children = children.clone(stylesheet); } if (next != null) ret.next = next.clone(stylesheet); } return ret; }
24,019
TemplateNode clone(Stylesheet stylesheet) { TemplateNode ret = new ApplyImportsNode(); if (children != null) { ret.children = children.clone(stylesheet); } if (next != null) { ret.next = next.clone(stylesheet); } return ret; }
TemplateNode clone(Stylesheet stylesheet) { TemplateNode ret = new ApplyImportsNode(); if (children != null) { ret.children = children.clone(stylesheet); if (next != null) { ret.next = next.clone(stylesheet); return ret; }
24,020
void doApply(Stylesheet stylesheet, QName mode, Node context, int pos, int len, Node parent, Node nextSibling) throws TransformerException { TemplateNode t = stylesheet.getTemplate(mode, context, true); if (t != null) { t.apply(stylesheet, mode, context, pos, len, ...
void doApply(Stylesheet stylesheet, QName mode, Node context, int pos, int len, Node parent, Node nextSibling) throws TransformerException TemplateNode t = stylesheet.getTemplate(mode, context, true); if (t != null) t.apply(stylesheet, mode, context, pos, len, ...
24,021
void doApply(Stylesheet stylesheet, QName mode, Node context, int pos, int len, Node parent, Node nextSibling) throws TransformerException { TemplateNode t = stylesheet.getTemplate(mode, context, true); if (t != null) { t.apply(stylesheet, mode, context, pos, len, ...
void doApply(Stylesheet stylesheet, QName mode, Node context, int pos, int len, Node parent, Node nextSibling) throws TransformerException { TemplateNode t = stylesheet.getTemplate(mode, context, true); if (t != null) { t.apply(stylesheet, mode, context, pos, len, ...
24,022
void doApply(Stylesheet stylesheet, QName mode, Node context, int pos, int len, Node parent, Node nextSibling) throws TransformerException { TemplateNode t = stylesheet.getTemplate(mode, context, true); if (t != null) { t.apply(stylesheet, mode, context, pos, len, ...
void doApply(Stylesheet stylesheet, QName mode, Node context, int pos, int len, Node parent, Node nextSibling) throws TransformerException TemplateNode t = stylesheet.getTemplate(mode, context, true); if (t != null) t.apply(stylesheet, mode, context, pos, len, ...
24,023
void doApply(Stylesheet stylesheet, QName mode, Node context, int pos, int len, Node parent, Node nextSibling) throws TransformerException { TemplateNode t = stylesheet.getTemplate(mode, context, true); if (t != null) { t.apply(stylesheet, mode, context, pos, len, ...
void doApply(Stylesheet stylesheet, QName mode, Node context, int pos, int len, Node parent, Node nextSibling) throws TransformerException { TemplateNode t = stylesheet.getTemplate(mode, context, true); if (t != null) { t.apply(stylesheet, mode, context, pos, len, ...
24,024
protected void installKeyboardActions() throws NotImplementedException { // FIXME: implement. }
protected void installKeyboardActions() { // FIXME: implement. }
24,025
protected void installKeyboardActions() throws NotImplementedException { // FIXME: implement. }
InputMap keyMap = getInputMap( JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT); SwingUtilities.replaceUIInputMap(scrollbar, JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, keyMap); ActionMap map = getActionMap(); SwingUtilities.replaceUIActionMap(scrollbar, map); InputMap keyMap = getInputMap( JComponent.WHEN_ANCESTOR_OF...
24,026
protected void uninstallKeyboardActions() throws NotImplementedException { // FIXME: implement. }
protected void uninstallKeyboardActions() { // FIXME: implement. }
24,028
protected void uninstallKeyboardActions() throws NotImplementedException { // FIXME: implement. }
SwingUtilities.replaceUIActionMap(scrollbar, null); SwingUtilities.replaceUIInputMap(scrollbar, JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, null); SwingUtilities.replaceUIActionMap(scrollbar, null); SwingUtilities.replaceUIInputMap(scrollbar, JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, null); protectedSwingUtilit...
24,029
public CompiledField(int f, int s, char c) { field = f; size = s; character = c; }
public CompiledField(int f, int s, char c) { field = f; size = s; character = c; }
24,031
public String toString() { StringBuilder builder; builder = new StringBuilder(getClass().getName()); builder.append("[field="); builder.append(field); builder.append(", size="); builder.append(size); builder.append(", character="); builder.append(character); builder.a...
public String toString() { StringBuffer builder; builder = new StringBuilder(getClass().getName()); builder.append("[field="); builder.append(field); builder.append(", size="); builder.append(size); builder.append(", character="); builder.append(character); builder.ap...
24,032
public String toString() { StringBuilder builder; builder = new StringBuilder(getClass().getName()); builder.append("[field="); builder.append(field); builder.append(", size="); builder.append(size); builder.append(", character="); builder.append(character); builder.a...
public String toString() { StringBuilder builder; builder = new StringBuffer(getClass().getName()); builder.append("[field="); builder.append(field); builder.append(", size="); builder.append(size); builder.append(", character="); builder.append(character); builder.ap...
24,033
public String toString() { StringBuilder output = new StringBuilder(getClass().getName()); output.append("[tokens="); output.append(tokens); output.append(", formatData="); output.append(formatData); output.append(", defaultCenturyStart="); output.append(defaultCenturyStart); output.append("...
public String toString() { StringBuffer output = new StringBuffer(getClass().getName()); output.append("[tokens="); output.append(tokens); output.append(", formatData="); output.append(formatData); output.append(", defaultCenturyStart="); output.append(defaultCenturyStart); output.append(", ...
24,035
public boolean isDefaultButton() { // Returns whether or not this button is the default button on the // RootPane. return is_def; }
public boolean isDefaultButton() { // Returns whether or not this button is the default button on the // RootPane. JRootPane rp = SwingUtilities.getRootPane(this); boolean isDefault = false; if (rp != null) isDefault = rp.getDefaultButton() == this; return isDefault; }
24,036
public boolean isDefaultCapable() { // Returns whether or not this button is capable of being the default // button on the RootPane. return def; }
public boolean isDefaultCapable() { // Returns whether or not this button is capable of being the default // button on the RootPane. return defaultCapable; }
24,037
protected String paramString() { String superParam = super.paramString(); // 41 is the maximum number of chars which may be needed. StringBuffer sb = new StringBuffer(41); sb.append(",defaultButton=").append(is_def); sb.append(",defaultCapable=").append(def); return superParam + sb.toString(); }
protected String paramString() { String superParam = super.paramString(); // 41 is the maximum number of chars which may be needed. StringBuffer sb = new StringBuffer(41); sb.append(",defaultButton=").append(is_def); sb.append(",defaultCapable=").append(def); return superParam + sb.toString(); }
24,038
public void setDefaultCapable(boolean defaultCapable) { def = defaultCapable; }
public void setDefaultCapable(boolean defaultCapable) { this.defaultCapable = defaultCapable; }
24,039
public AccessibleJTableHeaderEntry(int c, JTableHeader p, JTable t) throws NotImplementedException { throw new Error("not implemented"); }
public AccessibleJTableHeaderEntry(int c, JTableHeader p, JTable t) { throw new Error("not implemented"); }
24,041
public AccessibleJTableHeaderEntry(int c, JTableHeader p, JTable t) throws NotImplementedException { throw new Error("not implemented"); }
public AccessibleJTableHeaderEntry(int c, JTableHeader p, JTable t) throws NotImplementedException { columnIndex = c; parent = p; table = t; }
24,042