bugged stringlengths 6 599k | fixed stringlengths 6 40.8M | __index_level_0__ int64 0 3.24M |
|---|---|---|
public void actionPerformed (ActionEvent e) { ListSelectionModel rowModel = table.getSelectionModel(); ListSelectionModel colModel = table.getColumnModel().getSelectionModel(); int rowLead = rowModel.getLeadSelectionIndex(); int rowMax = table.getModel().getRowCount() - 1; ... | public void actionPerformed (ActionEvent e) { ListSelectionModel rowModel = table.getSelectionModel(); ListSelectionModel colModel = table.getColumnModel().getSelectionModel(); int rowLead = rowModel.getLeadSelectionIndex(); int rowMax = table.getModel().getRowCount() - 1; ... | 13,372 |
public void actionPerformed (ActionEvent e) { ListSelectionModel rowModel = table.getSelectionModel(); ListSelectionModel colModel = table.getColumnModel().getSelectionModel(); int rowLead = rowModel.getLeadSelectionIndex(); int rowMax = table.getModel().getRowCount() - 1; ... | public void actionPerformed (ActionEvent e) { ListSelectionModel rowModel = table.getSelectionModel(); ListSelectionModel colModel = table.getColumnModel().getSelectionModel(); int rowLead = rowModel.getLeadSelectionIndex(); int rowMax = table.getModel().getRowCount() - 1; ... | 13,373 |
public void actionPerformed (ActionEvent e) { ListSelectionModel rowModel = table.getSelectionModel(); ListSelectionModel colModel = table.getColumnModel().getSelectionModel(); int rowLead = rowModel.getLeadSelectionIndex(); int rowMax = table.getModel().getRowCount() - 1; ... | public void actionPerformed (ActionEvent e) { ListSelectionModel rowModel = table.getSelectionModel(); ListSelectionModel colModel = table.getColumnModel().getSelectionModel(); int rowLead = rowModel.getLeadSelectionIndex(); int rowMax = table.getModel().getRowCount() - 1; ... | 13,374 |
public void actionPerformed (ActionEvent e) { ListSelectionModel rowModel = table.getSelectionModel(); ListSelectionModel colModel = table.getColumnModel().getSelectionModel(); int rowLead = rowModel.getLeadSelectionIndex(); int rowMax = table.getModel().getRowCount() - 1; ... | public void actionPerformed (ActionEvent e) { ListSelectionModel rowModel = table.getSelectionModel(); ListSelectionModel colModel = table.getColumnModel().getSelectionModel(); int rowLead = rowModel.getLeadSelectionIndex(); int rowMax = table.getModel().getRowCount() - 1; ... | 13,375 |
public void actionPerformed (ActionEvent e) { ListSelectionModel rowModel = table.getSelectionModel(); ListSelectionModel colModel = table.getColumnModel().getSelectionModel(); int rowLead = rowModel.getLeadSelectionIndex(); int rowMax = table.getModel().getRowCount() - 1; ... | public void actionPerformed (ActionEvent e) { ListSelectionModel rowModel = table.getSelectionModel(); ListSelectionModel colModel = table.getColumnModel().getSelectionModel(); int rowLead = rowModel.getLeadSelectionIndex(); int rowMax = table.getModel().getRowCount() - 1; ... | 13,376 |
public void actionPerformed (ActionEvent e) { ListSelectionModel rowModel = table.getSelectionModel(); ListSelectionModel colModel = table.getColumnModel().getSelectionModel(); int rowLead = rowModel.getLeadSelectionIndex(); int rowMax = table.getModel().getRowCount() - 1; ... | public void actionPerformed (ActionEvent e) { ListSelectionModel rowModel = table.getSelectionModel(); ListSelectionModel colModel = table.getColumnModel().getSelectionModel(); int rowLead = rowModel.getLeadSelectionIndex(); int rowMax = table.getModel().getRowCount() - 1; ... | 13,377 |
public void actionPerformed (ActionEvent e) { ListSelectionModel rowModel = table.getSelectionModel(); ListSelectionModel colModel = table.getColumnModel().getSelectionModel(); int rowLead = rowModel.getLeadSelectionIndex(); int rowMax = table.getModel().getRowCount() - 1; ... | public void actionPerformed (ActionEvent e) { ListSelectionModel rowModel = table.getSelectionModel(); ListSelectionModel colModel = table.getColumnModel().getSelectionModel(); int rowLead = rowModel.getLeadSelectionIndex(); int rowMax = table.getModel().getRowCount() - 1; ... | 13,378 |
public void actionPerformed (ActionEvent e) { ListSelectionModel rowModel = table.getSelectionModel(); ListSelectionModel colModel = table.getColumnModel().getSelectionModel(); int rowLead = rowModel.getLeadSelectionIndex(); int rowMax = table.getModel().getRowCount() - 1; ... | public void actionPerformed (ActionEvent e) { ListSelectionModel rowModel = table.getSelectionModel(); ListSelectionModel colModel = table.getColumnModel().getSelectionModel(); int rowLead = rowModel.getLeadSelectionIndex(); int rowMax = table.getModel().getRowCount() - 1; ... | 13,379 |
void advanceMultipleSelection (ListSelectionModel firstModel, int firstMin, int firstMax, ListSelectionModel secondModel, int secondMin, int secondMax, boolean reverse, boolean eventIsTab) { // If eventIsTab... | void advanceMultipleSelection (ListSelectionModel firstModel, int firstMin, int firstMax, ListSelectionModel secondModel, int secondMin, int secondMax, boolean reverse, boolean eventIsTab) { // If eventIsTab... | 13,380 |
void advanceMultipleSelection (ListSelectionModel firstModel, int firstMin, int firstMax, ListSelectionModel secondModel, int secondMin, int secondMax, boolean reverse, boolean eventIsTab) { // If eventIsTab... | void advanceMultipleSelection (ListSelectionModel firstModel, int firstMin, int firstMax, ListSelectionModel secondModel, int secondMin, int secondMax, boolean reverse, boolean eventIsTab) { // If eventIsTab... | 13,381 |
void advanceMultipleSelection (ListSelectionModel firstModel, int firstMin, int firstMax, ListSelectionModel secondModel, int secondMin, int secondMax, boolean reverse, boolean eventIsTab) { // If eventIsTab... | void advanceMultipleSelection (ListSelectionModel firstModel, int firstMin, int firstMax, ListSelectionModel secondModel, int secondMin, int secondMax, boolean reverse, boolean eventIsTab) { // If eventIsTab... | 13,382 |
void advanceMultipleSelection (ListSelectionModel firstModel, int firstMin, int firstMax, ListSelectionModel secondModel, int secondMin, int secondMax, boolean reverse, boolean eventIsTab) { // If eventIsTab... | void advanceMultipleSelection (ListSelectionModel firstModel, int firstMin, int firstMax, ListSelectionModel secondModel, int secondMin, int secondMax, boolean reverse, boolean eventIsTab) { // If eventIsTab... | 13,383 |
void advanceMultipleSelection (ListSelectionModel firstModel, int firstMin, int firstMax, ListSelectionModel secondModel, int secondMin, int secondMax, boolean reverse, boolean eventIsTab) { // If eventIsTab... | void advanceMultipleSelection (ListSelectionModel firstModel, int firstMin, int firstMax, ListSelectionModel secondModel, int secondMin, int secondMax, boolean reverse, boolean eventIsTab) { // If eventIsTab... | 13,384 |
void advanceMultipleSelection (ListSelectionModel firstModel, int firstMin, int firstMax, ListSelectionModel secondModel, int secondMin, int secondMax, boolean reverse, boolean eventIsTab) { // If eventIsTab... | void advanceMultipleSelection (ListSelectionModel firstModel, int firstMin, int firstMax, ListSelectionModel secondModel, int secondMin, int secondMax, boolean reverse, boolean eventIsTab) { // If eventIsTab... | 13,385 |
void advanceMultipleSelection (ListSelectionModel firstModel, int firstMin, int firstMax, ListSelectionModel secondModel, int secondMin, int secondMax, boolean reverse, boolean eventIsTab) { // If eventIsTab... | void advanceMultipleSelection (ListSelectionModel firstModel, int firstMin, int firstMax, ListSelectionModel secondModel, int secondMin, int secondMax, boolean reverse, boolean eventIsTab) { // If eventIsTab... | 13,386 |
void advanceMultipleSelection (ListSelectionModel firstModel, int firstMin, int firstMax, ListSelectionModel secondModel, int secondMin, int secondMax, boolean reverse, boolean eventIsTab) { // If eventIsTab... | void advanceMultipleSelection (ListSelectionModel firstModel, int firstMin, int firstMax, ListSelectionModel secondModel, int secondMin, int secondMax, boolean reverse, boolean eventIsTab) { // If eventIsTab... | 13,387 |
void advanceMultipleSelection (ListSelectionModel firstModel, int firstMin, int firstMax, ListSelectionModel secondModel, int secondMin, int secondMax, boolean reverse, boolean eventIsTab) { // If eventIsTab... | void advanceMultipleSelection (ListSelectionModel firstModel, int firstMin, int firstMax, ListSelectionModel secondModel, int secondMin, int secondMax, boolean reverse, boolean eventIsTab) { // If eventIsTab... | 13,388 |
void advanceMultipleSelection (ListSelectionModel firstModel, int firstMin, int firstMax, ListSelectionModel secondModel, int secondMin, int secondMax, boolean reverse, boolean eventIsTab) { // If eventIsTab... | void advanceMultipleSelection (ListSelectionModel firstModel, int firstMin, int firstMax, ListSelectionModel secondModel, int secondMin, int secondMax, boolean reverse, boolean eventIsTab) { // If eventIsTab... | 13,389 |
void advanceSingleSelection (ListSelectionModel firstModel, int firstMax, ListSelectionModel secondModel, int secondMax, boolean reverse) { // for TABs, "first" corresponds to columns and "seconds" to rows. // the opposite is true for ENTE... | void advanceSingleSelection (ListSelectionModel firstModel, int firstMax, ListSelectionModel secondModel, int secondMax, boolean reverse) { // for TABs, "first" corresponds to columns and "seconds" to rows. // the opposite is true for ENTE... | 13,390 |
void advanceSingleSelection (ListSelectionModel firstModel, int firstMax, ListSelectionModel secondModel, int secondMax, boolean reverse) { // for TABs, "first" corresponds to columns and "seconds" to rows. // the opposite is true for ENTE... | void advanceSingleSelection (ListSelectionModel firstModel, int firstMax, ListSelectionModel secondModel, int secondMax, boolean reverse) { // for TABs, "first" corresponds to columns and "seconds" to rows. // the opposite is true for ENTE... | 13,391 |
void advanceSingleSelection (ListSelectionModel firstModel, int firstMax, ListSelectionModel secondModel, int secondMax, boolean reverse) { // for TABs, "first" corresponds to columns and "seconds" to rows. // the opposite is true for ENTE... | void advanceSingleSelection (ListSelectionModel firstModel, int firstMax, ListSelectionModel secondModel, int secondMax, boolean reverse) { // for TABs, "first" corresponds to columns and "seconds" to rows. // the opposite is true for ENTE... | 13,392 |
void advanceSingleSelection (ListSelectionModel firstModel, int firstMax, ListSelectionModel secondModel, int secondMax, boolean reverse) { // for TABs, "first" corresponds to columns and "seconds" to rows. // the opposite is true for ENTE... | void advanceSingleSelection (ListSelectionModel firstModel, int firstMax, ListSelectionModel secondModel, int secondMax, boolean reverse) { // for TABs, "first" corresponds to columns and "seconds" to rows. // the opposite is true for ENTE... | 13,393 |
void advanceSingleSelection (ListSelectionModel firstModel, int firstMax, ListSelectionModel secondModel, int secondMax, boolean reverse) { // for TABs, "first" corresponds to columns and "seconds" to rows. // the opposite is true for ENTE... | void advanceSingleSelection (ListSelectionModel firstModel, int firstMax, ListSelectionModel secondModel, int secondMax, boolean reverse) { // for TABs, "first" corresponds to columns and "seconds" to rows. // the opposite is true for ENTE... | 13,394 |
void advanceSingleSelection (ListSelectionModel firstModel, int firstMax, ListSelectionModel secondModel, int secondMax, boolean reverse) { // for TABs, "first" corresponds to columns and "seconds" to rows. // the opposite is true for ENTE... | void advanceSingleSelection (ListSelectionModel firstModel, int firstMax, ListSelectionModel secondModel, int secondMax, boolean reverse) { // for TABs, "first" corresponds to columns and "seconds" to rows. // the opposite is true for ENTE... | 13,395 |
void advanceSingleSelection (ListSelectionModel firstModel, int firstMax, ListSelectionModel secondModel, int secondMax, boolean reverse) { // for TABs, "first" corresponds to columns and "seconds" to rows. // the opposite is true for ENTE... | void advanceSingleSelection (ListSelectionModel firstModel, int firstMax, ListSelectionModel secondModel, int secondMax, boolean reverse) { // for TABs, "first" corresponds to columns and "seconds" to rows. // the opposite is true for ENTE... | 13,396 |
private int convertModifiers(int mod) { if ((mod & KeyEvent.SHIFT_DOWN_MASK) != 0) { mod |= KeyEvent.SHIFT_MASK; mod &= ~KeyEvent.SHIFT_DOWN_MASK; } if ((mod & KeyEvent.CTRL_DOWN_MASK) != 0) { mod |= KeyEvent.CTRL_MASK; mod &= ~KeyEvent.CTRL_DO... | private int convertModifiers(int mod) { if ((mod & KeyEvent.SHIFT_DOWN_MASK) != 0) { mod |= KeyEvent.SHIFT_MASK; mod &= ~KeyEvent.SHIFT_DOWN_MASK; } if ((mod & KeyEvent.CTRL_DOWN_MASK) != 0) { mod |= KeyEvent.CTRL_MASK; mod &= ~KeyEvent.CTRL_DO... | 13,397 |
private int convertModifiers(int mod) { if ((mod & KeyEvent.SHIFT_DOWN_MASK) != 0) { mod |= KeyEvent.SHIFT_MASK; mod &= ~KeyEvent.SHIFT_DOWN_MASK; } if ((mod & KeyEvent.CTRL_DOWN_MASK) != 0) { mod |= KeyEvent.CTRL_MASK; mod &= ~KeyEvent.CTRL_DO... | private int convertModifiers(int mod) { if ((mod & KeyEvent.SHIFT_DOWN_MASK) != 0) { mod |= KeyEvent.SHIFT_MASK; mod &= ~KeyEvent.SHIFT_DOWN_MASK; } if ((mod & KeyEvent.CTRL_DOWN_MASK) != 0) { mod |= KeyEvent.CTRL_MASK; mod &= ~KeyEvent.CTRL_DO... | 13,398 |
private int convertModifiers(int mod) { if ((mod & KeyEvent.SHIFT_DOWN_MASK) != 0) { mod |= KeyEvent.SHIFT_MASK; mod &= ~KeyEvent.SHIFT_DOWN_MASK; } if ((mod & KeyEvent.CTRL_DOWN_MASK) != 0) { mod |= KeyEvent.CTRL_MASK; mod &= ~KeyEvent.CTRL_DO... | private int convertModifiers(int mod) { if ((mod & KeyEvent.SHIFT_DOWN_MASK) != 0) { mod |= KeyEvent.SHIFT_MASK; mod &= ~KeyEvent.SHIFT_DOWN_MASK; } if ((mod & KeyEvent.CTRL_DOWN_MASK) != 0) { mod |= KeyEvent.CTRL_MASK; mod &= ~KeyEvent.CTRL_DO... | 13,399 |
private int convertModifiers(int mod) { if ((mod & KeyEvent.SHIFT_DOWN_MASK) != 0) { mod |= KeyEvent.SHIFT_MASK; mod &= ~KeyEvent.SHIFT_DOWN_MASK; } if ((mod & KeyEvent.CTRL_DOWN_MASK) != 0) { mod |= KeyEvent.CTRL_MASK; mod &= ~KeyEvent.CTRL_DO... | private int convertModifiers(int mod) { if ((mod & KeyEvent.SHIFT_DOWN_MASK) != 0) { mod |= KeyEvent.SHIFT_MASK; mod &= ~KeyEvent.SHIFT_DOWN_MASK; } if ((mod & KeyEvent.CTRL_DOWN_MASK) != 0) { mod |= KeyEvent.CTRL_MASK; mod &= ~KeyEvent.CTRL_DO... | 13,400 |
private int convertModifiers(int mod) { if ((mod & KeyEvent.SHIFT_DOWN_MASK) != 0) { mod |= KeyEvent.SHIFT_MASK; mod &= ~KeyEvent.SHIFT_DOWN_MASK; } if ((mod & KeyEvent.CTRL_DOWN_MASK) != 0) { mod |= KeyEvent.CTRL_MASK; mod &= ~KeyEvent.CTRL_DO... | private int convertModifiers(int mod) { if ((mod & KeyEvent.SHIFT_DOWN_MASK) != 0) { mod |= KeyEvent.SHIFT_MASK; mod &= ~KeyEvent.SHIFT_DOWN_MASK; } if ((mod & KeyEvent.CTRL_DOWN_MASK) != 0) { mod |= KeyEvent.CTRL_MASK; mod &= ~KeyEvent.CTRL_DO... | 13,401 |
private int convertModifiers(int mod) { if ((mod & KeyEvent.SHIFT_DOWN_MASK) != 0) { mod |= KeyEvent.SHIFT_MASK; mod &= ~KeyEvent.SHIFT_DOWN_MASK; } if ((mod & KeyEvent.CTRL_DOWN_MASK) != 0) { mod |= KeyEvent.CTRL_MASK; mod &= ~KeyEvent.CTRL_DO... | private int convertModifiers(int mod) { if ((mod & KeyEvent.SHIFT_DOWN_MASK) != 0) { mod |= KeyEvent.SHIFT_MASK; mod &= ~KeyEvent.SHIFT_DOWN_MASK; } if ((mod & KeyEvent.CTRL_DOWN_MASK) != 0) { mod |= KeyEvent.CTRL_MASK; mod &= ~KeyEvent.CTRL_DO... | 13,402 |
private int convertModifiers(int mod) { if ((mod & KeyEvent.SHIFT_DOWN_MASK) != 0) { mod |= KeyEvent.SHIFT_MASK; mod &= ~KeyEvent.SHIFT_DOWN_MASK; } if ((mod & KeyEvent.CTRL_DOWN_MASK) != 0) { mod |= KeyEvent.CTRL_MASK; mod &= ~KeyEvent.CTRL_DO... | private int convertModifiers(int mod) { if ((mod & KeyEvent.SHIFT_DOWN_MASK) != 0) { mod |= KeyEvent.SHIFT_MASK; mod &= ~KeyEvent.SHIFT_DOWN_MASK; } if ((mod & KeyEvent.CTRL_DOWN_MASK) != 0) { mod |= KeyEvent.CTRL_MASK; mod &= ~KeyEvent.CTRL_DO... | 13,403 |
private int convertModifiers(int mod) { if ((mod & KeyEvent.SHIFT_DOWN_MASK) != 0) { mod |= KeyEvent.SHIFT_MASK; mod &= ~KeyEvent.SHIFT_DOWN_MASK; } if ((mod & KeyEvent.CTRL_DOWN_MASK) != 0) { mod |= KeyEvent.CTRL_MASK; mod &= ~KeyEvent.CTRL_DO... | private int convertModifiers(int mod) { if ((mod & KeyEvent.SHIFT_DOWN_MASK) != 0) { mod |= KeyEvent.SHIFT_MASK; mod &= ~KeyEvent.SHIFT_DOWN_MASK; } if ((mod & KeyEvent.CTRL_DOWN_MASK) != 0) { mod |= KeyEvent.CTRL_MASK; mod &= ~KeyEvent.CTRL_DO... | 13,404 |
private int convertModifiers(int mod) { if ((mod & KeyEvent.SHIFT_DOWN_MASK) != 0) { mod |= KeyEvent.SHIFT_MASK; mod &= ~KeyEvent.SHIFT_DOWN_MASK; } if ((mod & KeyEvent.CTRL_DOWN_MASK) != 0) { mod |= KeyEvent.CTRL_MASK; mod &= ~KeyEvent.CTRL_DO... | private int convertModifiers(int mod) { if ((mod & KeyEvent.SHIFT_DOWN_MASK) != 0) { mod |= KeyEvent.SHIFT_MASK; mod &= ~KeyEvent.SHIFT_DOWN_MASK; } if ((mod & KeyEvent.CTRL_DOWN_MASK) != 0) { mod |= KeyEvent.CTRL_MASK; mod &= ~KeyEvent.CTRL_DO... | 13,405 |
protected FocusListener createFocusListener() { return new FocusHandler(); } | protected FocusListener createFocusListener() { return new FocusHandler(); } | 13,406 |
protected MouseInputListener createMouseInputListener() { return new MouseInputHandler(); } | protected MouseInputListener createMouseInputListener() { return new MouseInputHandler(); } | 13,407 |
public Dimension getMaximumSize(JComponent comp) { int maxTotalColumnWidth = 0; for (int i = 0; i < table.getColumnCount(); i++) maxTotalColumnWidth += table.getColumnModel().getColumn(i).getMaxWidth(); if (maxTotalColumnWidth == 0 || table.getRowCount() == 0) return null; return new... | public Dimension getMaximumSize(JComponent comp) { int maxTotalColumnWidth = 0; for (int i = 0; i < table.getColumnCount(); i++) maxTotalColumnWidth += table.getColumnModel().getColumn(i).getMaxWidth(); if (maxTotalColumnWidth == 0 || table.getRowCount() == 0) return null; return new... | 13,408 |
public Dimension getMinimumSize(JComponent comp) { int minTotalColumnWidth = 0; for (int i = 0; i < table.getColumnCount(); i++) minTotalColumnWidth += table.getColumnModel().getColumn(i).getMinWidth(); if (minTotalColumnWidth == 0 || table.getRowCount() == 0) return null; return new Dimension... | public Dimension getMinimumSize(JComponent comp) { int minTotalColumnWidth = 0; for (int i = 0; i < table.getColumnCount(); i++) minTotalColumnWidth += table.getColumnModel().getColumn(i).getMinWidth(); if (minTotalColumnWidth == 0 || table.getRowCount() == 0) return null; return new Dimension... | 13,409 |
public Dimension getPreferredSize(JComponent comp) { int width = table.getColumnModel().getTotalColumnWidth(); int height = table.getRowCount() * table.getRowHeight(); return new Dimension(width, height); } | public Dimension getPreferredSize(JComponent comp) { int width = table.getColumnModel().getTotalColumnWidth(); int height = table.getRowCount() * table.getRowHeight(); return new Dimension(width, height); } | 13,410 |
public Dimension getPreferredSize(JComponent comp) { int width = table.getColumnModel().getTotalColumnWidth(); int height = table.getRowCount() * table.getRowHeight(); return new Dimension(width, height); } | public Dimension getPreferredSize(JComponent comp) { int width = table.getColumnModel().getTotalColumnWidth(); int height = table.getRowCount() * table.getRowHeight(); return new Dimension(width, height); } | 13,411 |
protected void installDefaults() { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); table.setFont(defaults.getFont("Table.font")); table.setGridColor(defaults.getColor("Table.gridColor")); table.setForeground(defaults.getColor("Table.foreground")); table.setBackground(defaults.getColor("Tabl... | protected void installDefaults() { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); table.setFont(defaults.getFont("Table.font")); table.setGridColor(defaults.getColor("Table.gridColor")); table.setForeground(defaults.getColor("Table.foreground")); table.setBackground(defaults.getColor("Tabl... | 13,412 |
protected void installKeyboardActions() { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); InputMap ancestorMap = (InputMap)defaults.get("Table.ancestorInputMap"); InputMapUIResource parentInputMap = new InputMapUIResource(); // FIXME: The JDK uses a LazyActionMap for parentActionMap ... | protected void installKeyboardActions() { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); InputMap ancestorMap = (InputMap)defaults.get("Table.ancestorInputMap"); InputMapUIResource parentInputMap = new InputMapUIResource(); // FIXME: The JDK uses a LazyActionMap for parentActionMap ... | 13,413 |
public void paint(Graphics gfx, JComponent ignored) { int ncols = table.getColumnCount(); int nrows = table.getRowCount(); if (nrows == 0 || ncols == 0) return; Rectangle clip = gfx.getClipBounds(); TableColumnModel cols = table.getColumnModel(); int height = table.getRowHeight(); int x0 =... | public void paint(Graphics gfx, JComponent ignored) { int ncols = table.getColumnCount(); int nrows = table.getRowCount(); if (nrows == 0 || ncols == 0) return; Rectangle clip = gfx.getClipBounds(); TableColumnModel cols = table.getColumnModel(); int height = table.getRowHeight(); int x0 =... | 13,414 |
public void paint(Graphics gfx, JComponent ignored) { int ncols = table.getColumnCount(); int nrows = table.getRowCount(); if (nrows == 0 || ncols == 0) return; Rectangle clip = gfx.getClipBounds(); TableColumnModel cols = table.getColumnModel(); int height = table.getRowHeight(); int x0 =... | public void paint(Graphics gfx, JComponent ignored) { int ncols = table.getColumnCount(); int nrows = table.getRowCount(); if (nrows == 0 || ncols == 0) return; Rectangle clip = gfx.getClipBounds(); TableColumnModel cols = table.getColumnModel(); int height = table.getRowHeight(); int x0 =... | 13,415 |
public void paint(Graphics gfx, JComponent ignored) { int ncols = table.getColumnCount(); int nrows = table.getRowCount(); if (nrows == 0 || ncols == 0) return; Rectangle clip = gfx.getClipBounds(); TableColumnModel cols = table.getColumnModel(); int height = table.getRowHeight(); int x0 =... | public void paint(Graphics gfx, JComponent ignored) { int ncols = table.getColumnCount(); int nrows = table.getRowCount(); if (nrows == 0 || ncols == 0) return; Rectangle clip = gfx.getClipBounds(); TableColumnModel cols = table.getColumnModel(); int height = table.getRowHeight(); int x0 =... | 13,416 |
public void paint(Graphics gfx, JComponent ignored) { int ncols = table.getColumnCount(); int nrows = table.getRowCount(); if (nrows == 0 || ncols == 0) return; Rectangle clip = gfx.getClipBounds(); TableColumnModel cols = table.getColumnModel(); int height = table.getRowHeight(); int x0 =... | public void paint(Graphics gfx, JComponent ignored) { int ncols = table.getColumnCount(); int nrows = table.getRowCount(); if (nrows == 0 || ncols == 0) return; Rectangle clip = gfx.getClipBounds(); TableColumnModel cols = table.getColumnModel(); int height = table.getRowHeight(); int x0 =... | 13,417 |
Class generate(ClassLoader loader) { byte[] bytecode = new byte[pool.length() + stream.length()]; // More efficient to bypass calling charAt() repetitively. char[] c = pool.toString().toCharArray(); int i = c.length; while (--i >= 0) bytecode[i] = (byte) c[... | Class generate(ClassLoader loader) { byte[] bytecode = new byte[pool.length() + stream.length()]; // More efficient to bypass calling charAt() repetitively. char[] c = pool.toString().toCharArray(); int i = c.length; while (--i >= 0) bytecode[i] = (byte) c[... | 13,418 |
public Throwable getCause() { return exception; } | public Throwable getCause() { return exception; } | 13,419 |
public Throwable getException() { return getCause(); } | public Throwable getException() { return getCause(); } | 13,420 |
public void setVisible(boolean visible) { if (visible == isVisible()) return; boolean old = isVisible(); this.visible = visible; if (old != isVisible()) { firePropertyChange("visible", old, isVisible()); if (visible) { firePopupMenuWillBecomeVisible(); ... | public void setVisible(boolean visible) { if (visible == isVisible()) return; boolean old = isVisible(); this.visible = visible; if (old != isVisible()) { firePropertyChange("visible", old, isVisible()); if (visible) { firePopupMenuWillBecomeVisible(); ... | 13,423 |
protected void loadImage(Image image) { try { tracker.addImage(image, id); id++; tracker.waitForID(id - 1); } catch (InterruptedException ex) { ; // ignore this for now } finally { loadStatus = tracker.statusID(id - 1, false); } } | protected void loadImage(Image image) { try { tracker.addImage(image, id); id++; tracker.waitForID(id - 1) } catch (InterruptedException ex) { // ignore this for now } finally { loadStatus = tracker.statusID(id - 1, false) } } | 13,427 |
public void addCSSAttribute(MutableAttributeSet attr, CSS.Attribute key, String value) { attr.addAttribute(key, value); } | public void addCSSAttribute(MutableAttributeSet attr, CSS.Attribute key, String value) { Object val = CSS.getValue(key, value); attr.addAttribute(key, val); } | 13,429 |
public void addRule(String rule) { CssParser cp = new CssParser(); try { cp.parse(base, new StringReader(rule), false, false); } catch (IOException io) { // Do nothing here. } } | public void addRule(String rule) { CssParser cp = new CssParser(); try { cp.parse(base, new StringReader(rule), false, false); } catch (IOException io) { // Do nothing here. } } | 13,430 |
public Color getBackground(AttributeSet a) { return super.getBackground(a); } | public Color getBackground(AttributeSet a) { CSSColor c = (CSSColor) a.getAttribute(CSS.Attribute.BACKGROUND_COLOR); Color color = null; if (c != null) color = c.getValue(); return color; } | 13,431 |
public Font getFont(AttributeSet a) { return super.getFont(a); } | public Font getFont(AttributeSet a) { FontSize size = (FontSize) a.getAttribute(CSS.Attribute.FONT_SIZE); int realSize = 12; if (size != null) realSize = size.getValue(); Object valign = a.getAttribute(CSS.Attribute.VERTICAL_ALIGN); if (valign != null) { String v = valign.toString(); if (v.contains("sup") || v.... | 13,432 |
public Color getForeground(AttributeSet a) { return super.getForeground(a); } | public Color getForeground(AttributeSet a) { CSSColor c = (CSSColor) a.getAttribute(CSS.Attribute.COLOR); Color color = null; if (c != null) color = c.getValue(); return color; } | 13,433 |
public Style getRule(HTML.Tag t, Element e) { // FIXME: Not implemented. return null; } | public Style getRule(HTML.Tag t, Element e) { // FIXME: Not implemented. ArrayList path = new ArrayList(); Element el; AttributeSet atts; for (el = e; el != null; el = el.getParentElement()) path.add(el); StringBuilder selector = new StringBuilder(); int count = path.size(); for (int i = count - 1; i > 0; ... | 13,434 |
public AttributeSet getViewAttributes(View v) { // FIXME: Not implemented. return null; } | public AttributeSet getViewAttributes(View v) { // FIXME: Not implemented. return new ViewAttributeSet(v, this); } | 13,435 |
public void loadRules(Reader in, URL ref) throws IOException { CssParser cp = new CssParser(); cp.parse(ref, in, false, false); } | public void loadRules(Reader in, URL ref) throws IOException { CssParser cp = new CssParser(); cp.parse(ref, in, false, false); } | 13,436 |
public void loadRules(Reader in, URL ref) throws IOException { CssParser cp = new CssParser(); cp.parse(ref, in, false, false); } | public void loadRules(Reader in, URL ref) throws IOException { CssParser cp = new CssParser(); cp.parse(ref, in, false, false); } | 13,437 |
public Color stringToColor(String color) { color = color.toLowerCase(); if (color.equals("black") || color.equals("#000000")) return Color.BLACK; else if (color.equals("aqua") || color.equals("#00FFFF")) return new Color(127, 255, 212); else if (color.equals("gray") || color.equals("#808080")) ... | public Color stringToColor(String colorName) { color = color.toLowerCase(); if (color.equals("black") || color.equals("#000000")) return Color.BLACK; else if (color.equals("aqua") || color.equals("#00FFFF")) return new Color(127, 255, 212); else if (color.equals("gray") || color.equals("#808080... | 13,438 |
public Color stringToColor(String color) { color = color.toLowerCase(); if (color.equals("black") || color.equals("#000000")) return Color.BLACK; else if (color.equals("aqua") || color.equals("#00FFFF")) return new Color(127, 255, 212); else if (color.equals("gray") || color.equals("#808080")) ... | public Color stringToColor(String color) { color = color.toLowerCase(); if (color.equals("black") || color.equals("#000000")) return Color.BLACK; else if (color.equals("aqua") || color.equals("#00FFFF")) return new Color(127, 255, 212); else if (color.equals("gray") || color.equals("#808080")) ... | 13,439 |
public AttributeSet translateHTMLToCSS(AttributeSet htmlAttrSet) { // FIXME: Not implemented. return null; } | public AttributeSet translateHTMLToCSS(AttributeSet htmlAttrSet) { // FIXME: Not implemented. AttributeSet cssAttr = htmlAttrSet.copyAttributes(); MutableAttributeSet cssStyle = addStyle(null, null); cssStyle.addAttributes(cssAttr); return cssStyle; } | 13,440 |
public BSHConsole(JTextArea output) { this.out=new BSHOutputAdapter(output); //this.output=output; } | public BSHConsole(JTextArea output) { this.out=new BSHOutputAdapter(output); //this.output=output; } | 13,441 |
public void error(Object o) { out.print(o); } | public void error(Object o) { out.print(o); } | 13,442 |
public void print(Object o) { out.print(o); } | public void print(Object o) { out.print(o); } | 13,443 |
public void println(Object o) { out.println(o); } | public void println(Object o) { out.println(o); } | 13,444 |
public BSHOutputAdapter(JTextArea target) { this(target, new NullOutputStream()); } | public BSHOutputAdapter(JTextArea target) { this(target, new NullOutputStream()); } | 13,445 |
public void print(String s) { target.append(s); target.repaint(); } | public void print(String s) { target.append(s); target.repaint(); } | 13,446 |
public void println(String s) { target.append(s + "\n"); target.repaint(); } | public void println(String s) { target.append(s + "\n"); target.repaint(); } | 13,447 |
public CharvaShell() { super("Charva Beanshell v1.0"); setForeground(Color.green); setBackground(Color.black); Container cp = super.getContentPane(); cp.setLayout(new BorderLayout()); addMenuBar(); messagePanel.setLayout(new BoxLayout(... | public CharvaShell() { super("Charva Beanshell v1.0"); setForeground(Color.green); setBackground(Color.black); Container cp = super.getContentPane(); cp.setLayout(new BorderLayout()); addMenuBar(); messagePanel.setLayout(new BoxLayout(... | 13,448 |
public CharvaShell() { super("Charva Beanshell v1.0"); setForeground(Color.green); setBackground(Color.black); Container cp = super.getContentPane(); cp.setLayout(new BorderLayout()); addMenuBar(); messagePanel.setLayout(new BoxLayout(... | public CharvaShell() { super("Charva Beanshell v1.0"); setForeground(Color.green); setBackground(Color.black); Container cp = super.getContentPane(); cp.setLayout( new BorderLayout() ); addMenuBar(); messagePanel.setLayout(new BoxLayou... | 13,449 |
public CharvaShell() { super("Charva Beanshell v1.0"); setForeground(Color.green); setBackground(Color.black); Container cp = super.getContentPane(); cp.setLayout(new BorderLayout()); addMenuBar(); messagePanel.setLayout(new BoxLayout(... | public CharvaShell() { super("Charva Beanshell v1.0"); setForeground(Color.green); setBackground(Color.black); Container cp = super.getContentPane(); cp.setLayout(new BorderLayout()); addMenuBar(); messagePanel.setLayout(new BoxLayout(... | 13,450 |
public CharvaShell() { super("Charva Beanshell v1.0"); setForeground(Color.green); setBackground(Color.black); Container cp = super.getContentPane(); cp.setLayout(new BorderLayout()); addMenuBar(); messagePanel.setLayout(new BoxLayout(... | public CharvaShell() { super("Charva Beanshell v1.0"); setForeground(Color.green); setBackground(Color.black); Container cp = super.getContentPane(); cp.setLayout(new BorderLayout()); addMenuBar(); messagePanel.setLayout(new BoxLayout(... | 13,451 |
public CharvaShell() { super("Charva Beanshell v1.0"); setForeground(Color.green); setBackground(Color.black); Container cp = super.getContentPane(); cp.setLayout(new BorderLayout()); addMenuBar(); messagePanel.setLayout(new BoxLayout(... | public CharvaShell() { super("Charva Beanshell v1.0"); setForeground(Color.green); setBackground(Color.black); Container cp = super.getContentPane(); cp.setLayout(new BorderLayout()); addMenuBar(); messagePanel.setLayout(new BoxLayout(... | 13,452 |
public CharvaShell() { super("Charva Beanshell v1.0"); setForeground(Color.green); setBackground(Color.black); Container cp = super.getContentPane(); cp.setLayout(new BorderLayout()); addMenuBar(); messagePanel.setLayout(new BoxLayout(... | public CharvaShell() { super("Charva Beanshell v1.0"); setForeground(Color.green); setBackground(Color.black); Container cp = super.getContentPane(); cp.setLayout(new BorderLayout()); addMenuBar(); messagePanel.setLayout(new BoxLayout(... | 13,453 |
public CharvaShell() { super("Charva Beanshell v1.0"); setForeground(Color.green); setBackground(Color.black); Container cp = super.getContentPane(); cp.setLayout(new BorderLayout()); addMenuBar(); messagePanel.setLayout(new BoxLayout(... | public CharvaShell() { super("Charva Beanshell v1.0"); setForeground(Color.green); setBackground(Color.black); Container cp = super.getContentPane(); cp.setLayout(new BorderLayout()); addMenuBar(); messagePanel.setLayout(new BoxLayout(... | 13,454 |
public CharvaShell() { super("Charva Beanshell v1.0"); setForeground(Color.green); setBackground(Color.black); Container cp = super.getContentPane(); cp.setLayout(new BorderLayout()); addMenuBar(); messagePanel.setLayout(new BoxLayout(... | public CharvaShell() { super("Charva Beanshell v1.0"); setForeground(Color.green); setBackground(Color.black); Container cp = super.getContentPane(); cp.setLayout(new BorderLayout()); addMenuBar(); messagePanel.setLayout(new BoxLayout(... | 13,455 |
public CharvaShell() { super("Charva Beanshell v1.0"); setForeground(Color.green); setBackground(Color.black); Container cp = super.getContentPane(); cp.setLayout(new BorderLayout()); addMenuBar(); messagePanel.setLayout(new BoxLayout(... | public CharvaShell() { super("Charva Beanshell v1.0"); setForeground(Color.green); setBackground(Color.black); Container cp = super.getContentPane(); cp.setLayout(new BorderLayout()); addMenuBar(); messagePanel.setLayout(new BoxLayout(... | 13,456 |
public CharvaShell() { super("Charva Beanshell v1.0"); setForeground(Color.green); setBackground(Color.black); Container cp = super.getContentPane(); cp.setLayout(new BorderLayout()); addMenuBar(); messagePanel.setLayout(new BoxLayout(... | public CharvaShell() { super("Charva Beanshell v1.0"); setForeground(Color.green); setBackground(Color.black); Container cp = super.getContentPane(); cp.setLayout(new BorderLayout()); addMenuBar(); messagePanel.setLayout(new BoxLayout(... | 13,457 |
public CharvaShell() { super("Charva Beanshell v1.0"); setForeground(Color.green); setBackground(Color.black); Container cp = super.getContentPane(); cp.setLayout(new BorderLayout()); addMenuBar(); messagePanel.setLayout(new BoxLayout(... | public CharvaShell() { super("Charva Beanshell v1.0"); setForeground(Color.green); setBackground(Color.black); Container cp = super.getContentPane(); cp.setLayout(new BorderLayout()); addMenuBar(); messagePanel.setLayout(new BoxLayout(... | 13,458 |
public void keyPressed(KeyEvent ke) { if (ke.getKeyCode() == KeyEvent.VK_F12) { evaluateText(); repaint(); } } | public void keyPressed(KeyEvent ke) { if (ke.getKeyCode() == KeyEvent.VK_F12) { evaluateText(); repaint(); } } | 13,459 |
private void addMenuBar() { JMenuBar menubar = new JMenuBar(); JMenu jMenuFile = new JMenu("File"); jMenuFile.setMnemonic('F'); JMenuItem exit = new JMenuItem("Exit"); exit.addActionListener(new ActionListener() { public void actionPerformed(... | private void addMenuBar() { JMenuBar menubar = new JMenuBar(); JMenu jMenuFile = new JMenu("File"); jMenuFile.setMnemonic('F'); JMenuItem exit = new JMenuItem("Exit"); exit.addActionListener(new ActionListener() { public void actionPerformed(... | 13,460 |
private void addMenuBar() { JMenuBar menubar = new JMenuBar(); JMenu jMenuFile = new JMenu("File"); jMenuFile.setMnemonic('F'); JMenuItem exit = new JMenuItem("Exit"); exit.addActionListener(new ActionListener() { public void actionPerformed(... | private void addMenuBar() { JMenuBar menubar = new JMenuBar(); JMenu jMenuFile = new JMenu("File"); jMenuFile.setMnemonic('F'); JMenuItem exit = new JMenuItem("Exit"); exit.addActionListener(new ActionListener() { public void actionPerformed(... | 13,461 |
private void addMenuBar() { JMenuBar menubar = new JMenuBar(); JMenu jMenuFile = new JMenu("File"); jMenuFile.setMnemonic('F'); JMenuItem exit = new JMenuItem("Exit"); exit.addActionListener(new ActionListener() { public void actionPerformed(... | private void addMenuBar() { JMenuBar menubar = new JMenuBar(); JMenu jMenuFile = new JMenu("File"); jMenuFile.setMnemonic('F'); JMenuItem exit = new JMenuItem("Exit"); exit.addActionListener(new ActionListener() { public void actionPerformed(... | 13,462 |
private void addMenuBar() { JMenuBar menubar = new JMenuBar(); JMenu jMenuFile = new JMenu("File"); jMenuFile.setMnemonic('F'); JMenuItem exit = new JMenuItem("Exit"); exit.addActionListener(new ActionListener() { public void actionPerformed(... | private void addMenuBar() { JMenuBar menubar = new JMenuBar(); JMenu jMenuFile = new JMenu("File"); jMenuFile.setMnemonic('F'); JMenuItem exit = new JMenuItem("Exit"); exit.addActionListener(new ActionListener() { public void actionPerformed(... | 13,463 |
private void addMenuBar() { JMenuBar menubar = new JMenuBar(); JMenu jMenuFile = new JMenu("File"); jMenuFile.setMnemonic('F'); JMenuItem exit = new JMenuItem("Exit"); exit.addActionListener(new ActionListener() { public void actionPerformed(... | private void addMenuBar() { JMenuBar menubar = new JMenuBar(); JMenu jMenuFile = new JMenu("File"); jMenuFile.setMnemonic('F'); JMenuItem exit = new JMenuItem("Exit"); exit.addActionListener(new ActionListener() { public void actionPerformed(... | 13,464 |
public void actionPerformed(ActionEvent ae_) { done(); } | public void actionPerformed( ActionEvent ae_ ) { Thread t = new Thread( new Runnable() { public void run() { done(); } } ); done(); } | 13,465 |
void done() { hide(); Toolkit.getDefaultToolkit().close(); Toolkit.getDefaultToolkit().waitTillFinished(); System.err.println("Finished Charva Shell"); } | void done() { hide(); Toolkit.getDefaultToolkit().close(); Toolkit.getDefaultToolkit().waitTillFinished(); System.err.println("Finished Charva Shell"); } | 13,466 |
private void evaluateText() { String sourcecode = editor.getText(); System.out.println("Evaluating source string=" + sourcecode); topLabel.setText("Evaluating..."); repaint();// Interpreter interpreter = new Interpreter(); try { Ob... | private void evaluateText() { String sourcecode = editor.getText(); System.out.println("Evaluating source string=" + sourcecode); topLabel.setText("Evaluating..."); repaint();// Interpreter interpreter = new Interpreter(); try { Ob... | 13,467 |
private void evaluateText() { String sourcecode = editor.getText(); System.out.println("Evaluating source string=" + sourcecode); topLabel.setText("Evaluating..."); repaint();// Interpreter interpreter = new Interpreter(); try { Ob... | private void evaluateText() { String sourcecode = editor.getText(); System.out.println("Evaluating source string=" + sourcecode); topLabel.setText("Evaluating..."); repaint();// Interpreter interpreter = new Interpreter(); try { Ob... | 13,468 |
private void evaluateText() { String sourcecode = editor.getText(); System.out.println("Evaluating source string=" + sourcecode); topLabel.setText("Evaluating..."); repaint();// Interpreter interpreter = new Interpreter(); try { Ob... | private void evaluateText() { String sourcecode = editor.getText(); System.out.println("Evaluating source string=" + sourcecode); topLabel.setText("Evaluating..."); repaint();// Interpreter interpreter = new Interpreter(); try { Ob... | 13,469 |
private void evaluateText() { String sourcecode = editor.getText(); System.out.println("Evaluating source string=" + sourcecode); topLabel.setText("Evaluating..."); repaint();// Interpreter interpreter = new Interpreter(); try { Ob... | private void evaluateText() { String sourcecode = editor.getText(); System.out.println("Evaluating source string=" + sourcecode); topLabel.setText("Evaluating..."); repaint();// Interpreter interpreter = new Interpreter(); try { Ob... | 13,470 |
public static void main(String[] args) { System.err.println("Starting Charva Shell"); CharvaShell testwin = new CharvaShell(); testwin.show(); Toolkit.getDefaultToolkit().waitTillFinished(); System.err.println("Finished Charva Shell"); } | public static void main(String[] args) { System.err.println("Starting Charva Shell"); CharvaShell testwin = new CharvaShell(); testwin.show(); Toolkit.getDefaultToolkit().waitTillFinished(); System.err.println("Finished Charva Shell"); } | 13,471 |
private void pushURL(boolean isPE, String ename, ExternalIdentifiers ids, Reader reader, InputStream stream, String encoding, boolean doResolve) throws SAXException, IOException { boolean ignoreEncoding; String systemId; InputSource source; if (!isPE) { ... | private void pushURL(boolean isPE, String ename, ExternalIdentifiers ids, Reader reader, InputStream stream, String encoding, boolean doResolve) throws SAXException, IOException { boolean ignoreEncoding; String systemId; InputSource source; if (!isPE) { ... | 13,472 |
public static void showRunScriptDialog(SessionGUI session) { JPanel rsp = new JPanel(); rsp.setLayout(new BorderLayout()); JLabel jl = new JLabel("Enter script to run"); final JTextField rst = new JTextField(); rsp.add(jl,BorderLayout.NORTH); rsp.add(rst,BorderLayout.CENTER); Objec... | public static void showRunScriptDialog(SessionGUI session) { JPanel rsp = new JPanel(); rsp.setLayout(new BorderLayout()); JLabel jl = new JLabel("Enter script to run"); final JTextField rst = new JTextField(); rsp.add(jl,BorderLayout.NORTH); rsp.add(rst,BorderLayout.CENTER); Objec... | 13,473 |
private Void() { } | private Void() { } | 13,474 |
clone(){ return(ci.clone());} | clone(){ return(ci.clone());} | 13,475 |
clone(){ return(ci.clone());} | clone(){ return(ci.clone());} | 13,476 |
current(){ return(ci.current());} | current(){ return(ci.current());} | 13,477 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.