bugged stringlengths 6 599k | fixed stringlengths 6 40.8M | __index_level_0__ int64 0 3.24M |
|---|---|---|
public void setViewportBorder(Border b) { Border old = viewportBorder; viewportBorder = b; firePropertyChange(VIEWPORT_BORDER_CHANGED_PROPERTY, old, b); sync(); } | public void setViewportBorder(Border b) { Border old = viewportBorder; viewportBorder = b; firePropertyChange("viewportBorder", old, b); sync(); } | 4,731 |
public void setWheelScrollingEnabled(boolean b) { boolean old = wheelScrollingEnabled; wheelScrollingEnabled = b; firePropertyChange(WHEEL_SCROLLING_ENABLED_CHANGED_PROPERTY, old, b); sync(); } | public void setWheelScrollingEnabled(boolean b) { boolean old = wheelScrollingEnabled; wheelScrollingEnabled = b; firePropertyChange("wheelScrollingEnabled", old, b); sync(); } | 4,732 |
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... | 4,734 |
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... | 4,735 |
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... | 4,736 |
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... | 4,737 |
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... | 4,738 |
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... | 4,739 |
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... | 4,740 |
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... | 4,741 |
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... | 4,742 |
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... | 4,743 |
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... | 4,744 |
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... | 4,745 |
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... | 4,746 |
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... | 4,747 |
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... | 4,748 |
protected Document createDefaultModel() { // subclassed to swallow newlines return new PlainDocument() { public void insertString(int offset, String str, AttributeSet a) throws BadLocationException { if (str.indexOf('\n') == -1) super.insertString(offset, str, a); ... | protected Document createDefaultModel() { // subclassed to swallow newlines return new PlainDocument() { public void insertString(int offset, String str, AttributeSet a) throws BadLocationException { if (str != null && str.indexOf('\n') == -1) super.insertString(offse... | 4,749 |
public void insertString(int offset, String str, AttributeSet a) throws BadLocationException { if (str.indexOf('\n') == -1) super.insertString(offset, str, a); } | public void insertString(int offset, String str, AttributeSet a) throws BadLocationException { if (str != null && str.indexOf('\n') == -1) super.insertString(offset, str, a); } | 4,750 |
public Object clone() throws CloneNotSupportedException { throw new CloneNotSupportedException(); } | public Object clone() throws CloneNotSupportedException { return super.clone(); } | 4,751 |
public SignatureException(String msg) { super(msg); } | public SignatureException() { super(msg); } | 4,752 |
public SignatureException(String msg) { super(msg); } | public SignatureException(String msg) { } | 4,753 |
public TN5250jMultiSelectList() { this(4); } | public TN5250jMultiSelectList() { this(4); } | 4,754 |
public void setListData(final Vector listData) { mainList.setListData(listData); updateView(); } | public void setListData(final Object[] listData) { mainList.setListData(listData); updateView(); } | 4,755 |
public void setFixedCellWidth(int w) { if (fixedCellWidth == w) return; int old = fixedCellWidth; fixedCellWidth = w; firePropertyChange("fixedCellWidth", old, w); } | public void setFixedCellWidth(int w) { if (fixedCellWidth == w) return; int old = fixedCellWidth; fixedCellWidth = w; firePropertyChange("fixedCellWidth", old, w); } | 4,756 |
public void draw(Shape shape, AffineTransform tx, Color color, int mode) { draw(shape, tx, convertColor(color), mode); } | public void draw(Shape shape, AffineTransform tx, Color color, int mode) { draw(shape, tx, convertColor(color), mode); } | 4,757 |
public void fill(Shape shape, AffineTransform trans, Color color, int mode) { final int c = convertColor(color); final double tx; final double ty; final Shape txShape; if (trans == null) { tx = 0.0; ty = 0.0; txShape = shape; } else if (trans.getType() == AffineTransform.TYPE_IDENTITY) { tx = 0.0; ty =... | public void fill(Shape shape, AffineTransform trans, Color color, int mode) { final int c = convertColor(color); final double tx; final double ty; final Shape txShape; if (trans == null) { tx = 0.0; ty = 0.0; txShape = shape; } else if (trans.getType() == AffineTransform.TYPE_IDENTITY) { tx = 0.0; ty =... | 4,758 |
public void fill(Shape shape, AffineTransform trans, Color color, int mode) { final int c = convertColor(color); final double tx; final double ty; final Shape txShape; if (trans == null) { tx = 0.0; ty = 0.0; txShape = shape; } else if (trans.getType() == AffineTransform.TYPE_IDENTITY) { tx = 0.0; ty =... | public void fill(Shape shape, AffineTransform trans, Color color, int mode) { final int c = convertColor(color); final double tx; final double ty; final Shape txShape; if (trans == null) { tx = 0.0; ty = 0.0; txShape = shape; } else if (trans.getType() == AffineTransform.TYPE_IDENTITY) { tx = 0.0; ty =... | 4,759 |
public void fill(Shape shape, AffineTransform trans, Color color, int mode) { final int c = convertColor(color); final double tx; final double ty; final Shape txShape; if (trans == null) { tx = 0.0; ty = 0.0; txShape = shape; } else if (trans.getType() == AffineTransform.TYPE_IDENTITY) { tx = 0.0; ty =... | public void fill(Shape shape, AffineTransform trans, Color color, int mode) { final int c = convertColor(color); final double tx; final double ty; final Shape txShape; if (trans == null) { tx = 0.0; ty = 0.0; txShape = shape; } else if (trans.getType() == AffineTransform.TYPE_IDENTITY) { tx = 0.0; ty =... | 4,760 |
public void fill(Shape shape, AffineTransform trans, Color color, int mode) { final int c = convertColor(color); final double tx; final double ty; final Shape txShape; if (trans == null) { tx = 0.0; ty = 0.0; txShape = shape; } else if (trans.getType() == AffineTransform.TYPE_IDENTITY) { tx = 0.0; ty =... | public void fill(Shape shape, AffineTransform trans, Color color, int mode) { final int c = convertColor(color); final double tx; final double ty; final Shape txShape; if (trans == null) { tx = 0.0; ty = 0.0; txShape = shape; } else if (trans.getType() == AffineTransform.TYPE_IDENTITY) { tx = 0.0; ty =... | 4,761 |
public InstantiationError() { super(); } | public InstantiationError() { super(); } | 4,762 |
public Dimension getMaximumSize() { return getPreferredSize(); } | public Dimension getMaximumSize() { return MAXIMUM_SIZE; } | 4,764 |
public Dimension getMinimumSize() { return getPreferredSize(); } | public Dimension getMinimumSize() { return MINIMUM_SIZE; } | 4,765 |
public void dump (byte[] abyte0) { try { System.out.print("\n Buffer Dump of data from AS400: "); dw.write("\r\n Buffer Dump of data from AS400: ".getBytes()); StringBuffer h = new StringBuffer(); for (int x = 0; x < abyte0.length; x++) { if (x % 16 == 0) { ... | public void dump (byte[] abyte0) { try { System.out.print("\n Buffer Dump of data from AS400: "); dw.write("\r\n Buffer Dump of data from AS400: ".getBytes()); StringBuffer h = new StringBuffer(); for (int x = 0; x < abyte0.length; x++) { if (x % 16 == 0) { ... | 4,766 |
public JApplet() { frameInit(); } | public JApplet() { super.setLayout(new BorderLayout(1, 1)); getRootPane(); } | 4,767 |
public JRootPane createRootPane() { return new JRootPane(); } | protected JRootPane createRootPane() { return new JRootPane(); } | 4,768 |
public void setRootPane(JRootPane root) { if (rootPane != null) remove(rootPane); rootPane = root; add(rootPane, BorderLayout.CENTER); } | protected void setRootPane(JRootPane root) { if (rootPane != null) remove(rootPane); rootPane = root; add(rootPane, BorderLayout.CENTER); } | 4,769 |
public void toXDFOutputStream ( OutputStream outputstream, Hashtable XMLDeclAttribs, String indent, boolean dontCloseNode ) { super.toXDFOutputSt... | public void toXDFOutputStream ( OutputStream outputstream, Hashtable XMLDeclAttribs, String indent, boolean dontCloseNode ) { super.toXDFOutputSt... | 4,772 |
public void toXDFOutputStream ( OutputStream outputstream, Hashtable XMLDeclAttribs, String indent, boolean dontCloseNode ) { super.toXDFOutputSt... | public void toXDFOutputStream ( OutputStream outputstream, Hashtable XMLDeclAttribs, String indent, boolean dontCloseNode ) { super.toXDFOutputSt... | 4,773 |
public NoSuchProtocolException(String message) { super(message); } | public NoSuchProtocolException(String message) { super(message); } | 4,774 |
public Object getValueAt(int row, int col) { if (col == 0) return getPropValue(row,null); if (col == 1) return getPropValue(row,"0"); if (col == 2) { if (getPropValue(row,null).equals(props.getProperty("emul.default",""))) return new Boolean(true); ... | public Object getValueAt(int row, int col) { if (col == 0) return getPropValue(row,null); if (col == 1) return getPropValue(row,"0"); if (col == 2) { if (getPropValue(row,null).equals(props.getProperty("emul.default",""))) return new Boolean(true); ... | 4,775 |
public Object getValueAt(int row, int col) { if (col == 0) return getPropValue(row,null); if (col == 1) return getPropValue(row,"0"); if (col == 2) { if (getPropValue(row,null).equals(props.getProperty("emul.default",""))) return new Boolean(true); ... | public Object getValueAt(int row, int col) { if (col == 0) return getPropValue(row,null); if (col == 1) return getPropValue(row,"0"); if (col == 2) { if (getPropValue(row,null).equals(props.getProperty("emul.default",""))) return new Boolean(true); ... | 4,776 |
public Object getValueAt(int row, int col) { if (col == 0) return getPropValue(row,null); if (col == 1) return getPropValue(row,"0"); if (col == 2) { if (getPropValue(row,null).equals(props.getProperty("emul.default",""))) return new Boolean(true); ... | public Object getValueAt(int row, int col) { if (col == 0) return getPropValue(row,null); if (col == 1) return getPropValue(row,"0"); if (col == 2) { if (getPropValue(row,null).equals(props.getProperty("emul.default",""))) return new Boolean(true); ... | 4,777 |
public Object getValueAt(int row, int col) { if (col == 0) return getPropValue(row,null); if (col == 1) return getPropValue(row,"0"); if (col == 2) { if (getPropValue(row,null).equals(props.getProperty("emul.default",""))) return new Boolean(true); ... | public Object getValueAt(int row, int col) { if (col == 0) return getPropValue(row,null); if (col == 1) return getPropValue(row,"0"); if (col == 2) { if (getPropValue(row,null).equals(props.getProperty("emul.default",""))) return new Boolean(true); ... | 4,778 |
private void doActionConnect () { int selectedRow = rowSM.getMinSelectionIndex(); connectKey = (String)ctm.getValueAt(selectedRow,0); saveProps(); setVisible(false); } | private void doActionConnect () { int selectedRow = rowSM.getMinSelectionIndex(); connectKey = (String)ctm.getValueAt(selectedRow,0); saveProps(); try {Thread.sleep(500);}catch(java.lang.InterruptedException ie) {} this.dispose(); } | 4,780 |
void jbInit() throws Exception { // make it non resizable setResizable(true); this.setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE); // create some reusable borders and layouts Border etchedBorder = BorderFactory.createEtchedBorder(); BorderLayout borderLayout = new BorderLayout(); ... | void jbInit() throws Exception { // make it non resizable setResizable(true); this.setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE); // create some reusable borders and layouts Border etchedBorder = BorderFactory.createEtchedBorder(); BorderLayout borderLayout = new BorderLayout(); ... | 4,781 |
void jbInit() throws Exception { // make it non resizable setResizable(true); this.setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE); // create some reusable borders and layouts Border etchedBorder = BorderFactory.createEtchedBorder(); BorderLayout borderLayout = new BorderLayout(); ... | void jbInit() throws Exception { // make it non resizable setResizable(true); this.setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE); // create some reusable borders and layouts Border etchedBorder = BorderFactory.createEtchedBorder(); BorderLayout borderLayout = new BorderLayout(); ... | 4,782 |
void jbInit() throws Exception { // make it non resizable setResizable(true); this.setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE); // create some reusable borders and layouts Border etchedBorder = BorderFactory.createEtchedBorder(); BorderLayout borderLayout = new BorderLayout(); ... | void jbInit() throws Exception { // make it non resizable setResizable(true); this.setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE); // create some reusable borders and layouts Border etchedBorder = BorderFactory.createEtchedBorder(); BorderLayout borderLayout = new BorderLayout(); ... | 4,783 |
void jbInit() throws Exception { // make it non resizable setResizable(true); this.setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE); // create some reusable borders and layouts Border etchedBorder = BorderFactory.createEtchedBorder(); BorderLayout borderLayout = new BorderLayout(); ... | void jbInit() throws Exception { // make it non resizable setResizable(true); this.setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE); // create some reusable borders and layouts Border etchedBorder = BorderFactory.createEtchedBorder(); BorderLayout borderLayout = new BorderLayout(); ... | 4,784 |
void jbInit() throws Exception { // make it non resizable setResizable(true); this.setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE); // create some reusable borders and layouts Border etchedBorder = BorderFactory.createEtchedBorder(); BorderLayout borderLayout = new BorderLayout(); ... | void jbInit() throws Exception { // make it non resizable setResizable(true); this.setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE); // create some reusable borders and layouts Border etchedBorder = BorderFactory.createEtchedBorder(); BorderLayout borderLayout = new BorderLayout(); ... | 4,785 |
protected void displayInfo(KeyEvent e, String s){ String charString, keyCodeString, modString, tmpString,isString,locString; char c = e.getKeyChar(); int keyCode = e.getKeyCode(); int modifiers = e.getModifiers();// int location = e.getKeyLocation(); if (Character.isISOC... | protected void displayInfo(KeyEvent e, String s){ String charString, keyCodeString, modString, tmpString,isString,locString; char c = e.getKeyChar(); int keyCode = e.getKeyCode(); int modifiers = e.getModifiers();// int location = e.getKeyLocation(); if (Character.isISOC... | 4,786 |
private void setKeyDescription(int index) { // This try and catch is to fix a problem in JDK1.4-betas try { if (!macros && !special) { KeyDescription kd = (KeyDescription)lm.getElementAt(index); strokeDesc.setText(mapper.getKeyStrokeDesc(mnemonicData[kd.getIndex()])); ... | private void setKeyDescription(int index) { // This try and catch is to fix a problem in JDK1.4-betas try { if (!macros && !special) { KeyDescription kd = (KeyDescription)lm.getElementAt(index); strokeDesc.setText(mapper.getKeyStrokeDesc(mnemonicData[kd.getIndex()])); ... | 4,787 |
private void setNewKeyStrokes(KeyEvent ke) { if (!macros && !special) { int index = ((KeyDescription)functions.getSelectedValue()).getIndex(); if (isLinux) mapper.setKeyStroke(mnemonicData[index],ke,isAltGr); else mapper.setKeyStroke(mnemonicData[index],ke); ... | private void setNewKeyStrokes(KeyEvent ke) { if (!macros && !special) { int index = ((KeyDescription)functions.getSelectedValue()).getIndex(); if (isLinux) mapper.setKeyStroke(mnemonicData[index],ke,isAltGr); else mapper.setKeyStroke(mnemonicData[index],ke); ... | 4,788 |
public void setFieldHighlighted(ScreenField sf) { int pos = sf.startPos(); int x = sf.length; int na = sf.getHighlightedAttr(); while (x-- > 0) { screen[pos].setAttribute(na); setDirty(pos++); }// updateImage(dirty); } | updateImage(dirty); updateImage(dirty); updateImage(dirty); publicupdateImage(dirty); voidupdateImage(dirty); setFieldHighlighted(ScreenFieldupdateImage(dirty); sf)updateImage(dirty); {updateImage(dirty); updateImage(dirty); updateImage(dirty); updateImage(dirty); updateImage(dirty); updateImage(dirty); intupdateImage(... | 4,790 |
public long getBlockGroupNr() { if(getRevLevel()==Ext2Constants.EXT2_DYNAMIC_REV) return Ext2Utils.get16(data, 90); else return 0; } | public long getBlockGroupNr() { if(getRevLevel()==Ext2Constants.EXT2_DYNAMIC_REV) return Ext2Utils.get16(data, 90); else return 0; } | 4,791 |
public long getFreeBlocksCount() { return Ext2Utils.get32(data, 12); } | public long getFreeBlocksCount() { return Ext2Utils.get32(data, 12); } | 4,792 |
public long getFreeInodesCount() { return Ext2Utils.get32(data, 16); } | public long getFreeInodesCount() { return Ext2Utils.get32(data, 16); } | 4,793 |
public int getState() { return Ext2Utils.get16(data, 58); } | public int getState() { return Ext2Utils.get16(data, 58); } | 4,794 |
public long getWTime() { return Ext2Utils.get32(data, 48); } | public long getWTime() { return Ext2Utils.get32(data, 48); } | 4,795 |
public void setBlockGroupNr(int i) { Ext2Utils.set16(data, 90, i); setDirty(true); } | public void setBlockGroupNr(int i) { Ext2Utils.set16(data, 90, i); setDirty(true); } | 4,796 |
public void setFreeBlocksCount(long count) { Ext2Utils.set32(data, 12, count); setDirty(true); } | public void setFreeBlocksCount(long count) { Ext2Utils.set32(data, 12, count); setDirty(true); } | 4,797 |
public void setFreeInodesCount(long count) { Ext2Utils.set32(data, 16, count); setDirty(true); } | public void setFreeInodesCount(long count) { Ext2Utils.set32(data, 16, count); setDirty(true); } | 4,798 |
public void setState(int state) { Ext2Utils.set16(data, 58, state); setDirty(true); } | public void setState(int state) { Ext2Utils.set16(data, 58, state); setDirty(true); } | 4,799 |
public void setWTime(long time) { Ext2Utils.set32(data, 48, time); setDirty(true); } | public void setWTime(long time) { Ext2Utils.set32(data, 48, time); setDirty(true); } | 4,800 |
public void update() throws IOException { if(isDirty()) { log.debug("Updating superblock copies"); byte[] oldData; //update the main copy if(getFirstDataBlock()==0) { oldData=fs.getBlock(0); //the block size is an integer multiply of 1024, and if getFirstDataBlock==0, it's //at least 2048 bytes ... | public void update() throws IOException { if(isDirty()) { log.debug("Updating superblock copies"); byte[] oldData; //update the main copy if(getFirstDataBlock()==0) { oldData=fs.getBlock(0); //the block size is an integer multiply of 1024, and if getFirstDataBlock==0, it's //at least 2048 bytes ... | 4,801 |
public static synchronized double random() { if (rand == null) rand = new Random(); return rand.nextDouble(); } | public static synchronized double random() { if (rand == null) rand = new Random(); return rand.nextDouble(); } | 4,802 |
public void paintIcon(Component c, Graphics g, int x, int y) { g.translate(x, y); Color saved = g.getColor(); // Should be purple. g.setColor(Color.RED); g.fillOval(0, 0, iconSize, iconSize); g.setColor(Color.BLACK); g.drawOval(16, 6, 4, 4); Polygon bottomI = new Polygon(new int[] { 15, 15, 13, 13, 23, 23, 2... | public void paintIcon(Component c, Graphics g, int x, int y) { g.translate(x, y); Color saved = g.getColor(); // Should be purple. g.setColor(Color.RED); g.fillOval(0, 0, iconSize, iconSize); g.setColor(Color.BLACK); g.drawOval(16, 6, 4, 4); Polygon bottomI = new Polygon(new int[] { 15, 15, 13, 13, 23, 23, 2... | 4,803 |
public void paintIcon(Component c, Graphics g, int x, int y) { g.translate(x, y); Color saved = g.getColor(); g.setColor(Color.GREEN); g.fillRect(0, 0, iconSize, iconSize); g.setColor(Color.BLACK); g.drawOval(11, 2, 16, 16); g.drawOval(14, 5, 10, 10); g.setColor(Color.GREEN); g.fillRect(0, 10, iconSize, icon... | public void paintIcon(Component c, Graphics g, int x, int y) { g.translate(x, y); Color saved = g.getColor(); g.setColor(Color.GREEN); g.fillRect(0, 0, iconSize, iconSize); g.setColor(Color.BLACK); g.drawOval(11, 2, 16, 16); g.drawOval(14, 5, 10, 10); g.setColor(Color.GREEN); g.fillRect(0, 10, iconSize, icon... | 4,804 |
public void paintIcon(Component c, Graphics g, int x, int y) { g.translate(x, y); Color saved = g.getColor(); g.setColor(Color.GREEN); g.fillRect(0, 0, iconSize, iconSize); g.setColor(Color.BLACK); g.drawOval(11, 2, 16, 16); g.drawOval(14, 5, 10, 10); g.setColor(Color.GREEN); g.fillRect(0, 10, iconSize, icon... | public void paintIcon(Component c, Graphics g, int x, int y) { g.translate(x, y); Color saved = g.getColor(); g.setColor(Color.GREEN); g.fillRect(0, 0, iconSize, iconSize); g.setColor(Color.BLACK); g.drawOval(11, 2, 16, 16); g.drawOval(14, 5, 10, 10); g.setColor(Color.GREEN); g.fillRect(0, 10, iconSize, icon... | 4,805 |
public void actionPerformed(ActionEvent e) { Object value = new Integer(JOptionPane.CLOSED_OPTION); Object[] options = optionPane.getOptions(); if (options != null) value = new Integer(buttonIndex); else { String text = ((JButton) e.getSource()).getText(); if (text.equals(OK_STRING... | public void actionPerformed(ActionEvent e) { Object value = new Integer(JOptionPane.CLOSED_OPTION); Object[] options = optionPane.getOptions(); if (options != null) value = new Integer(buttonIndex); else { String text = ((JButton) e.getSource()).getText(); if (text.equals(OK_STRING... | 4,806 |
public int getIconHeight() { return iconSize; } | public int getIconHeight() { return ICON_SIZE; } | 4,807 |
public int getIconWidth() { return iconSize; } | public int getIconWidth() { return ICON_SIZE; } | 4,808 |
public void propertyChange(PropertyChangeEvent e) { if (e.getPropertyName().equals(JOptionPane.ICON_PROPERTY) || e.getPropertyName().equals(JOptionPane.MESSAGE_TYPE_PROPERTY)) addIcon(messageAreaContainer); else if (e.getPropertyName().equals(JOptionPane.INITIAL_SELECTION_VALUE_PROPERTY)) rese... | public void propertyChange(PropertyChangeEvent e) { if (e.getPropertyName().equals(JOptionPane.ICON_PROPERTY) || e.getPropertyName().equals(JOptionPane.MESSAGE_TYPE_PROPERTY)) addIcon(messageAreaContainer); else if (e.getPropertyName().equals(JOptionPane.INITIAL_SELECTION_VALUE_PROPERTY)) rese... | 4,809 |
public void propertyChange(PropertyChangeEvent e) { if (e.getPropertyName().equals(JOptionPane.ICON_PROPERTY) || e.getPropertyName().equals(JOptionPane.MESSAGE_TYPE_PROPERTY)) addIcon(messageAreaContainer); else if (e.getPropertyName().equals(JOptionPane.INITIAL_SELECTION_VALUE_PROPERTY)) rese... | public void propertyChange(PropertyChangeEvent e) { if (e.getPropertyName().equals(JOptionPane.ICON_PROPERTY) || e.getPropertyName().equals(JOptionPane.MESSAGE_TYPE_PROPERTY)) addIcon(messageAreaContainer); else if (e.getPropertyName().equals(JOptionPane.INITIAL_SELECTION_VALUE_PROPERTY)) rese... | 4,810 |
public void propertyChange(PropertyChangeEvent e) { if (e.getPropertyName().equals(JOptionPane.ICON_PROPERTY) || e.getPropertyName().equals(JOptionPane.MESSAGE_TYPE_PROPERTY)) addIcon(messageAreaContainer); else if (e.getPropertyName().equals(JOptionPane.INITIAL_SELECTION_VALUE_PROPERTY)) rese... | public void propertyChange(PropertyChangeEvent e) { if (e.getPropertyName().equals(JOptionPane.ICON_PROPERTY) || e.getPropertyName().equals(JOptionPane.MESSAGE_TYPE_PROPERTY)) addIcon(messageAreaContainer); else if (e.getPropertyName().equals(JOptionPane.INITIAL_SELECTION_VALUE_PROPERTY)) rese... | 4,811 |
protected void addMessageComponents(Container container, GridBagConstraints cons, Object msg, int maxll, boolean internallyCreated) { if (msg == null) return; hasCustomComponents = internallyCreated; if (msg instanceof Object[]) ... | protected void addMessageComponents(Container container, GridBagConstraints cons, Object msg, int maxll, boolean internallyCreated) { if (msg == null) return; hasCustomComponents = internallyCreated; if (msg instanceof Object[]) ... | 4,813 |
protected void addMessageComponents(Container container, GridBagConstraints cons, Object msg, int maxll, boolean internallyCreated) { if (msg == null) return; hasCustomComponents = internallyCreated; if (msg instanceof Object[]) ... | protected void addMessageComponents(Container container, GridBagConstraints cons, Object msg, int maxll, boolean internallyCreated) { if (msg == null) return; hasCustomComponents = internallyCreated; if (msg instanceof Object[]) ... | 4,814 |
protected void burstStringInto(Container c, String d, int maxll) { if (d == null || c == null) return; int newlineIndex = d.indexOf('\n'); String line; String remainder; if (newlineIndex >= 0 && newlineIndex < maxll) { line = d.substring(0, newlineIndex); remainder = d.substrin... | protected void burstStringInto(Container c, String d, int maxll) { if (d == null || c == null) return; int newlineIndex = d.indexOf('\n'); String line; String remainder; if (newlineIndex >= 0 && newlineIndex < maxll) { line = d.substring(0, newlineIndex); remainder = d.substrin... | 4,815 |
protected void burstStringInto(Container c, String d, int maxll) { if (d == null || c == null) return; int newlineIndex = d.indexOf('\n'); String line; String remainder; if (newlineIndex >= 0 && newlineIndex < maxll) { line = d.substring(0, newlineIndex); remainder = d.substrin... | protected void burstStringInto(Container c, String d, int maxll) { if (d == null || c == null) return; int newlineIndex = d.indexOf('\n'); String line; String remainder; if (newlineIndex >= 0 && newlineIndex < maxll) { line = d.substring(0, newlineIndex); remainder = d.substrin... | 4,816 |
protected Container createSeparator() { // FIXME: Figure out what this method is supposed to return and where // this should be added to the OptionPane. return null; } | protected Container createSeparator() { // FIXME: Figure out what this method is supposed to return and where // this should be added to the OptionPane. return null; } | 4,819 |
protected Object[] getButtons() { if (optionPane.getOptions() != null) return optionPane.getOptions(); switch (optionPane.getOptionType()) { case JOptionPane.YES_NO_OPTION: return new Object[] { YES_STRING, NO_STRING }; case JOptionPane.YES_NO_CANCEL_OPTION: return new Object[] { YES_STRING... | protected Object[] getButtons() { if (optionPane.getOptions() != null) return optionPane.getOptions(); switch (optionPane.getOptionType()) { case JOptionPane.YES_NO_OPTION: return new Object[] { YES_STRING, NO_STRING }; case JOptionPane.YES_NO_CANCEL_OPTION: return new Object[] { YES_STRING... | 4,820 |
protected void installComponents() { // reset it. hasCustomComponents = false; Container msg = createMessageArea(); if (msg != null) { ((JComponent) msg).setBorder(messageBorder); msg.setForeground(messageForeground); messageAreaContainer = msg; optionPane.add(msg); } // FIXME: Figure out if... | protected void installComponents() { // reset it. hasCustomComponents = false; Container msg = createMessageArea(); if (msg != null) { ((JComponent) msg).setBorder(messageBorder); msg.setForeground(messageForeground); messageAreaContainer = msg; optionPane.add(msg); } // FIXME: Figure out if... | 4,821 |
protected void installComponents() { // reset it. hasCustomComponents = false; Container msg = createMessageArea(); if (msg != null) { ((JComponent) msg).setBorder(messageBorder); msg.setForeground(messageForeground); messageAreaContainer = msg; optionPane.add(msg); } // FIXME: Figure out if... | protected void installComponents() { // reset it. hasCustomComponents = false; Container msg = createMessageArea(); if (msg != null) { ((JComponent) msg).setBorder(messageBorder); msg.setForeground(messageForeground); messageAreaContainer = msg; optionPane.add(msg); } // FIXME: Figure out if the separator... | 4,822 |
protected void installComponents() { // reset it. hasCustomComponents = false; Container msg = createMessageArea(); if (msg != null) { ((JComponent) msg).setBorder(messageBorder); msg.setForeground(messageForeground); messageAreaContainer = msg; optionPane.add(msg); } // FIXME: Figure out if... | protected void installComponents() { // reset it. hasCustomComponents = false; Container msg = createMessageArea(); if (msg != null) { ((JComponent) msg).setBorder(messageBorder); msg.setForeground(messageForeground); messageAreaContainer = msg; optionPane.add(msg); } // FIXME: Figure out if... | 4,823 |
protected void installDefaults() { LookAndFeel.installColorsAndFont(optionPane, "OptionPane.background", "OptionPane.foreground", "OptionPane.font"); LookAndFeel.installBorder(optionPane, "OptionPane.border"); optionPane.setOpaque(true)... | protected void installDefaults() { LookAndFeel.installColorsAndFont(optionPane, "OptionPane.background", "OptionPane.foreground", "OptionPane.font"); LookAndFeel.installBorder(optionPane, "OptionPane.border"); optionPane.setOpaque(true)... | 4,824 |
protected void installKeyboardActions() throws NotImplementedException { // FIXME: implement. } | protected void installKeyboardActions() { // FIXME: implement. } | 4,825 |
protected void installKeyboardActions() throws NotImplementedException { // FIXME: implement. } | Object[] bindings = (Object[]) SharedUIDefaults.get("OptionPane.windowBindings"); InputMap inputMap = LookAndFeel.makeComponentInputMap(optionPane, bindings); SwingUtilities.replaceUIInputMap(optionPane, JComponent.WHEN_IN_FOCUSED_WINDOW, inputMap); SwingUtilities.replaceUIActionMap(optionPane, getActionMap()); Obj... | 4,826 |
protected void uninstallDefaults() { optionPane.setFont(null); optionPane.setForeground(null); optionPane.setBackground(null); minimumSize = null; messageBorder = null; buttonBorder = null; messageForeground = null; // FIXME: ImageIcons don't seem to work properly /* warningIcon = null;... | protected void uninstallDefaults() { optionPane.setFont(null); optionPane.setForeground(null); optionPane.setBackground(null); minimumSize = null; messageBorder = null; buttonBorder = null; messageForeground = null; // FIXME: ImageIcons don't seem to work properly /* warningIcon = null;... | 4,827 |
protected void uninstallKeyboardActions() throws NotImplementedException { // FIXME: implement. } | protected void uninstallKeyboardActions() { // FIXME: implement. } | 4,828 |
protected void uninstallKeyboardActions() throws NotImplementedException { // FIXME: implement. } | SwingUtilities.replaceUIInputMap(optionPane, JComponent. WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, null); SwingUtilities.replaceUIActionMap(optionPane, null); SwingUtilities.replaceUIInputMap(optionPane, JComponent. WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, null); SwingUtilities.replaceUIActionMap(optionPane, null); protectedSwing... | 4,829 |
public String getDelimiter() { return delimiter; } | public String getDelimiter() { return (String) ((XMLAttribute) attribHash.get("delimiter")).getAttribValue(); } | 4,830 |
public String getRecordTerminator() { return recordTerminator; } | public String getRecordTerminator() { return (String) ((XMLAttribute) attribHash.get("recordTerminator")).getAttribValue(); } | 4,831 |
public String getRepeatable() { return repeatable; } | public String getRepeatable() { return (String) ((XMLAttribute) attribHash.get("repeatable")).getAttribValue(); } | 4,832 |
private void init() { classXDFNodeName = "textDelimiter"; attribOrder.add(0,"delimiter"); attribOrder.add(0,"repeatable"); attribOrder.add(0,"recordTerminator"); attribHash.put("delimiter", new XMLAttribute(new String(" "), Constants.STRING_TYPE)); attribHash.put("repeatable", new ... | private void init() { classXDFNodeName = "textDelimiter"; attribOrder.add(0,"delimiter"); attribOrder.add(0,"repeatable"); attribOrder.add(0,"recordTerminator"); attribHash.put("delimiter", new XMLAttribute(new String(" "), Constants.STRING_TYPE)); attribHash.put("repeatable", new ... | 4,833 |
public String setDelimiter (String strDelimiter) { delimiter=strDelimiter; return delimiter; } | public void setDelimiter (String strDelimiter) { delimiter=strDelimiter; return delimiter; } | 4,835 |
public String setDelimiter (String strDelimiter) { delimiter=strDelimiter; return delimiter; } | public String setDelimiter (String strDelimiter) { delimiter=strDelimiter; return delimiter; } | 4,836 |
public String setRecordTerminator (String strRecordTerminator) { recordTerminator = strRecordTerminator; return recordTerminator; } | public void setRecordTerminator (String strRecordTerminator) { recordTerminator = strRecordTerminator; return recordTerminator; } | 4,837 |
public String setRecordTerminator (String strRecordTerminator) { recordTerminator = strRecordTerminator; return recordTerminator; } | public String setRecordTerminator (String strRecordTerminator) { recordTerminator = strRecordTerminator; return recordTerminator; } | 4,838 |
public String setRepeatable (String strIsRepeatable) { if (!strIsRepeatable.equals("yes") && !strIsRepeatable.equals("no") ) { Log.error("*repeatable* attribute can only be set to yes or no"); Log.error("tend to set as" + strIsRepeatable); Log.error("invalid. ignoring request"); return null; ... | public void setRepeatable (String strIsRepeatable) { if (!strIsRepeatable.equals("yes") && !strIsRepeatable.equals("no") ) { Log.error("*repeatable* attribute can only be set to yes or no"); Log.error("tend to set as" + strIsRepeatable); Log.error("invalid. ignoring request"); return null; ... | 4,839 |
public String setRepeatable (String strIsRepeatable) { if (!strIsRepeatable.equals("yes") && !strIsRepeatable.equals("no") ) { Log.error("*repeatable* attribute can only be set to yes or no"); Log.error("tend to set as" + strIsRepeatable); Log.error("invalid. ignoring request"); return null; ... | public String setRepeatable (String strIsRepeatable) { if (!strIsRepeatable.equals("yes") && !strIsRepeatable.equals("no") ) { Log.error("*repeatable* attribute can only be set to yes or no"); Log.error("tend to set as" + strIsRepeatable); Log.error("invalid. ignoring request"); return null; ... | 4,840 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.