bugged
stringlengths
6
599k
fixed
stringlengths
10
599k
__index_level_0__
int64
0
1.13M
protected void expandRecord(long beginning, long end) throws FileSystemException{ log.debug("expandRecord("+beginning + ", "+ end+")"); if(beginning+getNameLen()+8 < end) { //the record fits in the block setRecLen((int)(end - beginning)); //pad the end of the record with zeroes byte[] newData = new byte[getR...
protected synchronized void expandRecord(long beginning, long end) throws FileSystemException{ log.debug("expandRecord("+beginning + ", "+ end+")"); if(beginning+getNameLen()+8 < end) { //the record fits in the block setRecLen((int)(end - beginning)); //pad the end of the record with zeroes byte[] newData = ...
5,955
public int getINodeNr() { return (int)Ext2Utils.get32(data, offset); }
public synchronized int getINodeNr() { return (int)Ext2Utils.get32(data, offset); }
5,956
public String getName() { StringBuffer name = new StringBuffer(); if(getINodeNr()!=0) { //TODO: character conversion?? for(int i=0; i<getNameLen(); i++) name.append( (char)Ext2Utils.get8(data, offset+8+i) ); log.debug("Ext2DirectoryRecord(): iNode="+getINodeNr()+", name="+name); } return name.toString();...
public synchronized String getName() { StringBuffer name = new StringBuffer(); if(getINodeNr()!=0) { //TODO: character conversion?? for(int i=0; i<getNameLen(); i++) name.append( (char)Ext2Utils.get8(data, offset+8+i) ); log.debug("Ext2DirectoryRecord(): iNode="+getINodeNr()+", name="+name); } return nam...
5,957
private int getNameLen() { return Ext2Utils.get8(data, offset+6); }
private synchronized int getNameLen() { return Ext2Utils.get8(data, offset+6); }
5,958
public int getRecLen() { return Ext2Utils.get16(data, offset+4); }
public synchronized int getRecLen() { return Ext2Utils.get16(data, offset+4); }
5,959
public int getType() { return Ext2Utils.get8(data, offset+7); }
public synchronized int getType() { return Ext2Utils.get8(data, offset+7); }
5,960
private void setINodeNr(long nr) { Ext2Utils.set32(data, offset, nr); }
private synchronized void setINodeNr(long nr) { Ext2Utils.set32(data, offset, nr); }
5,961
private void setName(String name) { for(int i=0; i<name.length(); i++) Ext2Utils.set8(data, offset+8+i, name.charAt(i)); }
private synchronized void setName(String name) { for(int i=0; i<name.length(); i++) Ext2Utils.set8(data, offset+8+i, name.charAt(i)); }
5,962
private void setNameLen(int len) { Ext2Utils.set8(data, offset+6, len); }
private synchronized void setNameLen(int len) { Ext2Utils.set8(data, offset+6, len); }
5,963
private void setRecLen(int len) { Ext2Utils.set16(data, offset+4, len); }
private synchronized void setRecLen(int len) { Ext2Utils.set16(data, offset+4, len); }
5,964
private void setType(int type) { if(!fs.hasIncompatFeature(Ext2Constants.EXT2_FEATURE_INCOMPAT_FILETYPE)) return; Ext2Utils.set8(data, offset+7, type); }
private synchronized void setType(int type) { if(!fs.hasIncompatFeature(Ext2Constants.EXT2_FEATURE_INCOMPAT_FILETYPE)) return; Ext2Utils.set8(data, offset+7, type); }
5,965
protected void truncateRecord() { int newLength = getNameLen() + 8; //record length is padded to n*4 bytes if(newLength%4!=0) newLength+=4-newLength%4; setRecLen(newLength); log.debug("truncateRecord(): newLength: "+newLength); }
protected synchronized void truncateRecord() { int newLength = getNameLen() + 8; //record length is padded to n*4 bytes if(newLength%4!=0) newLength+=4-newLength%4; setRecLen(newLength); log.debug("truncateRecord(): newLength: "+newLength); }
5,966
public void propertyChange(PropertyChangeEvent e) { // FIXME: need name properties so can change floatFrame title. if (e.getPropertyName().equals(JToolBar.ROLLOVER_CHANGED_PROPERTY)) setRolloverBorders(toolBar.isRollover()); }
public void propertyChange(PropertyChangeEvent e) { // FIXME: need name properties so can change floatFrame title. if (e.getPropertyName().equals("rollover")) setRolloverBorders(toolBar.isRollover()); }
5,968
protected void specificIOStyleToXDF( OutputStream outputstream,String indent) { int stop = parentArray.getAxisList().size()-1; nestedToXDF(outputstream, indent, 0, stop); }
protected void specificIOStyleToXDF( OutputStream outputstream,String indent) { int stop = parentArray.getAxisList().size()-1; synchronized (attribHash) { nestedToXDF(outputstream, indent, 0, stop); } }
5,969
protected Dimension getPreferredMenuItemSize(JComponent c, Icon checkIcon, Icon arrowIcon, int defaultTextIconGap) { JMenuItem m = (JMenuItem) c; Dimension d = BasicGraphicsUtils.getPreferredButtonSize(m, ...
protected Dimension getPreferredMenuItemSize(JComponent c, Icon checkIcon, Icon arrowIcon, int defaultTextIconGap) { JMenuItem m = (JMenuItem) c; Dimension d = BasicGraphicsUtils.getPreferredButtonSize(m, ...
5,970
protected Dimension getPreferredMenuItemSize(JComponent c, Icon checkIcon, Icon arrowIcon, int defaultTextIconGap) { JMenuItem m = (JMenuItem) c; Dimension d = BasicGraphicsUtils.getPreferredButtonSize(m, ...
protected Dimension getPreferredMenuItemSize(JComponent c, Icon checkIcon, Icon arrowIcon, int defaultTextIconGap) { JMenuItem m = (JMenuItem) c; Dimension d = BasicGraphicsUtils.getPreferredButtonSize(m, ...
5,971
protected Dimension getPreferredMenuItemSize(JComponent c, Icon checkIcon, Icon arrowIcon, int defaultTextIconGap) { JMenuItem m = (JMenuItem) c; Dimension d = BasicGraphicsUtils.getPreferredButtonSize(m, ...
protected Dimension getPreferredMenuItemSize(JComponent c, Icon checkIcon, Icon arrowIcon, int defaultTextIconGap) { JMenuItem m = (JMenuItem) c; Dimension d = BasicGraphicsUtils.getPreferredButtonSize(m, ...
5,972
public AccessibleJDialog() { super(); // Nothing to do here. }
protected AccessibleJDialog() { super(); // Nothing to do here. }
5,973
public SwingListPeer(SwingToolkit toolkit, final List list) { super(toolkit, list, new JList()); this.list = list; final JList jList = (JList)jComponent; SwingToolkit.add(list, jList); SwingToolkit.copyAwtProperties(list, jList); final ListModel model = new AbstractListModel() { public Object getEl...
public SwingListPeer(SwingToolkit toolkit, final List list) { super(toolkit, list, new JList()); this.list = list; final JList jList = (JList)jComponent; SwingToolkit.add(list, jList); SwingToolkit.copyAwtProperties(list, jList); final ListModel model = new AbstractListModel() { public Object getEl...
5,974
private void init() { classXDFNodeName = super.getClassXDFNodeName()+ "||" + "string"; attribOrder.add(0, "length"); //add length as the first attribute; attribHash.put("lessThanValue", new XMLAttribute(null, Constants.STRING_TYPE)); attribHash.put("lessThanOrEqualValue", new XMLAttribute(null, Constants...
private void init() { parentClassXDFNodeName = super.getClassXDFNodeName(); classXDFNodeName = "string"; attribOrder.add(0, "length"); //add length as the first attribute; attribHash.put("lessThanValue", new XMLAttribute(null, Constants.STRING_TYPE)); attribHash.put("lessThanOrEqualValue", new XMLAttribu...
5,975
public void run() { frame.show(); }
public void run() { frame.setVisible(true); }
5,976
public static final int getBreakLocation(Segment s, FontMetrics metrics, int x0, int x, TabExpander e, int startOffset) { int mark = Utilities.getTabbedTextOffset(s, metrics, x0, x, e, startOffset); BreakIterator breaker = Brea...
public static final int getBreakLocation(Segment s, FontMetrics metrics, int x0, int x, TabExpander e, int startOffset) { int mark = Utilities.getTabbedTextOffset(s, metrics, x0, x, e, startOffset); BreakIterator breaker = Brea...
5,977
static final CodePage getCodePage(String cp) { System.err.println("Trying NativeCodePage:" + cp); if (cp.equals("37")) return new NativeCodePage(cp, codePage37); if (cp.equals("37PT")) return new NativeCodePage(cp, codePage37PT); if (cp.equals("273")) return new NativeCo...
static final CodePage getCodePage(String cp) { System.err.println("Trying NativeCodePage:" + cp); if (cp.equals("37")) return new NativeCodePage(cp, codePage37); if (cp.equals("37PT")) return new NativeCodePage(cp, codePage37PT); if (cp.equals("273")) return new NativeCo...
5,978
static final CodePage getCodePage(String cp) { System.err.println("Trying NativeCodePage:" + cp); if (cp.equals("37")) return new NativeCodePage(cp, codePage37); if (cp.equals("37PT")) return new NativeCodePage(cp, codePage37PT); if (cp.equals("273")) return new NativeCo...
static final CodePage getCodePage(String cp) { System.err.println("Trying NativeCodePage:" + cp); if (cp.equals("37")) return new NativeCodePage(cp, codePage37); if (cp.equals("37PT")) return new NativeCodePage(cp, codePage37PT); if (cp.equals("273")) return new NativeCo...
5,979
public void propertyChange(PropertyChangeEvent evt) { }
public void propertyChange(PropertyChangeEvent e) { }
5,980
private synchronized void doCompile() { if (isCompiled()) { return; } if (!isCompiling()) { if (loader.isCompileRequired()) { state |= VmTypeState.ST_COMPILING; //BootLog.debug("Compiling " + getName()); // Compile the superclass (if any) ...
private synchronized void doCompile() { if (isCompiled()) { return; } if (!isCompiling()) { if (loader.isCompileRequired()) { state |= VmTypeState.ST_COMPILING; //BootLog.debug("Compiling " + getName()); // Compile the superclass (if any) ...
5,981
public Component getTreeCellRendererComponent(JTree tree, Object val, boolean selected, boolean expanded, boolean leaf, int row, boolean hasFocus) { if (leaf) setIcon(getLeafIcon()); else if (expanded) setIcon(getOpenIcon()); else setIcon(getClosedIcon()); setText(val.toString()); this.selected ...
public Component getTreeCellRendererComponent(JTree tree, Object val, boolean selected, boolean expanded, boolean leaf, int row, boolean hasFocus) { if (leaf) setIcon(getLeafIcon()); else if (expanded) setIcon(getOpenIcon()); else setIcon(getClosedIcon()); setText(val.toString()); this.selected ...
5,982
public static Class getClassForEncoding(String type_code, boolean descriptor) throws ClassNotFoundException { if (descriptor) { switch (type_code.charAt(0)) { case 'B': return byte.class; case 'C': return char.class; case 'D': ret...
public static Class getClassForEncoding(String type_code, boolean descriptor) throws ClassNotFoundException { if (descriptor) { switch (type_code.charAt(0)) { case 'B': return byte.class; case 'C': return char.class; case 'D': ret...
5,984
public void action (SaxDocumentHandler handler) throws SAXException { // we stopped reading datanode, lower count by one DataNodeLevel--; // we might still be nested within a data node // if so, return now to accumulate more data within the DATABLOCK if...
public void action (SaxDocumentHandler handler) throws SAXException { // we stopped reading datanode, lower count by one DataNodeLevel--; // we might still be nested within a data node // if so, return now to accumulate more data within the DATABLOCK if...
5,985
public void action (SaxDocumentHandler handler) throws SAXException { // we stopped reading datanode, lower count by one DataNodeLevel--; // we might still be nested within a data node // if so, return now to accumulate more data within the DATABLOCK if...
public void action (SaxDocumentHandler handler) throws SAXException { // we stopped reading datanode, lower count by one DataNodeLevel--; // we might still be nested within a data node // if so, return now to accumulate more data within the DATABLOCK if...
5,986
public TTFFontMetrics(Font font, TTFFontData fontData) throws IOException { super(font); if (font == null) { throw new IllegalArgumentException("font cannot be null"); } if (fontData == null) { throw new IllegalArgumentException("fontData cannot be null"); } this.fontData = fontData; this.scale = font.getSi...
public TTFFontMetrics(Font font, TTFFontData fontData) throws IOException { super(font); if (font == null) { throw new IllegalArgumentException("font cannot be null"); } if (fontData == null) { throw new IllegalArgumentException("fontData cannot be null"); } this.fontData = fontData; this.fontSize = font.ge...
5,990
public int getAscent() { try { return (int)(fontData.getHorizontalHeaderTable().getAscent() * scale); } catch (IOException ex) { return 0; } }
public int getAscent() { try { final int ascent = (int)(fontData.getHorizontalHeaderTable().getAscent() * scale); return ascent; } catch (IOException ex) { return 0; } }
5,991
public int getDescent() { try { return Math.abs((int)(fontData.getHorizontalHeaderTable().getDescent() * scale)); } catch (IOException ex) { return 0; } }
public int getDescent() { try { final int descent = Math.abs((int)(fontData.getHorizontalHeaderTable().getDescent() * scale)); return descent; } catch (IOException ex) { return 0; } }
5,992
private static final BigInteger newR(final BigInteger N) { final int upper = (N.bitLength() + 7) / 8; final int lower = upper / 2; final byte[] bl = new byte[1]; SecureRandom rnd = new SecureRandom (); int b; do { rnd.nextBytes(bl); b = bl[0] & 0xFF; } while (b < lower ||...
private static final BigInteger newR(final BigInteger N) { final int upper = (N.bitLength() + 7) / 8; final int lower = upper / 2; final byte[] bl = new byte[1]; int b; do { rnd.nextBytes(bl); b = bl[0] & 0xFF; } while (b < lower || b > upper); final byte[] buffer = n...
5,993
private static final BigInteger newR(final BigInteger N) { final int upper = (N.bitLength() + 7) / 8; final int lower = upper / 2; final byte[] bl = new byte[1]; SecureRandom rnd = new SecureRandom (); int b; do { rnd.nextBytes(bl); b = bl[0] & 0xFF; } while (b < lower ||...
private static final BigInteger newR(final BigInteger N) { final int upper = (N.bitLength() + 7) / 8; final int lower = upper / 2; final byte[] bl = new byte[1]; SecureRandom rnd = new SecureRandom (); int b; do { prng.nextBytes(bl); b = bl[0] & 0xFF; } while (b < lower |...
5,994
private static final BigInteger newR(final BigInteger N) { final int upper = (N.bitLength() + 7) / 8; final int lower = upper / 2; final byte[] bl = new byte[1]; SecureRandom rnd = new SecureRandom (); int b; do { rnd.nextBytes(bl); b = bl[0] & 0xFF; } while (b < lower ||...
private static final BigInteger newR(final BigInteger N) { final int upper = (N.bitLength() + 7) / 8; final int lower = upper / 2; final byte[] bl = new byte[1]; SecureRandom rnd = new SecureRandom (); int b; do { rnd.nextBytes(bl); b = bl[0] & 0xFF; } while (b < lower ||...
5,995
public void setVisible(final boolean visible) { // Hook up this call so that it gets executed on the event thread in order // to avoid synchronization problems when calling the layout manager. if (! SwingUtilities.isEventDispatchThread()) { SwingUtilities.invokeLater(new Runnable() { ...
public void setVisible(final boolean visible) { // Hook up this call so that it gets executed on the event thread in order // to avoid synchronization problems when calling the layout manager. if (! SwingUtilities.isEventDispatchThread()) { SwingUtilities.invokeLater(new Runnable() { ...
5,996
public Object action (SaxDocumentHandler handler, Attributes attrs) { // we only need to do these things for the first time we enter // a data node if (DataNodeLevel == 0) { // A little 'pre-handling' as href is a specialattribute // that will hold an (Href) ob...
public Object action (SaxDocumentHandler handler, Attributes attrs) { // we only need to do these things for the first time we enter // a data node if (DataNodeLevel == 0) { // A little 'pre-handling' as href is a specialattribute // that will hold an (Href) ob...
5,997
public void action (SaxDocumentHandler handler) { if (CurrentDataTagLevel == DataTagLevel) TaggedLocatorObj.next(); // bump up DataFormat appropriately if (MaxDataFormatIndex > 0) { int currentFastAxisCoordinate = TaggedLocatorObj.getAxisIndex(FastestAxis); ...
public void action (SaxDocumentHandler handler) { if (CurrentDataTagLevel == DataTagLevel) TaggedLocatorObj.next(); // bump up DataFormat appropriately if (MaxDataFormatIndex > 0) { int currentFastAxisCoordinate = TaggedLocatorObj.getAxisIndex(FastestAxis); ...
5,998
public void action (SaxDocumentHandler handler) { if (CurrentDataTagLevel == DataTagLevel) TaggedLocatorObj.next(); // bump up DataFormat appropriately if (MaxDataFormatIndex > 0) { int currentFastAxisCoordinate = TaggedLocatorObj.getAxisIndex(FastestAxis); ...
public void action (SaxDocumentHandler handler) { if (CurrentDataTagLevel == DataTagLevel) TaggedLocatorObj.next(); // bump up DataFormat appropriately if (MaxDataFormatIndex > 0) { int currentFastAxisCoordinate = TaggedLocatorObj.getAxisIndex(FastestAxis); ...
5,999
public Object action (SaxDocumentHandler handler, Attributes attrs) { // create new object appropriately FieldAxis newfieldaxis = new FieldAxis(); newfieldaxis.setAttributes(attrs); // set XML attributes from passed list // Every axis must have *either* axisId *or* an axisId...
public Object action (SaxDocumentHandler handler, Attributes attrs) { // create new object appropriately FieldAxis newfieldaxis = new FieldAxis(); newfieldaxis.setAttributes(attrs); // set XML attributes from passed list // Every axis must have *either* axisId *or* an axisId...
6,000
public void action (SaxDocumentHandler handler, char buf [], int offset, int len) { // only do something here IF we are reading in data at the moment // is this needed?? if (DataNodeLevel > 0) { XMLDataIOStyle readObj = CurrentArray.getXMLDataIOStyle(); ...
public void action (SaxDocumentHandler handler, char buf [], int offset, int len) { // only do something here IF we are reading in data at the moment // is this needed?? if (DataNodeLevel > 0) { XMLDataIOStyle readObj = CurrentArray.getXMLDataIOStyle(); ...
6,002
private void addByteDataToCurrentArray (Locator location, byte[] data, int amount, String endian) throws SetDataException { ArrayList commandList = (ArrayList) ((FormattedXMLDataIOStyle) CurrentArray.getXMLDataIOStyle()).getFormatCommands(); int nrofIOCmd = commandList.size(); int bytes_...
private void addByteDataToCurrentArray (Locator location, byte[] data, int amount, String endian) throws SetDataException { ArrayList commandList = (ArrayList) ((FormattedXMLDataIOStyle) CurrentArray.getXMLDataIOStyle()).getFormatCommands(); int nrofIOCmd = commandList.size(); int bytes_...
6,003
private void addByteDataToCurrentArray (Locator location, byte[] data, int amount, String endian) throws SetDataException { ArrayList commandList = (ArrayList) ((FormattedXMLDataIOStyle) CurrentArray.getXMLDataIOStyle()).getFormatCommands(); int nrofIOCmd = commandList.size(); int bytes_...
private void addByteDataToCurrentArray (Locator location, byte[] data, int amount, String endian) throws SetDataException { ArrayList commandList = (ArrayList) ((FormattedXMLDataIOStyle) CurrentArray.getXMLDataIOStyle()).getFormatCommands(); int nrofIOCmd = commandList.size(); int bytes_...
6,004
private void addByteDataToCurrentArray (Locator location, byte[] data, int amount, String endian) throws SetDataException { ArrayList commandList = (ArrayList) ((FormattedXMLDataIOStyle) CurrentArray.getXMLDataIOStyle()).getFormatCommands(); int nrofIOCmd = commandList.size(); int bytes_...
private void addByteDataToCurrentArray (Locator location, byte[] data, int amount, String endian) throws SetDataException { ArrayList commandList = (ArrayList) ((FormattedXMLDataIOStyle) CurrentArray.getXMLDataIOStyle()).getFormatCommands(); int nrofIOCmd = commandList.size(); int bytes_...
6,005
private void addDataToCurrentArray ( Locator dataLocator, String thisString, DataFormat CurrentDataFormat, int intRadix ) {// this stuff slows down the...
private void addDataToCurrentArray ( Locator dataLocator, String thisString, DataFormat CurrentDataFormat, int intRadix ) {// this stuff slows down the...
6,006
public byte[] getAddress() { return addr; }
public byte[] getAddress() { return (byte[]) addr.clone(); }
6,007
protected void initComponentDefaults(UIDefaults defaults) { Object[] uiDefaults; Color highLight = new Color(249, 247, 246); Color light = new Color(239, 235, 231); Color shadow = new Color(139, 136, 134); Color darkShadow = new Color(16, 16, 16); uiDefaults = new Object[] { "AbstractUndoa...
protected void initComponentDefaults(UIDefaults defaults) { Object[] uiDefaults; Color highLight = new Color(249, 247, 246); Color light = new Color(239, 235, 231); Color shadow = new Color(139, 136, 134); Color darkShadow = new Color(16, 16, 16); uiDefaults = new Object[] { "AbstractUndoa...
6,008
protected void initComponentDefaults(UIDefaults defaults) { Object[] uiDefaults; Color highLight = new Color(249, 247, 246); Color light = new Color(239, 235, 231); Color shadow = new Color(139, 136, 134); Color darkShadow = new Color(16, 16, 16); uiDefaults = new Object[] { "AbstractUndoa...
protected void initComponentDefaults(UIDefaults defaults) { Object[] uiDefaults; Color highLight = new Color(249, 247, 246); Color light = new Color(239, 235, 231); Color shadow = new Color(139, 136, 134); Color darkShadow = new Color(16, 16, 16); uiDefaults = new Object[] { "AbstractUndoa...
6,009
protected void initComponentDefaults(UIDefaults defaults) { Object[] uiDefaults; Color highLight = new Color(249, 247, 246); Color light = new Color(239, 235, 231); Color shadow = new Color(139, 136, 134); Color darkShadow = new Color(16, 16, 16); uiDefaults = new Object[] { "AbstractUndoa...
protected void initComponentDefaults(UIDefaults defaults) { Object[] uiDefaults; Color highLight = new Color(249, 247, 246); Color light = new Color(239, 235, 231); Color shadow = new Color(139, 136, 134); Color darkShadow = new Color(16, 16, 16); uiDefaults = new Object[] { "AbstractUndoa...
6,010
protected void initComponentDefaults(UIDefaults defaults) { Object[] uiDefaults; Color highLight = new Color(249, 247, 246); Color light = new Color(239, 235, 231); Color shadow = new Color(139, 136, 134); Color darkShadow = new Color(16, 16, 16); uiDefaults = new Object[] { "AbstractUndoa...
protected void initComponentDefaults(UIDefaults defaults) { Object[] uiDefaults; Color highLight = new Color(249, 247, 246); Color light = new Color(239, 235, 231); Color shadow = new Color(139, 136, 134); Color darkShadow = new Color(16, 16, 16); uiDefaults = new Object[] { "AbstractUndoa...
6,011
protected void initComponentDefaults(UIDefaults defaults) { Object[] uiDefaults; Color highLight = new Color(249, 247, 246); Color light = new Color(239, 235, 231); Color shadow = new Color(139, 136, 134); Color darkShadow = new Color(16, 16, 16); uiDefaults = new Object[] { "AbstractUndoa...
protected void initComponentDefaults(UIDefaults defaults) { Object[] uiDefaults; Color highLight = new Color(249, 247, 246); Color light = new Color(239, 235, 231); Color shadow = new Color(139, 136, 134); Color darkShadow = new Color(16, 16, 16); uiDefaults = new Object[] { "AbstractUndoa...
6,012
protected void initComponentDefaults(UIDefaults defaults) { Object[] uiDefaults; Color highLight = new Color(249, 247, 246); Color light = new Color(239, 235, 231); Color shadow = new Color(139, 136, 134); Color darkShadow = new Color(16, 16, 16); uiDefaults = new Object[] { "AbstractUndoa...
protected void initComponentDefaults(UIDefaults defaults) { Object[] uiDefaults; Color highLight = new Color(249, 247, 246); Color light = new Color(239, 235, 231); Color shadow = new Color(139, 136, 134); Color darkShadow = new Color(16, 16, 16); uiDefaults = new Object[] { "AbstractUndoa...
6,013
protected void initComponentDefaults(UIDefaults defaults) { Object[] uiDefaults; Color highLight = new Color(249, 247, 246); Color light = new Color(239, 235, 231); Color shadow = new Color(139, 136, 134); Color darkShadow = new Color(16, 16, 16); uiDefaults = new Object[] { "AbstractUndoa...
protected void initComponentDefaults(UIDefaults defaults) { Object[] uiDefaults; Color highLight = new Color(249, 247, 246); Color light = new Color(239, 235, 231); Color shadow = new Color(139, 136, 134); Color darkShadow = new Color(16, 16, 16); uiDefaults = new Object[] { "AbstractUndoa...
6,015
protected void initComponentDefaults(UIDefaults defaults) { Object[] uiDefaults; Color highLight = new Color(249, 247, 246); Color light = new Color(239, 235, 231); Color shadow = new Color(139, 136, 134); Color darkShadow = new Color(16, 16, 16); uiDefaults = new Object[] { "AbstractUndoa...
protected void initComponentDefaults(UIDefaults defaults) { Object[] uiDefaults; Color highLight = new Color(249, 247, 246); Color light = new Color(239, 235, 231); Color shadow = new Color(139, 136, 134); Color darkShadow = new Color(16, 16, 16); uiDefaults = new Object[] { "AbstractUndoa...
6,016
protected void initComponentDefaults(UIDefaults defaults) { Object[] uiDefaults; Color highLight = new Color(249, 247, 246); Color light = new Color(239, 235, 231); Color shadow = new Color(139, 136, 134); Color darkShadow = new Color(16, 16, 16); uiDefaults = new Object[] { "AbstractUndoa...
protected void initComponentDefaults(UIDefaults defaults) { Object[] uiDefaults; Color highLight = new Color(249, 247, 246); Color light = new Color(239, 235, 231); Color shadow = new Color(139, 136, 134); Color darkShadow = new Color(16, 16, 16); uiDefaults = new Object[] { "AbstractUndoa...
6,017
protected void initComponentDefaults(UIDefaults defaults) { Object[] uiDefaults; Color highLight = new Color(249, 247, 246); Color light = new Color(239, 235, 231); Color shadow = new Color(139, 136, 134); Color darkShadow = new Color(16, 16, 16); uiDefaults = new Object[] { "AbstractUndoa...
protected void initComponentDefaults(UIDefaults defaults) { Object[] uiDefaults; Color highLight = new Color(249, 247, 246); Color light = new Color(239, 235, 231); Color shadow = new Color(139, 136, 134); Color darkShadow = new Color(16, 16, 16); uiDefaults = new Object[] { "AbstractUndoa...
6,018
protected void initComponentDefaults(UIDefaults defaults) { Object[] uiDefaults; Color highLight = new Color(249, 247, 246); Color light = new Color(239, 235, 231); Color shadow = new Color(139, 136, 134); Color darkShadow = new Color(16, 16, 16); uiDefaults = new Object[] { "AbstractUndoa...
protected void initComponentDefaults(UIDefaults defaults) { Object[] uiDefaults; Color highLight = new Color(249, 247, 246); Color light = new Color(239, 235, 231); Color shadow = new Color(139, 136, 134); Color darkShadow = new Color(16, 16, 16); uiDefaults = new Object[] { "AbstractUndoa...
6,019
protected void initComponentDefaults(UIDefaults defaults) { Object[] uiDefaults; Color highLight = new Color(249, 247, 246); Color light = new Color(239, 235, 231); Color shadow = new Color(139, 136, 134); Color darkShadow = new Color(16, 16, 16); uiDefaults = new Object[] { "AbstractUndoa...
protected void initComponentDefaults(UIDefaults defaults) { Object[] uiDefaults; Color highLight = new Color(249, 247, 246); Color light = new Color(239, 235, 231); Color shadow = new Color(139, 136, 134); Color darkShadow = new Color(16, 16, 16); uiDefaults = new Object[] { "AbstractUndoa...
6,020
protected void initComponentDefaults(UIDefaults defaults) { Object[] uiDefaults; Color highLight = new Color(249, 247, 246); Color light = new Color(239, 235, 231); Color shadow = new Color(139, 136, 134); Color darkShadow = new Color(16, 16, 16); uiDefaults = new Object[] { "AbstractUndoa...
protected void initComponentDefaults(UIDefaults defaults) { Object[] uiDefaults; Color highLight = new Color(249, 247, 246); Color light = new Color(239, 235, 231); Color shadow = new Color(139, 136, 134); Color darkShadow = new Color(16, 16, 16); uiDefaults = new Object[] { "AbstractUndoa...
6,021
public void toXMLOutputStream ( OutputStream outputstream, Hashtable XMLDeclAttribs, String indent, boolean dontCloseNode, String newNodeNameString,...
public void toXMLOutputStream ( OutputStream outputstream, Hashtable XMLDeclAttribs, String indent, boolean dontCloseNode, String newNodeNameString,...
6,022
public void toXMLOutputStream ( OutputStream outputstream, Hashtable XMLDeclAttribs, String indent, boolean dontCloseNode, String newNodeNameString,...
public void toXMLOutputStream ( OutputStream outputstream, Hashtable XMLDeclAttribs, String indent, boolean dontCloseNode, String newNodeNameString,...
6,023
public void toXMLOutputStream ( OutputStream outputstream, Hashtable XMLDeclAttribs, String indent, boolean dontCloseNode, String newNodeNameString,...
public void toXMLOutputStream ( OutputStream outputstream, Hashtable XMLDeclAttribs, String indent, boolean dontCloseNode, String newNodeNameString,...
6,024
public void toXMLOutputStream ( OutputStream outputstream, Hashtable XMLDeclAttribs, String indent, boolean dontCloseNode, String newNodeNameString,...
public void toXMLOutputStream ( OutputStream outputstream, Hashtable XMLDeclAttribs, String indent, boolean dontCloseNode, String newNodeNameString,...
6,025
private void addNonNull(Component c) { if (c != null) add(c); }
private void addNonNull(Component c, Object constraints) { if (c != null) add(c); }
6,026
private void addNonNull(Component c) { if (c != null) add(c); }
private void addNonNull(Component c) { if (c != null) add(c, constraints); }
6,027
public void setColumnHeader(JViewport h) { if (columnHeader == h) return; JViewport old = columnHeader; removeNonNull(old); columnHeader = h; addNonNull(h); firePropertyChange("columnHeader", old, h); sync(); }
public void setColumnHeader(JViewport h) { if (columnHeader == h) return; JViewport old = columnHeader; removeNonNull(old); columnHeader = h; addNonNull(h, JScrollPane.COLUMN_HEADER); firePropertyChange("columnHeader", old, h); sync(); }
6,028
public void setCorner(String key, Component c) { if (getComponentOrientation() == ComponentOrientation.LEFT_TO_RIGHT) { if (key == LOWER_LEADING_CORNER) key = LOWER_LEFT_CORNER; else if (key == LOWER_TRAILING_CORNER) key = LOWER_RIGHT_CORNER; else if (key == UPP...
public void setCorner(String key, Component c) { if (getComponentOrientation() == ComponentOrientation.LEFT_TO_RIGHT) { if (key == LOWER_LEADING_CORNER) key = LOWER_LEFT_CORNER; else if (key == LOWER_TRAILING_CORNER) key = LOWER_RIGHT_CORNER; else if (key == UPP...
6,029
public void setCorner(String key, Component c) { if (getComponentOrientation() == ComponentOrientation.LEFT_TO_RIGHT) { if (key == LOWER_LEADING_CORNER) key = LOWER_LEFT_CORNER; else if (key == LOWER_TRAILING_CORNER) key = LOWER_RIGHT_CORNER; else if (key == UPP...
public void setCorner(String key, Component c) { if (getComponentOrientation() == ComponentOrientation.LEFT_TO_RIGHT) { if (key == LOWER_LEADING_CORNER) key = LOWER_LEFT_CORNER; else if (key == LOWER_TRAILING_CORNER) key = LOWER_RIGHT_CORNER; else if (key == UPP...
6,030
public void setCorner(String key, Component c) { if (getComponentOrientation() == ComponentOrientation.LEFT_TO_RIGHT) { if (key == LOWER_LEADING_CORNER) key = LOWER_LEFT_CORNER; else if (key == LOWER_TRAILING_CORNER) key = LOWER_RIGHT_CORNER; else if (key == UPP...
public void setCorner(String key, Component c) { if (getComponentOrientation() == ComponentOrientation.LEFT_TO_RIGHT) { if (key == LOWER_LEADING_CORNER) key = LOWER_LEFT_CORNER; else if (key == LOWER_TRAILING_CORNER) key = LOWER_RIGHT_CORNER; else if (key == UPP...
6,031
public void setCorner(String key, Component c) { if (getComponentOrientation() == ComponentOrientation.LEFT_TO_RIGHT) { if (key == LOWER_LEADING_CORNER) key = LOWER_LEFT_CORNER; else if (key == LOWER_TRAILING_CORNER) key = LOWER_RIGHT_CORNER; else if (key == UPP...
public void setCorner(String key, Component c) { if (getComponentOrientation() == ComponentOrientation.LEFT_TO_RIGHT) { if (key == LOWER_LEADING_CORNER) key = LOWER_LEFT_CORNER; else if (key == LOWER_TRAILING_CORNER) key = LOWER_RIGHT_CORNER; else if (key == UPP...
6,032
public void setHorizontalScrollBar(JScrollBar h) { if (horizontalScrollBar == h) return; JScrollBar old = horizontalScrollBar; removeNonNull(old); horizontalScrollBar = h; addNonNull(h); firePropertyChange("horizontalScrollBar", old, h); sync(); if (old != null) { BoundedRang...
public void setHorizontalScrollBar(JScrollBar h) { if (horizontalScrollBar == h) return; JScrollBar old = horizontalScrollBar; removeNonNull(old); horizontalScrollBar = h; addNonNull(h, JScrollPane.HORIZONTAL_SCROLLBAR); firePropertyChange("horizontalScrollBar", old, h); sync(); if (old ...
6,033
public void setRowHeader(JViewport v) { if (rowHeader == v) return; JViewport old = rowHeader; removeNonNull(old); rowHeader = v; addNonNull(v); firePropertyChange("rowHeader", old, v); sync(); }
public void setRowHeader(JViewport v) { if (rowHeader == v) return; JViewport old = rowHeader; removeNonNull(old); rowHeader = v; addNonNull(v, JScrollPane.ROW_HEADER); firePropertyChange("rowHeader", old, v); sync(); }
6,034
public void setVerticalScrollBar(JScrollBar v) { if (verticalScrollBar == v) return; JScrollBar old = verticalScrollBar; removeNonNull(old); verticalScrollBar = v; addNonNull(v); firePropertyChange("verticalScrollBar", old, v); sync(); if (old != null) { BoundedRangeModel...
public void setVerticalScrollBar(JScrollBar v) { if (verticalScrollBar == v) return; JScrollBar old = verticalScrollBar; removeNonNull(old); verticalScrollBar = v; addNonNull(v, JScrollPane.VERTICAL_SCROLLBAR); firePropertyChange("verticalScrollBar", old, v); sync(); if (old != null)...
6,035
public void setViewport(JViewport v) { if (viewport == v) return; JViewport old = viewport; removeNonNull(old); if (old != null) old.removeChangeListener(scrollListener); viewport = v; if (v != null) v.addChangeListener(scrollListener); addNonNull(v); revalidate(); repai...
public void setViewport(JViewport v) { if (viewport == v) return; JViewport old = viewport; removeNonNull(old); if (old != null) old.removeChangeListener(scrollListener); viewport = v; if (v != null) v.addChangeListener(scrollListener); addNonNull(v, JScrollPane.VIEWPORT); ...
6,036
public Locator(Array array) { Log.debug("in Locator(Array)"); parentArray = array; List axisList = parentArray.getAxisList(); /**now, since we KNOW _parentArray is defined * (has to be instanciated via XDF::Array ONLY) * we can proceed to initialize the axis, index positions * to the origin (i...
public Locator(Array array) { Log.debug("in Locator(Array)"); parentArray = array; List axisList = parentArray.getAxisList(); /**now, since we KNOW _parentArray is defined * (has to be instanciated via Array ONLY) * we can proceed to initialize the axis, index positions * to the origin (ie ind...
6,037
private void cvtToPDF() { try { openOutputFile(); // Create the printparameters to be used in the transform of the // input stream PrintParameterList printParms = new PrintParameterList(); printParms.setParameter(PrintObject.ATTR_WORKSTATION_CUST_OBJECT, "/QSYS...
private void cvtToPDF() { try { openOutputFile(); // Create the printparameters to be used in the transform of the // input stream PrintParameterList printParms = new PrintParameterList(); printParms.setParameter(PrintObject.ATTR_WORKSTATION_CUST_OBJECT, "/QSYS...
6,038
private void cvtToText() { java.io.PrintStream dw; try { openOutputFile(); dw = new java.io.PrintStream(fw); // Create an AS400 object. The system name was passed // as the first command line argument. AS400 system = new AS400 (systemName.getText()); String ...
private void cvtToText() { java.io.PrintStream dw; try { openOutputFile(); if (ifs.isSelected()) dw = new java.io.PrintStream(ifsfw); else dw = new java.io.PrintStream(fw); // Create an AS400 object. The system name was passed // as the first command line argument. ...
6,039
private void cvtToText() { java.io.PrintStream dw; try { openOutputFile(); dw = new java.io.PrintStream(fw); // Create an AS400 object. The system name was passed // as the first command line argument. AS400 system = new AS400 (systemName.getText()); String ...
private void cvtToText() { java.io.PrintStream dw; try { openOutputFile(); dw = new java.io.PrintStream(fw); // Create an AS400 object. The system name was passed // as the first command line argument. AS400 system = new AS400 (systemName.getText()); String ...
6,040
public void run() { cvtToText(); }
public void run() { cvtToPDF(); }
6,041
private void jbInit() throws Exception { setIconImage(My5250.tnicon.getImage()); // create ourselves a new wizard wizard = new Wizard(); // create the event handler as being this module wizard.addWizardListener(this); // add our wizard to the frame this.getContentPane().add(wizard...
private void jbInit() throws Exception { setIconImage(My5250.tnicon.getImage()); // create ourselves a new wizard wizard = new Wizard(); // create the event handler as being this module wizard.addWizardListener(this); // add our wizard to the frame this.getContentPane().add(wizard...
6,043
private void jbInit() throws Exception { setIconImage(My5250.tnicon.getImage()); // create ourselves a new wizard wizard = new Wizard(); // create the event handler as being this module wizard.addWizardListener(this); // add our wizard to the frame this.getContentPane().add(wizard...
private void jbInit() throws Exception { setIconImage(My5250.tnicon.getImage()); // create ourselves a new wizard wizard = new Wizard(); // create the event handler as being this module wizard.addWizardListener(this); // add our wizard to the frame this.getContentPane().add(wizard...
6,044
private void jbInit() throws Exception { setIconImage(My5250.tnicon.getImage()); // create ourselves a new wizard wizard = new Wizard(); // create the event handler as being this module wizard.addWizardListener(this); // add our wizard to the frame this.getContentPane().add(wizard...
private void jbInit() throws Exception { setIconImage(My5250.tnicon.getImage()); // create ourselves a new wizard wizard = new Wizard(); // create the event handler as being this module wizard.addWizardListener(this); // add our wizard to the frame this.getContentPane().add(wizard...
6,045
private void jbInit() throws Exception { setIconImage(My5250.tnicon.getImage()); // create ourselves a new wizard wizard = new Wizard(); // create the event handler as being this module wizard.addWizardListener(this); // add our wizard to the frame this.getContentPane().add(wizard...
private void jbInit() throws Exception { setIconImage(My5250.tnicon.getImage()); // create ourselves a new wizard wizard = new Wizard(); // create the event handler as being this module wizard.addWizardListener(this); // add our wizard to the frame this.getContentPane().add(wizard...
6,046
public void nextBegin(WizardEvent e) {// System.out.println(e.getCurrentPage().getName() + " Next Begin"); two.add(statusBar,BorderLayout.SOUTH); }
public void nextBegin(WizardEvent e) {// System.out.println(e.getCurrentPage().getName() + " Next Begin"); if (((String)cvtType.getSelectedItem()).equals( LangTool.getString("spool.toText"))) { twoText.add(statusBar,BorderLayout.SOUTH); e.setNewPage(pageText); } else { twoPDF.add(statusBar,BorderLayout.SOU...
6,047
public void openOutputFile() { try { updateStatus("Opening File"); String suffix = ".txt"; if (cvtType.getSelectedIndex() == 0) suffix = ".pdf"; String fileName = pcPathInfo.getText().trim(); if (email.isSelected()) { File dir = new File(System.getPr...
public void openOutputFile() { try { updateStatus("Opening File"); String suffix = ".txt"; if (cvtType.getSelectedIndex() == 0) suffix = ".pdf"; if (email.isSelected()) { File dir = new File(System.getProperty("user.dir")); File f = File....
6,048
public void openOutputFile() { try { updateStatus("Opening File"); String suffix = ".txt"; if (cvtType.getSelectedIndex() == 0) suffix = ".pdf"; String fileName = pcPathInfo.getText().trim(); if (email.isSelected()) { File dir = new File(System.getPr...
public void openOutputFile() { try { updateStatus("Opening File"); String suffix = ".txt"; if (cvtType.getSelectedIndex() == 0) suffix = ".pdf"; String fileName = pcPathInfo.getText().trim(); if (email.isSelected()) { File dir = new File(System.getPr...
6,049
public void openOutputFile() { try { updateStatus("Opening File"); String suffix = ".txt"; if (cvtType.getSelectedIndex() == 0) suffix = ".pdf"; String fileName = pcPathInfo.getText().trim(); if (email.isSelected()) { File dir = new File(System.getPr...
public void openOutputFile() { try { updateStatus("Opening File"); String suffix = ".txt"; if (cvtType.getSelectedIndex() == 0) suffix = ".pdf"; String fileName = pcPathInfo.getText().trim(); if (email.isSelected()) { File dir = new File(System.getPr...
6,050
public void openOutputFile() { try { updateStatus("Opening File"); String suffix = ".txt"; if (cvtType.getSelectedIndex() == 0) suffix = ".pdf"; String fileName = pcPathInfo.getText().trim(); if (email.isSelected()) { File dir = new File(System.getPr...
public void openOutputFile() { try { updateStatus("Opening File"); String suffix = ".txt"; if (cvtType.getSelectedIndex() == 0) suffix = ".pdf"; String fileName = pcPathInfo.getText().trim(); if (email.isSelected()) { File dir = new File(System.getPr...
6,051
public void openOutputFile() { try { updateStatus("Opening File"); String suffix = ".txt"; if (cvtType.getSelectedIndex() == 0) suffix = ".pdf"; String fileName = pcPathInfo.getText().trim(); if (email.isSelected()) { File dir = new File(System.getPr...
public void openOutputFile() { try { updateStatus("Opening File"); String suffix = ".txt"; if (cvtType.getSelectedIndex() == 0) suffix = ".pdf"; String fileName = pcPathInfo.getText().trim(); if (email.isSelected()) { File dir = new File(System.getPr...
6,052
public void openOutputFile() { try { updateStatus("Opening File"); String suffix = ".txt"; if (cvtType.getSelectedIndex() == 0) suffix = ".pdf"; String fileName = pcPathInfo.getText().trim(); if (email.isSelected()) { File dir = new File(System.getPr...
public void openOutputFile() { try { updateStatus("Opening File"); String suffix = ".txt"; if (cvtType.getSelectedIndex() == 0) suffix = ".pdf"; String fileName = pcPathInfo.getText().trim(); if (email.isSelected()) { File dir = new File(System.getPr...
6,053
private JPanel pageOne () throws Exception { contentPane = new JPanel(); contentPane.setLayout(new BorderLayout()); statusBar.setText(" "); statusBar.setBorder(BorderFactory.createEtchedBorder()); spoolPanel.setLayout(new BorderLayout()); labelSpooledFile.setText(LangTool.getString("spo...
private JPanel pageOne () throws Exception { contentPane = new JPanel(); contentPane.setLayout(new BorderLayout()); statusBar.setText(" "); statusBar.setBorder(BorderFactory.createEtchedBorder()); spoolPanel.setLayout(new BorderLayout()); labelSpooledFile.setText(LangTool.getString("spo...
6,054
private JPanel pageOne () throws Exception { contentPane = new JPanel(); contentPane.setLayout(new BorderLayout()); statusBar.setText(" "); statusBar.setBorder(BorderFactory.createEtchedBorder()); spoolPanel.setLayout(new BorderLayout()); labelSpooledFile.setText(LangTool.getString("spo...
private JPanel pageOne () throws Exception { contentPane = new JPanel(); contentPane.setLayout(new BorderLayout()); statusBar.setText(" "); statusBar.setBorder(BorderFactory.createEtchedBorder()); spoolPanel.setLayout(new BorderLayout()); labelSpooledFile.setText(LangTool.getString("spo...
6,055
private JPanel pageOne () throws Exception { contentPane = new JPanel(); contentPane.setLayout(new BorderLayout()); statusBar.setText(" "); statusBar.setBorder(BorderFactory.createEtchedBorder()); spoolPanel.setLayout(new BorderLayout()); labelSpooledFile.setText(LangTool.getString("spo...
private JPanel pageOne () throws Exception { contentPane = new JPanel(); contentPane.setLayout(new BorderLayout()); statusBar.setText(" "); statusBar.setBorder(BorderFactory.createEtchedBorder()); spoolPanel.setLayout(new BorderLayout()); labelSpooledFile.setText(LangTool.getString("spo...
6,056
private JPanel pageOne () throws Exception { contentPane = new JPanel(); contentPane.setLayout(new BorderLayout()); statusBar.setText(" "); statusBar.setBorder(BorderFactory.createEtchedBorder()); spoolPanel.setLayout(new BorderLayout()); labelSpooledFile.setText(LangTool.getString("spo...
private JPanel pageOne () throws Exception { contentPane = new JPanel(); contentPane.setLayout(new BorderLayout()); statusBar.setText(" "); statusBar.setBorder(BorderFactory.createEtchedBorder()); spoolPanel.setLayout(new BorderLayout()); labelSpooledFile.setText(LangTool.getString("spo...
6,057
public void run() { statusBar.setText(stat); }
public void run() { cvtToText(); }
6,059
void startNewSession() { int result = 2; String sel = ""; if (sessionArgs != null && !sessionArgs[0].startsWith("-")) sel = sessionArgs[0]; else { sel = getDefaultSession(); } Sessions sess = manager.getSessions(); if (sel != null && sess.getCount() == 0 ...
void startNewSession() { int result = 2; String sel = ""; if (sessionArgs != null && !sessionArgs[0].startsWith("-")) sel = sessionArgs[0]; else { sel = getDefaultSession(); } Sessions sess = manager.getSessions(); if (sel != null && sess.getCount() == 0 ...
6,060
private Object invokeCommon(Remote obj, Method method, Object[] params, int opnum, long hash) throws Exception { UnicastConnection conn; try { conn = manager.getConnection(); } catch (IOException e1) { throw new RemoteException("connection failed to host: " + manager.serverName, e1); } ObjectOutputStream out; DataOut...
private Object invokeCommon(Remote obj, Method method, Object[] params, int opnum, long hash) throws Exception { UnicastConnection conn; try { conn = manager.getConnection(); } catch (IOException e1) { throw new RemoteException("connection failed to host: " + manager.serverName, e1); } ObjectOutputStream out; DataOut...
6,061
private Object invokeCommon(Remote obj, Method method, Object[] params, int opnum, long hash) throws Exception { UnicastConnection conn; try { conn = manager.getConnection(); } catch (IOException e1) { throw new RemoteException("connection failed to host: " + manager.serverName, e1); } ObjectOutputStream out; DataOut...
private Object invokeCommon(Remote obj, Method method, Object[] params, int opnum, long hash) throws Exception { UnicastConnection conn; try { conn = manager.getConnection(); } catch (IOException e1) { throw new RemoteException("connection failed to host: " + manager.serverName, e1); } ObjectOutputStream out; DataOut...
6,062
private Object invokeCommon(Remote obj, Method method, Object[] params, int opnum, long hash) throws Exception { UnicastConnection conn; try { conn = manager.getConnection(); } catch (IOException e1) { throw new RemoteException("connection failed to host: " + manager.serverName, e1); } ObjectOutputStream out; DataOut...
private Object invokeCommon(Remote obj, Method method, Object[] params, int opnum, long hash) throws Exception { UnicastConnection conn; try { conn = manager.getConnection(); } catch (IOException e1) { throw new RemoteException("connection failed to host: " + manager.serverName, e1); } ObjectOutputStream out; DataOut...
6,063