bugged
stringlengths
6
599k
fixed
stringlengths
10
599k
__index_level_0__
int64
0
1.13M
public int getInterleaveSize() { return buff[27]; }
public int getInterleaveSize() { return buff[27]; }
6,934
public int getLengthOfDirectoryEntry() { return LittleEndian.getUInt8(buff, 0); }
public int getLengthOfDirectoryEntry() { return LittleEndian.getUInt8(buff, 0); }
6,935
public int getLengthOfExtendedAttribute() { return buff[1]; }
public int getLengthOfExtendedAttribute() { return buff[1]; }
6,936
public int getLocationOfExtent() { return (int)LittleEndian.getUInt32(buff,2); }
public int getLocationOfExtent() { return (int)LittleEndian.getUInt32(buff,2); }
6,937
public ISO9660Volume getVolume() { return volume; }
public ISO9660Volume getVolume() { return volume; }
6,938
public boolean isDirectory() { return (buff[25] & 0x03) != 0; }
public boolean isDirectory() { return (buff[25] & 0x03) != 0; }
6,939
public boolean isLastEntry() { return (buff[25] & 0x40) == 0; }
public boolean isLastEntry() { return (buff[25] & 0x40) == 0; }
6,940
VmStackFrame(Address src, VmStackReader reader, Address ip) { this.sfMethod = reader.getMethod(src); this.sfCompiledCode = reader.getCompiledCode(src); this.sfReturnAddress = reader.getReturnAddress(src); this.sfInstructionPointer = ip; }
VmStackFrame(Address src, VmStackReader reader, Address ip) { this.sfMethod = reader.getMethod(src); this.sfCompiledCode = reader.getCompiledCode(src); this.sfReturnAddress = reader.getReturnAddress(src); this.sfInstructionPointer = ip; }
6,941
public final String getLocationInfo() { final VmCompiledCode cc = sfCompiledCode; if ((cc != null) && (sfInstructionPointer != null)) { return cc.getLocationInfo(sfMethod, sfInstructionPointer); } else { return "?"; } }
public final String getLocationInfo() { final VmCompiledCode cc = sfCompiledCode; if ((cc != null) && (sfInstructionPointer != null)) { return cc.getLocationInfo(sfMethod, sfInstructionPointer); } else { return "?"; } }
6,942
public String toString() { final VmMethod method = sfMethod; final VmType vmClass = (method == null) ? null : method.getDeclaringClass(); final String cname = (vmClass == null) ? "<unknown class>" : vmClass.getName(); final String mname = (method == null) ? "<unknown method>" : method.getName(); final String loca...
public String toString() { final VmMethod method = sfMethod; final VmType<?> vmClass = (method == null) ? null : method.getDeclaringClass(); final String cname = (vmClass == null) ? "<unknown class>" : vmClass.getName(); final String mname = (method == null) ? "<unknown method>" : method.getName(); final String l...
6,943
public int print (Graphics g, PageFormat pageFormat, int page) { Graphics2D g2; //--- Validate the page number, we only print the first page if (page == 0) { //--- Create a graphic2D object and set the default parameters g2 = (Graphics2D) g; g2.setColor (Color.black); /...
public int print (Graphics g, PageFormat pageFormat, int page) { Graphics2D g2; //--- Validate the page number, we only print the first page if (page == 0) { //--- Create a graphic2D object and set the default parameters g2 = (Graphics2D) g; g2.setColor (Color.black); /...
6,945
public int print (Graphics g, PageFormat pageFormat, int page) { Graphics2D g2; //--- Validate the page number, we only print the first page if (page == 0) { //--- Create a graphic2D object and set the default parameters g2 = (Graphics2D) g; g2.setColor (Color.black); /...
public int print (Graphics g, PageFormat pageFormat, int page) { Graphics2D g2; //--- Validate the page number, we only print the first page if (page == 0) { //--- Create a graphic2D object and set the default parameters g2 = (Graphics2D) g; g2.setColor (Color.black); /...
6,946
public int print (Graphics g, PageFormat pageFormat, int page) { Graphics2D g2; //--- Validate the page number, we only print the first page if (page == 0) { //--- Create a graphic2D object and set the default parameters g2 = (Graphics2D) g; g2.setColor (Color.black); /...
public int print (Graphics g, PageFormat pageFormat, int page) { Graphics2D g2; //--- Validate the page number, we only print the first page if (page == 0) { //--- Create a graphic2D object and set the default parameters g2 = (Graphics2D) g; g2.setColor (Color.black); /...
6,947
public Object clone() throws CloneNotSupportedException { if (!(mdSpi instanceof Cloneable)) throw new CloneNotSupportedException(); MessageDigest result = new DummyMessageDigest ((MessageDigestSpi) mdSpi.clone(), this.getAlgorithm()); result.provider = this.getProvider(); return result; }
public Object clone() throws CloneNotSupportedException { if (!(mdSpi instanceof Cloneable)) throw new CloneNotSupportedException(); MessageDigest result = new DummyMessageDigest ((MessageDigestSpi) mdSpi.clone(), this.getAlgorithm()); result.provider = this.getProvider(); return result; }
6,949
private setDocumentHandler ( ) { }
private void setDocumentHandler (SaxDocHandler myHandler) { }
6,950
public VmCompiledCode(NativeCodeCompiler compiler, VmByteCode bytecode, Address nativeCode, Object compiledCode, int size, VmCompiledExceptionHandler[] eTable, Address defaultExceptionHandler, VmAddressMap addressTable) { this.compiler = compiler; this.magic = compiler...
public VmCompiledCode(NativeCodeCompiler compiler, VmByteCode bytecode, Address nativeCode, Object compiledCode, int size, VmCompiledExceptionHandler[] eTable, Address defaultExceptionHandler, VmAddressMap addressTable) { this.compiler = compiler; this.magic = compiler...
6,951
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,952
protected void loadSystemColors(UIDefaults defaults, String[] value1, boolean value2) { // TODO }
protected void loadSystemColors(UIDefaults defaults, String[] value1, boolean value2) { // TODO }
6,953
public void debug(Object message) { System.out.println("DEBUG ["+clazz+"] "+ message); }
public void debug(Object message) { if (isDebugEnabled()) System.out.println("DEBUG ["+clazz+"] "+ message); }
6,954
protected void writeDelimitedData(OutputStream outputstream, Locator locator, DelimitedXMLDataIOStyle readObj, AxisInterface fastestAxis, String[] noDataValues) { String delimiter = readObj.getDelimiter(); S...
protected void writeDelimitedData(OutputStream outputstream, Locator locator, DelimitedXMLDataIOStyle readObj, AxisInterface fastestAxis, String[] noDataValues) { String delimiter = readObj.getDelimiter(); S...
6,955
void repaintCellFocus() { }
protected void repaintCellFocus() { }
6,956
public void keyPressed( KeyEvent evt ) { int lead = BasicListUI.this.list.getLeadSelectionIndex(); int max = BasicListUI.this.list.getModel().getSize() - 1; // Do nothing if list is empty if (max == -1) return; // Process the key event. Bindings can be found in // j...
public void keyPressed( KeyEvent evt ) { int lead = BasicListUI.this.list.getLeadSelectionIndex(); int max = BasicListUI.this.list.getModel().getSize() - 1; // Do nothing if list is empty if (max == -1) return; // Process the key event. Bindings can be found in // j...
6,957
public void keyPressed( KeyEvent evt ) { int lead = BasicListUI.this.list.getLeadSelectionIndex(); int max = BasicListUI.this.list.getModel().getSize() - 1; // Do nothing if list is empty if (max == -1) return; // Process the key event. Bindings can be found in // j...
public void keyPressed( KeyEvent evt ) { int lead = BasicListUI.this.list.getLeadSelectionIndex(); int max = BasicListUI.this.list.getModel().getSize() - 1; // Do nothing if list is empty if (max == -1) return; // Process the key event. Bindings can be found in // j...
6,958
public BasicListUI() { focusListener = new FocusHandler(); listDataListener = new ListDataHandler(); listSelectionListener = new ListSelectionHandler(); mouseInputListener = new MouseInputHandler(); keyListener = new KeyHandler(); propertyChangeListener = new PropertyChangeHandler(); componentLi...
public BasicListUI() { focusListener = new FocusHandler(); listDataListener = new ListDataHandler(); listSelectionListener = new ListSelectionHandler(); mouseInputListener = new MouseInputHandler(); keyListener = new KeyHandler(); propertyChangeListener = new PropertyChangeHandler(); componentLi...
6,960
protected void installListeners() { list.addFocusListener(focusListener); list.getModel().addListDataListener(listDataListener); list.addListSelectionListener(listSelectionListener); list.addMouseListener(mouseInputListener); list.addKeyListener(keyListener); list.addMouseMotionListener(mouseInputL...
protected void installListeners() { list.addFocusListener(focusListener); list.getModel().addListDataListener(listDataListener); list.addListSelectionListener(listSelectionListener); list.addMouseListener(mouseInputListener); list.addKeyListener(keyListener); list.addMouseMotionListener(mouseInputL...
6,961
public FormattedXMLDataIOStyle () { init(); }
public FormattedXMLDataIOStyle (Array parentArray) { init(); }
6,962
public FormattedXMLDataIOStyle () { init(); }
public FormattedXMLDataIOStyle () { this.parentArray = parentArray; init(); }
6,963
private void nestedToXDF(OutputStream outputstream, String indent, int which, int stop) { //base condition if (which > stop) { if (sPrettyXDFOutput) { writeOut(outputstream, Constants.NEW_LINE); writeOut(outputstream, indent); } synchronized (formatCommandList) { int stop2 = ...
private void nestedToXDF(OutputStream outputstream, String indent, int which, int stop) { //base condition if (which > stop) { if (sPrettyXDFOutput) { writeOut(outputstream, Constants.NEW_LINE); writeOut(outputstream, indent); } synchronized (formatCommandList) { int stop2 = ...
6,964
protected LayoutManager createLayout() { return new TitlePaneLayout() { public Dimension preferredLayoutSize(Container c) { return new Dimension(24, 24); } }; }
protected LayoutManager createLayout() { return new TitlePaneLayout() { public Dimension preferredLayoutSize(Container c) { return new Dimension(24, 24); } }; }
6,966
public void paintComponent(Graphics g) { // probably need to check the isPalette flag here, if true pass over to // paintPalette(Graphics) super.paintComponent(g); Dimension d = getSize(); if (frame.isSelected()) g.setColor(MetalLookAndFeel.getPrimaryControlDarkShadow()); else g.setColor(...
public void paintComponent(Graphics g) { // probably need to check the isPalette flag here, if true pass over to // paintPalette(Graphics) super.paintComponent(g); Dimension d = getSize(); if (frame.isSelected()) g.setColor(MetalLookAndFeel.getPrimaryControlDarkShadow()); else g.setColor(...
6,968
public void paintComponent(Graphics g) { // probably need to check the isPalette flag here, if true pass over to // paintPalette(Graphics) super.paintComponent(g); Dimension d = getSize(); if (frame.isSelected()) g.setColor(MetalLookAndFeel.getPrimaryControlDarkShadow()); else g.setColor(...
public void paintComponent(Graphics g) { // probably need to check the isPalette flag here, if true pass over to // paintPalette(Graphics) super.paintComponent(g); Dimension d = getSize(); if (frame.isSelected()) g.setColor(MetalLookAndFeel.getPrimaryControlDarkShadow()); else g.setColor(...
6,969
public void setPalette(boolean b) { isPalette = b; }
public void setPalette(boolean b) { isPalette = b; title.setVisible(!isPalette); iconButton.setVisible(!isPalette && frame.isIconifiable()); maxButton.setVisible(!isPalette && frame.isMaximizable()); if (isPalette) closeButton.setIcon(paletteCloseIcon); else closeButton.setIcon(closeIcon); }
6,971
private static boolean loadMacros(Properties macs) { FileInputStream in = null; try { in = new FileInputStream(macroName); macs.load(in); return true; } catch (FileNotFoundException fnfe) {System.out.println(fnfe.getMessage());} catch (IOException ioe) {System.out.pri...
private static boolean loadMacros(Properties macs) { FileInputStream in = null; try { in = new FileInputStream(macroName); macs.load(in); return true; } catch (FileNotFoundException fnfe) {System.out.println(fnfe.getMessage());} catch (IOException ioe) {System.out.pri...
6,973
public Unit addUnit(Unit unit) { if (unit == null) { Log.warn("in Parameter.addUnit(), the Unit passed in is null"); return null; } return getAxisUnits().addUnit(unit); }
public Unit addUnit(Unit unit) { if (unit == null) { Log.warn("in Parameter.addUnit(), the Unit passed in is null"); return null; } return getAxisUnits().addUnit(unit); }
6,974
public ValueGroup addValueGroup (ValueGroup group) { if (group !=null) { //add the group to the groupOwnedHash valueGroupOwnedHash.add(group); return group; } else { Log.warn("in Axis,addValueGroup(). ValueGroup passed in is null"); return null; } }
public ValueGroup addValueGroup (ValueGroup group) { //add the group to the groupOwnedHash valueGroupOwnedHash.add(group); return group; } else { Log.warn("in Axis,addValueGroup(). ValueGroup passed in is null"); return null; } }
6,975
public ValueGroup addValueGroup (ValueGroup group) { if (group !=null) { //add the group to the groupOwnedHash valueGroupOwnedHash.add(group); return group; } else { Log.warn("in Axis,addValueGroup(). ValueGroup passed in is null"); return null; } }
public ValueGroup addValueGroup (ValueGroup group) { if (group !=null) { //add the group to the groupOwnedHash valueGroupOwnedHash.add(group); return group; } else { Log.warn("in Axis,addValueGroup(). ValueGroup passed in is null"); return null; } }
6,976
public Object clone() throws CloneNotSupportedException { Axis cloneObj = (Axis) super.clone(); //deep copy of the valueGroupOwnedHash synchronized (this.valueGroupOwnedHash) { synchronized(cloneObj.valueGroupOwnedHash) { cloneObj.valueGroupOwnedHash = Collections.synchronizedSet(new HashSet(thi...
public Object clone() throws CloneNotSupportedException { Axis cloneObj = (Axis) super.clone(); //deep copy of the valueGroupOwnedHash synchronized (this.valueGroupOwnedHash) { synchronized(cloneObj.valueGroupOwnedHash) { cloneObj.valueGroupOwnedHash = Collections.synchronizedSet(new HashSet(thi...
6,977
public int getIndexFromAxisValue(Value valueObj) { if (valueObj == null) { Log.error("in Axis, getIndexFromAxisValue, Value passed in is null, returning -1"); return -1; } List values = getValueList(); int size = values.size(); for (int i = 0; i< size; i++){ if (((Value...
public int getIndexFromAxisValue(Value valueObj) { if (valueObj == null) { Log.error("in Axis, getIndexFromAxisValue, Value passed in is null, returning -1"); return -1; } List values = getValueList(); int size = values.size(); for (int i = 0; i< size; i++){ if (((Value...
6,978
protected void init() { classXDFNodeName = "axis"; // order matters! these are in *reverse* order of their // occurence in the XDF DTD attribOrder.add(0,"valueList"); attribOrder.add(0,"axisUnits"); attribOrder.add(0,"axisDatatype"); attribOrder.add(0,"align"); //not sure what it is??? attri...
private void init() { classXDFNodeName = "axis"; // order matters! these are in *reverse* order of their // occurence in the XDF DTD attribOrder.add(0,"valueList"); attribOrder.add(0,"axisUnits"); attribOrder.add(0,"axisDatatype"); attribOrder.add(0,"align"); //not sure what it is??? attribO...
6,979
protected void init() { classXDFNodeName = "axis"; // order matters! these are in *reverse* order of their // occurence in the XDF DTD attribOrder.add(0,"valueList"); attribOrder.add(0,"axisUnits"); attribOrder.add(0,"axisDatatype"); attribOrder.add(0,"align"); //not sure what it is??? attri...
protected void init() { classXDFNodeName = "axis"; // order matters! these are in *reverse* order of their // occurence in the XDF DTD attribOrder.add(0,"valueList"); attribOrder.add(0,"axisUnits"); attribOrder.add(0,"axisDatatype"); attribOrder.add(0,"align"); //not sure what it is??? attri...
6,980
public BSHConsole(JTextArea output) { this.out=new BSHOutputAdapter(output); this.output=output; }
public BSHConsole(JTextArea output) { this.out=new BSHOutputAdapter(output); }
6,981
public void paintBorder(Component c, Graphics g, int x, int y, int width, int height) { Measurements mes = getMeasurements(c); Font oldFont = g.getFont(); Color oldColor = g.getColor(); /** * A local helper class for painting the border without changing * any pixels ins...
public void paintBorder(Component c, Graphics g, int x, int y, int width, int height) { Measurements mes = getMeasurements(c); Font oldFont = g.getFont(); Color oldColor = g.getColor(); /** * A local helper class for painting the border without changing * any pixels ins...
6,983
public float getAlignment(int axis) { float align; if (axis == X_AXIS) align = getComponent().getAlignmentX(); else if (axis == Y_AXIS) align = getComponent().getAlignmentY(); else throw new IllegalArgumentException(); return align; }
public float getAlignment(int axis) { float align = 0.0F; if (interceptor != null && (axis == X_AXIS || axis == Y_AXIS)) { if (axis == X_AXIS) align = getComponent().getAlignmentX(); else if (axis == Y_AXIS) align = getComponent().getAlignmentY(); else throw new IllegalArgumentException(...
6,985
public float getAlignment(int axis) { float align; if (axis == X_AXIS) align = getComponent().getAlignmentX(); else if (axis == Y_AXIS) align = getComponent().getAlignmentY(); else throw new IllegalArgumentException(); return align; }
public float getAlignment(int axis) { float align; if (axis == X_AXIS) align = interceptor.getAlignmentX(); else if (axis == Y_AXIS) align = getComponent().getAlignmentY(); else throw new IllegalArgumentException(); return align; }
6,986
public float getAlignment(int axis) { float align; if (axis == X_AXIS) align = getComponent().getAlignmentX(); else if (axis == Y_AXIS) align = getComponent().getAlignmentY(); else throw new IllegalArgumentException(); return align; }
public float getAlignment(int axis) { float align; if (axis == X_AXIS) align = getComponent().getAlignmentX(); else if (axis == Y_AXIS) align = interceptor.getAlignmentY(); else assert false : "Must not reach here"; } else throw new IllegalArgumentException(); return align; }
6,987
public float getAlignment(int axis) { float align; if (axis == X_AXIS) align = getComponent().getAlignmentX(); else if (axis == Y_AXIS) align = getComponent().getAlignmentY(); else throw new IllegalArgumentException(); return align; }
public float getAlignment(int axis) { float align; if (axis == X_AXIS) align = getComponent().getAlignmentX(); else if (axis == Y_AXIS) align = getComponent().getAlignmentY(); else align = super.getAlignment(axis); return align; }
6,988
public final Component getComponent() { if (comp == null) comp = createComponent(); return comp; }
public final Component getComponent() { if (comp == null) comp = createComponent(); return comp; }
6,989
public float getMaximumSpan(int axis) { float span; if (axis == X_AXIS) span = getComponent().getMaximumSize().width; else if (axis == Y_AXIS) span = getComponent().getMaximumSize().height; else throw new IllegalArgumentException(); return span; }
public float getMaximumSpan(int axis) { if (axis != X_AXIS && axis != Y_AXIS) throw new IllegalArgumentException("Illegal axis"); float span = 0; if (interceptor != null) { if (axis == X_AXIS) span = getComponent().getMaximumSize().width; else if (axis == Y_AXIS) span = getComponent().getMaximumSi...
6,990
public float getMaximumSpan(int axis) { float span; if (axis == X_AXIS) span = getComponent().getMaximumSize().width; else if (axis == Y_AXIS) span = getComponent().getMaximumSize().height; else throw new IllegalArgumentException(); return span; }
public float getMaximumSpan(int axis) { float span; if (axis == X_AXIS) span = interceptor.getMaximumSize().width; else if (axis == Y_AXIS) span = getComponent().getMaximumSize().height; else throw new IllegalArgumentException(); return span; }
6,991
public float getMaximumSpan(int axis) { float span; if (axis == X_AXIS) span = getComponent().getMaximumSize().width; else if (axis == Y_AXIS) span = getComponent().getMaximumSize().height; else throw new IllegalArgumentException(); return span; }
public float getMaximumSpan(int axis) { float span; if (axis == X_AXIS) span = getComponent().getMaximumSize().width; else if (axis == Y_AXIS) span = interceptor.getMaximumSize().height; else throw new IllegalArgumentException(); return span; }
6,992
public float getMaximumSpan(int axis) { float span; if (axis == X_AXIS) span = getComponent().getMaximumSize().width; else if (axis == Y_AXIS) span = getComponent().getMaximumSize().height; else throw new IllegalArgumentException(); return span; }
public float getMaximumSpan(int axis) { float span; if (axis == X_AXIS) span = getComponent().getMaximumSize().width; else if (axis == Y_AXIS) span = getComponent().getMaximumSize().height; else assert false : "Must not reach here"; } return span; }
6,993
public float getMinimumSpan(int axis) { float span; if (axis == X_AXIS) span = getComponent().getMinimumSize().width; else if (axis == Y_AXIS) span = getComponent().getMinimumSize().height; else throw new IllegalArgumentException(); return span; }
public float getMinimumSpan(int axis) { if (axis != X_AXIS && axis != Y_AXIS) throw new IllegalArgumentException("Illegal axis"); float span = 0; if (interceptor != null) { if (axis == X_AXIS) span = getComponent().getMinimumSize().width; else if (axis == Y_AXIS) span = getComponent().getMinim...
6,994
public float getMinimumSpan(int axis) { float span; if (axis == X_AXIS) span = getComponent().getMinimumSize().width; else if (axis == Y_AXIS) span = getComponent().getMinimumSize().height; else throw new IllegalArgumentException(); return span; }
public float getMinimumSpan(int axis) { float span; if (axis == X_AXIS) span = interceptor.getMinimumSize().width; else if (axis == Y_AXIS) span = getComponent().getMinimumSize().height; else throw new IllegalArgumentException(); return span; }
6,995
public float getMinimumSpan(int axis) { float span; if (axis == X_AXIS) span = getComponent().getMinimumSize().width; else if (axis == Y_AXIS) span = getComponent().getMinimumSize().height; else throw new IllegalArgumentException(); return span; }
public float getMinimumSpan(int axis) { float span; if (axis == X_AXIS) span = getComponent().getMinimumSize().width; else if (axis == Y_AXIS) span = interceptor.getMinimumSize().height; else throw new IllegalArgumentException(); return span; }
6,996
public float getMinimumSpan(int axis) { float span; if (axis == X_AXIS) span = getComponent().getMinimumSize().width; else if (axis == Y_AXIS) span = getComponent().getMinimumSize().height; else throw new IllegalArgumentException(); return span; }
public float getMinimumSpan(int axis) { float span; if (axis == X_AXIS) span = getComponent().getMinimumSize().width; else if (axis == Y_AXIS) span = getComponent().getMinimumSize().height; else assert false : "Must not reach here"; } return span; }
6,997
public float getPreferredSpan(int axis) { float span; if (axis == X_AXIS) span = getComponent().getPreferredSize().width; else if (axis == Y_AXIS) span = getComponent().getPreferredSize().height; else throw new IllegalArgumentException(); return span; }
public float getPreferredSpan(int axis) { if (axis != X_AXIS && axis != Y_AXIS) throw new IllegalArgumentException("Illegal axis"); float span = 0; if (interceptor != null) { if (axis == X_AXIS) span = getComponent().getPreferredSize().width; else if (axis == Y_AXIS) span = getComponent().getP...
6,998
public float getPreferredSpan(int axis) { float span; if (axis == X_AXIS) span = getComponent().getPreferredSize().width; else if (axis == Y_AXIS) span = getComponent().getPreferredSize().height; else throw new IllegalArgumentException(); return span; }
public float getPreferredSpan(int axis) { float span; if (axis == X_AXIS) span = interceptor.getPreferredSize().width; else if (axis == Y_AXIS) span = getComponent().getPreferredSize().height; else throw new IllegalArgumentException(); return span; }
6,999
public float getPreferredSpan(int axis) { float span; if (axis == X_AXIS) span = getComponent().getPreferredSize().width; else if (axis == Y_AXIS) span = getComponent().getPreferredSize().height; else throw new IllegalArgumentException(); return span; }
public float getPreferredSpan(int axis) { float span; if (axis == X_AXIS) span = getComponent().getPreferredSize().width; else if (axis == Y_AXIS) span = interceptor.getPreferredSize().height; else throw new IllegalArgumentException(); return span; }
7,000
public float getPreferredSpan(int axis) { float span; if (axis == X_AXIS) span = getComponent().getPreferredSize().width; else if (axis == Y_AXIS) span = getComponent().getPreferredSize().height; else throw new IllegalArgumentException(); return span; }
public float getPreferredSpan(int axis) { float span; if (axis == X_AXIS) span = getComponent().getPreferredSize().width; else if (axis == Y_AXIS) span = getComponent().getPreferredSize().height; else assert false : "Must not reach here"; } return span; }
7,001
public Shape modelToView(int pos, Shape a, Position.Bias b) throws BadLocationException { Element el = getElement(); if (pos < el.getStartOffset() || pos >= el.getEndOffset()) throw new BadLocationException("Illegal offset for this view", pos); Rectangle r = a.getBounds(); Component c = get...
public Shape modelToView(int pos, Shape a, Position.Bias b) throws BadLocationException { Element el = getElement(); if (pos < el.getStartOffset() || pos >= el.getEndOffset()) throw new BadLocationException("Illegal offset for this view", pos); Rectangle r = a.getBounds(); Component c = get...
7,002
public void paint(Graphics g, Shape a) { Rectangle r = a.getBounds(); getComponent().setBounds(r.x, r.y, r.width, r.height); }
public void paint(Graphics g, Shape a) { Rectangle r = a.getBounds(); getComponent().setBounds(r.x, r.y, r.width, r.height); }
7,003
public void setParent(final View p) { if (SwingUtilities.isEventDispatchThread()) setParentImpl(p); else SwingUtilities.invokeLater (new Runnable() { public void run() { setParentImpl(p); } }); }
public void setParent(final View p) { if (SwingUtilities.isEventDispatchThread()) setParentImpl(); else SwingUtilities.invokeLater (new Runnable() { public void run() { setParentImpl(); } }); }
7,004
public void run() { setParentImpl(p); }
public void run() { setParentImpl(); }
7,005
private void setParentImpl(View p) { super.setParent(p); if (p != null) { Component c = getComponent(); p.getContainer().add(c); } else { Component c = getComponent(); Container parent = c.getParent(); parent.remove(c); comp = null; } }
void setParentImpl() { super.setParent(p); if (p != null) { Component c = getComponent(); p.getContainer().add(c); } else { Component c = getComponent(); Container parent = c.getParent(); parent.remove(c); comp = null; } }
7,006
private void setParentImpl(View p) { super.setParent(p); if (p != null) { Component c = getComponent(); p.getContainer().add(c); } else { Component c = getComponent(); Container parent = c.getParent(); parent.remove(c); comp = null; } }
private void setParentImpl(View p) { View p = getParent(); if (p != null) { Component c = getComponent(); p.getContainer().add(c); } else { Component c = getComponent(); Container parent = c.getParent(); parent.remove(c); comp = null; } }
7,007
private void setParentImpl(View p) { super.setParent(p); if (p != null) { Component c = getComponent(); p.getContainer().add(c); } else { Component c = getComponent(); Container parent = c.getParent(); parent.remove(c); comp = null; } }
private void setParentImpl(View p) { super.setParent(p); if (p != null) { Component c = getComponent(); p.getContainer().add(c); } else { Component c = getComponent(); Container parent = c.getParent(); parent.remove(c); comp = null; } }
7,008
private void setParentImpl(View p) { super.setParent(p); if (p != null) { Component c = getComponent(); p.getContainer().add(c); } else { Component c = getComponent(); Container parent = c.getParent(); parent.remove(c); comp = null; } }
private void setParentImpl(View p) { super.setParent(p); if (p != null) { Component c = getComponent(); p.getContainer().add(c); } else { Component c = getComponent(); Container parent = c.getParent(); parent.remove(c); comp = null; } }
7,009
public int viewToModel(float x, float y, Shape a, Position.Bias[] b) { // The element should only have one character position and it is clear // that this position is the position that best matches the given screen // coordinates, simply because this view has only this one position. Element el = getEleme...
public int viewToModel(float x, float y, Shape a, Position.Bias[] b) { // The element should only have one character position and it is clear // that this position is the position that best matches the given screen // coordinates, simply because this view has only this one position. Element el = getEleme...
7,010
public void run() { try { long before, after, sleep; stop: while (isUp()) { before = System.currentTimeMillis(); synchronized (Tetris.class) { while (pause) { try { System.out.println("waiting"); Tetris.class.wait(); System.out.println("back from waiting"); ...
public void run() { try { long before, after, sleep; stop: while (isUp()) { before = System.currentTimeMillis(); synchronized (Tetris.class) { while (pause) { try { System.out.println("waiting"); Tetris.class.wait(); System.out.println("back from waiting"); ...
7,011
public void keyPressed(KeyEvent e) { int kc = e.getKeyCode(); if (kc == KeyEvent.VK_N) { newGame(); return; } if (kc == KeyEvent.VK_P) { flipPause(); return; } if (!isUp() || pause) return; switch (e.getKeyCode()) { case KeyEvent.VK_UP: rot(1); break; case KeyEvent.VK_LEFT: trans(-1); break;...
public void keyPressed(KeyEvent e) { int kc = e.getKeyCode(); if (kc == KeyEvent.VK_N) { newGame(); return; } if (kc == KeyEvent.VK_P) { flipPause(); return; } if (!isUp() || pause) return; switch (e.getKeyCode()) { case KeyEvent.VK_UP: rot(1); break; case KeyEvent.VK_LEFT: trans(-1); break;...
7,012
public static void main(String[] argv) { int delay = 500; try { if(argv.length > 0) delay = Integer.parseInt(argv[0]); } catch (Exception e) { // ignore } JFrame wnd = new JFrame("JNode Tetris"); Tetris tetris = new Tetris(); tetris.delay = delay; wnd.add(tetris, BorderLayout.CENTER); wnd.setSize(DI...
public static void main(String[] argv) { int delay = 500; try { if(argv.length > 0) delay = Integer.parseInt(argv[0]); } catch (Exception e) { // ignore } JFrame wnd = new JFrame("JNode Tetris"); Tetris tetris = new Tetris(); tetris.delay = delay; wnd.add(tetris, BorderLayout.CENTER); wnd.setSize(DI...
7,013
public static void main(String[] argv) { int delay = 500; try { if(argv.length > 0) delay = Integer.parseInt(argv[0]); } catch (Exception e) { // ignore } JFrame wnd = new JFrame("JNode Tetris"); Tetris tetris = new Tetris(); tetris.delay = delay; wnd.add(tetris, BorderLayout.CENTER); wnd.setSize(DI...
public static void main(String[] argv) { int delay = 500; try { if(argv.length > 0) delay = Integer.parseInt(argv[0]); } catch (Exception e) { // ignore } JFrame wnd = new JFrame("JNode Tetris"); Tetris tetris = new Tetris(); tetris.delay = delay; wnd.add(tetris, BorderLayout.CENTER); wnd.setSize(DI...
7,014
public void newGame() { setUp(false); if (thread != null) { if (pause) { flipPause(); } try { thread.join(); } catch (InterruptedException ignore) { } } for (int i = 0; i < WIDTH_C + 2; i++) { for (int j = 0; j < HEIGHT_C + 2; j++) { if (i == 0 || j == 0 || i == WIDTH_C + 1 || j ==...
public void newGame() { setUp(false); if (thread != null) { if (pause) { flipPause(); } try { thread.join(); } catch (InterruptedException ignore) { } } for (int i = 0; i < WIDTH_C + 2; i++) { for (int j = 0; j < HEIGHT_C + 2; j++) { if (i == 0 || j == 0 || i == WIDTH_C + 1 || j ==...
7,015
public void newGame() { setUp(false); if (thread != null) { if (pause) { flipPause(); } try { thread.join(); } catch (InterruptedException ignore) { } } for (int i = 0; i < WIDTH_C + 2; i++) { for (int j = 0; j < HEIGHT_C + 2; j++) { if (i == 0 || j == 0 || i == WIDTH_C + 1 || j ==...
public void newGame() { setUp(false); if (thread != null) { if (pause) { flipPause(); } try { thread.join(); } catch (InterruptedException ignore) { } } for (int i = 0; i < WIDTH_C + 2; i++) { for (int j = 0; j < HEIGHT_C + 2; j++) { if (i == 0 || j == 0 || i == WIDTH_C + 1 || j ==...
7,016
protected void paintFocus(Graphics g, AbstractButton b, Rectangle viewRect, Rectangle textRect, Rectangle iconRect) { if (b.hasFocus() && b.isFocusPainted()) { Color savedColor = g.getColor(); g.setColor(getFocusColor()); Rectangle focusRect = iconRect.union(textRect); g.drawRect(fo...
protected void paintFocus(Graphics g, AbstractButton b, Rectangle viewRect, Rectangle textRect, Rectangle iconRect) { if (b.isEnabled() && b.hasFocus() && b.isFocusPainted()) { Color savedColor = g.getColor(); g.setColor(getFocusColor()); Rectangle focusRect = iconRect.union(textRect); ...
7,017
public Device getDevice(ParsedArguments args) throws SyntaxError { String value = getValue(args); try { return ((DeviceManager)InitialNaming.lookup(DeviceManager.NAME)).getDevice(value); } catch(NameNotFoundException ex) { throw new SyntaxError("DeviceManager not found. Check your system setup"); } catch(Devic...
public Device getDevice(ParsedArguments args) throws SyntaxErrorException { String value = getValue(args); try { return ((DeviceManager)InitialNaming.lookup(DeviceManager.NAME)).getDevice(value); } catch(NameNotFoundException ex) { throw new SyntaxError("DeviceManager not found. Check your system setup"); } ca...
7,018
public Device getDevice(ParsedArguments args) throws SyntaxError { String value = getValue(args); try { return ((DeviceManager)InitialNaming.lookup(DeviceManager.NAME)).getDevice(value); } catch(NameNotFoundException ex) { throw new SyntaxError("DeviceManager not found. Check your system setup"); } catch(Devic...
public Device getDevice(ParsedArguments args) throws SyntaxError { String value = getValue(args); try { return ((DeviceManager)InitialNaming.lookup(DeviceManager.NAME)).getDevice(value); } catch(NameNotFoundException ex) { throw new SyntaxErrorException("DeviceManager not found. Check your system setup"); } ca...
7,019
public Device getDevice(ParsedArguments args) throws SyntaxError { String value = getValue(args); try { return ((DeviceManager)InitialNaming.lookup(DeviceManager.NAME)).getDevice(value); } catch(NameNotFoundException ex) { throw new SyntaxError("DeviceManager not found. Check your system setup"); } catch(Devic...
public Device getDevice(ParsedArguments args) throws SyntaxError { String value = getValue(args); try { return ((DeviceManager)InitialNaming.lookup(DeviceManager.NAME)).getDevice(value); } catch(NameNotFoundException ex) { throw new SyntaxError("DeviceManager not found. Check your system setup"); } catch(Devic...
7,020
private void distributeSpill(TableColumn[] cols, int spill) { int average = spill / cols.length; for (int i = 0; i < cols.length; i++) { cols[i].setWidth(cols[i].getWidth() + average); } }
private void distributeSpill(TableColumn[] cols, int spill) { int average = spill / cols.length; for (int i = 0; i < cols.length; i++) { cols[i].setWidth(cols[i].getWidth() + average); } }
7,023
protected void initializeLocalVars() { setTableHeader(createDefaultTableHeader()); this.autoCreateColumnsFromModel = false; if (columnModel == null) { this.autoCreateColumnsFromModel = true; createColumnsFromModel(); } this.columnModel.addColumnModelListener(this); this.def...
protected void initializeLocalVars() { setTableHeader(createDefaultTableHeader()); this.autoCreateColumnsFromModel = false; if (columnModel == null) { this.autoCreateColumnsFromModel = true; createColumnsFromModel(); } this.columnModel.addColumnModelListener(this); this.def...
7,024
public void setModel(TableModel m) { // Throw exception is m is null. if (m == null) throw new IllegalArgumentException(); // Don't do anything if setting the current model again. if (dataModel == m) return; // Remove table as TableModelListener from old model. if (dataModel != nul...
public void setModel(TableModel m) { // Throw exception is m is null. if (m == null) throw new IllegalArgumentException(); // Don't do anything if setting the current model again. if (dataModel == m) return; // Remove table as TableModelListener from old model. if (dataModel != nul...
7,025
public void tableChanged (TableModelEvent event) { // update the column model from the table model if the structure has // changed and the flag autoCreateColumnsFromModel is set if ((event.getFirstRow() ==TableModelEvent.HEADER_ROW) && autoCreateColumnsFromModel) createColumnsFromModel(); r...
public void tableChanged (TableModelEvent event) { // update the column model from the table model if the structure has // changed and the flag autoCreateColumnsFromModel is set if ((event.getFirstRow() ==TableModelEvent.HEADER_ROW) && autoCreateColumnsFromModel) createDefaultColumnsFromModel(...
7,026
private void setNewKeyStrokes(KeyEvent ke) { if (!macros && !special) { if (isLinux) mapper.setKeyStroke(mnemonicData[functions.getSelectedIndex()],ke,isAltGr); else mapper.setKeyStroke(mnemonicData[functions.getSelectedIndex()],ke); strokeDesc.setText(mapper.getKey...
private void setNewKeyStrokes(KeyEvent ke) { if (!macros && !special) { mapper.removeKeyStroke(k); if (isLinux) { mapper.setKeyStroke(mnemonicData[functions.getSelectedIndex()],ke,isAltGr); else mapper.setKeyStroke(mnemonicData[functions.getSelectedIndex()],ke); str...
7,027
private void setNewKeyStrokes(KeyEvent ke) { if (!macros && !special) { if (isLinux) mapper.setKeyStroke(mnemonicData[functions.getSelectedIndex()],ke,isAltGr); else mapper.setKeyStroke(mnemonicData[functions.getSelectedIndex()],ke); strokeDesc.setText(mapper.getKey...
private void setNewKeyStrokes(KeyEvent ke) { if (!macros && !special) { if (isLinux) mapper.setKeyStroke(mnemonicData[functions.getSelectedIndex()],ke,isAltGr); } else { mapper.setKeyStroke(mnemonicData[functions.getSelectedIndex()],ke); strokeDesc.setText(mapper.ge...
7,028
Object thisObject();
org.omg.CORBA.Object thisObject();
7,030
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...
7,031
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...
7,032
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...
7,033
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...
7,034
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...
7,035
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...
7,036
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...
7,037
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...
7,038
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...
7,039
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...
7,040
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...
7,041
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...
7,042
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...
7,043
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...
7,044
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...
7,045