bugged stringlengths 6 599k | fixed stringlengths 6 40.8M | __index_level_0__ int64 0 3.24M |
|---|---|---|
public static JTextComponent.KeyBinding[] makeKeyBindings( Object[] keyBindingList) { JTextComponent.KeyBinding[] retBindings = new JTextComponent.KeyBinding[keyBindingList.length / 2]; for (int i = 0; i < keyBindingList.length - 1; i+= 2) { KeyStroke stroke; if (keyBindingList[... | public static JTextComponent.KeyBinding[] makeKeyBindings( Object[] keyBindingList) { JTextComponent.KeyBinding[] retBindings = new JTextComponent.KeyBinding[keyBindingList.length / 2]; for (int i = 0; i < keyBindingList.length - 1; i+= 2) { KeyStroke stroke; if (keyBindingList[... | 3,390 |
public static JTextComponent.KeyBinding[] makeKeyBindings( Object[] keyBindingList) { JTextComponent.KeyBinding[] retBindings = new JTextComponent.KeyBinding[keyBindingList.length / 2]; for (int i = 0; i < keyBindingList.length - 1; i+= 2) { KeyStroke stroke; if (keyBindingList[... | public static JTextComponent.KeyBinding[] makeKeyBindings( Object[] keyBindingList) { JTextComponent.KeyBinding[] retBindings = new JTextComponent.KeyBinding[keyBindingList.length / 2]; for (int i = 0; i < keyBindingList.length - 1; i+= 2) { KeyStroke stroke; if (keyBindingList[... | 3,391 |
public CommandShell(TextConsole cons) throws ShellException { try { this.console = cons; this.out = this.console.getOut(); this.err = this.console.getErr(); this.currentLine = new Line(console, this, out); // listen to the keyboard this.consol... | public CommandShell(TextConsole cons) throws ShellException { try { this.console = cons; this.out = this.console.getOut(); this.err = this.console.getErr(); this.currentLine = new Line(console, this, out); // listen to the keyboard this.consol... | 3,392 |
public void exit(){ exitted = true; console.close(); } | public void exit(){ exit0(); console.close(); } | 3,393 |
protected String prompt() { String prompt = System.getProperty(PROMPT_PROPERTY_NAME); final StringBuffer result = new StringBuffer(); boolean commandMode = false; try { StringReader reader = new StringReader(prompt); int i; while ((i = reader.read()) != -... | protected String prompt() { String prompt = (String) AccessController.doPrivileged( new GetPropertyAction(PROMPT_PROPERTY_NAME)); final StringBuffer result = new StringBuffer(); boolean commandMode = false; try { StringReader reader = new StringReader(prompt); int i... | 3,395 |
protected String prompt() { String prompt = System.getProperty(PROMPT_PROPERTY_NAME); final StringBuffer result = new StringBuffer(); boolean commandMode = false; try { StringReader reader = new StringReader(prompt); int i; while ((i = reader.read()) != -... | protected String prompt() { String prompt = System.getProperty(PROMPT_PROPERTY_NAME); final StringBuffer result = new StringBuffer(); boolean commandMode = false; try { StringReader reader = new StringReader(prompt); int i; while ((i = reader.read()) != -... | 3,396 |
public void start(boolean keepContent) { if (keepContent) { // we stay at the same position in X coordinate // only Y may have changed consoleY = console.getCursorY(); } else { consoleX = console.getCursorX(); consoleY = console.getCursorY(); ... | public void start(boolean keepContent) { if (keepContent) { // we stay at the same position in X coordinate // only Y may have changed consoleY = console.getCursorY(); } else { consoleX = console.getCursorX(); consoleY = console.getCursorY(); ... | 3,398 |
UNKNOWN(String reason, int minor, CompletionStatus completed) { super(reason, minor, completed); } | public UNKNOWN(String message) { super(reason, minor, completed); } | 3,399 |
UNKNOWN(String reason, int minor, CompletionStatus completed) { super(reason, minor, completed); } | UNKNOWN(String reason, int minor, CompletionStatus completed) { super(message, 0, CompletionStatus.COMPLETED_NO); } | 3,400 |
final void lock() { AddressPcEntry p = list; int count = 0; while (p != null) { count++; p = p.next; } final int[] table = new int[count*2]; p = list; int i = 0; while (p != null) { table[i+0] = p.pc; table[i+1] = p.offset; i += 2; p = p.next; } this.table = table; this.list = null; } | final void lock() { AddressPcEntry p = list; int count = 0; while (p != null) { count++; p = p.next; } final int[] table = new int[count*2]; p = list; int i = 0; while (p != null) { table[i+0] = p.pc; table[i+1] = p.offset; i += 2; p = p.next; } this.table = table; this.list = null; } | 3,401 |
public static Border getButtonBorder() { if (buttonBorder == null) { Border outer = new MetalButtonBorder(); Border inner = getMarginBorder(); buttonBorder = new BorderUIResource.CompoundBorderUIResource (outer, inner); } return buttonBorder; } | public static Border getButtonBorder() { if (buttonBorder == null) { Border outer = new ButtonBorder(); Border inner = getMarginBorder(); buttonBorder = new BorderUIResource.CompoundBorderUIResource (outer, inner); } return buttonBorder; } | 3,402 |
static Border getToolbarButtonBorder() { if (toolbarButtonBorder == null) { Border outer = new MetalButtonBorder(); Border inner = new RolloverMarginBorder(); toolbarButtonBorder = new BorderUIResource.CompoundBorderUIResource (outer, inner); } return toolbarButtonBorder... | static Border getToolbarButtonBorder() { if (toolbarButtonBorder == null) { Border outer = new ButtonBorder(); Border inner = new RolloverMarginBorder(); toolbarButtonBorder = new BorderUIResource.CompoundBorderUIResource (outer, inner); } return toolbarButtonBorder; } | 3,403 |
public void paint(GlyphView view, Graphics g, Shape a, int p0, int p1) { int height = (int) getHeight(view); Segment txt = view.getText(p0, p1); Rectangle bounds = a.getBounds(); TabExpander tabEx = null; View parent = view.getParent(); if (parent instanceof Tab... | public void paint(GlyphView view, Graphics g, Shape a, int p0, int p1) { int height = (int) getHeight(view); Segment txt = view.getText(p0, p1); Rectangle bounds = a.getBounds(); TabExpander tabEx = null; View parent = view.getParent(); if (parent instanceof Tab... | 3,404 |
public float getPreferredSpan(int axis) { Element el = getElement(); checkPainter(); GlyphPainter painter = getGlyphPainter(); TabExpander tabEx = null; View parent = getParent(); if (parent instanceof TabExpander) tabEx = (TabExpander) parent; // FIXME: Figure out how to determine the x pa... | public float getPreferredSpan(int axis) { float span = 0; checkPainter(); GlyphPainter painter = getGlyphPainter(); TabExpander tabEx = null; View parent = getParent(); if (parent instanceof TabExpander) tabEx = (TabExpander) parent; // FIXME: Figure out how to determine the x parameter. ... | 3,406 |
public float getPreferredSpan(int axis) { Element el = getElement(); checkPainter(); GlyphPainter painter = getGlyphPainter(); TabExpander tabEx = null; View parent = getParent(); if (parent instanceof TabExpander) tabEx = (TabExpander) parent; // FIXME: Figure out how to determine the x pa... | public float getPreferredSpan(int axis) { Element el = getElement(); checkPainter(); GlyphPainter painter = getGlyphPainter(); TabExpander tabEx = null; View parent = getParent(); if (parent instanceof TabExpander) tabEx = (TabExpander) parent; // FIXME: Figure out how to determine the x pa... | 3,407 |
public TabExpander getTabExpander() { // TODO: Figure out if this is correct. TabExpander te = null; View parent = getParent(); if (parent instanceof ParagraphView) te = (ParagraphView) parent; return te; } | publicTabExpandergetTabExpander(){//TODO:Figureoutifthisiscorrect.TabExpanderte=null;Viewparent=getParent();if(parentinstanceofParagraphView)te=(ParagraphView)parent;returnte;} | 3,408 |
public TabExpander getTabExpander() { // TODO: Figure out if this is correct. TabExpander te = null; View parent = getParent(); if (parent instanceof ParagraphView) te = (ParagraphView) parent; return te; } | public TabExpander getTabExpander() { // TODO: Figure out if this is correct. TabExpander te = null; View parent = getParent(); if (parent instanceof ParagraphView) te = (ParagraphView) parent; return te; } | 3,409 |
public int viewToModel(float x, float y, Shape a, Position.Bias[] b) { // FIXME: not implemented return 0; } | public int viewToModel(float x, float y, Shape a, Position.Bias[] b) { // FIXME: not implemented checkPainter(); GlyphPainter painter = getGlyphPainter(); return painter.viewToModel(this, x, y, a, b); } | 3,410 |
public View getParent() { return parent; } | public View getParent() { return parent; } | 3,411 |
public View getParent() { return parent; } | public View getParent() { return parent; } | 3,412 |
public int getScrollableBlockIncrement(Rectangle visibleRect, int orientation, int direction) { if (orientation == SwingConstants.VERTICAL) return visibleRect.height * direction; else return visibleRect.width * direction; } | public int getScrollableBlockIncrement(Rectangle visibleRect, int orientation, int direction) { if (orientation == SwingConstants.VERTICAL) return visibleRect.height * direction; else return visibleRect.width * direction; } | 3,413 |
public int getScrollableBlockIncrement(Rectangle visibleRect, int orientation, int direction) { if (orientation == SwingConstants.VERTICAL) return visibleRect.height * direction; else return visibleRect.width * direction; } | public int getScrollableBlockIncrement(Rectangle visibleRect, int orientation, int direction) { if (orientation == SwingConstants.VERTICAL) return visibleRect.height * direction; else { int rowHeight = getRowHeight(); if (rowHeight > 0) block = Math.max(rowHeight, (visibleRect.height / rowHeight) * r... | 3,414 |
public int getScrollableUnitIncrement(Rectangle visibleRect, int orientation, int direction) { int h = (rowHeight + rowMargin); int delta = h * direction; // Round so that the top would start from the row boundary if (orientation == SwingConstants.VERTICAL) { ... | public int getScrollableUnitIncrement(Rectangle visibleRect, int orientation, int direction) { int h = (rowHeight + rowMargin); int delta = h * direction; // Round so that the top would start from the row boundary if (orientation == SwingConstants.VERTICAL) { ... | 3,415 |
public int getScrollableUnitIncrement(Rectangle visibleRect, int orientation, int direction) { int h = (rowHeight + rowMargin); int delta = h * direction; // Round so that the top would start from the row boundary if (orientation == SwingConstants.VERTICAL) { ... | public int getScrollableUnitIncrement(Rectangle visibleRect, int orientation, int direction) { int h = (rowHeight + rowMargin); int delta = h * direction; // Round so that the top would start from the row boundary if (orientation == SwingConstants.VERTICAL) { ... | 3,416 |
public int getScrollableUnitIncrement(Rectangle visibleRect, int orientation, int direction) { int h = (rowHeight + rowMargin); int delta = h * direction; // Round so that the top would start from the row boundary if (orientation == SwingConstants.VERTICAL) { ... | public int getScrollableUnitIncrement(Rectangle visibleRect, int orientation, int direction) { int h = (rowHeight + rowMargin); int delta = h * direction; // Round so that the top would start from the row boundary if (orientation == SwingConstants.VERTICAL) { ... | 3,417 |
public void setColumnSelectionAllowed(boolean c) { getColumnModel().setColumnSelectionAllowed(c); repaint(); } | public void setColumnSelectionAllowed(boolean c) { if (columnModel.getColumnSelectionAllowed() != c) { columnModel.setColumnSelectionAllowed(c); firePropertyChange("columnSelectionAllowed", !c, c); repaint(); } | 3,418 |
public void tableChanged (TableModelEvent event) { // update the column model from the table model if the structure has // changed and the flag autoCreateColumnsFromModel is set if ((event == null || (event.getFirstRow() == TableModelEvent.HEADER_ROW)) && autoCreateColumnsFromModel) { row... | public void tableChanged (TableModelEvent event) { // update the column model from the table model if the structure has // changed and the flag autoCreateColumnsFromModel is set if ((event == null || (event.getFirstRow() == TableModelEvent.HEADER_ROW)) && autoCreateColumnsFromModel) { row... | 3,422 |
public TableCellRenderer getHeaderRenderer() { return headerRenderer; } | public TableCellRenderer getHeaderRenderer() { return headerRenderer; } | 3,423 |
public Object getHeaderValue() { return headerValue; } | public Object getHeaderValue() { return headerValue; } | 3,424 |
public int getFromIndex() { return fromIndex; } // getFromIndex() | public int getFromIndex() { return fromIndex; } // getFromIndex() | 3,425 |
public int getFromIndex() { return fromIndex; } // getFromIndex() | public int getFromIndex() { return fromIndex; } // getFromIndex() | 3,426 |
public int getToIndex() { return toIndex; } // getToIndex() | public int getToIndex() { return toIndex; } // getToIndex() | 3,427 |
public int getToIndex() { return toIndex; } // getToIndex() | public int getToIndex() { return toIndex; } // getToIndex() | 3,428 |
public static final DateFormat getDateInstance (int style) { return getDateInstance (style, Locale.getDefault()); } | public static final DateFormat getDateInstance () { return getDateInstance (style, Locale.getDefault()); } | 3,429 |
public static final DateFormat getDateInstance (int style) { return getDateInstance (style, Locale.getDefault()); } | public static final DateFormat getDateInstance (int style) { return getDateInstance (DEFAULT, Locale.getDefault()); } | 3,430 |
public int getModelIndex() { return modelIndex; } | public int getModelIndex() { return modelIndex; } | 3,431 |
public void setHeaderValue(Object headerValue) { if (this.headerValue == headerValue) return; Object oldValue = this.headerValue; this.headerValue = headerValue; firePropertyChange(HEADER_VALUE_PROPERTY, oldValue, headerValue); } | public void setHeaderValue(Object headerValue) { if (this.headerValue == headerValue) return; Object oldValue = this.headerValue; this.headerValue = headerValue; firePropertyChange(HEADER_VALUE_PROPERTY, oldValue, headerValue); } | 3,432 |
public void setHeaderValue(Object headerValue) { if (this.headerValue == headerValue) return; Object oldValue = this.headerValue; this.headerValue = headerValue; firePropertyChange(HEADER_VALUE_PROPERTY, oldValue, headerValue); } | public void setHeaderValue(Object headerValue) { if (this.headerValue == headerValue) return; Object oldValue = this.headerValue; this.headerValue = headerValue; firePropertyChange(HEADER_VALUE_PROPERTY, oldValue, headerValue); } | 3,433 |
public synchronized void addPropertyChangeListener(PropertyChangeListener listener) { changeSupport.addPropertyChangeListener(listener); } | public synchronized void addPropertyChangeListener(PropertyChangeListener listener) { changeSupport.addPropertyChangeListener(listener); } | 3,434 |
public TableColumn(int modelIndex) { this(modelIndex, 75, null, null); } | public TableColumn() { this(modelIndex, 75, null, null); } | 3,435 |
public TableColumn(int modelIndex) { this(modelIndex, 75, null, null); } | public TableColumn(int modelIndex) { this(0, 75, null, null); } | 3,436 |
public void setIdentifier(Object identifier) { this.identifier = identifier; } | public void setIdentifier(Object identifier) { this.identifier = identifier; } | 3,437 |
public JTableHeader(TableColumnModel cm) { accessibleContext = new AccessibleJTableHeader(); columnModel = cm == null ? createDefaultColumnModel() : cm; draggedColumn = null; draggedDistance = 0; opaque = true; reorderingAllowed = true; resizingAllowed = true; resizingColumn = null; table... | public JTableHeader() { accessibleContext = new AccessibleJTableHeader(); columnModel = cm == null ? createDefaultColumnModel() : cm; draggedColumn = null; draggedDistance = 0; opaque = true; reorderingAllowed = true; resizingAllowed = true; resizingColumn = null; table = null; updateT... | 3,438 |
public JTableHeader(TableColumnModel cm) { accessibleContext = new AccessibleJTableHeader(); columnModel = cm == null ? createDefaultColumnModel() : cm; draggedColumn = null; draggedDistance = 0; opaque = true; reorderingAllowed = true; resizingAllowed = true; resizingColumn = null; table... | public JTableHeader(TableColumnModel cm) { accessibleContext = new AccessibleJTableHeader(); columnModel = cm == null ? createDefaultColumnModel() : cm; draggedColumn = null; draggedDistance = 0; opaque = true; reorderingAllowed = true; resizingAllowed = true; resizingColumn = null; table... | 3,439 |
public int getPreferredWidth() { return preferredWidth; } | public int getPreferredWidth() { return preferredWidth; } | 3,440 |
public void setWidth(int newWidth) { int oldWidth = width; if (newWidth < minWidth) width = minWidth; else if (newWidth > maxWidth) width = maxWidth; else width = newWidth; if (width == oldWidth) return; firePropertyChange(COLUMN_WIDTH_PROPERTY, oldWidth, width); } | public void setWidth(int newWidth) { int oldWidth = width; if (newWidth < minWidth) width = minWidth; else if (newWidth > maxWidth) width = maxWidth; else width = newWidth; if (width == oldWidth) return; firePropertyChange("width", oldWidth, width); } | 3,441 |
public TableCellEditor getCellEditor() { return cellEditor; } | public TableCellEditor getCellEditor() { return cellEditor; } | 3,442 |
public int getPosition(int index) { // Variables int position; int loop; // Process Sizes position = 0; for (loop = 0; loop < index; loop++) { position += sizes[loop]; } // for // Return Position return position; } // getPosition() | public int getPosition(int index) { // Variables int position; int loop; // Process Sizes position = 0; for (loop = 0; loop < index; loop++) { position += sizes[loop]; } // for // Return Position return position; } // getPosition() | 3,443 |
public int getPosition(int index) { // Variables int position; int loop; // Process Sizes position = 0; for (loop = 0; loop < index; loop++) { position += sizes[loop]; } // for // Return Position return position; } // getPosition() | public int getPosition(int index) { // Variables int position; int loop; // Process Sizes position = 0; for (loop = 0; loop < index; loop++) { position += sizes[loop]; } // for // Return Position return position; } // getPosition() | 3,444 |
public int getPosition(int index) { // Variables int position; int loop; // Process Sizes position = 0; for (loop = 0; loop < index; loop++) { position += sizes[loop]; } // for // Return Position return position; } // getPosition() | public int getPosition(int index) { // Variables int position; int loop; // Process Sizes position = 0; for (loop = 0; loop < index; loop++) { position += sizes[loop]; return position; } // for // Return Position return position; return position; } // getPosition() | 3,445 |
public TableCellRenderer getCellRenderer() { return cellRenderer; } | public TableCellRenderer getCellRenderer() { return cellRenderer; } | 3,446 |
int getColumnIndex(Object columnIdentifier); | int getColumnIndex(Object columnIdentifier); | 3,447 |
public int getSize(int index) { return sizes[index]; } // getSize() | public int getSize(int index) { return sizes[index]; } // getSize() | 3,448 |
public void removeEntries(int start, int length) { // Variables int[] array; int index; int arrayIndex; // Sanity Check if ((start + length) > sizes.length) { throw new IllegalArgumentException("Specified start/length that " + "is greater than available sizes"); } // if // Create New Array array = new ... | public void removeEntries(int start, int length) { // Variables int[] array; int index; int arrayIndex; // Sanity Check if ((start + length) > sizes.length) { throw new IllegalArgumentException("Specified start/length that " + "is greater than available sizes"); } // if // Create New Array array = new ... | 3,449 |
public void removeEntries(int start, int length) { // Variables int[] array; int index; int arrayIndex; // Sanity Check if ((start + length) > sizes.length) { throw new IllegalArgumentException("Specified start/length that " + "is greater than available sizes"); } // if // Create New Array array = new ... | public void removeEntries(int start, int length) { // Variables int[] array; int index; int arrayIndex; // Sanity Check if ((start + length) > sizes.length) { throw new IllegalArgumentException("Specified start/length that " + "is greater than available sizes"); } // if // Create New Array array = new ... | 3,450 |
public void removeEntries(int start, int length) { // Variables int[] array; int index; int arrayIndex; // Sanity Check if ((start + length) > sizes.length) { throw new IllegalArgumentException("Specified start/length that " + "is greater than available sizes"); } // if // Create New Array array = new ... | public void removeEntries(int start, int length) { // Variables int[] array; int index; int arrayIndex; // Sanity Check if ((start + length) > sizes.length) { throw new IllegalArgumentException("Specified start/length that " + "is greater than available sizes"); } // if // Create New Array array = new ... | 3,451 |
public void insertEntries(int start, int length, int value) { // Variables int[] array; int index; int arrayIndex; int loop; // Create New Array array = new int[sizes.length + length]; arrayIndex = 0; for (index = 0; index < sizes.length; index++) { if (index == start) { for (loop = 0; loop < length; ... | public void insertEntries(int start, int length, int value) { // Variables int[] array; int index; int arrayIndex; int loop; // Create New Array array = new int[sizes.length + length]; arrayIndex = 0; for (index = 0; index < sizes.length; index++) { if (index == start) { for (loop = 0; loop < length; ... | 3,452 |
public void insertEntries(int start, int length, int value) { // Variables int[] array; int index; int arrayIndex; int loop; // Create New Array array = new int[sizes.length + length]; arrayIndex = 0; for (index = 0; index < sizes.length; index++) { if (index == start) { for (loop = 0; loop < length; ... | public void insertEntries(int start, int length, int value) { // Variables int[] array; int index; int arrayIndex; int loop; // Create New Array array = new int[sizes.length + length]; arrayIndex = 0; for (index = 0; index < sizes.length; index++) { if (index == start) { for (loop = 0; loop < length; ... | 3,453 |
public void insertEntries(int start, int length, int value) { // Variables int[] array; int index; int arrayIndex; int loop; // Create New Array array = new int[sizes.length + length]; arrayIndex = 0; for (index = 0; index < sizes.length; index++) { if (index == start) { for (loop = 0; loop < length; ... | public void insertEntries(int start, int length, int value) { // Variables int[] array; int index; int arrayIndex; int loop; // Create New Array array = new int[sizes.length + length]; arrayIndex = 0; for (index = 0; index < sizes.length; index++) { if (index == start) { for (loop = 0; loop < length; ... | 3,454 |
public int getIndex(int position) { return 0; // TODO } // getIndex() | public int getIndex(int position) { return 0; // TODO } // getIndex() | 3,455 |
public SizeSequence(int numEntries, int value) { insertEntries(0, numEntries, value); } // SizeSequence() | public SizeSequence(int numEntries, int value) { insertEntries(0, numEntries, value); } // SizeSequence() | 3,456 |
public void setSize(int index, int size) { sizes[index] = size; } // setSize() | public void setSize(int index, int size) { sizes[index] = size; } // setSize() | 3,457 |
public OptionGroup(String name) { this.name = name; } | OptionGroup() { this.name = name; } | 3,458 |
public OptionGroup(String name) { this.name = name; } | public OptionGroup(String name) { } | 3,459 |
public synchronized void exiting(String sourceClass, String sourceMethod, Object result) { if (isLoggable(Level.FINER)) logp(Level.FINER, sourceClass, sourceMethod, "RETURN {0}", result); } | public synchronized void exiting(String sourceClass, String sourceMethod, Object result) { if (isLoggable(Level.FINER)) logp(Level.FINER, sourceClass, sourceMethod, "RETURN {0}", result); } | 3,460 |
public synchronized void exiting(String sourceClass, String sourceMethod, Object result) { if (isLoggable(Level.FINER)) logp(Level.FINER, sourceClass, sourceMethod, "RETURN {0}", result); } | public synchronized void exiting(String sourceClass, String sourceMethod, Object result) { if (isLoggable(Level.FINER)) logp(Level.FINER, sourceClass, sourceMethod, "RETURN"); } | 3,461 |
void assignFrom(REMatch other) { start = other.start; end = other.end; index = other.index; // need to deep clone? next = other.next; empty = other.empty; } | void assignFrom(REMatch other) { start = other.start; end = other.end; index = other.index; // need to deep clone? next = other.next; } | 3,462 |
public VerifyError(String s) { super(s); } | public VerifyError(String s) { super(s); } | 3,464 |
Authenticator(){} | Authenticator(){} | 3,465 |
getPasswordAuthentication(){ return(null);} | getPasswordAuthentication(){ return(null);} | 3,466 |
protected final String getRequestingHost(){ return(host);} | protected final String getRequestingHost(){ return(host);} | 3,467 |
getRequestingPort(){ return(port);} | getRequestingPort(){ return(port);} | 3,468 |
getRequestingPrompt(){ return(prompt);} | getRequestingPrompt(){ return(prompt);} | 3,469 |
getRequestingProtocol(){ return(protocol);} | getRequestingProtocol(){ return(protocol);} | 3,470 |
getRequestingScheme(){ return(scheme);} | getRequestingScheme(){ return(scheme);} | 3,471 |
getRequestingSite(){ return(addr);} | getRequestingSite(){ return(addr);} | 3,472 |
requestPasswordAuthentication(InetAddress addr, int port, String protocol, String prompt, String scheme) throws SecurityException{ return(requestPasswordAuthentication (null, addr, port, protocol, prompt, scheme));} | requestPasswordAuthentication(InetAddress addr, int port, String protocol, String prompt, String scheme) throws SecurityException{ return(requestPasswordAuthentication (null, addr, port, protocol, prompt, scheme));} | 3,473 |
requestPasswordAuthentication(InetAddress addr, int port, String protocol, String prompt, String scheme) throws SecurityException{ return(requestPasswordAuthentication (null, addr, port, protocol, prompt, scheme));} | requestPasswordAuthentication(InetAddress addr, int port, String protocol, String prompt, String scheme) throws SecurityException{ return(requestPasswordAuthentication (null, addr, port, protocol, prompt, scheme));} | 3,474 |
setDefault(Authenticator def_auth){ SecurityManager sm = System.getSecurityManager(); if (sm != null) sm.checkPermission(new NetPermission("setDefaultAuthenticator")); default_authenticator = def_auth;} | setDefault(Authenticator def_auth){ SecurityManager sm = System.getSecurityManager(); if (sm != null) sm.checkPermission(new NetPermission("setDefaultAuthenticator")); default_authenticator = def_auth;} | 3,475 |
setDefault(Authenticator def_auth){ SecurityManager sm = System.getSecurityManager(); if (sm != null) sm.checkPermission(new NetPermission("setDefaultAuthenticator")); default_authenticator = def_auth;} | setDefault(Authenticator def_auth){ SecurityManager sm = System.getSecurityManager(); if (sm != null) sm.checkPermission(new NetPermission("setDefaultAuthenticator")); default_authenticator = def_auth;} | 3,476 |
public ClassNameArgument(String name, String description) { super(name, description); } | public ClassNameArgument(String name, String description) { super(name, description); } | 3,479 |
public void actionPerformed(ActionEvent e) { // process the save transfer information button if (e.getActionCommand().equals("SAVE")) { saveXTFRInfo(); } // process the save transfer information button if (e.getActionCommand().equals("LOAD")) { loadXTFRInfo(); } if (e.getActionCo... | public void actionPerformed(ActionEvent e) { // process the save transfer information button if (e.getActionCommand().equals("SAVE")) { saveXTFRInfo(); } // process the save transfer information button if (e.getActionCommand().equals("LOAD")) { loadXTFRInfo(); } if (e.getActionCo... | 3,480 |
private void initXTFRInfo(Properties XTFRProps) { // create some reusable borders and layouts BorderLayout borderLayout = new BorderLayout(); Border emptyBorder = BorderFactory.createEmptyBorder(10, 10, 0, 10); // main panel JPanel mp = new JPanel(); mp.setLayout(borderLayout); // system panel JPanel sp = new ... | private void initXTFRInfo(Properties XTFRProps) { // create some reusable borders and layouts BorderLayout borderLayout = new BorderLayout(); Border emptyBorder = BorderFactory.createEmptyBorder(10, 10, 0, 10); // main panel JPanel mp = new JPanel(); mp.setLayout(borderLayout); // system panel JPanel sp = new ... | 3,481 |
private void txtONKeyPressed(java.awt.event.KeyEvent evt) { if (evt.getKeyCode() == evt.VK_ENTER) { xtfrButton.doClick(); } } | private void txtONKeyPressed(java.awt.event.KeyEvent evt) { if (evt.getKeyCode() == KeyEvent.VK_ENTER) { xtfrButton.doClick(); } } | 3,482 |
public boolean connect(String host) { connection = null; hostName = host.toUpperCase(); try { printFTPInfo("Connecting to " + hostName); Driver driver2 = (Driver)Class.forName("com.ibm.as400.access.AS400JDBCDriver").newInstance(); DriverManager.registerDriver(driver2); ... | public boolean connect(String host) { connection = null; hostName = host.toUpperCase(); try { printFTPInfo("Connecting to " + hostName); Driver driver2 = (Driver)Class.forName("com.ibm.as400.access.AS400JDBCDriver").newInstance(); DriverManager.registerDriver(driver2); ... | 3,483 |
public JProgressBar(int minimum, int maximum) { this(HORIZONTAL, minimum, maximum); } | public JProgressBar() { this(HORIZONTAL, minimum, maximum); } | 3,484 |
public JProgressBar(int minimum, int maximum) { this(HORIZONTAL, minimum, maximum); } | public JProgressBar(int minimum, int maximum) { this(HORIZONTAL, 0, 100); } | 3,485 |
public void setRows(int rows) { if (rows < 0) throw new IllegalArgumentException(); this.rows = rows; } | public void setRows(int rows) { if (rows < 0) throw new IllegalArgumentException(); if (rows != this.rows) { this.rows = rows; revalidate(); } } | 3,486 |
protected boolean getFile(String remoteFile, String localFile) { boolean flag = true; if(ftpOutputStream == null) { printFTPInfo("Not connected to any server!"); return false; } if(!loggedIn) { printFTPInfo("Login was not successful! Aborting!"); return false; ... | protected boolean getFile(String remoteFile, String localFile) { boolean flag = true; if(ftpOutputStream == null) { printFTPInfo("Not connected to any server!"); return false; } if(!loggedIn) { printFTPInfo("Login was not successful! Aborting!"); return false; ... | 3,487 |
public JTable (TableModel dm) { this(dm, null, null); } | public JTable () { this(dm, null, null); } | 3,488 |
public JTable (TableModel dm) { this(dm, null, null); } | public JTable (TableModel dm) { this(null, null, null); } | 3,489 |
void endDragging(MouseEvent e) { header.setDraggedColumn(null); draggingHeaderRect = null; TableColumnModel model = header.getColumnModel(); // Find where have we dragged the column. int x = e.getX(); int p = 0; int col = model.getColumnCount()-1; int n = model.get... | void endDragging(MouseEvent e) { header.setDraggedColumn(null); draggingHeaderRect = null; TableColumnModel model = header.getColumnModel(); // Find where have we dragged the column. int x = e.getX(); int p = 0; int col = model.getColumnCount() - 1; int n = model.g... | 3,490 |
public void mouseMoved(MouseEvent e) { // When dragging, the functionality is handled by the mouseDragged. if (e.getButton() == 0 && header.getResizingAllowed()) { TableColumnModel model = header.getColumnModel(); int n = model.getColumnCount(); if (n < 2) /... | public void mouseMoved(MouseEvent e) { // When dragging, the functionality is handled by the mouseDragged. if (e.getButton() == 0 && header.getResizingAllowed()) { TableColumnModel model = header.getColumnModel(); int n = model.getColumnCount(); if (n < 2) /... | 3,491 |
public void mouseMoved(MouseEvent e) { // When dragging, the functionality is handled by the mouseDragged. if (e.getButton() == 0 && header.getResizingAllowed()) { TableColumnModel model = header.getColumnModel(); int n = model.getColumnCount(); if (n < 2) /... | public void mouseMoved(MouseEvent e) { // When dragging, the functionality is handled by the mouseDragged. if (e.getButton() == 0 && header.getResizingAllowed()) { TableColumnModel model = header.getColumnModel(); int n = model.getColumnCount(); if (n < 2) /... | 3,492 |
public Dimension getPreferredSize(JComponent ignored) { TableColumnModel cmod = header.getColumnModel(); TableCellRenderer defaultRend = header.getDefaultRenderer(); int ncols = cmod.getColumnCount(); Dimension ret = new Dimension(0,0); int spacing = 0; if (header.getTable() != null && ... | public Dimension getPreferredSize(JComponent ignored) { TableColumnModel cmod = header.getColumnModel(); TableCellRenderer defaultRend = header.getDefaultRenderer(); int ncols = cmod.getColumnCount(); Dimension ret = new Dimension(0, 0); int spacing = 0; if (header.getTable() != null &&... | 3,493 |
public Dimension getPreferredSize(JComponent ignored) { TableColumnModel cmod = header.getColumnModel(); TableCellRenderer defaultRend = header.getDefaultRenderer(); int ncols = cmod.getColumnCount(); Dimension ret = new Dimension(0,0); int spacing = 0; if (header.getTable() != null && ... | public Dimension getPreferredSize(JComponent ignored) { TableColumnModel cmod = header.getColumnModel(); TableCellRenderer defaultRend = header.getDefaultRenderer(); int ncols = cmod.getColumnCount(); Dimension ret = new Dimension(0,0); int spacing = 0; if (header.getTable() != null && ... | 3,494 |
protected void installKeyboardActions() throws NotImplementedException { // TODO: Implement this properly. } | protected void installKeyboardActions() { // TODO: Implement this properly. } | 3,495 |
protected void installKeyboardActions() throws NotImplementedException { // TODO: Implement this properly. } | protected void installKeyboardActions() throws NotImplementedException { // TODO: Implement this properly. } | 3,496 |
public void paint(Graphics gfx, JComponent c) { TableColumnModel cmod = header.getColumnModel(); int ncols = cmod.getColumnCount(); if (ncols == 0) return; Rectangle clip = gfx.getClipBounds(); TableCellRenderer defaultRend = header.getDefaultRenderer(); for (int i = 0; i < ncols; ++i) ... | public void paint(Graphics gfx, JComponent c) { TableColumnModel cmod = header.getColumnModel(); int ncols = cmod.getColumnCount(); if (ncols == 0) return; Rectangle clip = gfx.getClipBounds(); TableCellRenderer defaultRend = header.getDefaultRenderer(); for (int i = 0; i < ncols; ++i) ... | 3,497 |
public void paint(Graphics gfx, JComponent c) { TableColumnModel cmod = header.getColumnModel(); int ncols = cmod.getColumnCount(); if (ncols == 0) return; Rectangle clip = gfx.getClipBounds(); TableCellRenderer defaultRend = header.getDefaultRenderer(); for (int i = 0; i < ncols; ++i) ... | public void paint(Graphics gfx, JComponent c) { TableColumnModel cmod = header.getColumnModel(); int ncols = cmod.getColumnCount(); if (ncols == 0) return; Rectangle clip = gfx.getClipBounds(); TableCellRenderer defaultRend = header.getDefaultRenderer(); for (int i = 0; i < ncols; ++i) ... | 3,498 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.