bugged stringlengths 6 599k | fixed stringlengths 6 40.8M | __index_level_0__ int64 0 3.24M |
|---|---|---|
public int getAccessibleIndexInParent() throws NotImplementedException { // FIXME: Implement this properly. return 0; } | public int getAccessibleIndexInParent() { // FIXME: Implement this properly. return 0; } | 6,821 |
public int getAccessibleIndexInParent() throws NotImplementedException { // FIXME: Implement this properly. return 0; } | public int getAccessibleIndexInParent() throws NotImplementedException { // FIXME: Implement this properly. return indexOfTab(title); } | 6,822 |
public AccessibleStateSet getAccessibleStateSet() throws NotImplementedException { // FIXME: Implement this properly. return null; } | public AccessibleStateSet getAccessibleStateSet() { // FIXME: Implement this properly. return null; } | 6,823 |
public AccessibleStateSet getAccessibleStateSet() throws NotImplementedException { // FIXME: Implement this properly. return null; } | public AccessibleStateSet getAccessibleStateSet() throws NotImplementedException { // FIXME: Implement this properly. AccessibleContext parentCtx = JTabbedPane.this.getAccessibleContext(); AccessibleStateSet state = parentCtx.getAccessibleStateSet(); state.add(AccessibleState.SELECTABLE); if (compo... | 6,824 |
public AccessibleContext getAccessibleContext() { if (accessibleContext == null) accessibleContext = new AccessibleJTabbedPane(); return accessibleContext; } | public AccessibleContext getAccessibleContext() { if (accessibleContext == null) { AccessibleJTabbedPane ctx = new AccessibleJTabbedPane(); addChangeListener(ctx); accessibleContext = ctx; } return accessibleContext; } | 6,825 |
protected String paramString() { return "JTabbedPane"; } | protected String paramString() { StringBuffer sb = new StringBuffer(super.paramString()); sb.append(",tabPlacement="); if (tabPlacement == TOP) sb.append("TOP"); if (tabPlacement == BOTTOM) sb.append("BOTTOM"); if (tabPlacement == LEFT) sb.append("LEFT"); if (tabPlacement == RIGHT) sb.append("RIGHT"); return sb.t... | 6,826 |
public Object run() { proxyHostname = System.getProperty("http.proxyHost"); if (proxyHostname != null && proxyHostname.length() > 0) { String port = System.getProperty("http.proxyPort"); if (port != null && port.length() > 0) { proxyPort = Integer.parseI... | public Object run() { proxyHostname = System.getProperty("http.proxyHost"); if (proxyHostname != null && proxyHostname.length() > 0) { String port = System.getProperty("http.proxyPort"); if (port != null && port.length() > 0) { proxyPort = Integer.parseI... | 6,827 |
HTTPConnection getConnection(String host, int port, boolean secure) throws IOException { HTTPConnection connection; if (keepAlive) { Object key = HTTPConnection.getPoolKey(host, port, secure); synchronized (connectionPool) { connection = (HTTPConnection) connectionPool... | HTTPConnection getConnection(String host, int port, boolean secure) throws IOException { HTTPConnection connection; if (keepAlive) { Object key = HTTPConnection.getPoolKey(host, port, secure); synchronized (connectionPool) { connection = (HTTPConnection) connectionPool... | 6,828 |
protected int layoutRow(FlowView fv, int rowIndex, int pos) { View row = fv.getView(rowIndex); int axis = fv.getFlowAxis(); int span = fv.getFlowSpan(rowIndex); int x = fv.getFlowStart(rowIndex); int offset = pos; View logicalView = getLogicalView(fv); // Special case when span... | protected int layoutRow(FlowView fv, int rowIndex, int pos) { View row = fv.getView(rowIndex); int axis = fv.getFlowAxis(); int span = fv.getFlowSpan(rowIndex); int x = fv.getFlowStart(rowIndex); int offset = pos; View logicalView = getLogicalView(fv); // Special case when span... | 6,829 |
LogicalView(Element el) { super(el); children = new Vector(); } | LogicalView(Element el) { super(el); children = new Vector(); } | 6,830 |
protected void loadChildren(ViewFactory vf) { if (layoutPool == null) { layoutPool = new LogicalView(getElement()); layoutPool.setParent(this); Element el = getElement(); int count = el.getElementCount(); for (int i = 0; i < count; ++i) { Element childEl... | protected void loadChildren(ViewFactory vf) { if (layoutPool == null) { layoutPool = new LogicalView(getElement(), getAxis()); layoutPool.setParent(this); Element el = getElement(); int count = el.getElementCount(); for (int i = 0; i < count; ++i) { Elem... | 6,831 |
protected void loadChildren(ViewFactory vf) { if (layoutPool == null) { layoutPool = new LogicalView(getElement()); layoutPool.setParent(this); Element el = getElement(); int count = el.getElementCount(); for (int i = 0; i < count; ++i) { Element childEl... | protected void loadChildren(ViewFactory vf) { if (layoutPool == null) { layoutPool = new LogicalView(getElement()); layoutPool.setParent(this); Element el = getElement(); int count = el.getElementCount(); for (int i = 0; i < count; ++i) { Element childEl... | 6,832 |
public PublicKey decodePublicKey(byte[] input) { if (input == null) throw new InvalidParameterException("Input bytes MUST NOT be null"); BigInteger n, e; DERReader der = new DERReader(input); try { DERValue derSPKI = der.read(); checkIsConstructed(derSPKI, "Wrong SubjectPublicKeyI... | public PublicKey decodePublicKey(byte[] input) { if (input == null) throw new InvalidParameterException("Input bytes MUST NOT be null"); BigInteger n, e; DERReader der = new DERReader(input); try { DERValue derSPKI = der.read(); DerUtil.checkIsConstructed(derSPKI, "Wrong SubjectPu... | 6,833 |
public PublicKey decodePublicKey(byte[] input) { if (input == null) throw new InvalidParameterException("Input bytes MUST NOT be null"); BigInteger n, e; DERReader der = new DERReader(input); try { DERValue derSPKI = der.read(); checkIsConstructed(derSPKI, "Wrong SubjectPublicKeyI... | public PublicKey decodePublicKey(byte[] input) { if (input == null) throw new InvalidParameterException("Input bytes MUST NOT be null"); BigInteger n, e; DERReader der = new DERReader(input); try { DERValue derSPKI = der.read(); checkIsConstructed(derSPKI, "Wrong SubjectPublicKeyI... | 6,834 |
public PublicKey decodePublicKey(byte[] input) { if (input == null) throw new InvalidParameterException("Input bytes MUST NOT be null"); BigInteger n, e; DERReader der = new DERReader(input); try { DERValue derSPKI = der.read(); checkIsConstructed(derSPKI, "Wrong SubjectPublicKeyI... | public PublicKey decodePublicKey(byte[] input) { if (input == null) throw new InvalidParameterException("Input bytes MUST NOT be null"); BigInteger n, e; DERReader der = new DERReader(input); try { DERValue derSPKI = der.read(); checkIsConstructed(derSPKI, "Wrong SubjectPublicKeyI... | 6,835 |
public PublicKey decodePublicKey(byte[] input) { if (input == null) throw new InvalidParameterException("Input bytes MUST NOT be null"); BigInteger n, e; DERReader der = new DERReader(input); try { DERValue derSPKI = der.read(); checkIsConstructed(derSPKI, "Wrong SubjectPublicKeyI... | public PublicKey decodePublicKey(byte[] input) { if (input == null) throw new InvalidParameterException("Input bytes MUST NOT be null"); BigInteger n, e; DERReader der = new DERReader(input); try { DERValue derSPKI = der.read(); checkIsConstructed(derSPKI, "Wrong SubjectPublicKeyI... | 6,836 |
public PublicKey decodePublicKey(byte[] input) { if (input == null) throw new InvalidParameterException("Input bytes MUST NOT be null"); BigInteger n, e; DERReader der = new DERReader(input); try { DERValue derSPKI = der.read(); checkIsConstructed(derSPKI, "Wrong SubjectPublicKeyI... | public PublicKey decodePublicKey(byte[] input) { if (input == null) throw new InvalidParameterException("Input bytes MUST NOT be null"); BigInteger n, e; DERReader der = new DERReader(input); try { DERValue derSPKI = der.read(); checkIsConstructed(derSPKI, "Wrong SubjectPublicKeyI... | 6,837 |
public final boolean writeClassInitialize(VmMethod method) { // Only for static methods (non <clinit>) if (method.isStatic() && !method.isInitializer()) { // Only when class is not initialize final VmType< ? > cls = method.getDeclaringClass(); if (!cls.isInitialized())... | public final boolean writeClassInitialize(VmMethod method) { // Only for static methods (non <clinit>) if (method.isStatic() && !method.isInitializer()) { // Only when class is not initialize final VmType< ? > cls = method.getDeclaringClass(); if (!cls.isInitialized())... | 6,838 |
public final boolean writeClassInitialize(VmMethod method) { // Only for static methods (non <clinit>) if (method.isStatic() && !method.isInitializer()) { // Only when class is not initialize final VmType< ? > cls = method.getDeclaringClass(); if (!cls.isInitialized())... | public final boolean writeClassInitialize(VmMethod method) { // Only for static methods (non <clinit>) if (method.isStatic() && !method.isInitializer()) { // Only when class is not initialize final VmType< ? > cls = method.getDeclaringClass(); if (!cls.isInitialized())... | 6,839 |
public final boolean writeClassInitialize(VmMethod method) { // Only for static methods (non <clinit>) if (method.isStatic() && !method.isInitializer()) { // Only when class is not initialize final VmType< ? > cls = method.getDeclaringClass(); if (!cls.isInitialized())... | public final boolean writeClassInitialize(VmMethod method) { // Only for static methods (non <clinit>) if (method.isStatic() && !method.isInitializer()) { // Only when class is not initialize final VmType< ? > cls = method.getDeclaringClass(); if (!cls.isInitialized())... | 6,840 |
public final void writeLoadIsolatedStatics(Label curInstrLabel, String labelPrefix, GPR dst) { final int offset = entryPoints.getVmProcessorIsolatedStaticsTable() .getOffset(); if (os.isCode32()) { os.writeXOR(dst, dst); os.writePrefix(X86Constants.FS_PR... | public final void writeLoadIsolatedStatics(Label curInstrLabel, String labelPrefix, GPR dst) { final int offset = entryPoints.getVmProcessorIsolatedStaticsTable() .getOffset(); if (os.isCode32()) { Vm.getVm().getCounter("### load " + dst.getName()).inc(); ... | 6,841 |
public final void writeLoadIsolatedStatics(Label curInstrLabel, String labelPrefix, GPR dst) { final int offset = entryPoints.getVmProcessorIsolatedStaticsTable() .getOffset(); if (os.isCode32()) { os.writeXOR(dst, dst); os.writePrefix(X86Constants.FS_PR... | public final void writeLoadIsolatedStatics(Label curInstrLabel, String labelPrefix, GPR dst) { final int offset = entryPoints.getVmProcessorIsolatedStaticsTable() .getOffset(); if (os.isCode32()) { os.writeXOR(dst, dst); os.writePrefix(X86Constants.FS_PR... | 6,842 |
public void mousePressed(MouseEvent event) { // TODO: What should be done here, if anything? } | list.requestFocusInWindow(); list.requestFocusInWindow(); list.requestFocusInWindow(); list.requestFocusInWindow(); public list.requestFocusInWindow(); void list.requestFocusInWindow(); mousePressed(MouseEvent list.requestFocusInWindow(); event) list.requestFocusInWindow(); list.requestFocusInWindow(); list.reque... | 6,843 |
protected void installKeyboardActions() { InputMap focusInputMap = (InputMap) UIManager.get("List.focusInputMap"); InputMapUIResource parentInputMap = new InputMapUIResource(); // FIXME: The JDK uses a LazyActionMap for parentActionMap ActionMap parentActionMap = new ActionMapUIResource(); action = ne... | protected void installKeyboardActions() { InputMap focusInputMap = (InputMap) UIManager.get("List.focusInputMap"); InputMapUIResource parentInputMap = new InputMapUIResource(); // FIXME: The JDK uses a LazyActionMap for parentActionMap ActionMap parentActionMap = new ActionMapUIResource(); action = ne... | 6,844 |
protected void installKeyboardActions() { InputMap focusInputMap = (InputMap) UIManager.get("List.focusInputMap"); InputMapUIResource parentInputMap = new InputMapUIResource(); // FIXME: The JDK uses a LazyActionMap for parentActionMap ActionMap parentActionMap = new ActionMapUIResource(); action = ne... | protected void installKeyboardActions() { InputMap focusInputMap = (InputMap) UIManager.get("List.focusInputMap"); InputMapUIResource parentInputMap = new InputMapUIResource(); // FIXME: The JDK uses a LazyActionMap for parentActionMap ActionMap parentActionMap = new ActionMapUIResource(); action = ne... | 6,845 |
protected void installKeyboardActions() { InputMap focusInputMap = (InputMap) UIManager.get("List.focusInputMap"); InputMapUIResource parentInputMap = new InputMapUIResource(); // FIXME: The JDK uses a LazyActionMap for parentActionMap ActionMap parentActionMap = new ActionMapUIResource(); action = ne... | protected void installKeyboardActions() { InputMap focusInputMap = (InputMap) UIManager.get("List.focusInputMap"); InputMapUIResource parentInputMap = new InputMapUIResource(); // FIXME: The JDK uses a LazyActionMap for parentActionMap ActionMap parentActionMap = new ActionMapUIResource(); action = ne... | 6,846 |
protected void installKeyboardActions() { InputMap focusInputMap = (InputMap) UIManager.get("List.focusInputMap"); InputMapUIResource parentInputMap = new InputMapUIResource(); // FIXME: The JDK uses a LazyActionMap for parentActionMap ActionMap parentActionMap = new ActionMapUIResource(); action = ne... | protected void installKeyboardActions() { InputMap focusInputMap = (InputMap) UIManager.get("List.focusInputMap"); InputMapUIResource parentInputMap = new InputMapUIResource(); // FIXME: The JDK uses a LazyActionMap for parentActionMap ActionMap parentActionMap = new ActionMapUIResource(); action = ne... | 6,847 |
protected void paintCell(Graphics g, int row, Rectangle bounds, ListCellRenderer rend, ListModel data, ListSelectionModel sel, int lead) { boolean isSel = list.isSelectedIndex(row); boolean hasFocus = (list.getLeadSelectionIndex() == row) && BasicListUI.this.list.hasFocus(); ... | protected void paintCell(Graphics g, int row, Rectangle bounds, ListCellRenderer rend, ListModel data, ListSelectionModel sel, int lead) { boolean isSel = list.isSelectedIndex(row); boolean hasFocus = (list.getLeadSelectionIndex() == row) && BasicListUI.this.list.hasFocus(); ... | 6,848 |
protected void uninstallKeyboardActions() throws NotImplementedException { // TODO: Implement this properly. } | protected void uninstallKeyboardActions() { // TODO: Implement this properly. } | 6,849 |
protected void uninstallKeyboardActions() throws NotImplementedException { // TODO: Implement this properly. } | InputMap im = SwingUtilities.getUIInputMap(list, JComponent.WHEN_FOCUSED); if (im instanceof UIResource) SwingUtilities.replaceUIInputMap(list, JComponent.WHEN_FOCUSED, null); if (SwingUtilities.getUIActionMap(list) instanceof UIResource) SwingUtilities.replaceUIActionMap(list, null); InputMap im = SwingUtilities.g... | 6,850 |
public Object get() throws InterruptedException { synchronized (lock) { // wait until there is something to read while (isEmpty()) lock.wait(); // just something here to try. if (vector.size() >= 10) { vector.remove(0); vector.remove(0); ... | public Object get() throws InterruptedException { synchronized (lock) { // wait until there is something to read while (isEmpty()) lock.wait(); // just something here to try. /** * @todo here is the throttling code to look at * * just something here to try. OK it work... | 6,851 |
public AccessibleStateSet getAccessibleStateSet() { // TODO: What state shoiuld be returned here? return new AccessibleStateSet(); } | public AccessibleStateSet getAccessibleStateSet() { // TODO: What state shoiuld be returned here? AccessibleStateSet state = new AccessibleStateSet(); Rectangle visibleRect = getVisibleRect(); Rectangle cellRect = getCellRect(row, column, false); if (visibleRect.intersects(cellRect)) state.add... | 6,854 |
protected AccessibleJTable() { getModel().addTableModelListener(this); getSelectionModel().addListSelectionListener(this); getColumnModel().addColumnModelListener(this); getCellEditor().addCellEditorListener(this); } | protected AccessibleJTable() { getModel().addTableModelListener(this); getSelectionModel().addListSelectionListener(this); getColumnModel().addColumnModelListener(this); lastSelectedRow = getSelectedRow(); lastSelectedColumn = getSelectedColumn(); TableCellEditor editor = getCellEditor(); if ... | 6,855 |
public void addAccessibleSelection(int i) { // TODO Auto-generated method stub } | int r = getAccessibleRowAtIndex(i); int c = getAccessibleColumnAtIndex(i); changeSelection(r, c, true, false); int r = getAccessibleRowAtIndex(i); int c = getAccessibleColumnAtIndex(i); changeSelection(r, c, true, false); public void addAccessibleSelection(int i)int r = getAccessibleRowAtIndex(i); int c = getAccessible... | 6,856 |
public void clearAccessibleSelection() { // TODO Auto-generated method stub } | clearSelection(); clearSelection(); public void clearAccessibleSelection()clearSelection(); clearSelection(); {clearSelection(); clearSelection(); clearSelection(); // TODO Auto-generated method stubclearSelection(); clearSelection(); clearSelection(); clearSelection(); clearSelection(); } | 6,857 |
public void columnAdded(TableColumnModelEvent event) { // TODO Auto-generated method stub } | firePropertyChange(AccessibleContext.ACCESSIBLE_VISIBLE_DATA_PROPERTY, null, null); handleColumnChange(AccessibleTableModelChange.INSERT, event.getFromIndex(), event.getToIndex()); firePropertyChange(AccessibleContext.ACCESSIBLE_VISIBLE_DATA_PROPERTY, null, null); handleColumnChange(AccessibleTableModelChange.INSERT, e... | 6,858 |
public void columnMarginChanged(ChangeEvent event) { // TODO Auto-generated method stub } | firePropertyChange(AccessibleContext.ACCESSIBLE_VISIBLE_DATA_PROPERTY, null, null); firePropertyChange(AccessibleContext.ACCESSIBLE_VISIBLE_DATA_PROPERTY, null, null); public void columnMarginChanged(ChangeEvent event)firePropertyChange(AccessibleContext.ACCESSIBLE_VISIBLE_DATA_PROPERTY, null, null); firePropertyChange... | 6,859 |
public void columnMoved(TableColumnModelEvent event) { // TODO Auto-generated method stub } | firePropertyChange(AccessibleContext.ACCESSIBLE_VISIBLE_DATA_PROPERTY, null, null); handleColumnChange(AccessibleTableModelChange.DELETE, event.getFromIndex(), event.getFromIndex()); handleColumnChange(AccessibleTableModelChange.INSERT, event.getFromIndex(), event.getToIndex()); firePropertyChange(AccessibleContext.ACC... | 6,860 |
public void columnRemoved(TableColumnModelEvent event) { // TODO Auto-generated method stub } | firePropertyChange(AccessibleContext.ACCESSIBLE_VISIBLE_DATA_PROPERTY, null, null); handleColumnChange(AccessibleTableModelChange.DELETE, event.getFromIndex(), event.getToIndex()); firePropertyChange(AccessibleContext.ACCESSIBLE_VISIBLE_DATA_PROPERTY, null, null); handleColumnChange(AccessibleTableModelChange.DELETE, e... | 6,861 |
public void columnSelectionChanged(ListSelectionEvent event) { // TODO Auto-generated method stub } | public void columnSelectionChanged(ListSelectionEvent event) { // TODO Auto-generated method stub } | 6,862 |
public void editingCanceled(ChangeEvent event) { // TODO Auto-generated method stub } | public void editingCanceled(ChangeEvent event) { // TODO Auto-generated method stub } | 6,863 |
public void editingStopped(ChangeEvent event) { // TODO Auto-generated method stub } | firePropertyChange(AccessibleContext.ACCESSIBLE_VISIBLE_DATA_PROPERTY, null, null); firePropertyChange(AccessibleContext.ACCESSIBLE_VISIBLE_DATA_PROPERTY, null, null); public void editingStopped(ChangeEvent event)firePropertyChange(AccessibleContext.ACCESSIBLE_VISIBLE_DATA_PROPERTY, null, null); firePropertyChange(Acce... | 6,864 |
public Accessible getAccessibleAt(int r, int c) { // TODO Auto-generated method stub return null; } | public Accessible getAccessibleAt(int r, int c) { // TODO Auto-generated method stub return getAccessibleChild(r * getAccessibleColumnCount() + c); } | 6,865 |
public Accessible getAccessibleCaption() { // TODO Auto-generated method stub return null; } | public Accessible getAccessibleCaption() { // TODO Auto-generated method stub return caption; } | 6,866 |
public int getAccessibleColumn(int index) { // TODO Auto-generated method stub return 0; } | public int getAccessibleColumn(int index) { // TODO Auto-generated method stub return getAccessibleColumnAtIndex(index); } | 6,867 |
public int getAccessibleColumnCount() { // TODO Auto-generated method stub return 0; } | public int getAccessibleColumnCount() { // TODO Auto-generated method stub return getColumnCount(); } | 6,868 |
public Accessible getAccessibleColumnDescription(int c) { // TODO Auto-generated method stub return null; } | public Accessible getAccessibleColumnDescription(int c) { // TODO Auto-generated method stub Accessible descr = null; if (columnDescriptions != null) descr = columnDescriptions[c]; return descr; } | 6,869 |
public int getAccessibleColumnExtentAt(int r, int c) { // TODO Auto-generated method stub return 0; } | public int getAccessibleColumnExtentAt(int r, int c) { // TODO Auto-generated method stub return 1; } | 6,870 |
public AccessibleTable getAccessibleColumnHeader() { // TODO Auto-generated method stub return null; } | public AccessibleTable getAccessibleColumnHeader() { // TODO Auto-generated method stub JTableHeader h = getTableHeader(); AccessibleTable header = null; if (h != null) header = new AccessibleTableHeader(h); return header; } | 6,871 |
public int getAccessibleIndex(int r, int c) { // TODO Auto-generated method stub return 0; } | public int getAccessibleIndex(int r, int c) { // TODO Auto-generated method stub return getAccessibleIndexAt(r, c); } | 6,872 |
public int getAccessibleRow(int index) { // TODO Auto-generated method stub return 0; } | public int getAccessibleRow(int index) { // TODO Auto-generated method stub return getAccessibleRowAtIndex(index); } | 6,873 |
public int getAccessibleRowCount() { // TODO Auto-generated method stub return 0; } | public int getAccessibleRowCount() { // TODO Auto-generated method stub return getRowCount(); } | 6,874 |
public Accessible getAccessibleRowDescription(int r) { // TODO Auto-generated method stub return null; } | public Accessible getAccessibleRowDescription(int r) { // TODO Auto-generated method stub Accessible descr = null; if (rowDescriptions != null) descr = rowDescriptions[r]; return descr; } | 6,875 |
public int getAccessibleRowExtentAt(int r, int c) { // TODO Auto-generated method stub return 0; } | public int getAccessibleRowExtentAt(int r, int c) { // TODO Auto-generated method stub return 1; } | 6,876 |
public AccessibleTable getAccessibleRowHeader() { // TODO Auto-generated method stub return null; } | public AccessibleTable getAccessibleRowHeader() { // TODO Auto-generated method stub return null; } | 6,877 |
public Accessible getAccessibleSelection(int i) { // TODO Auto-generated method stub return null; } | public Accessible getAccessibleSelection(int i) { // TODO Auto-generated method stub Accessible found = null; int[] selectedRows = getSelectedRows(); int[] selectedColumns = getSelectedColumns(); int numCols = getColumnCount(); int numRows = getRowCount(); if (getRowSelectionAllowed() && getColumnS... | 6,878 |
public Accessible getAccessibleSummary() { // TODO Auto-generated method stub return null; } | public Accessible getAccessibleSummary() { // TODO Auto-generated method stub return summary; } | 6,879 |
public int[] getSelectedAccessibleColumns() { // TODO Auto-generated method stub return null; } | public int[] getSelectedAccessibleColumns() { // TODO Auto-generated method stub return getSelectedColumns(); } | 6,880 |
public int[] getSelectedAccessibleRows() { // TODO Auto-generated method stub return null; } | public int[] getSelectedAccessibleRows() { // TODO Auto-generated method stub return getSelectedRows(); } | 6,881 |
public boolean isAccessibleChildSelected(int i) { // TODO Auto-generated method stub return false; } | public boolean isAccessibleChildSelected(int i) { // TODO Auto-generated method stub int r = getAccessibleRowAtIndex(i); int c = getAccessibleColumnAtIndex(i); return isCellSelected(r, c); } | 6,882 |
public boolean isAccessibleColumnSelected(int c) { // TODO Auto-generated method stub return false; } | public boolean isAccessibleColumnSelected(int c) { // TODO Auto-generated method stub return isColumnSelected(c); } | 6,883 |
public boolean isAccessibleRowSelected(int r) { // TODO Auto-generated method stub return false; } | public boolean isAccessibleRowSelected(int r) { // TODO Auto-generated method stub return isRowSelected(r); } | 6,884 |
public boolean isAccessibleSelected(int r, int c) { // TODO Auto-generated method stub return false; } | public boolean isAccessibleSelected(int r, int c) { // TODO Auto-generated method stub return isCellSelected(r, c); } | 6,885 |
public void removeAccessibleSelection(int i) { // TODO Auto-generated method stub } | if (! getRowSelectionAllowed() && ! getColumnSelectionAllowed()) { int r = getAccessibleRowAtIndex(i); int c = getAccessibleColumnAtIndex(i); removeRowSelectionInterval(r, r); removeColumnSelectionInterval(c, c); } if (! getRowSelectionAllowed() && ! getColumnSelectionAllowed()) { int r = getAccessibleRowAtIndex(i); in... | 6,886 |
public void selectAllAccessibleSelection() { // TODO Auto-generated method stub } | selectAll(); selectAll(); public void selectAllAccessibleSelection()selectAll(); selectAll(); {selectAll(); selectAll(); selectAll(); // TODO Auto-generated method stubselectAll(); selectAll(); selectAll(); selectAll(); selectAll(); } | 6,887 |
public void setAccessibleCaption(Accessible caption) { // TODO Auto-generated method stub } | public void setAccessibleCaption(Accessible c) { // TODO Auto-generated method stub } | 6,888 |
public void setAccessibleCaption(Accessible caption) { // TODO Auto-generated method stub } | caption = c; caption = c; public void setAccessibleCaption(Accessible caption)caption = c; caption = c; {caption = c; caption = c; caption = c; // TODO Auto-generated method stubcaption = c; caption = c; caption = c; caption = c; caption = c; } | 6,889 |
public void setAccessibleColumnDescription(int c, Accessible description) { // TODO Auto-generated method stub } | if (columnDescriptions == null) columnDescriptions = new Accessible[getAccessibleRowCount()]; columnDescriptions[c] = description; if (columnDescriptions == null) columnDescriptions = new Accessible[getAccessibleRowCount()]; columnDescriptions[c] = description; public void setAccessibleColumnDescription(int c, Accessib... | 6,890 |
public void setAccessibleColumnHeader(AccessibleTable header) { // TODO Auto-generated method stub } | public void setAccessibleColumnHeader(AccessibleTable header) { // TODO Auto-generated method stub } | 6,891 |
public void setAccessibleRowDescription(int r, Accessible description) { // TODO Auto-generated method stub } | if (rowDescriptions == null) rowDescriptions = new Accessible[getAccessibleRowCount()]; rowDescriptions[r] = description; if (rowDescriptions == null) rowDescriptions = new Accessible[getAccessibleRowCount()]; rowDescriptions[r] = description; public void setAccessibleRowDescription(int r, Accessible description)if (ro... | 6,892 |
public void setAccessibleRowHeader(AccessibleTable header) { // TODO Auto-generated method stub } | public void setAccessibleRowHeader(AccessibleTable header) { // TODO Auto-generated method stub } | 6,893 |
public void setAccessibleSummary(Accessible summary) { // TODO Auto-generated method stub } | public void setAccessibleSummary(Accessible s) { // TODO Auto-generated method stub } | 6,894 |
public void setAccessibleSummary(Accessible summary) { // TODO Auto-generated method stub } | summary = s; summary = s; public void setAccessibleSummary(Accessible summary)summary = s; summary = s; {summary = s; summary = s; summary = s; // TODO Auto-generated method stubsummary = s; summary = s; summary = s; summary = s; summary = s; } | 6,895 |
public void tableRowsDeleted(TableModelEvent event) { // TODO: What to do here, if anything? This might be a hook method for // subclasses... } | handleRowChange(event); handleRowChange(event); public void tableRowsDeleted(TableModelEvent event)handleRowChange(event); handleRowChange(event); {handleRowChange(event); handleRowChange(event); handleRowChange(event); // TODO: What to do here, if anything? This might be a hook method forhandleRowChange(event); handle... | 6,896 |
public void tableRowsInserted(TableModelEvent event) { // TODO: What to do here, if anything? This might be a hook method for // subclasses... } | handleRowChange(event); handleRowChange(event); public void tableRowsInserted(TableModelEvent event)handleRowChange(event); handleRowChange(event); {handleRowChange(event); handleRowChange(event); handleRowChange(event); // TODO: What to do here, if anything? This might be a hook method forhandleRowChange(event); handl... | 6,897 |
public void valueChanged(ListSelectionEvent event) { // TODO Auto-generated method stub } | firePropertyChange(AccessibleContext.ACCESSIBLE_SELECTION_PROPERTY, Boolean.FALSE, Boolean.TRUE); int r = getSelectedRow(); int c = getSelectedColumn(); if (r != lastSelectedRow || c != lastSelectedColumn) { Accessible o = getAccessibleAt(lastSelectedRow, lastSelectedColumn); Accessible n = getAccessibleAt(r, c); fireP... | 6,898 |
public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column) { super.getTableCellRend... | public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column) { super.getTableCellRend... | 6,899 |
public void columnSelectionChanged (ListSelectionEvent event) { // Does not make sense for the table with the single column. if (getColumnCount() < 2) return; int x0 = 0; int idx0 = event.getFirstIndex(); int idxn = event.getLastIndex(); int i; for (i = 0; i < idx0; i++) x0 += ... | public void columnSelectionChanged (ListSelectionEvent event) { // Does not make sense for the table with the single column. if (getColumnCount() < 2) return; int x0 = 0; int idx0 = event.getFirstIndex(); int idxn = event.getLastIndex(); int i; for (i = 0; i < idx0; i++) x0 += ... | 6,902 |
public void columnSelectionChanged (ListSelectionEvent event) { // Does not make sense for the table with the single column. if (getColumnCount() < 2) return; int x0 = 0; int idx0 = event.getFirstIndex(); int idxn = event.getLastIndex(); int i; for (i = 0; i < idx0; i++) x0 += ... | public void columnSelectionChanged (ListSelectionEvent event) { // Does not make sense for the table with the single column. if (getColumnCount() < 2) return; int x0 = 0; int idx0 = event.getFirstIndex(); int idxn = event.getLastIndex(); int i; for (i = 0; i < idx0; i++) x0 += ... | 6,903 |
protected void createDefaultEditors() { JCheckBox box = new BooleanCellRenderer().getCheckBox(); setDefaultEditor(Boolean.class, new DefaultCellEditor(box)); } | protected void createDefaultEditors() { JCheckBox box = new BooleanCellRenderer().getCheckBox(); box.setBorder(BorderFactory.createLineBorder(getGridColor(), 2)); box.setBorderPainted(true); booleanInvertingEditor = new DefaultCellEditor(box); setDefaultEditor(Boolean.class, booleanInvertingEditor); } | 6,904 |
public void doLayout() { TableColumn resizingColumn = null; int ncols = getColumnCount(); if (ncols < 1) return; int prefSum = 0; int rCol = -1; if (tableHeader != null) resizingColumn = tableHeader.getResizingColumn(); for (int i = 0; i < ncols; ++i) { TableColumn col = co... | public void doLayout() { TableColumn resizingColumn = null; int ncols = getColumnCount(); if (ncols < 1) return; int prefSum = 0; int rCol = -1; if (tableHeader != null) resizingColumn = tableHeader.getResizingColumn(); for (int i = 0; i < ncols; ++i) { TableColumn col = co... | 6,905 |
public boolean editCellAt (int row, int column) { // Complete the previous editing session, if still active. if (isEditing()) editingStopped(new ChangeEvent("editingStopped")); editingRow = row; editingColumn = column; setCellEditor(getCellEditor(row, column)); editorComp = prepareEditor(c... | public boolean editCellAt(int row, int column) { // Complete the previous editing session, if still active. if (isEditing()) editingStopped(new ChangeEvent("editingStopped")); editingRow = row; editingColumn = column; setCellEditor(getCellEditor(row, column)); editorComp = prepareEditor(ce... | 6,906 |
public boolean editCellAt (int row, int column) { // Complete the previous editing session, if still active. if (isEditing()) editingStopped(new ChangeEvent("editingStopped")); editingRow = row; editingColumn = column; setCellEditor(getCellEditor(row, column)); editorComp = prepareEditor(c... | public boolean editCellAt (int row, int column) { // Complete the previous editing session, if still active. if (isEditing()) editingStopped(new ChangeEvent("editingStopped")); editingRow = row; editingColumn = column; setCellEditor(editor); editorComp = prepareEditor(cellEditor, row, colu... | 6,907 |
public boolean editCellAt (int row, int column) { // Complete the previous editing session, if still active. if (isEditing()) editingStopped(new ChangeEvent("editingStopped")); editingRow = row; editingColumn = column; setCellEditor(getCellEditor(row, column)); editorComp = prepareEditor(c... | public boolean editCellAt (int row, int column) { // Complete the previous editing session, if still active. if (isEditing()) editingStopped(new ChangeEvent("editingStopped")); editingRow = row; editingColumn = column; setCellEditor(getCellEditor(row, column)); editorComp = prepareEditor(c... | 6,908 |
public Rectangle getCellRect(int row, int column, boolean includeSpacing) { int height = getRowHeight(row); int width = columnModel.getColumn(column).getWidth(); int x_gap = columnModel.getColumnMargin(); int y_gap = rowMargin; column = Math.... | public Rectangle getCellRect(int row, int column, boolean includeSpacing) { int height = getRowHeight(row); int width = columnModel.getColumn(column).getWidth(); int x_gap = columnModel.getColumnMargin(); int y_gap = rowMargin; column = Math.... | 6,910 |
public Rectangle getCellRect(int row, int column, boolean includeSpacing) { int height = getRowHeight(row); int width = columnModel.getColumn(column).getWidth(); int x_gap = columnModel.getColumnMargin(); int y_gap = rowMargin; column = Math.... | public Rectangle getCellRect(int row, int column, boolean includeSpacing) { int height = getRowHeight(row); int width = columnModel.getColumn(column).getWidth(); int x_gap = columnModel.getColumnMargin(); int y_gap = rowMargin; column = Math.... | 6,911 |
public Rectangle getCellRect(int row, int column, boolean includeSpacing) { int height = getRowHeight(row); int width = columnModel.getColumn(column).getWidth(); int x_gap = columnModel.getColumnMargin(); int y_gap = rowMargin; column = Math.... | public Rectangle getCellRect(int row, int column, boolean includeSpacing) { int height = getRowHeight(row); int width = columnModel.getColumn(column).getWidth(); int x_gap = columnModel.getColumnMargin(); int y_gap = rowMargin; column = Math.... | 6,912 |
public Rectangle getCellRect(int row, int column, boolean includeSpacing) { int height = getRowHeight(row); int width = columnModel.getColumn(column).getWidth(); int x_gap = columnModel.getColumnMargin(); int y_gap = rowMargin; column = Math.... | public Rectangle getCellRect(int row, int column, boolean includeSpacing) { int height = getRowHeight(row); int width = columnModel.getColumn(column).getWidth(); int x_gap = columnModel.getColumnMargin(); int y_gap = rowMargin; column = Math.... | 6,913 |
public Rectangle getCellRect(int row, int column, boolean includeSpacing) { int height = getRowHeight(row); int width = columnModel.getColumn(column).getWidth(); int x_gap = columnModel.getColumnMargin(); int y_gap = rowMargin; column = Math.... | public Rectangle getCellRect(int row, int column, boolean includeSpacing) { int height = getRowHeight(row); int width = columnModel.getColumn(column).getWidth(); int x_gap = columnModel.getColumnMargin(); int y_gap = rowMargin; column = Math.... | 6,914 |
protected void initializeLocalVars() { setTableHeader(createDefaultTableHeader()); if (autoCreateColumnsFromModel) createDefaultColumnsFromModel(); this.columnModel.addColumnModelListener(this); this.defaultRenderersByColumnClass = new Hashtable(); createDefaultRenderers(); this.defaultEdi... | protected void initializeLocalVars() { setTableHeader(createDefaultTableHeader()); if (autoCreateColumnsFromModel) createDefaultColumnsFromModel(); this.columnModel.addColumnModelListener(this); this.defaultRenderersByColumnClass = new Hashtable(); createDefaultRenderers(); this.defaultEdi... | 6,915 |
protected void initializeLocalVars() { setTableHeader(createDefaultTableHeader()); if (autoCreateColumnsFromModel) createDefaultColumnsFromModel(); this.columnModel.addColumnModelListener(this); this.defaultRenderersByColumnClass = new Hashtable(); createDefaultRenderers(); this.defaultEdi... | protected void initializeLocalVars() { setTableHeader(createDefaultTableHeader()); if (autoCreateColumnsFromModel) createDefaultColumnsFromModel(); this.columnModel.addColumnModelListener(this); this.defaultRenderersByColumnClass = new Hashtable(); createDefaultRenderers(); this.defaultEdi... | 6,916 |
public Component prepareRenderer(TableCellRenderer renderer, int row, int column) { boolean rowSelAllowed = getRowSelectionAllowed(); boolean colSelAllowed = getColumnSelectionAllowed(); boolean isSel = false; if (rowSelAllowed && colSel... | publicComponentprepareRenderer(TableCellRendererrenderer,introw,intcolumn){booleanrowSelAllowed=getRowSelectionAllowed();booleancolSelAllowed=getColumnSelectionAllowed();booleanisSel=false;if(rowSelAllowed&&colSelAllowed||!rowSelAllowed&&!colSelAllowed)isSel=isCellSelected(row,column);elseisSel=isRowSelected(row)&&getR... | 6,917 |
public int rowAtPoint(Point point) { if (point != null) { int nrows = getRowCount(); int height = getRowHeight() + getRowMargin(); int y = point.y; int r = y / height; if (r < 0 || r >= nrows) return -1; else return r; } else return -1; ... | public int rowAtPoint(Point point) { if (point != null) { int nrows = getRowCount(); int r; int y = point.y; int r = y / height; if (r < 0 || r >= nrows) return -1; else return r; } else return -1; } | 6,918 |
public int rowAtPoint(Point point) { if (point != null) { int nrows = getRowCount(); int height = getRowHeight() + getRowMargin(); int y = point.y; int r = y / height; if (r < 0 || r >= nrows) return -1; else return r; } else return -1; ... | public int rowAtPoint(Point point) { if (point != null) { int nrows = getRowCount(); int height = getRowHeight() + getRowMargin(); int y = point.y; if (r < 0 || r >= nrows) return -1; else return r; } else return -1; } | 6,919 |
public void setValueAt(Object value, int row, int column) { if (!isCellEditable(row, column)) return; dataModel.setValueAt(value, row, convertColumnIndexToModel(column)); repaint(getCellRect(row, column, true)); } | public void setValueAt(Object value, int row, int column) { if (!isCellEditable(row, column)) return; dataModel.setValueAt(value, row, convertColumnIndexToModel(column)); repaint(getCellRect(row, column, true)); } | 6,924 |
public void valueChanged (ListSelectionEvent event) { // Does not make sense for the table with the single row. if (getRowCount() < 2) return; int y_gap = rowMargin; int y0 = (getRowHeight() + y_gap) * (event.getFirstIndex()); int yn = (getRowHeight() + y_gap) * (event.getLastIndex()+1); r... | public void valueChanged (ListSelectionEvent event) { // Does not make sense for the table with the single row. if (getRowCount() < 2) return; int y_gap = rowMargin; int y0 = (getRowHeight() + y_gap) * (event.getFirstIndex()); int yn = (getRowHeight() + y_gap) * (event.getLastIndex()+1); r... | 6,926 |
public void valueChanged (ListSelectionEvent event) { // Does not make sense for the table with the single row. if (getRowCount() < 2) return; int y_gap = rowMargin; int y0 = (getRowHeight() + y_gap) * (event.getFirstIndex()); int yn = (getRowHeight() + y_gap) * (event.getLastIndex()+1); r... | public void valueChanged (ListSelectionEvent event) { // Does not make sense for the table with the single row. if (getRowCount() < 2) return; int y_gap = rowMargin; int y0 = (getRowHeight() + y_gap) * (event.getFirstIndex()); int yn = (getRowHeight() + y_gap) * (event.getLastIndex()+1); r... | 6,927 |
public void dumpInfo() { System.out.println("frame.size: " + getSize()); System.out.println("frame.insets: " + getInsets()); System.out.println("frame.peer.insets: " + ((FramePeer)getPeer()).getInsets()); System.out.println("frame.cp.bounds: " + getContentPane().getBounds()... | public void dumpInfo() { System.out.println("frame.size: " + getSize()); System.out.println("frame.insets: " + getInsets()); System.out.println("frame.peer.insets: " + ((FramePeer)getPeer()).getInsets()); System.out.println("frame.cp.bounds: " + getContentPane().getBounds()... | 6,929 |
public InterruptedException() { super(); } | public InterruptedException() { super(); } | 6,930 |
public boolean hasNext() { int size = axisOrderList.size(); for (int i = 0; i < size ; i++) { AxisInterface axis = (AxisInterface) axisOrderList.get(i); int index = ((Integer) locations.get(axis)).intValue(); if (index < axis.getLength()-1) { return true; } } return false; } | public boolean hasNext() { int size = axisOrderList.size(); for (int i = 0; i < size ; i++) { AxisInterface axis = (AxisInterface) axisOrderList.get(i); int index = ((Integer) locations.get(axis)).intValue(); if (index < axis.getLength()-1) { return true; } } return false; } | 6,935 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.