bugged
stringlengths
6
599k
fixed
stringlengths
10
599k
__index_level_0__
int64
0
1.13M
public boolean isAccessibleChildSelected(int i) throws NotImplementedException { return false; }
public boolean isAccessibleChildSelected(int i) { return false; }
4,153
public boolean isAccessibleChildSelected(int i) throws NotImplementedException { return false; }
public boolean isAccessibleChildSelected(int i) throws NotImplementedException { return i == getSelectedIndex(); }
4,154
public void removeAccessibleSelection(int i) throws NotImplementedException { // TODO: Implement this properly. }
public void removeAccessibleSelection(int i) { // TODO: Implement this properly. }
4,155
public void selectAllAccessibleSelection() throws NotImplementedException { // TODO: Implement this properly. }
public void selectAllAccessibleSelection() { // TODO: Implement this properly. }
4,156
public void stateChanged(ChangeEvent e) throws NotImplementedException { // Implement this properly. }
public void stateChanged(ChangeEvent e) { // Implement this properly. }
4,157
public int getAccessibleIndexInParent() throws NotImplementedException { // FIXME: Implement this properly. return 0; }
public int getAccessibleIndexInParent() { // FIXME: Implement this properly. return 0; }
4,159
public int getAccessibleIndexInParent() throws NotImplementedException { // FIXME: Implement this properly. return 0; }
public int getAccessibleIndexInParent() throws NotImplementedException { // FIXME: Implement this properly. return indexOfTab(title); }
4,160
public AccessibleStateSet getAccessibleStateSet() throws NotImplementedException { // FIXME: Implement this properly. return null; }
public AccessibleStateSet getAccessibleStateSet() { // FIXME: Implement this properly. return null; }
4,161
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 (comp...
4,162
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; }
4,163
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...
4,164
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...
4,165
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...
4,166
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...
4,167
LogicalView(Element el) { super(el); children = new Vector(); }
LogicalView(Element el) { super(el); children = new Vector(); }
4,168
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...
4,169
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...
4,170
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...
4,171
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...
4,172
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...
4,173
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...
4,174
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...
4,175
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())...
4,176
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())...
4,177
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(); ...
4,178
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...
4,179
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...
4,181
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...
4,182
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...
4,183
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...
4,184
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(); ...
4,185
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. if (vector.size() >= 20) { vector.remove(0); vector.remove(0); ...
4,187
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.ad...
4,189
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 ...
4,190
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); }
4,198
public Accessible getAccessibleCaption() { // TODO Auto-generated method stub return null; }
public Accessible getAccessibleCaption() { // TODO Auto-generated method stub return caption; }
4,199
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); }
4,200
public int getAccessibleColumnCount() { // TODO Auto-generated method stub return 0; }
public int getAccessibleColumnCount() { // TODO Auto-generated method stub return getColumnCount(); }
4,201
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; }
4,202
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; }
4,203
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; }
4,204
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); }
4,205
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); }
4,206
public int getAccessibleRowCount() { // TODO Auto-generated method stub return 0; }
public int getAccessibleRowCount() { // TODO Auto-generated method stub return getRowCount(); }
4,207
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; }
4,208
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; }
4,209
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() && getColumn...
4,210
public Accessible getAccessibleSummary() { // TODO Auto-generated method stub return null; }
public Accessible getAccessibleSummary() { // TODO Auto-generated method stub return summary; }
4,211
public int[] getSelectedAccessibleColumns() { // TODO Auto-generated method stub return null; }
public int[] getSelectedAccessibleColumns() { // TODO Auto-generated method stub return getSelectedColumns(); }
4,212
public int[] getSelectedAccessibleRows() { // TODO Auto-generated method stub return null; }
public int[] getSelectedAccessibleRows() { // TODO Auto-generated method stub return getSelectedRows(); }
4,213
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); }
4,214
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); }
4,215
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); }
4,216
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); }
4,217
public void setAccessibleCaption(Accessible caption) { // TODO Auto-generated method stub }
public void setAccessibleCaption(Accessible c) { // TODO Auto-generated method stub }
4,220
public void setAccessibleSummary(Accessible summary) { // TODO Auto-generated method stub }
public void setAccessibleSummary(Accessible s) { // TODO Auto-generated method stub }
4,224
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...
4,229
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 += ...
4,232
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 += ...
4,233
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); }
4,234
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...
4,235
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...
4,236
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...
4,237
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....
4,239
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....
4,240
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....
4,241
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....
4,242
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....
4,243
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...
4,244
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...
4,245
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; }
4,246
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; }
4,247
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)); }
4,252
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...
4,254
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...
4,255
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()...
4,257
public InterruptedException() { super(); }
public InterruptedException() { super(); }
4,258
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; }
4,263
public boolean next() { boolean outofDataCells = true; 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) { outofDataCells =...
public boolean next() { boolean outOfDataCells = true; HasNext = true; 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) { ...
4,264
public boolean next() { boolean outofDataCells = true; 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) { outofDataCells =...
public boolean next() { boolean outofDataCells = true; 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) { outOfDataCells =...
4,265
public boolean next() { boolean outofDataCells = true; 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) { outofDataCells =...
public boolean next() { boolean outofDataCells = true; 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) { outofDataCells =...
4,266
public boolean prev() { boolean outofDataCell = true; int size = axisOrderList.size(); for (int i = 0; i < size ; i++) { AxisInterface axis = (AxisInterface) axisOrderList.get(i); int index = ((Integer) locations.get(axis)).intValue(); index--; if (index < 0) { locations.put(axis, ...
public boolean prev() { boolean outOfDataCells = true; HasNext = true; int size = axisOrderList.size(); for (int i = 0; i < size ; i++) { AxisInterface axis = (AxisInterface) axisOrderList.get(i); int index = ((Integer) locations.get(axis)).intValue(); index--; if (index < 0) { lo...
4,267
public boolean prev() { boolean outofDataCell = true; int size = axisOrderList.size(); for (int i = 0; i < size ; i++) { AxisInterface axis = (AxisInterface) axisOrderList.get(i); int index = ((Integer) locations.get(axis)).intValue(); index--; if (index < 0) { locations.put(axis, ...
public boolean prev() { boolean outofDataCell = true; int size = axisOrderList.size(); for (int i = 0; i < size ; i++) { AxisInterface axis = (AxisInterface) axisOrderList.get(i); int index = ((Integer) locations.get(axis)).intValue(); index--; if (index < 0) { locations.put(axis, ...
4,268
public boolean prev() { boolean outofDataCell = true; int size = axisOrderList.size(); for (int i = 0; i < size ; i++) { AxisInterface axis = (AxisInterface) axisOrderList.get(i); int index = ((Integer) locations.get(axis)).intValue(); index--; if (index < 0) { locations.put(axis, ...
public boolean prev() { boolean outofDataCell = true; int size = axisOrderList.size(); for (int i = 0; i < size ; i++) { AxisInterface axis = (AxisInterface) axisOrderList.get(i); int index = ((Integer) locations.get(axis)).intValue(); index--; if (index < 0) { locations.put(axis, ...
4,269
public void setParent(View parent) { if (parent == null) { int numChildren = getViewCount(); for (int i = 0; i < numChildren; i++) getView(i).setParent(this); } this.parent = parent; }
public void setParent(View parent) { if (parent == null) { int numChildren = getViewCount(); for (int i = 0; i < numChildren; i++) getView(i).setParent(null); } this.parent = parent; }
4,270
public byte[] getData() { throw new Error("not implemented"); }
public byte[] getData() { int size = getSize(); byte[] data = new byte[size]; System.arraycopy(header.getData(size), 0, data, 0, ProfileHeader.HEADERSIZE); byte[] tt = getTagTable(); System.arraycopy(tt, 0, data, ProfileHeader.HEADERSIZE, tt.length); Enumeration e = tagTable.elements(); while (e.hasMoreElemen...
4,272
public static ICC_Profile getInstance(byte[] data) { throw new Error("not implemented"); }
public static ICC_Profile getInstance(byte[] data) { ProfileHeader header = new ProfileHeader(data); header.verifyHeader(data.length); Hashtable tags = createTagTable(data); if (isRGBProfile(header, tags)) return new ICC_ProfileRGB(data); if (isGrayProfile(header, tags)) return new ICC_ProfileGray(data); ret...
4,273
public int getMajorVersion() { throw new Error("not implemented"); }
public int getMajorVersion() { return header.getMajorVersion(); }
4,274
public int getMinorVersion() { throw new Error("not implemented"); }
public int getMinorVersion() { return header.getMinorVersion(); }
4,275
public int getPCSType() { throw new Error("not implemented"); }
public int getPCSType() { return header.getProfileColorSpace(); }
4,276
public int getProfileClass() { throw new Error("not implemented"); }
public int getProfileClass() { return header.getProfileClass(); }
4,277
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException { throw new Error("not implemented"); }
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException { s.defaultReadObject(); String predef = (String) s.readObject(); byte[] data = (byte[]) s.readObject(); if (data != null) { header = new ProfileHeader(data); tagTable = createTagTable(data); profileID = -1; } if (predef ...
4,278
protected Object readResolve() throws ObjectStreamException { throw new Error("not implemented"); }
protected Object readResolve() throws ObjectStreamException { if (isRGBProfile(header, tagTable)) return new ICC_ProfileRGB(getData()); if (isGrayProfile(header, tagTable)) return new ICC_ProfileGray(getData()); return this; }
4,279
public void setData(int tagSignature, byte[] data) { throw new Error("not implemented"); }
public void setData(int tagSignature, byte[] data) { profileID = -1; if (tagSignature == icSigHead) header = new ProfileHeader(data); else { TagEntry t = new TagEntry(tagSignature, data); tagTable.put(t.hashKey(), t); } }
4,280
public void write(String filename) throws IOException { write(new FileOutputStream(filename)); }
public void write(String filename) throws IOException { FileOutputStream out = new FileOutputStream(filename); write(out); out.flush(); out.close(); }
4,281
private void writeObject(ObjectOutputStream s) throws IOException { throw new Error("not implemented"); }
private void writeObject(ObjectOutputStream s) throws IOException { s.defaultWriteObject(); if (profileID == ColorSpace.CS_sRGB) s.writeObject("CS_sRGB"); else if (profileID == ColorSpace.CS_LINEAR_RGB) s.writeObject("CS_LINEAR_RGB"); else if (profileID == ColorSpace.CS_CIEXYZ) s.writeObject("CS_CIEXYZ"); else if...
4,282
public static String unquote(String str) throws MalformedURLException { if (str == null) return null; final int MAX_BYTES_PER_UTF_8_CHAR = 3; byte[] buf = new byte[str.length()*MAX_BYTES_PER_UTF_8_CHAR]; int pos = 0; for (int i = 0; i < str.length(); i++) { char c = str.charAt(i); if (c == '...
public static String unquote(String str) throws MalformedURLException { if (str == null) return null; final int MAX_BYTES_PER_UTF_8_CHAR = 3; byte[] buf = new byte[str.length()*MAX_BYTES_PER_UTF_8_CHAR]; int pos = 0; for (int i = 0; i < str.length(); i++) { char c = str.charAt(i); if (c == '...
4,283
protected void installListeners() { glassPaneDispatcher = createGlassPaneDispatcher(); createInternalFrameListener(); borderListener = createBorderListener(frame); componentListener = createComponentListener(); propertyChangeListener = createPropertyChangeListener(); internalFrameVetoableChangeList...
protected void installListeners() { glassPaneDispatcher = createGlassPaneDispatcher(); createInternalFrameListener(); borderListener = createBorderListener(frame); componentListener = createComponentListener(); propertyChangeListener = createPropertyChangeListener(); frame.addMouseListener(bord...
4,284
protected void installListeners() { glassPaneDispatcher = createGlassPaneDispatcher(); createInternalFrameListener(); borderListener = createBorderListener(frame); componentListener = createComponentListener(); propertyChangeListener = createPropertyChangeListener(); internalFrameVetoableChangeList...
protected void installListeners() { glassPaneDispatcher = createGlassPaneDispatcher(); createInternalFrameListener(); borderListener = createBorderListener(frame); componentListener = createComponentListener(); propertyChangeListener = createPropertyChangeListener(); internalFrameVetoableChangeList...
4,285
public static ServiceDetail extract(Any a) { try { return ((ServiceDetailHolder) a.extract_Streamable()).value; } catch (ClassCastException ex) { throw new BAD_OPERATION(); } }
public static ServiceDetail extract(Any a) { try { return ((ServiceDetailHolder) a.extract_Streamable()).value; } catch (ClassCastException ex) { BAD_OPERATION bad = new BAD_OPERATION(); bad.initCause(ex); bad.minor = Minor.Any; throw bad; } }
4,286