bugged stringlengths 6 599k | fixed stringlengths 6 40.8M | __index_level_0__ int64 0 3.24M |
|---|---|---|
public ObjectAlreadyActive(String why) { super(why); } | public ObjectAlreadyActive(String why) { } | 17,746 |
private UnicodeBlock(char start, char end, String name) { super(name); this.start = start; this.end = end; } | private UnicodeBlock(int start, int end, String name, String canonicalName) { super(name); this.start = start; this.end = end; } | 17,747 |
public static UnicodeBlock of(char ch) { // Special case, since SPECIALS contains two ranges. if (ch == '\uFEFF') return SPECIALS; // Simple binary search for the correct block. int low = 0; int hi = sets.length - 1; while (low <= hi) { int mid = (low + hi) >>... | public static UnicodeBlock of(char ch) { // Special case, since SPECIALS contains two ranges. if (ch == '\uFEFF') return SPECIALS; // Simple binary search for the correct block. int low = 0; int hi = sets.length - 1; while (low <= hi) { int mid = (low + hi) >>... | 17,749 |
public Object getParameter(String name) throws DOMException { name = name.toLowerCase(); if ("cdata-sections".equals(name)) { return cdataSections ? Boolean.TRUE : Boolean.FALSE; } else if ("comments".equals(name)) { return comments ? Boolean.TRUE : Boolean.FALSE; } e... | public Object getParameter(String name) throws DOMException { name = name.toLowerCase(); if ("cdata-sections".equals(name)) { return cdataSections ? Boolean.TRUE : Boolean.FALSE; } else if ("comments".equals(name)) { return comments ? Boolean.TRUE : Boolean.FALSE; } e... | 17,750 |
public void setParameter(String name, Object value) throws DOMException { name = name.toLowerCase(); if ("cdata-sections".equals(name)) { cdataSections = "true".equals(value.toString()); } else if ("comments".equals(name)) { comments = "true".equals(value.toString()); } ... | public void setParameter(String name, Object value) throws DOMException { name = name.toLowerCase(); if ("cdata-sections".equals(name)) { cdataSections = "true".equals(value.toString()); } else if ("comments".equals(name)) { comments = "true".equals(value.toString()); } ... | 17,751 |
public void setParameter(String name, Object value) throws DOMException { name = name.toLowerCase(); if ("cdata-sections".equals(name)) { cdataSections = "true".equals(value.toString()); } else if ("comments".equals(name)) { comments = "true".equals(value.toString()); } ... | public void setParameter(String name, Object value) throws DOMException { name = name.toLowerCase(); if ("cdata-sections".equals(name)) { cdataSections = "true".equals(value.toString()); } else if ("comments".equals(name)) { comments = "true".equals(value.toString()); } ... | 17,752 |
public _NamingContextExtStub(Delegate delegate) { super(delegate); } | public _NamingContextExtStub() { super(delegate); } | 17,753 |
public _NamingContextExtStub(Delegate delegate) { super(delegate); } | public _NamingContextExtStub(Delegate delegate) { super(); } | 17,754 |
public Component getTreeCellEditorComponent(JTree tree, Object value, boolean isSelected, boolean expanded, boolean leaf, int row) { if (editorComponent instanceof JTextField) ... | public Component getTreeCellEditorComponent(JTree tree, Object value, boolean isSelected, boolean expanded, boolean leaf, int row) { if (editorComponent instanceof JTextField) ... | 17,755 |
protected EntityReferenceImpl(Location location, //EntityDeclaration decl, String name, String baseUri, String publicId, String systemId, String replacementText) { super(location); //this... | protected EntityReferenceImpl(Location location, //EntityDeclaration decl, String name, String baseUri, String publicId, String systemId, String replacementText) { super(location); //this... | 17,756 |
protected EntityReferenceImpl(Location location, //EntityDeclaration decl, String name, String baseUri, String publicId, String systemId, String replacementText) { super(location); //this... | this.decl = decl; this.decl = decl; protectedthis.decl = decl; EntityReferenceImpl(Locationthis.decl = decl; location,this.decl = decl; this.decl = decl; this.decl = decl; this.decl = decl; this.decl = decl; this.decl = decl; this.decl = decl; this.decl = decl; this.decl = decl; this.decl = decl; this.decl = decl; this... | 17,757 |
protected EntityReferenceImpl(Location location, //EntityDeclaration decl, String name, String baseUri, String publicId, String systemId, String replacementText) { super(location); //this... | protected EntityReferenceImpl(Location location, //EntityDeclaration decl, String name, String baseUri, String publicId, String systemId, String replacementText) { super(location); //this... | 17,758 |
public Method(VmMethod vmMethod) { this.vmMethod = vmMethod; } | public Method(VmMethod vmMethod) { this.vmMethod = vmMethod; } | 17,759 |
public boolean equals(Object o) { return (this == o); } | public boolean equals(Object o) { return (this == o); } | 17,760 |
public Class[] getExceptionTypes() { if (exceptionTypes == null) { final VmExceptions exceptions = vmMethod.getExceptions(); final int cnt = exceptions.getLength(); final ArrayList<Class> list = new ArrayList<Class>(cnt); for (int i = 0; i < cnt; i++) { try { list.add(exceptions.getExce... | public Class[] getExceptionTypes() { if (exceptionTypes == null) { final VmExceptions exceptions = vmMethod.getExceptions(); final int cnt = exceptions.getLength(); final ArrayList<Class> list = new ArrayList<Class>(cnt); for (int i = 0; i < cnt; i++) { try { list.add(exceptions.getExce... | 17,761 |
public Class[] getExceptionTypes() { if (exceptionTypes == null) { final VmExceptions exceptions = vmMethod.getExceptions(); final int cnt = exceptions.getLength(); final ArrayList<Class> list = new ArrayList<Class>(cnt); for (int i = 0; i < cnt; i++) { try { list.add(exceptions.getExce... | public Class[] getExceptionTypes() { if (exceptionTypes == null) { final VmExceptions exceptions = vmMethod.getExceptions(); final int cnt = exceptions.getLength(); final ArrayList<Class> list = new ArrayList<Class>(cnt); for (int i = 0; i < cnt; i++) { try { list.add(exceptions.getExce... | 17,762 |
private int getModifiersInternal() { return vmMethod.getModifiers(); } | private int getModifiersInternal() { return vmMethod.getModifiers(); } | 17,763 |
public int hashCode() { final Class<?> declClass = getDeclaringClass(); return declClass.getName().hashCode() ^ getName().hashCode(); } | public int hashCode() { final Class<?> declClass = getDeclaringClass(); return declClass.getName().hashCode() ^ getName().hashCode(); } | 17,764 |
public String toString() { // 128 is a reasonable buffer initial size for constructor StringBuffer sb = new StringBuffer(128); Modifier.toString(getModifiers(), sb).append(' '); final Class<?> retType = getReturnType(); final Class<?> declClass = getDeclaringClass(); sb.append(retType.getName()).appe... | public String toString() { // 128 is a reasonable buffer initial size for constructor StringBuffer sb = new StringBuffer(128); Modifier.toString(getModifiers(), sb).append(' '); final Class<?> retType = getReturnType(); final Class<?> declClass = getDeclaringClass(); sb.append(retType.getName()).appe... | 17,765 |
public String toString() { // 128 is a reasonable buffer initial size for constructor StringBuffer sb = new StringBuffer(128); Modifier.toString(getModifiers(), sb).append(' '); final Class<?> retType = getReturnType(); final Class<?> declClass = getDeclaringClass(); sb.append(retType.getName()).appe... | public String toString() { // 128 is a reasonable buffer initial size for constructor StringBuffer sb = new StringBuffer(128); Modifier.toString(getModifiers(), sb).append(' '); final Class<?> retType = getReturnType(); final Class<?> declClass = getDeclaringClass(); sb.append(retType.getName()).appe... | 17,766 |
protected FSDirectory createDirectory(FSEntry entry) throws IOException { // TODO Auto-generated method stub return null; } | protected FSDirectory createDirectory(FSEntry entry) throws IOException { // TODO Auto-generated method stub return null; } | 17,767 |
protected FSEntry createRootEntry() throws IOException { // TODO Auto-generated method stub return null; } | protected FSEntry createRootEntry() throws IOException { // TODO Auto-generated method stub return null; } | 17,769 |
public AbstractFileSystem(Device device, boolean readOnly) throws FileSystemException { if (device == null) throw new IllegalArgumentException("null device!"); this.device = device; try { api = (BlockDeviceAPI) device.getAPI(BlockDeviceAPI.class); } catch (ApiNotFou... | public AbstractFileSystem(Device device, boolean readOnly) throws FileSystemException { if (device == null) throw new IllegalArgumentException("null device!"); this.device = device; try { api = device.getAPI(BlockDeviceAPI.class); } catch (ApiNotFoundException e) { ... | 17,770 |
public void flush() throws IOException { log.debug("<<< BEGIN flush >>>"); flushFiles(); flushDirectories(); log.debug("<<< END flush >>>"); } | public void flush() throws IOException { flushFiles(); flushDirectories(); log.debug("<<< END flush >>>"); } | 17,771 |
public void flush() throws IOException { log.debug("<<< BEGIN flush >>>"); flushFiles(); flushDirectories(); log.debug("<<< END flush >>>"); } | public void flush() throws IOException { log.debug("<<< BEGIN flush >>>"); flushFiles(); flushDirectories(); log.debug("<<< END flush >>>"); } | 17,772 |
public synchronized void write(BlockDeviceAPI device, long offset) throws IOException { byte[] data = new byte[nrSectors * sectorSize]; for (int i = 0; i < entries.length; i++) { long v = entries[i]; switch (bitSize) { case 12 : { int idx = (int) (i * 1.5); if ((i % 2) == 0) { data[idx] = ... | public synchronized void write(BlockDeviceAPI device, long offset) throws IOException { byte[] data = new byte[nrSectors * sectorSize]; for (int i = 0; i < entries.length; i++) { long v = entries[i]; switch (bitSize) { case 12 : { int idx = (int) (i * 1.5); if ((i % 2) == 0) { data[idx] = ... | 17,773 |
public synchronized void write(BlockDeviceAPI device, long offset) throws IOException { byte[] data = new byte[nrSectors * sectorSize]; for (int i = 0; i < entries.length; i++) { long v = entries[i]; switch (bitSize) { case 12 : { int idx = (int) (i * 1.5); if ((i % 2) == 0) { data[idx] = ... | public synchronized void write(BlockDeviceAPI device, long offset) throws IOException { byte[] data = new byte[nrSectors * sectorSize]; for (int i = 0; i < entries.length; i++) { long v = entries[i]; switch (bitSize) { case 12 : { int idx = (int) (i * 1.5); if ((i % 2) == 0) { data[idx] = ... | 17,774 |
public FSEntry getRootEntry() throws IOException { log.debug("<<< BEGIN getRootEntry >>>"); if(isClosed()) throw new IOException("FileSystem is closed"); if(rootEntry == null) { rootEntry = createRootEntry(); } log.debug("<<< END getRootEntry >>>"); return rootEntry;... | public FSEntry getRootEntry() throws IOException { if(isClosed()) throw new IOException("FileSystem is closed"); if(rootEntry == null) { rootEntry = createRootEntry(); } log.debug("<<< END getRootEntry >>>"); return rootEntry; } | 17,775 |
public FSEntry getRootEntry() throws IOException { log.debug("<<< BEGIN getRootEntry >>>"); if(isClosed()) throw new IOException("FileSystem is closed"); if(rootEntry == null) { rootEntry = createRootEntry(); } log.debug("<<< END getRootEntry >>>"); return rootEntry;... | public FSEntry getRootEntry() throws IOException { log.debug("<<< BEGIN getRootEntry >>>"); if(isClosed()) throw new IOException("FileSystem is closed"); if(rootEntry == null) { rootEntry = createRootEntry(); } return rootEntry; } | 17,776 |
public void render(Graphics2D g, String text, int x, int y) { try { final GeneralPath gp = new GeneralPath(); gp.moveTo(x, y); final TTFGlyphTable glyphTable = fontData.getGlyphTable(); final TTFCMapTable cmapTable = fontData.getCMapTable(); final TTFHorizontalHeaderTable hheadTable = fontData.getHorizon... | public void render(Graphics2D g, String text, int x, int y) { try { final GeneralPath gp = new GeneralPath(); gp.moveTo(x, y); final TTFGlyphTable glyphTable = fontData.getGlyphTable(); final TTFCMapTable cmapTable = fontData.getCMapTable(); final TTFHorizontalHeaderTable hheadTable = fontData.getHorizon... | 17,777 |
public LongSeqHolder(int[] initial_value) { value = initial_value; typecode.setLength(value.length); } | public LongSeqHolder() { value = initial_value; typecode.setLength(value.length); } | 17,778 |
public LongSeqHolder(int[] initial_value) { value = initial_value; typecode.setLength(value.length); } | public LongSeqHolder(int[] initial_value) { value = initial_value; typecode.setLength(value.length); } | 17,779 |
public ServantAlreadyActive(String why) { super(why); } | public ServantAlreadyActive() { super(why); } | 17,780 |
public ServantAlreadyActive(String why) { super(why); } | public ServantAlreadyActive(String why) { } | 17,781 |
JRootPane createRootPane() { return new JRootPane(); } | public JRootPane createRootPane() { return new JRootPane(); } | 17,782 |
Component getGlassPane() { return getRootPane().getGlassPane(); } | public Component getGlassPane() { return getRootPane().getGlassPane(); } | 17,783 |
JLayeredPane getLayeredPane() { return getRootPane().getLayeredPane(); } | public JLayeredPane getLayeredPane() { return getRootPane().getLayeredPane(); } | 17,784 |
JRootPane getRootPane() { if (rootPane == null) setRootPane(createRootPane()); return rootPane; } | public JRootPane getRootPane() { if (rootPane == null) setRootPane(createRootPane()); return rootPane; } | 17,785 |
void setGlassPane(Component glassPane) { getRootPane().setGlassPane(glassPane); } | public void setGlassPane(Component glassPane) { getRootPane().setGlassPane(glassPane); } | 17,786 |
void setLayeredPane(JLayeredPane layeredPane) { getRootPane().setLayeredPane(layeredPane); } | public void setLayeredPane(JLayeredPane layeredPane) { getRootPane().setLayeredPane(layeredPane); } | 17,787 |
void setRootPane(JRootPane root) { if (rootPane != null) remove(rootPane); rootPane = root; add(rootPane, BorderLayout.CENTER); } | public void setRootPane(JRootPane root) { if (rootPane != null) remove(rootPane); rootPane = root; add(rootPane, BorderLayout.CENTER); } | 17,788 |
int binarySearch(int[] a, int key, int maxIndex) { int low = 0; int hi = maxIndex - 1; int mid = 0; while (low <= hi) { mid = (low + hi) >> 1; final int d = a[mid]; if (d == key) return mid; else if (d > key) hi = mid - 1; else // This ge... | int binarySearch(int[] a, int key, int maxIndex) { int low = 0; int hi = maxIndex - 1; int mid = 0; while (low <= hi) { mid = (low + hi) >>> 1; final int d = a[mid]; if (d == key) return mid; else if (d > key) hi = mid - 1; else // This g... | 17,789 |
private void dumpMarks() { System.err.print("positionMarks: "); for (int i = 0; i < positionMarks.length; i++) System.err.print(positionMarks[i] + ", "); System.err.println(); } | private void dumpMarks() { System.err.print("positionMarks: "); for (int i = 0; i < numMarks; i++) System.err.print(positionMarks[i] + ", "); System.err.println(); } | 17,790 |
private void setPositionsInRange(int start, int end, boolean toStart) { // We slump together all the GapContentPositions to point to // one mark. So this is implemented as follows: // 1. Remove all the marks in the specified range. // 2. Insert one new mark at the correct location. // 3. Adjust all af... | private void setPositionsInRange(int start, int end, boolean toStart) { // We slump together all the GapContentPositions to point to // one mark. So this is implemented as follows: // 1. Remove all the marks in the specified range. // 2. Insert one new mark at the correct location. // 3. Adjust all af... | 17,791 |
private short[] getCursor(HardwareCursor cursor) { final HardwareCursorImage img = cursor.getImage(32, 32); if (img == null) { return null; } short[] res = (short[]) cursorCache.get(img); if (res == null) { res = new short[1024]; final int[] argb = img.getImage(); for (int i = 0; i < 1024; i++) { fi... | private short[] getCursor(HardwareCursor cursor) { final HardwareCursorImage img = cursor.getImage(32, 32); if (img == null) { return null; } short[] res = (short[]) cursorCache.get(img); if (res == null) { res = new short[1024]; final int[] argb = img.getImage(); for (int i = 0; i < 1024; i++) { fi... | 17,792 |
private short[] getCursor(HardwareCursor cursor) { final HardwareCursorImage img = cursor.getImage(32, 32); if (img == null) { return null; } short[] res = (short[]) cursorCache.get(img); if (res == null) { res = new short[1024]; final int[] argb = img.getImage(); for (int i = 0; i < 1024; i++) { fi... | private short[] getCursor(HardwareCursor cursor) { final HardwareCursorImage img = cursor.getImage(32, 32); if (img == null) { return null; } short[] res = (short[]) cursorCache.get(img); if (res == null) { res = new short[1024]; final int[] argb = img.getImage(); for (int i = 0; i < 1024; i++) { fi... | 17,793 |
private short[] getCursor(HardwareCursor cursor) { final HardwareCursorImage img = cursor.getImage(32, 32); if (img == null) { return null; } short[] res = (short[]) cursorCache.get(img); if (res == null) { res = new short[1024]; final int[] argb = img.getImage(); for (int i = 0; i < 1024; i++) { fi... | private short[] getCursor(HardwareCursor cursor) { final HardwareCursorImage img = cursor.getImage(32, 32); if (img == null) { return null; } short[] res = (short[]) cursorCache.get(img); if (res == null) { res = new short[1024]; final int[] argb = img.getImage(); for (int i = 0; i < 1024; i++) { fi... | 17,794 |
private short[] getCursor(HardwareCursor cursor) { final HardwareCursorImage img = cursor.getImage(32, 32); if (img == null) { return null; } short[] res = (short[]) cursorCache.get(img); if (res == null) { res = new short[1024]; final int[] argb = img.getImage(); for (int i = 0; i < 1024; i++) { fi... | private short[] getCursor(HardwareCursor cursor) { final HardwareCursorImage img = cursor.getImage(32, 32); if (img == null) { return null; } short[] res = (short[]) cursorCache.get(img); if (res == null) { res = new short[1024]; final int[] argb = img.getImage(); for (int i = 0; i < 1024; i++) { fi... | 17,795 |
private short[] getCursor(HardwareCursor cursor) { final HardwareCursorImage img = cursor.getImage(32, 32); if (img == null) { return null; } short[] res = (short[]) cursorCache.get(img); if (res == null) { res = new short[1024]; final int[] argb = img.getImage(); for (int i = 0; i < 1024; i++) { fi... | private short[] getCursor(HardwareCursor cursor) { final HardwareCursorImage img = cursor.getImage(32, 32); if (img == null) { return null; } short[] res = (short[]) cursorCache.get(img); if (res == null) { res = new short[1024]; final int[] argb = img.getImage(); for (int i = 0; i < 1024; i++) { fi... | 17,796 |
public void setCursorImage(HardwareCursor cursor) { // Background color io.setReg32(CUR_CLR0, 0xffffff); // Foreground color io.setReg32(CUR_CLR1, 0); // Set shape final short[] cur = getCursor(cursor); if (cur != null) { cursorMem.setShorts(cur, 0, 0, 1024); } } | public void setCursorImage(HardwareCursor cursor) { // Background color io.setReg32(CUR_CLR0, 0xffffff); // Foreground color io.setReg32(CUR_CLR1, 0); // Set shape final short[] cur = getCursor(cursor); if (cur != null) { cursorMem.setShorts(cur, 0, 0, 1024); } } | 17,797 |
public void setCursorImage(HardwareCursor cursor) { // Background color io.setReg32(CUR_CLR0, 0xffffff); // Foreground color io.setReg32(CUR_CLR1, 0); // Set shape final short[] cur = getCursor(cursor); if (cur != null) { cursorMem.setShorts(cur, 0, 0, 1024); } } | public void setCursorImage(HardwareCursor cursor) { // Background color io.setReg32(CUR_CLR0, 0xffffff); // Foreground color io.setReg32(CUR_CLR1, 0); // Set shape final short[] cur = getCursor(cursor); if (cur != null) { cursorMem.setShorts(cur, 0, 0, 1024); } } | 17,798 |
public void setCursorPosition(int x, int y) { // if upper-left corner of cursor is outside of // screen, we have to use special registers to clip it int xorigin = 0; int yorigin = 0; if( x < 0 ) { xorigin = -x; } if( y < 0 ) { yorigin = -y; ... | public void setCursorPosition(int x, int y) { // if upper-left corner of cursor is outside of // screen, we have to use special registers to clip it int xorigin = 0; int yorigin = 0; if( x < 0 ) { xorigin = -x; } if( y < 0 ) { yorigin = -y; ... | 17,799 |
public void propertyChange(PropertyChangeEvent e) { // Check for orientation changes. if (e.getPropertyName().equals("orientation")) recalculateIfOrientationChanged(); else if (e.getPropertyName().equals("model")) { BoundedRangeModel oldModel = (BoundedRangeModel) e.getOldValue(); oldM... | public void propertyChange(PropertyChangeEvent e) { // Check for orientation changes. if (e.getPropertyName().equals("orientation")) recalculateIfOrientationChanged(); else if (e.getPropertyName().equals("model")) { BoundedRangeModel oldModel = (BoundedRangeModel) e.getOldValue(); oldM... | 17,800 |
public void mouseDragged(MouseEvent e) { currentMouseX = e.getX(); currentMouseY = e.getY(); if (slider.getValueIsAdjusting()) { int value; if (slider.getOrientation() == JSlider.HORIZONTAL) value = valueForXPosition(currentMouseX) - offset; else value = valueForYPosition(cu... | public void mouseDragged(MouseEvent e) { currentMouseX = e.getX(); currentMouseY = e.getY(); if (slider.getValueIsAdjusting()) { int value; if (slider.getOrientation() == JSlider.HORIZONTAL) value = valueForXPosition(currentMouseX) - offset; else value = valueForYPosition(cu... | 17,801 |
public void mousePressed(MouseEvent e) { currentMouseX = e.getX(); currentMouseY = e.getY(); int value; if (slider.getOrientation() == JSlider.HORIZONTAL) value = valueForXPosition(currentMouseX); else value = valueForYPosition(currentMouseY); if (slider.getSnapToTicks()) value = fi... | public void mousePressed(MouseEvent e) { currentMouseX = e.getX(); currentMouseY = e.getY(); int value; if (slider.getOrientation() == JSlider.HORIZONTAL) value = valueForXPosition(currentMouseX); else value = valueForYPosition(currentMouseY); if (slider.getSnapToTicks()) value = fi... | 17,802 |
public void mouseReleased(MouseEvent e) { currentMouseX = e.getX(); currentMouseY = e.getY(); if (slider.getValueIsAdjusting()) { slider.setValueIsAdjusting(false); if (slider.getSnapToTicks()) slider.setValue(findClosestTick(slider.getValue())); } if (scrollTimer != null) ... | public void mouseReleased(MouseEvent e) { currentMouseX = e.getX(); currentMouseY = e.getY(); if (slider.getValueIsAdjusting()) { slider.setValueIsAdjusting(false); if (slider.getSnapToTicks()) slider.setValue(findClosestTick(slider.getValue())); } if (scrollTimer != null) ... | 17,803 |
protected void calculateContentRect() { contentRect.x = focusRect.x + focusInsets.left; contentRect.y = focusRect.y + focusInsets.top; contentRect.width = focusRect.width - focusInsets.left - focusInsets.right; contentRect.height = focusRect.height - focusInsets.top - focusIns... | protected void calculateContentRect() { contentRect.x = focusRect.x + focusInsets.left; contentRect.y = focusRect.y + focusInsets.top; contentRect.width = focusRect.width - focusInsets.left - focusInsets.right; contentRect.height = focusRect.height - focusInsets.top - focusIns... | 17,804 |
protected void calculateGeometry() { calculateFocusRect(); calculateContentRect(); calculateThumbSize(); calculateTrackBuffer(); calculateTrackRect(); calculateTickRect(); calculateLabelRect(); calculateThumbLocation(); } | protected void calculateGeometry() { calculateFocusRect(); calculateContentRect(); calculateThumbSize(); calculateTrackBuffer(); calculateTrackRect(); calculateTickRect(); calculateLabelRect(); calculateThumbLocation(); } | 17,805 |
public Dimension getPreferredHorizontalSize() { Insets insets = slider.getInsets(); // The width should cover all the labels (which are usually the // deciding factor of the width) int width = getWidthOfWidestLabel() * (slider.getLabelTable() == null ? 0 ... | public Dimension getPreferredHorizontalSize() { Insets insets = slider.getInsets(); // The width should cover all the labels (which are usually the // deciding factor of the width) int width = getWidthOfWidestLabel() * (slider.getLabelTable() == null ? 0 ... | 17,806 |
public Dimension getPreferredHorizontalSize() { Insets insets = slider.getInsets(); // The width should cover all the labels (which are usually the // deciding factor of the width) int width = getWidthOfWidestLabel() * (slider.getLabelTable() == null ? 0 ... | public Dimension getPreferredHorizontalSize() { Insets insets = slider.getInsets(); // The width should cover all the labels (which are usually the // deciding factor of the width) int width = getWidthOfWidestLabel() * (slider.getLabelTable() == null ? 0 ... | 17,807 |
public Dimension getPreferredHorizontalSize() { Insets insets = slider.getInsets(); // The width should cover all the labels (which are usually the // deciding factor of the width) int width = getWidthOfWidestLabel() * (slider.getLabelTable() == null ? 0 ... | public Dimension getPreferredHorizontalSize() { Insets insets = slider.getInsets(); // The width should cover all the labels (which are usually the // deciding factor of the width) int width = getWidthOfWidestLabel() * (slider.getLabelTable() == null ? 0 ... | 17,808 |
public Dimension getPreferredHorizontalSize() { Insets insets = slider.getInsets(); // The width should cover all the labels (which are usually the // deciding factor of the width) int width = getWidthOfWidestLabel() * (slider.getLabelTable() == null ? 0 ... | public Dimension getPreferredHorizontalSize() { Insets insets = slider.getInsets(); // The width should cover all the labels (which are usually the // deciding factor of the width) int width = getWidthOfWidestLabel() * (slider.getLabelTable() == null ? 0 ... | 17,809 |
public Dimension getPreferredHorizontalSize() { Insets insets = slider.getInsets(); // The width should cover all the labels (which are usually the // deciding factor of the width) int width = getWidthOfWidestLabel() * (slider.getLabelTable() == null ? 0 ... | public Dimension getPreferredHorizontalSize() { Insets insets = slider.getInsets(); // The width should cover all the labels (which are usually the // deciding factor of the width) int width = getWidthOfWidestLabel() * (slider.getLabelTable() == null ? 0 ... | 17,810 |
public Dimension getPreferredHorizontalSize() { Insets insets = slider.getInsets(); // The width should cover all the labels (which are usually the // deciding factor of the width) int width = getWidthOfWidestLabel() * (slider.getLabelTable() == null ? 0 ... | public Dimension getPreferredHorizontalSize() { Insets insets = slider.getInsets(); // The width should cover all the labels (which are usually the // deciding factor of the width) int width = getWidthOfWidestLabel() * (slider.getLabelTable() == null ? 0 ... | 17,811 |
public Dimension getPreferredSize(JComponent c) { if (slider.getOrientation() == JSlider.HORIZONTAL) return getPreferredHorizontalSize(); else return getPreferredVerticalSize(); } | public Dimension getPreferredSize(JComponent c) { if (slider.getOrientation() == JSlider.HORIZONTAL) return getPreferredHorizontalSize(); else return getPreferredVerticalSize(); } | 17,812 |
public Dimension getPreferredVerticalSize() { Insets insets = slider.getInsets(); int height = getHeightOfTallestLabel() * (slider.getLabelTable() == null ? 0 : slider.getLabelTable() .size()); if (... | public Dimension getPreferredVerticalSize() { Insets insets = slider.getInsets(); int height = getHeightOfTallestLabel() * (slider.getLabelTable() == null ? 0 : slider.getLabelTable() .size()); if (... | 17,813 |
public Dimension getPreferredVerticalSize() { Insets insets = slider.getInsets(); int height = getHeightOfTallestLabel() * (slider.getLabelTable() == null ? 0 : slider.getLabelTable() .size()); if (... | public Dimension getPreferredVerticalSize() { Insets insets = slider.getInsets(); int height = getHeightOfTallestLabel() * (slider.getLabelTable() == null ? 0 : slider.getLabelTable() .size()); if (... | 17,814 |
public Dimension getPreferredVerticalSize() { Insets insets = slider.getInsets(); int height = getHeightOfTallestLabel() * (slider.getLabelTable() == null ? 0 : slider.getLabelTable() .size()); if (... | public Dimension getPreferredVerticalSize() { Insets insets = slider.getInsets(); int height = getHeightOfTallestLabel() * (slider.getLabelTable() == null ? 0 : slider.getLabelTable() .size()); if (... | 17,815 |
public Dimension getPreferredVerticalSize() { Insets insets = slider.getInsets(); int height = getHeightOfTallestLabel() * (slider.getLabelTable() == null ? 0 : slider.getLabelTable() .size()); if (... | public Dimension getPreferredVerticalSize() { Insets insets = slider.getInsets(); int height = getHeightOfTallestLabel() * (slider.getLabelTable() == null ? 0 : slider.getLabelTable() .size()); if (... | 17,816 |
public Dimension getPreferredVerticalSize() { Insets insets = slider.getInsets(); int height = getHeightOfTallestLabel() * (slider.getLabelTable() == null ? 0 : slider.getLabelTable() .size()); if (... | public Dimension getPreferredVerticalSize() { Insets insets = slider.getInsets(); int height = getHeightOfTallestLabel() * (slider.getLabelTable() == null ? 0 : slider.getLabelTable() .size()); if (... | 17,817 |
public void paint(Graphics g, JComponent c) { // FIXME: Move this to propertyChangeEvent handler, when we get those. leftToRightCache = slider.getComponentOrientation() != ComponentOrientation.RIGHT_TO_LEFT; // FIXME: This next line is only here because the above line is here. calculateThumbLocation(); ... | public void paint(Graphics g, JComponent c) { // FIXME: Move this to propertyChangeEvent handler, when we get those. leftToRightCache = slider.getComponentOrientation() != ComponentOrientation.RIGHT_TO_LEFT; // FIXME: This next line is only here because the above line is here. calculateGeometry(); ... | 17,818 |
protected void paintHorizontalLabel(Graphics g, int value, Component label) { // This relies on clipping working properly or we'll end up // painting all over the place. If our preferred size is ignored, then // the labels may not fit inside the slider's bounds. Rather than mucking // with font sizes an... | protected void paintHorizontalLabel(Graphics g, int value, Component label) { // This relies on clipping working properly or we'll end up // painting all over the place. If our preferred size is ignored, then // the labels may not fit inside the slider's bounds. Rather than mucking // with font sizes an... | 17,819 |
protected void paintHorizontalLabel(Graphics g, int value, Component label) { // This relies on clipping working properly or we'll end up // painting all over the place. If our preferred size is ignored, then // the labels may not fit inside the slider's bounds. Rather than mucking // with font sizes an... | protected void paintHorizontalLabel(Graphics g, int value, Component label) { // This relies on clipping working properly or we'll end up // painting all over the place. If our preferred size is ignored, then // the labels may not fit inside the slider's bounds. Rather than mucking // with font sizes an... | 17,820 |
public void paintThumb(Graphics g) { Color saved_color = g.getColor(); Point a = new Point(thumbRect.x, thumbRect.y); Point b = new Point(a); Point c = new Point(a); Point d = new Point(a); Point e = new Point(a); Polygon bright; Polygon light; // light shadow Polygon dark; // dark shad... | public void paintThumb(Graphics g) { Color saved_color = g.getColor(); Point a = new Point(thumbRect.x, thumbRect.y); Point b = new Point(a); Point c = new Point(a); Point d = new Point(a); Point e = new Point(a); Polygon bright; Polygon light; // light shadow Polygon dark; // dark shad... | 17,821 |
public void paintTicks(Graphics g) { int max = slider.getMaximum(); int min = slider.getMinimum(); int majorSpace = slider.getMajorTickSpacing(); int minorSpace = slider.getMinorTickSpacing(); if (majorSpace > 0) { if (slider.getOrientation() == JSlider.HORIZONTAL) { double loc = tickRect.x... | public void paintTicks(Graphics g) { int max = slider.getMaximum(); int min = slider.getMinimum(); int majorSpace = slider.getMajorTickSpacing(); int minorSpace = slider.getMinorTickSpacing(); if (majorSpace > 0) { if (slider.getOrientation() == JSlider.HORIZONTAL) { double loc = tickRect.x... | 17,822 |
protected void scrollDueToClickInTrack(int dir) { scrollTimer.stop(); scrollListener.setDirection(dir); scrollListener.setScrollByBlock(true); scrollTimer.start(); } | protected void scrollDueToClickInTrack(int dir) { scrollTimer.stop(); scrollListener.setDirection(dir); scrollListener.setScrollByBlock(true); scrollTimer.start(); } | 17,823 |
protected void paintComponent(Graphics g) { super.paintComponent(g); awtComponent.update(g); } | protected void paintComponent(Graphics g) { super.paintComponent(g); } | 17,824 |
public AbstractAction(String name) { this(name, null); // TODO: default icon?? } // AbstractAction() | public AbstractAction(String name) { this(name, null); // TODO: default icon?? } // AbstractAction() | 17,825 |
int getDefaultCloseOperation() { return close_action; } | int getDefaultCloseOperation() { return close_action; } | 17,826 |
public void setContentAreaFilled(boolean b) { //Sets whether the button should paint the content area or leave it transparent. } | public void setContentAreaFilled(boolean b) { //Sets whether the button should paint the content area or leave it transparent. } | 17,827 |
protected void installDefaults() { super.installDefaults(); UIDefaults defaults = UIManager.getLookAndFeelDefaults(); checkIcon = defaults.getIcon("CheckBoxMenuItem.checkIcon"); } | protected void installDefaults() { super.installDefaults(); UIDefaults defaults = UIManager.getLookAndFeelDefaults(); checkIcon = defaults.getIcon("CheckBoxMenuItem.checkIcon"); } | 17,829 |
static public int[] getScanline (Reader in, int len) throws IOException { char byteStr[] = new char[2]; int scanline[] = new int[len]; int x = 0; while (x < len) { int ch = in.read (); if (ch == '0') { in.read (); // 'x' byteStr[0] = (char) in.read (); byteStr[1] = (char) in.read... | public static int[] getScanline (Reader in, int len) throws IOException { char byteStr[] = new char[2]; int scanline[] = new int[len]; int x = 0; while (x < len) { int ch = in.read (); if (ch == '0') { in.read (); // 'x' byteStr[0] = (char) in.read (); byteStr[1] = (char) in.read... | 17,832 |
TemplateNode clone(Stylesheet stylesheet) { TemplateNode ret = new MessageNode(terminate); if (children != null) { ret.children = children.clone(stylesheet); } if (next != null) { ret.next = next.clone(stylesheet); } return ret; } | TemplateNode clone(Stylesheet stylesheet) TemplateNode ret = new MessageNode(terminate); if (children != null) ret.children = children.clone(stylesheet); } if (next != null) ret.next = next.clone(stylesheet); } return ret; } | 17,833 |
TemplateNode clone(Stylesheet stylesheet) { TemplateNode ret = new MessageNode(terminate); if (children != null) { ret.children = children.clone(stylesheet); } if (next != null) { ret.next = next.clone(stylesheet); } return ret; } | TemplateNode clone(Stylesheet stylesheet) { TemplateNode ret = new MessageNode(terminate); if (children != null) { ret.children = children.clone(stylesheet); if (next != null) { ret.next = next.clone(stylesheet); return ret; } | 17,834 |
TemplateNode clone(Stylesheet stylesheet) { TemplateNode ret = new MessageNode(terminate); if (children != null) { ret.children = children.clone(stylesheet); } if (next != null) { ret.next = next.clone(stylesheet); } return ret; } | TemplateNode clone(Stylesheet stylesheet) TemplateNode ret = new MessageNode(terminate); if (children != null) ret.children = children.clone(stylesheet); } if (next != null) ret.next = next.clone(stylesheet); } return ret; } | 17,835 |
TemplateNode clone(Stylesheet stylesheet) { TemplateNode ret = new MessageNode(terminate); if (children != null) { ret.children = children.clone(stylesheet); } if (next != null) { ret.next = next.clone(stylesheet); } return ret; } | TemplateNode clone(Stylesheet stylesheet) { TemplateNode ret = new MessageNode(terminate); if (children != null) { ret.children = children.clone(stylesheet); if (next != null) { ret.next = next.clone(stylesheet); return ret; } | 17,836 |
void doApply(Stylesheet stylesheet, QName mode, Node context, int pos, int len, Node parent, Node nextSibling) throws TransformerException { if (children != null) { Document doc = (parent instanceof Document) ? (Document) parent : parent.getOwnerDocument(); ... | void doApply(Stylesheet stylesheet, QName mode, Node context, int pos, int len, Node parent, Node nextSibling) throws TransformerException { if (children != null) { Document doc = (parent instanceof Document) ? (Document) parent : parent.getOwnerDocument(); ... | 17,837 |
void doApply(Stylesheet stylesheet, QName mode, Node context, int pos, int len, Node parent, Node nextSibling) throws TransformerException { if (children != null) { Document doc = (parent instanceof Document) ? (Document) parent : parent.getOwnerDocument(); ... | void doApply(Stylesheet stylesheet, QName mode, Node context, int pos, int len, Node parent, Node nextSibling) throws TransformerException if (children != null) Document doc = (parent instanceof Document) ? (Document) parent : parent.getOwnerDocument(); D... | 17,838 |
void doApply(Stylesheet stylesheet, QName mode, Node context, int pos, int len, Node parent, Node nextSibling) throws TransformerException { if (children != null) { Document doc = (parent instanceof Document) ? (Document) parent : parent.getOwnerDocument(); ... | void doApply(Stylesheet stylesheet, QName mode, Node context, int pos, int len, Node parent, Node nextSibling) throws TransformerException { if (children != null) { Document doc = (parent instanceof Document) ? (Document) parent : parent.getOwnerDocument(); ... | 17,839 |
void doApply(Stylesheet stylesheet, QName mode, Node context, int pos, int len, Node parent, Node nextSibling) throws TransformerException { if (children != null) { Document doc = (parent instanceof Document) ? (Document) parent : parent.getOwnerDocument(); ... | void doApply(Stylesheet stylesheet, QName mode, Node context, int pos, int len, Node parent, Node nextSibling) throws TransformerException if (children != null) Document doc = (parent instanceof Document) ? (Document) parent : parent.getOwnerDocument(); D... | 17,840 |
void doApply(Stylesheet stylesheet, QName mode, Node context, int pos, int len, Node parent, Node nextSibling) throws TransformerException { if (children != null) { Document doc = (parent instanceof Document) ? (Document) parent : parent.getOwnerDocument(); ... | void doApply(Stylesheet stylesheet, QName mode, Node context, int pos, int len, Node parent, Node nextSibling) throws TransformerException { if (children != null) { Document doc = (parent instanceof Document) ? (Document) parent : parent.getOwnerDocument(); ... | 17,841 |
private static int countSelections(ListSelectionModel lsm) { int lo = lsm.getMinSelectionIndex(); int hi = lsm.getMaxSelectionIndex(); int sum = 0; if (lo != -1 && hi != -1) { switch (lsm.getSelectionMode()) { case ListSelectionModel.SINGLE_SELECTION: sum = 1; ... | private static int countSelections(ListSelectionModel lsm) { int lo = lsm.getMinSelectionIndex(); int hi = lsm.getMaxSelectionIndex(); int sum = 0; if (lo != -1 && hi != -1) { switch (lsm.getSelectionMode()) { case ListSelectionModel.SINGLE_SELECTION: sum = 1; ... | 17,842 |
private static int countSelections(ListSelectionModel lsm) { int lo = lsm.getMinSelectionIndex(); int hi = lsm.getMaxSelectionIndex(); int sum = 0; if (lo != -1 && hi != -1) { switch (lsm.getSelectionMode()) { case ListSelectionModel.SINGLE_SELECTION: sum = 1; ... | private static int countSelections(ListSelectionModel lsm) { int lo = lsm.getMinSelectionIndex(); int hi = lsm.getMaxSelectionIndex(); int sum = 0; if (lo != -1 && hi != -1) { switch (lsm.getSelectionMode()) { case ListSelectionModel.SINGLE_SELECTION: sum = 1; ... | 17,843 |
private static int[] getSelections(ListSelectionModel lsm) { int sz = countSelections(lsm); int [] ret = new int[sz]; int lo = lsm.getMinSelectionIndex(); int hi = lsm.getMaxSelectionIndex(); int j = 0; java.util.ArrayList ls = new java.util.ArrayList(); if (lo != -1 && hi != -1) { s... | private static int[] getSelections(ListSelectionModel lsm) { int sz = countSelections(lsm); int [] ret = new int[sz]; int lo = lsm.getMinSelectionIndex(); int hi = lsm.getMaxSelectionIndex(); int j = 0; java.util.ArrayList ls = new java.util.ArrayList(); if (lo != -1 && hi != -1) { s... | 17,844 |
private static int[] getSelections(ListSelectionModel lsm) { int sz = countSelections(lsm); int [] ret = new int[sz]; int lo = lsm.getMinSelectionIndex(); int hi = lsm.getMaxSelectionIndex(); int j = 0; java.util.ArrayList ls = new java.util.ArrayList(); if (lo != -1 && hi != -1) { s... | private static int[] getSelections(ListSelectionModel lsm) { int sz = countSelections(lsm); int [] ret = new int[sz]; int lo = lsm.getMinSelectionIndex(); int hi = lsm.getMaxSelectionIndex(); int j = 0; java.util.ArrayList ls = new java.util.ArrayList(); if (lo != -1 && hi != -1) { s... | 17,845 |
public Object getProperty(String name) throws SAXNotRecognizedException, SAXNotSupportedException { String FEATURES = "http://xml.org/sax/features/"; String PROPERTIES = "http://xml.org/sax/properties/"; if ((FEATURES + "is-standalone").equals(name)) return xmlStandalone ? Boolean.TRUE : Boolean.FAL... | public Object getProperty(String name) throws SAXNotRecognizedException, SAXNotSupportedException { String FEATURES = "http://xml.org/sax/features/"; String PROPERTIES = "http://xml.org/sax/properties/"; if ((FEATURES + "is-standalone").equals(name)) return xmlStandalone ? Boolean.TRUE : Boolean.FAL... | 17,847 |
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, ... | 17,849 |
public synchronized void parse(InputSource input) throws IOException, SAXException { reset(); String systemId = input.getSystemId(); InputStream in = input.getByteStream(); boolean opened = false; if (in != null) parser = new XMLParser(in, systemId, validating, ... | if (isIgnorableWhitespace(parser, b, false)) contentHandler.ignorableWhitespace(b, 0, b.length); else if (isIgnorableWhitespace(parser, b, false)) contentHandler.ignorableWhitespace(b, 0, b.length); else publicif (isIgnorableWhitespace(parser, b, false)) contentHandler.ignorableWhitespace(b, 0, b.length); else synchron... | 17,850 |
public synchronized void parse(InputSource input) throws IOException, SAXException { reset(); String systemId = input.getSystemId(); InputStream in = input.getByteStream(); boolean opened = false; if (in != null) parser = new XMLParser(in, systemId, validating, ... | if (isIgnorableWhitespace(parser, b, true)) contentHandler.ignorableWhitespace(b, 0, b.length); else if (isIgnorableWhitespace(parser, b, true)) contentHandler.ignorableWhitespace(b, 0, b.length); else publicif (isIgnorableWhitespace(parser, b, true)) contentHandler.ignorableWhitespace(b, 0, b.length); else synchronize... | 17,851 |
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, ... | 17,852 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.