bugged stringlengths 6 599k | fixed stringlengths 10 599k | __index_level_0__ int64 0 1.13M |
|---|---|---|
protected void initComponentDefaults(UIDefaults defaults) { super.initComponentDefaults(defaults); Object[] myDefaults = new Object[] { "Button.background", new ColorUIResource(getControl()), "Button.border", MetalBorders.getButtonBorder(), "Button.darkShadow", new ColorUIResource(getControlDark... | protected void initComponentDefaults(UIDefaults defaults) { super.initComponentDefaults(defaults); Object[] myDefaults = new Object[] { "Button.background", new ColorUIResource(getControl()), "Button.border", MetalBorders.getButtonBorder(), "Button.darkShadow", new ColorUIResource(getControlDark... | 7,287 |
public void write_abstract_interface(java.lang.Object an_interface) { boolean isValue = an_interface instanceof ValueBase || (!(an_interface instanceof org.omg.CORBA.Object)); write_boolean(isValue); if (isValue) write_value((ValueBase) an_interface); else write_Object((org.omg.CORBA.... | public void write_abstract_interface(java.lang.Object an_interface) { boolean isValue = an_interface instanceof ValueBase || (!(an_interface instanceof org.omg.CORBA.Object)); write_boolean(isValue); if (isValue) write_value((ValueBase) an_interface); else write_Object((org.omg.CORBA.... | 7,288 |
public void write_abstract_interface(java.lang.Object an_interface) { boolean isValue = an_interface instanceof ValueBase || (!(an_interface instanceof org.omg.CORBA.Object)); write_boolean(isValue); if (isValue) write_value((ValueBase) an_interface); else write_Object((org.omg.CORBA.... | public void write_abstract_interface(java.lang.Object an_interface) { boolean isValue = an_interface instanceof ValueBase || (!(an_interface instanceof org.omg.CORBA.Object)); write_boolean(isObject); if (isValue) write_value((ValueBase) an_interface); else write_Object((org.omg.CORBA... | 7,289 |
public void write_abstract_interface(java.lang.Object an_interface) { boolean isValue = an_interface instanceof ValueBase || (!(an_interface instanceof org.omg.CORBA.Object)); write_boolean(isValue); if (isValue) write_value((ValueBase) an_interface); else write_Object((org.omg.CORBA.... | public void write_abstract_interface(java.lang.Object an_interface) { boolean isValue = an_interface instanceof ValueBase || (!(an_interface instanceof org.omg.CORBA.Object)); write_boolean(isValue); if (isValue) write_value((ValueBase) an_interface); else write_Object((org.omg.CORBA.... | 7,290 |
public void write_abstract_interface(java.lang.Object an_interface) { boolean isValue = an_interface instanceof ValueBase || (!(an_interface instanceof org.omg.CORBA.Object)); write_boolean(isValue); if (isValue) write_value((ValueBase) an_interface); else write_Object((org.omg.CORBA.... | public void write_abstract_interface(java.lang.Object an_interface) { boolean isValue = an_interface instanceof ValueBase || (!(an_interface instanceof org.omg.CORBA.Object)); write_boolean(isValue); if (isValue) write_value((ValueBase) an_interface); else write_value((Serializable) a... | 7,291 |
public Object clone() { HMac result = new HMac((IMessageDigest) underlyingHash.clone()); result.ipadHash = this.ipadHash; result.opadHash = this.opadHash; result.ipad = (byte[])this.ipad.clone(); return result; } | public Object clone() throws CloneNotSupportedException { HMac result = new HMac((IMessageDigest) underlyingHash.clone()); result.ipadHash = this.ipadHash; result.opadHash = this.opadHash; result.ipad = (byte[])this.ipad.clone(); return result; } | 7,292 |
public Object clone() { HMac result = new HMac((IMessageDigest) underlyingHash.clone()); result.ipadHash = this.ipadHash; result.opadHash = this.opadHash; result.ipad = (byte[])this.ipad.clone(); return result; } | public Object clone() { HMac result = new HMac((IMessageDigest) underlyingHash.clone()); result.ipadHash = this.ipadHash; result.opadHash = this.opadHash; result.ipad = (byte[])this.ipad.clone(); return result; } | 7,293 |
public SwingButtonPeer(SwingToolkit toolkit, Button button) { super(toolkit, button, new JButton()); this.button = button; final JButton jButton = (JButton)jComponent; SwingToolkit.add(button, jButton); SwingToolkit.copyAwtProperties(button, jButton); jButton.setText(button.getLabel()); jButton.addA... | public SwingButtonPeer(SwingToolkit toolkit, Button button) { super(toolkit, button, new JButton()); this.button = button; final JButton jButton = (JButton)jComponent; SwingToolkit.add(button, jButton); SwingToolkit.copyAwtProperties(button, jButton); jButton.setText(button.getLabel()); jButton.addA... | 7,296 |
public static Object get(Object key) { Object val = null; if (userUIDefaults != null) val = userUIDefaults.get(key); if (val == null) val = getLookAndFeelDefaults().get(key); return val; } | public static Object get(Object key) { Object val = null; if (userUIDefaults != null) val = userUIDefaults.get(key); if (val == null) val = getLookAndFeelDefaults().get(key); return val; } | 7,297 |
public static UIDefaults getLookAndFeelDefaults() { return currentUIDefaults; } | public static UIDefaults getLookAndFeelDefaults() { return lookAndFeelDefaults; } | 7,299 |
public static ComponentUI getUI(JComponent target) { ComponentUI ui = null; if (userUIDefaults != null && userUIDefaults.get(target.getUIClassID()) != null) ui = userUIDefaults.getUI(target); if (ui == null) ui = currentUIDefaults.getUI(target); return ui; } | public static ComponentUI getUI(JComponent target) { ComponentUI ui = null; if (userUIDefaults != null && userUIDefaults.get(target.getUIClassID()) != null) ui = userUIDefaults.getUI(target); if (ui == null) ui = currentUIDefaults.getUI(target); return ui; } | 7,300 |
public static Object put(Object key, Object value) { Object old = get(key); if (userUIDefaults == null) userUIDefaults = new UIDefaults(); userUIDefaults.put(key, value); return old; } | public static Object put(Object key, Object value) { Object old = get(key); if (userUIDefaults == null) userUIDefaults = new UIDefaults(); userUIDefaults.put(key, value); return old; } | 7,301 |
public static void setLookAndFeel(LookAndFeel newLookAndFeel) throws UnsupportedLookAndFeelException { if (newLookAndFeel != null && ! newLookAndFeel.isSupportedLookAndFeel()) throw new UnsupportedLookAndFeelException(newLookAndFeel.getName()); LookAndFeel oldLookAndFeel = currentLookAndFeel; if (ol... | public static void setLookAndFeel(LookAndFeel newLookAndFeel) throws UnsupportedLookAndFeelException { if (newLookAndFeel != null && ! newLookAndFeel.isSupportedLookAndFeel()) throw new UnsupportedLookAndFeelException(newLookAndFeel.getName() + " not supported on this platform"); LookAndFeel oldLookAnd... | 7,302 |
public static void setLookAndFeel(LookAndFeel newLookAndFeel) throws UnsupportedLookAndFeelException { if (newLookAndFeel != null && ! newLookAndFeel.isSupportedLookAndFeel()) throw new UnsupportedLookAndFeelException(newLookAndFeel.getName()); LookAndFeel oldLookAndFeel = currentLookAndFeel; if (ol... | public static void setLookAndFeel(LookAndFeel newLookAndFeel) throws UnsupportedLookAndFeelException { if (newLookAndFeel != null && ! newLookAndFeel.isSupportedLookAndFeel()) throw new UnsupportedLookAndFeelException(newLookAndFeel.getName()); LookAndFeel oldLookAndFeel = currentLookAndFeel; if (ol... | 7,303 |
public boolean probe(AbstractPointerDriver d) { try { // reset the mouse if (!d.initPointer()) { log.debug("Reset mouse failed"); return false; } int id = d.getPointerId(); if (id != 0) { // does not seem to be a mouse, more likely a tablet of touch screen log.debug("PointerId == " + id); ret... | public boolean probe(AbstractPointerDriver d) { try { // reset the mouse if (!d.initPointer()) { log.debug("Reset mouse failed"); return false; } int id = d.getPointerId(); if (id != 0) { // does not seem to be a mouse, more likely a tablet of touch screen log.debug("PointerId 0x" + NumberUtils.... | 7,304 |
public static Policy[] extract(Any any) { try { PolicyListHolder holds = (PolicyListHolder) any.extract_Streamable(); return holds.value; } catch (ClassCastException ex) { throw new BAD_OPERATION("Policy[] expected"); } } | public static Policy[] extract(Any any) { try { PolicyListHolder holds = (PolicyListHolder) any.extract_Streamable(); return holds.value; } catch (ClassCastException ex) { BAD_OPERATION bad = new BAD_OPERATION("Policy[] expected"); bad.minor = Minor.Any; throw bad; } } | 7,306 |
public final byte[] readIncoming() throws IOException { boolean done = false; boolean negotiate = false; baosin.reset(); int j = -1; int i = 0; while(!done) { i = bin.read(); // WVL - LDC : 16/07/2003 : TR.000345 // The inStream return -1 when end-of-strea... | public final byte[] readIncoming() throws IOException { boolean done = false; boolean negotiate = false; baosin.reset(); int j = -1; int i = 0; while(!done) { i = bin.read(); // WVL - LDC : 16/07/2003 : TR.000345 // The inStream return -1 when end-of-strea... | 7,307 |
public final byte[] readIncoming() throws IOException { boolean done = false; boolean negotiate = false; baosin.reset(); int j = -1; int i = 0; while(!done) { i = bin.read(); // WVL - LDC : 16/07/2003 : TR.000345 // The inStream return -1 when end-of-strea... | public final byte[] readIncoming() throws IOException { boolean done = false; boolean negotiate = false; baosin.reset(); int j = -1; int i = 0; while(!done) { i = bin.read(); // WVL - LDC : 16/07/2003 : TR.000345 // The inStream return -1 when end-of-strea... | 7,308 |
public final void run() { boolean done = false; me = Thread.currentThread(); // load the first response screen try { loadStream(abyte2, 0); } catch (IOException ioef) { log.warn(" run() " + ioef.getMessage()); } while (!done) { try { byte[] a... | public final void run() { boolean done = false; me = Thread.currentThread(); // load the first response screen try { loadStream(abyte2, 0); } catch (IOException ioef) { log.warn(" run() " + ioef.getMessage()); } while (!done) { try { byte[] a... | 7,309 |
public final void run() { boolean done = false; me = Thread.currentThread(); // load the first response screen try { loadStream(abyte2, 0); } catch (IOException ioef) { log.warn(" run() " + ioef.getMessage()); } while (!done) { try { byte[] a... | public final void run() { boolean done = false; me = Thread.currentThread(); // load the first response screen try { loadStream(abyte2, 0); } catch (IOException ioef) { log.warn(" run() " + ioef.getMessage()); } while (!done) { try { byte[] a... | 7,310 |
public OutputStream _invoke(String method, InputStream in, ResponseHandler rh) { OutputStream out = null; // We suppose that the next_n should be the most popular. if (method.equals("next_n")) { // The next_n has been invoked. int amount = in.read_ulong(); BindingListHolder a_list ... | public OutputStream _invoke(String method, InputStream in, ResponseHandler rh) { OutputStream out = null; // We suppose that the next_n should be the most popular. if (method.equals("next_n")) { // The next_n has been invoked. int amount = in.read_ulong(); BindingListHolder a_list ... | 7,314 |
public void toXMLOutputStream ( OutputStream outputstream, Hashtable XMLDeclAttribs, String indent, boolean dontCloseNode, String newNodeNameString,... | public void toXMLOutputStream ( OutputStream outputstream, Hashtable XMLDeclAttribs, String indent, boolean dontCloseNode, String newNodeNameString,... | 7,315 |
public void toXMLOutputStream ( OutputStream outputstream, Hashtable XMLDeclAttribs, String indent, boolean dontCloseNode, String newNodeNameString,... | public void toXMLOutputStream ( OutputStream outputstream, Hashtable XMLDeclAttribs, String indent, boolean dontCloseNode, String newNodeNameString,... | 7,316 |
public int getItemCount() { // returns the number of items on // the menu, including separators. return getComponents().length; } | public int getItemCount() { // returns the number of items on // the menu, including separators. return getMenuComponentCount(); } | 7,317 |
public String getUIClassID() { return uiClassID; } | public String getUIClassID() { return "MenuUI"; } | 7,318 |
public boolean isTopLevelMenu() { if (getParent() instanceof JMenuBar) return true; else return false; } | public boolean isTopLevelMenu() { if (getParent() instanceof JMenuBar) return true; else return false; } | 7,319 |
protected String paramString() { return "JMenu"; } | protected String paramString() { return super.paramString(); } | 7,320 |
public void propertyChange(PropertyChangeEvent e) { if (e.getPropertyName().equals(JMenuBar.BORDER_PAINTED_CHANGED_PROPERTY)) menuBar.repaint(); if (e.getPropertyName().equals(JMenuBar.MARGIN_CHANGED_PROPERTY)) menuBar.repaint(); } | public void propertyChange(PropertyChangeEvent e) { if (e.getPropertyName().equals("borderPainted")) menuBar.repaint(); if (e.getPropertyName().equals(JMenuBar.MARGIN_CHANGED_PROPERTY)) menuBar.repaint(); } | 7,321 |
public void propertyChange(PropertyChangeEvent e) { if (e.getPropertyName().equals(JMenuBar.BORDER_PAINTED_CHANGED_PROPERTY)) menuBar.repaint(); if (e.getPropertyName().equals(JMenuBar.MARGIN_CHANGED_PROPERTY)) menuBar.repaint(); } | public void propertyChange(PropertyChangeEvent e) { if (e.getPropertyName().equals(JMenuBar.BORDER_PAINTED_CHANGED_PROPERTY)) menuBar.repaint(); if (e.getPropertyName().equals("margin")) menuBar.repaint(); } | 7,322 |
public void writePUSH(int jvmType, X86Register.GPR reg) { final Item item = ifac.createReg(ec, jvmType, reg); if (Vm.VerifyAssertions) Vm._assert(pool.request(reg, item), "request"); push(item); } | public void writePUSH(int jvmType, X86Register.GPR reg) { final Item item = ifac.createReg(ec, jvmType, reg); if (Vm.VerifyAssertions) Vm._assert(ok, "request"); push(item); } | 7,323 |
public void writePUSH64(int jvmType, X86Register.GPR lsbReg, X86Register.GPR msbReg) { final Item item = ifac.createReg(ec, jvmType, lsbReg, msbReg); if (Vm.VerifyAssertions) { Vm._assert(pool.request(lsbReg, item), "request-lsb"); Vm._assert(pool.request(msbReg, item), "request-msb"); } push(item); ... | public void writePUSH64(int jvmType, X86Register.GPR lsbReg, X86Register.GPR msbReg) { final Item item = ifac.createReg(ec, jvmType, lsbReg, msbReg); if (Vm.VerifyAssertions) { Vm._assert(pool.request(lsbReg, item), "request-lsb"); Vm._assert(pool.request(msbReg, item), "request-msb"); } push(item); ... | 7,324 |
public Dimension getPreferredSize(JComponent c) { JLabel lab = (JLabel) c; Insets insets = lab.getInsets(); FontMetrics fm = lab.getFontMetrics(lab.getFont()); layoutCL(lab, fm, lab.getText(), lab.getIcon(), vr, ir, tr); Rectangle cr = SwingUtilities.computeUnion(tr.x, tr.y, tr.width, tr.height... | public Dimension getPreferredSize(JComponent c) { JLabel lab = (JLabel) c; Insets insets = lab.getInsets(); FontMetrics fm = lab.getFontMetrics(lab.getFont()); layoutCL(lab, fm, lab.getText(), lab.getIcon(), vr, ir, tr); Rectangle cr = SwingUtilities.computeUnion(tr.x, tr.y, tr.width, tr.height... | 7,325 |
protected void installKeyboardActions(JLabel l) throws NotImplementedException { //FIXME: implement. } | protected void installKeyboardActions(JLabel l) { //FIXME: implement. } | 7,326 |
public void paint(Graphics g, JComponent c) { JLabel b = (JLabel) c; FontMetrics fm = g.getFontMetrics(); vr = SwingUtilities.calculateInnerArea(c, vr); if (vr.width < 0) vr.width = 0; if (vr.height < 0) vr.height = 0; Icon icon = (b.isEnabled()) ? b.getIcon() : b.getDisabledIcon(); St... | public void paint(Graphics g, JComponent c) { JLabel b = (JLabel) c; FontMetrics fm = g.getFontMetrics(); if (vr.width < 0) vr.width = 0; if (vr.height < 0) vr.height = 0; Icon icon = (b.isEnabled()) ? b.getIcon() : b.getDisabledIcon(); String text = layoutCL(b, fm, b.getText(), icon,... | 7,328 |
public void paint(Graphics g, JComponent c) { JLabel b = (JLabel) c; FontMetrics fm = g.getFontMetrics(); vr = SwingUtilities.calculateInnerArea(c, vr); if (vr.width < 0) vr.width = 0; if (vr.height < 0) vr.height = 0; Icon icon = (b.isEnabled()) ? b.getIcon() : b.getDisabledIcon(); St... | public void paint(Graphics g, JComponent c) { JLabel b = (JLabel) c; FontMetrics fm = g.getFontMetrics(); vr = SwingUtilities.calculateInnerArea(c, vr); if (vr.width < 0) vr.width = 0; if (vr.height < 0) vr.height = 0; Icon icon = (b.isEnabled()) ? b.getIcon() : b.getDisabledIcon(); St... | 7,329 |
protected void uninstallKeyboardActions(JLabel l) throws NotImplementedException { //FIXME: implement. } | protected void uninstallKeyboardActions(JLabel l) { //FIXME: implement. } | 7,331 |
public void keyPressed(KeyEvent evt) { ListSelectionModel rowModel = table.getSelectionModel(); ListSelectionModel colModel = table.getColumnModel().getSelectionModel(); int rowLead = rowModel.getLeadSelectionIndex(); int rowMax = table.getModel().getRowCount() - 1; int colLead = colMod... | public void keyPressed(KeyEvent evt) { ListSelectionModel rowModel = table.getSelectionModel(); ListSelectionModel colModel = table.getColumnModel().getSelectionModel(); int rowLead = rowModel.getLeadSelectionIndex(); int rowMax = table.getModel().getRowCount() - 1; int colLead = colMod... | 7,333 |
public void keyPressed(KeyEvent evt) { ListSelectionModel rowModel = table.getSelectionModel(); ListSelectionModel colModel = table.getColumnModel().getSelectionModel(); int rowLead = rowModel.getLeadSelectionIndex(); int rowMax = table.getModel().getRowCount() - 1; int colLead = colMod... | public void keyPressed(KeyEvent evt) { ListSelectionModel rowModel = table.getSelectionModel(); ListSelectionModel colModel = table.getColumnModel().getSelectionModel(); int rowLead = rowModel.getLeadSelectionIndex(); int rowMax = table.getModel().getRowCount() - 1; int colLead = colMod... | 7,334 |
public void keyPressed(KeyEvent evt) { ListSelectionModel rowModel = table.getSelectionModel(); ListSelectionModel colModel = table.getColumnModel().getSelectionModel(); int rowLead = rowModel.getLeadSelectionIndex(); int rowMax = table.getModel().getRowCount() - 1; int colLead = colMod... | public void keyPressed(KeyEvent evt) { ListSelectionModel rowModel = table.getSelectionModel(); ListSelectionModel colModel = table.getColumnModel().getSelectionModel(); int rowLead = rowModel.getLeadSelectionIndex(); int rowMax = table.getModel().getRowCount() - 1; int colLead = colMod... | 7,335 |
public void keyPressed(KeyEvent evt) { ListSelectionModel rowModel = table.getSelectionModel(); ListSelectionModel colModel = table.getColumnModel().getSelectionModel(); int rowLead = rowModel.getLeadSelectionIndex(); int rowMax = table.getModel().getRowCount() - 1; int colLead = colMod... | public void keyPressed(KeyEvent evt) { ListSelectionModel rowModel = table.getSelectionModel(); ListSelectionModel colModel = table.getColumnModel().getSelectionModel(); int rowLead = rowModel.getLeadSelectionIndex(); int rowMax = table.getModel().getRowCount() - 1; int colLead = colMod... | 7,336 |
public void keyPressed(KeyEvent evt) { ListSelectionModel rowModel = table.getSelectionModel(); ListSelectionModel colModel = table.getColumnModel().getSelectionModel(); int rowLead = rowModel.getLeadSelectionIndex(); int rowMax = table.getModel().getRowCount() - 1; int colLead = colMod... | public void keyPressed(KeyEvent evt) { ListSelectionModel rowModel = table.getSelectionModel(); ListSelectionModel colModel = table.getColumnModel().getSelectionModel(); int rowLead = rowModel.getLeadSelectionIndex(); int rowMax = table.getModel().getRowCount() - 1; int colLead = colMod... | 7,337 |
public void keyPressed(KeyEvent evt) { ListSelectionModel rowModel = table.getSelectionModel(); ListSelectionModel colModel = table.getColumnModel().getSelectionModel(); int rowLead = rowModel.getLeadSelectionIndex(); int rowMax = table.getModel().getRowCount() - 1; int colLead = colMod... | public void keyPressed(KeyEvent evt) { ListSelectionModel rowModel = table.getSelectionModel(); ListSelectionModel colModel = table.getColumnModel().getSelectionModel(); int rowLead = rowModel.getLeadSelectionIndex(); int rowMax = table.getModel().getRowCount() - 1; int colLead = colMod... | 7,338 |
public void keyPressed(KeyEvent evt) { ListSelectionModel rowModel = table.getSelectionModel(); ListSelectionModel colModel = table.getColumnModel().getSelectionModel(); int rowLead = rowModel.getLeadSelectionIndex(); int rowMax = table.getModel().getRowCount() - 1; int colLead = colMod... | public void keyPressed(KeyEvent evt) { ListSelectionModel rowModel = table.getSelectionModel(); ListSelectionModel colModel = table.getColumnModel().getSelectionModel(); int rowLead = rowModel.getLeadSelectionIndex(); int rowMax = table.getModel().getRowCount() - 1; int colLead = colMod... | 7,339 |
public void keyPressed(KeyEvent evt) { ListSelectionModel rowModel = table.getSelectionModel(); ListSelectionModel colModel = table.getColumnModel().getSelectionModel(); int rowLead = rowModel.getLeadSelectionIndex(); int rowMax = table.getModel().getRowCount() - 1; int colLead = colMod... | public void keyPressed(KeyEvent evt) { ListSelectionModel rowModel = table.getSelectionModel(); ListSelectionModel colModel = table.getColumnModel().getSelectionModel(); int rowLead = rowModel.getLeadSelectionIndex(); int rowMax = table.getModel().getRowCount() - 1; int colLead = colMod... | 7,341 |
public void keyPressed(KeyEvent evt) { ListSelectionModel rowModel = table.getSelectionModel(); ListSelectionModel colModel = table.getColumnModel().getSelectionModel(); int rowLead = rowModel.getLeadSelectionIndex(); int rowMax = table.getModel().getRowCount() - 1; int colLead = colMod... | public void keyPressed(KeyEvent evt) { ListSelectionModel rowModel = table.getSelectionModel(); ListSelectionModel colModel = table.getColumnModel().getSelectionModel(); int rowLead = rowModel.getLeadSelectionIndex(); int rowMax = table.getModel().getRowCount() - 1; int colLead = colMod... | 7,343 |
public void keyPressed(KeyEvent evt) { ListSelectionModel rowModel = table.getSelectionModel(); ListSelectionModel colModel = table.getColumnModel().getSelectionModel(); int rowLead = rowModel.getLeadSelectionIndex(); int rowMax = table.getModel().getRowCount() - 1; int colLead = colMod... | public void keyPressed(KeyEvent evt) { ListSelectionModel rowModel = table.getSelectionModel(); ListSelectionModel colModel = table.getColumnModel().getSelectionModel(); int rowLead = rowModel.getLeadSelectionIndex(); int rowMax = table.getModel().getRowCount() - 1; int colLead = colMod... | 7,344 |
public void keyPressed(KeyEvent evt) { ListSelectionModel rowModel = table.getSelectionModel(); ListSelectionModel colModel = table.getColumnModel().getSelectionModel(); int rowLead = rowModel.getLeadSelectionIndex(); int rowMax = table.getModel().getRowCount() - 1; int colLead = colMod... | public void keyPressed(KeyEvent evt) { ListSelectionModel rowModel = table.getSelectionModel(); ListSelectionModel colModel = table.getColumnModel().getSelectionModel(); int rowLead = rowModel.getLeadSelectionIndex(); int rowMax = table.getModel().getRowCount() - 1; int colLead = colMod... | 7,345 |
public void keyPressed(KeyEvent evt) { ListSelectionModel rowModel = table.getSelectionModel(); ListSelectionModel colModel = table.getColumnModel().getSelectionModel(); int rowLead = rowModel.getLeadSelectionIndex(); int rowMax = table.getModel().getRowCount() - 1; int colLead = colMod... | public void keyPressed(KeyEvent evt) { ListSelectionModel rowModel = table.getSelectionModel(); ListSelectionModel colModel = table.getColumnModel().getSelectionModel(); int rowLead = rowModel.getLeadSelectionIndex(); int rowMax = table.getModel().getRowCount() - 1; int colLead = colMod... | 7,346 |
public void keyPressed(KeyEvent evt) { ListSelectionModel rowModel = table.getSelectionModel(); ListSelectionModel colModel = table.getColumnModel().getSelectionModel(); int rowLead = rowModel.getLeadSelectionIndex(); int rowMax = table.getModel().getRowCount() - 1; int colLead = colMod... | public void keyPressed(KeyEvent evt) { ListSelectionModel rowModel = table.getSelectionModel(); ListSelectionModel colModel = table.getColumnModel().getSelectionModel(); int rowLead = rowModel.getLeadSelectionIndex(); int rowMax = table.getModel().getRowCount() - 1; int colLead = colMod... | 7,347 |
public static void createChildren(DefaultMutableTreeNode parent, Object children) { if (children instanceof Hashtable) { Hashtable tab = (Hashtable) children; Enumeration e = tab.keys(); while (e.hasMoreElements()) { ... | public static void createChildren(DefaultMutableTreeNode parent, Object children) { if (children instanceof Hashtable) { Hashtable tab = (Hashtable) children; Enumeration e = tab.keys(); while (e.hasMoreElements()) { ... | 7,349 |
public boolean isRowSelected(int row) { return selectionModel.isRowSelected(row); } | public boolean isRowSelected(int row) { return selectionModel.isPathSelected(getPathForRow(row)); } | 7,352 |
protected void setExpandedState(TreePath path, boolean state) { if (path == null) return; TreePath parent = path.getParentPath(); try { while (parent != null) checkExpandParents(parent); } catch (ExpandVetoException e) { // Expansion vetoed. return; } doExpandParents(path, s... | protected void setExpandedState(TreePath path, boolean state) { if (path == null) return; TreePath parent = path.getParentPath(); try { if (parent != null) checkExpandParents(parent); } catch (ExpandVetoException e) { // Expansion vetoed. return; } doExpandParents(path, stat... | 7,353 |
private void showHexMap() { JPanel srp = new JPanel(); srp.setLayout(new BorderLayout()); DefaultListModel listModel = new DefaultListModel(); StringBuffer sb = new StringBuffer(); // we will use a collator here so that we can take advantage of the locales Collator collator = Collator.g... | private void showHexMap() { JPanel srp = new JPanel(); srp.setLayout(new BorderLayout()); DefaultListModel listModel = new DefaultListModel(); StringBuffer sb = new StringBuffer(); // we will use a collator here so that we can take advantage of the locales Collator collator = Collator.g... | 7,355 |
protected int getDefaultPort() { return 80; } | protected int getDefaultPort() { return HTTPConnection.HTTP_PORT; } | 7,357 |
protected URLConnection openConnection (URL url) throws IOException { return new Connection (url); } | public URLConnection openConnection(URL url) throws IOException { return new Connection (url); } | 7,358 |
protected URLConnection openConnection (URL url) throws IOException { return new Connection (url); } | protected URLConnection openConnection (URL url) throws IOException { return new HTTPURLConnection(url); } | 7,359 |
public void addSessionView(String tabText,Session sessionView) { final Session session = sessionView; if (hideTabBar && sessionPane.getTabCount() == 0 && !embedded) { this.getContentPane().add(session, BorderLayout.CENTER); session.addSessionListener(this); session.resizeMe(); ... | public void addSessionView(String tabText,Session sessionView) { final Session session = sessionView; if (hideTabBar && sessionPane.getTabCount() == 0 && !embedded) { this.getContentPane().add(session, BorderLayout.CENTER); session.addSessionListener(this); session.resizeMe(); ... | 7,360 |
private void jbInit() throws Exception { this.getContentPane().setLayout(borderLayout1); // update the frame sequences frameSeq = sequence++; sessionPane.setBorder(BorderFactory.createEtchedBorder()); sessionPane.setBounds(new Rectangle(78, 57, 5, 5)); sessionPane.setOpaque(true); ... | private void jbInit() throws Exception { this.getContentPane().setLayout(borderLayout1); // update the frame sequences frameSeq = sequence++; sessionPane.setBorder(BorderFactory.createEtchedBorder()); sessionPane.setBounds(new Rectangle(78, 57, 5, 5)); sessionPane.setOpaque(true); ... | 7,361 |
private void nextSession() { final int index = sessionPane.getSelectedIndex(); sessionPane.setForegroundAt(index,Color.black); sessionPane.setIconAt(index,unfocused); SwingUtilities.invokeLater(new Runnable() { public void run() { int index1 = index; if (index1 < ses... | private void nextSession() { final int index = sessionPane.getSelectedIndex(); sessionPane.setForegroundAt(index,Color.black); sessionPane.setIconAt(index,unfocused); SwingUtilities.invokeLater(new Runnable() { public void run() { int index1 = index; if (index1 < ses... | 7,362 |
public void run() { int index1 = index; if (index1 < sessionPane.getTabCount() - 1) { sessionPane.setSelectedIndex(++index1); sessionPane.setForegroundAt(index1,Color.blue); sessionPane.setIconAt(index1,focused); } else { ... | public void run() { int index1 = index; if (index1 < sessionPane.getTabCount() - 1) { sessionPane.setSelectedIndex(++index1); sessionPane.setForegroundAt(index1,Color.blue); sessionPane.setIconAt(index1,focused); } else { ... | 7,363 |
public void onSessionChanged(SessionChangeEvent changeEvent) { Session ses = (Session)changeEvent.getSource(); switch (changeEvent.getState()) { case STATE_CONNECTED: final String d = ses.getAllocDeviceName(); if (d != null) { System.out.println(changeEvent.getSt... | public void onSessionChanged(SessionChangeEvent changeEvent) { Session ses = (Session)changeEvent.getSource(); switch (changeEvent.getState()) { case STATE_CONNECTED: final String d = ses.getAllocDeviceName(); if (d != null) { System.out.println(changeEvent.getSt... | 7,364 |
private void prevSession() { final int index = sessionPane.getSelectedIndex(); sessionPane.setForegroundAt(index,Color.black); sessionPane.setIconAt(index,unfocused); SwingUtilities.invokeLater(new Runnable() { public void run() { int index1 = index; if (index1 == 0)... | private void prevSession() { final int index = sessionPane.getSelectedIndex(); sessionPane.setForegroundAt(index,Color.black); sessionPane.setIconAt(index,unfocused); SwingUtilities.invokeLater(new Runnable() { public void run() { int index1 = index; if (index1 == 0)... | 7,365 |
public void run() { int index1 = index; if (index1 == 0) { sessionPane.setSelectedIndex(sessionPane.getTabCount() - 1); sessionPane.setForegroundAt(sessionPane.getSelectedIndex(),Color.blue); sessionPane.setIconAt(sessionPane.getSelectedIndex(),fo... | public void run() { int index1 = index; if (index1 == 0) { sessionPane.setSelectedIndex(sessionPane.getTabCount() - 1); sessionPane.setForegroundAt(sessionPane.getSelectedIndex(),Color.blue); sessionPane.setIconAt(sessionPane.getSelectedIndex(),fo... | 7,366 |
public void stateChanged(ChangeEvent e) { JTabbedPane p = (JTabbedPane)e.getSource(); p.setForegroundAt(selectedIndex,Color.black); p.setIconAt(selectedIndex,unfocused); Session sg = (Session)p.getComponentAt(selectedIndex); sg.setVisible(false); sg = (Session)p.getSelectedComponent(); ... | public void stateChanged(ChangeEvent e) { JTabbedPane p = (JTabbedPane)e.getSource(); p.setForegroundAt(selectedIndex,Color.black); p.setIconAt(selectedIndex,unfocused); Session sg = (Session)p.getComponentAt(selectedIndex); sg.setVisible(false); sg = (Session)p.getSelectedComponent(); ... | 7,367 |
public void setInverted(boolean inverted) { if (isInverted != inverted) { boolean oldInverted = isInverted; isInverted = inverted; firePropertyChange(INVERTED_CHANGED_PROPERTY, oldInverted, isInverted); } } | public void setInverted(boolean inverted) { if (isInverted != inverted) { boolean oldInverted = isInverted; isInverted = inverted; firePropertyChange("inverted", oldInverted, isInverted); } } | 7,368 |
public void setLabelTable(Dictionary table) { if (table != labelTable) { Dictionary oldTable = labelTable; labelTable = table; firePropertyChange(LABEL_TABLE_CHANGED_PROPERTY, oldTable, labelTable); } } | public void setLabelTable(Dictionary table) { if (table != labelTable) { Dictionary oldTable = labelTable; labelTable = table; firePropertyChange("labelTable", oldTable, labelTable); } } | 7,369 |
public void setMajorTickSpacing(int spacing) { if (majorTickSpacing != spacing) { int oldSpacing = majorTickSpacing; majorTickSpacing = spacing; firePropertyChange(MAJOR_TICK_SPACING_CHANGED_PROPERTY, oldSpacing, majorTickSpacing); } } | public void setMajorTickSpacing(int spacing) { if (majorTickSpacing != spacing) { int oldSpacing = majorTickSpacing; majorTickSpacing = spacing; firePropertyChange("majorTickSpacing", oldSpacing, majorTickSpacing); } } | 7,370 |
public void setMinorTickSpacing(int spacing) { if (minorTickSpacing != spacing) { int oldSpacing = minorTickSpacing; minorTickSpacing = spacing; firePropertyChange(MINOR_TICK_SPACING_CHANGED_PROPERTY, oldSpacing, minorTickSpacing); } } | public void setMinorTickSpacing(int spacing) { if (minorTickSpacing != spacing) { int oldSpacing = minorTickSpacing; minorTickSpacing = spacing; firePropertyChange("minorTickSpacing", oldSpacing, minorTickSpacing); } } | 7,371 |
public void setModel(BoundedRangeModel model) { // I didn't do the null pointer check on purpose. // If you try it with Sun's, it'll go ahead and set it to null // and bork the next time it tries to access the model. if (model != sliderModel) { BoundedRangeModel oldModel = sliderModel; sliderModel =... | public void setModel(BoundedRangeModel model) { // I didn't do the null pointer check on purpose. // If you try it with Sun's, it'll go ahead and set it to null // and bork the next time it tries to access the model. if (model != sliderModel) { BoundedRangeModel oldModel = sliderModel; sliderModel =... | 7,372 |
public void setOrientation(int orientation) { if (orientation != VERTICAL && orientation != HORIZONTAL) throw new IllegalArgumentException("orientation must be one of: VERTICAL, HORIZONTAL"); if (orientation != this.orientation) { int oldOrientation = this.orientation; this.orientation = orientation;... | public void setOrientation(int orientation) { if (orientation != VERTICAL && orientation != HORIZONTAL) throw new IllegalArgumentException("orientation must be one of: VERTICAL, HORIZONTAL"); if (orientation != this.orientation) { int oldOrientation = this.orientation; this.orientation = orientation;... | 7,373 |
public void setPaintLabels(boolean paint) { if (paint != paintLabels) { boolean oldPaintLabels = paintLabels; paintLabels = paint; firePropertyChange(PAINT_LABELS_CHANGED_PROPERTY, oldPaintLabels, paintLabels); } } | public void setPaintLabels(boolean paint) { if (paint != paintLabels) { boolean oldPaintLabels = paintLabels; paintLabels = paint; firePropertyChange(PAINT_LABELS_CHANGED_PROPERTY, oldPaintLabels, paintLabels); } } | 7,374 |
public void setPaintTicks(boolean paint) { if (paint != paintTicks) { boolean oldPaintTicks = paintTicks; paintTicks = paint; firePropertyChange(PAINT_TICKS_CHANGED_PROPERTY, oldPaintTicks, paintTicks); } } | public void setPaintTicks(boolean paint) { if (paint != paintTicks) { boolean oldPaintTicks = paintTicks; paintTicks = paint; firePropertyChange(PAINT_TICKS_CHANGED_PROPERTY, oldPaintTicks, paintTicks); } } | 7,375 |
public void addItem(MenuItem item) { item.addNotify(); jComponent.add(((SwingMenuItemPeer)item.getPeer()).jComponent); } | public void addItem(MenuItem item) { item.addNotify(); jComponent.add(((SwingBaseMenuItemPeer)item.getPeer()).jComponent); } | 7,376 |
public SpringLayout.Constraints getConstraints(Component c) { Constraints constraints = (Constraints) constraintsMap.get(c); if (constraints == null) { Container parent = c.getParent(); constraints = new Constraints(); if (parent != null) { constraints.setX ... | public SpringLayout.Constraints getConstraints(Component c) { Constraints constraints = (Constraints) constraintsMap.get(c); if (constraints == null) { Container parent = c.getParent(); constraints = new Constraints(); if (parent != null) { constraints.setX ... | 7,377 |
public SpringLayout.Constraints getConstraints(Component c) { Constraints constraints = (Constraints) constraintsMap.get(c); if (constraints == null) { Container parent = c.getParent(); constraints = new Constraints(); if (parent != null) { constraints.setX ... | public SpringLayout.Constraints getConstraints(Component c) { Constraints constraints = (Constraints) constraintsMap.get(c); if (constraints == null) { Container parent = c.getParent(); constraints = new Constraints(); if (parent != null) { constraints.setX ... | 7,378 |
protected void initialize(ImageIcon iimage) { image = iimage.getImage(); // if no image, return if (image == null) { throw new IllegalArgumentException("Image specified is invalid."); }// System.out.println(" here in splash ");// MediaTracker tracker = new MediaTracker(this);// tra... | protected void initialize(ImageIcon iimage) { image = iimage.getImage(); // if no image, return if (image == null) { throw new IllegalArgumentException("Image specified is invalid."); }// System.out.println(" here in splash ");// MediaTracker tracker = new MediaTracker(this);// tra... | 7,380 |
protected void initialize(ImageIcon iimage) { image = iimage.getImage(); // if no image, return if (image == null) { throw new IllegalArgumentException("Image specified is invalid."); }// System.out.println(" here in splash ");// MediaTracker tracker = new MediaTracker(this);// tra... | protected void initialize(ImageIcon iimage) { image = iimage.getImage(); // if no image, return if (image == null) { throw new IllegalArgumentException("Image specified is invalid."); }// System.out.println(" here in splash ");// MediaTracker tracker = new MediaTracker(this);// tra... | 7,381 |
public synchronized void paint(Graphics g) { Dimension size = getSize();// System.out.println(" here in paint "); if(offScreenBuffer == null) { offScreenBuffer = createImage(size.width,size.height); offScreenBufferGraphics = offScreenBuffer.getGraphics(); } offScreenBufferGraphics.setColor(Color.black); ... | public synchronized void paint(Graphics g) { int inset = 5; int height = 14; Dimension size = getSize();// System.out.println(" here in paint "); if(offScreenBuffer == null) { offScreenBuffer = createImage(size.width,size.height); offScreenBufferGraphics = offScreenBuffer.getGraphics(); } offScreenBuffer... | 7,383 |
public synchronized void paint(Graphics g) { Dimension size = getSize();// System.out.println(" here in paint "); if(offScreenBuffer == null) { offScreenBuffer = createImage(size.width,size.height); offScreenBufferGraphics = offScreenBuffer.getGraphics(); } offScreenBufferGraphics.setColor(Color.black); ... | public synchronized void paint(Graphics g) { Dimension size = getSize();// System.out.println(" here in paint "); if(offScreenBuffer == null) { offScreenBuffer = createImage(size.width,size.height); offScreenBufferGraphics = offScreenBuffer.getGraphics(); } offScreenBufferGraphics.setColor(Color.black); ... | 7,384 |
public synchronized void paint(Graphics g) { Dimension size = getSize();// System.out.println(" here in paint "); if(offScreenBuffer == null) { offScreenBuffer = createImage(size.width,size.height); offScreenBufferGraphics = offScreenBuffer.getGraphics(); } offScreenBufferGraphics.setColor(Color.black); ... | public synchronized void paint(Graphics g) { Dimension size = getSize();// System.out.println(" here in paint "); if(offScreenBuffer == null) { offScreenBuffer = createImage(size.width,size.height); offScreenBufferGraphics = offScreenBuffer.getGraphics(); } offScreenBufferGraphics.setColor(Color.black); ... | 7,385 |
public synchronized void paint(Graphics g) { Dimension size = getSize();// System.out.println(" here in paint "); if(offScreenBuffer == null) { offScreenBuffer = createImage(size.width,size.height); offScreenBufferGraphics = offScreenBuffer.getGraphics(); } offScreenBufferGraphics.setColor(Color.black); ... | public synchronized void paint(Graphics g) { Dimension size = getSize();// System.out.println(" here in paint "); if(offScreenBuffer == null) { offScreenBuffer = createImage(size.width,size.height); offScreenBufferGraphics = offScreenBuffer.getGraphics(); } offScreenBufferGraphics.setColor(Color.black); ... | 7,386 |
public synchronized void paint(Graphics g) { Dimension size = getSize();// System.out.println(" here in paint "); if(offScreenBuffer == null) { offScreenBuffer = createImage(size.width,size.height); offScreenBufferGraphics = offScreenBuffer.getGraphics(); } offScreenBufferGraphics.setColor(Color.black); ... | public synchronized void paint(Graphics g) { Dimension size = getSize();// System.out.println(" here in paint "); if(offScreenBuffer == null) { offScreenBuffer = createImage(size.width,size.height); offScreenBufferGraphics = offScreenBuffer.getGraphics(); } offScreenBufferGraphics.setColor(Color.black); ... | 7,387 |
public SwingTextFieldPeer(TextField textField) { SwingToolkit.add(textField, this); SwingToolkit.copyAwtProperties(textField, this); setText(textField.getText()); setColumns(textField.getColumns()); setEditable(textField.isEditable()); } | public SwingTextFieldPeer(TextField textField) { SwingToolkit.add(textField, this); SwingToolkit.copyAwtProperties(textField, this); setText(textField.getText()); setColumns(textField.getColumns()); setEditable(textField.isEditable()); } | 7,388 |
protected void initComponentDefaults(UIDefaults defaults) { Object[] uiDefaults; Color highLight = new Color(249, 247, 246); Color light = new Color(239, 235, 231); Color shadow = new Color(139, 136, 134); Color darkShadow = new Color(16, 16, 16); uiDefaults = new Object[] { "AbstractUndoa... | protected void initComponentDefaults(UIDefaults defaults) { Object[] uiDefaults; Color highLight = new Color(249, 247, 246); Color light = new Color(239, 235, 231); Color shadow = new Color(139, 136, 134); Color darkShadow = new Color(16, 16, 16); uiDefaults = new Object[] { "AbstractUndoa... | 7,389 |
protected void initComponentDefaults(UIDefaults defaults) { Object[] uiDefaults; Color highLight = new Color(249, 247, 246); Color light = new Color(239, 235, 231); Color shadow = new Color(139, 136, 134); Color darkShadow = new Color(16, 16, 16); uiDefaults = new Object[] { "AbstractUndoa... | protected void initComponentDefaults(UIDefaults defaults) { Object[] uiDefaults; Color highLight = new Color(249, 247, 246); Color light = new Color(239, 235, 231); Color shadow = new Color(139, 136, 134); Color darkShadow = new Color(16, 16, 16); uiDefaults = new Object[] { "AbstractUndoa... | 7,390 |
protected void initComponentDefaults(UIDefaults defaults) { Object[] uiDefaults; Color highLight = new Color(249, 247, 246); Color light = new Color(239, 235, 231); Color shadow = new Color(139, 136, 134); Color darkShadow = new Color(16, 16, 16); uiDefaults = new Object[] { "AbstractUndoa... | protected void initComponentDefaults(UIDefaults defaults) { Object[] uiDefaults; Color highLight = new Color(249, 247, 246); Color light = new Color(239, 235, 231); Color shadow = new Color(139, 136, 134); Color darkShadow = new Color(16, 16, 16); uiDefaults = new Object[] { "AbstractUndoa... | 7,391 |
protected void initComponentDefaults(UIDefaults defaults) { Object[] uiDefaults; Color highLight = new Color(249, 247, 246); Color light = new Color(239, 235, 231); Color shadow = new Color(139, 136, 134); Color darkShadow = new Color(16, 16, 16); uiDefaults = new Object[] { "AbstractUndoa... | protected void initComponentDefaults(UIDefaults defaults) { Object[] uiDefaults; Color highLight = new Color(249, 247, 246); Color light = new Color(239, 235, 231); Color shadow = new Color(139, 136, 134); Color darkShadow = new Color(16, 16, 16); uiDefaults = new Object[] { "AbstractUndoa... | 7,392 |
public Object createValue(UIDefaults def) { return BasicIconFactory.getCheckBoxIcon(); } | public Object createValue(UIDefaults def) { return BasicIconFactory.getMenuItemCheckIcon(); } | 7,393 |
public Object createValue(UIDefaults table) { Color lineColor = new Color(238, 238, 238); Border inner = BorderFactory.createLineBorder(lineColor, 1); Color shadowInner = new Color(184, 207, 229); Color shadowOuter = new Color(122, 138, 153); Border outer = BorderFactory.createBevelBorder(BevelBorder.RAISED,... | public Object createValue(UIDefaults table) { Color lineColor = new Color(238, 238, 238); Border inner = BorderFactory.createLineBorder(lineColor, 1); Color shadowInner = new Color(184, 207, 229); Color shadowOuter = new Color(122, 138, 153); Border outer = BorderFactory.createBevelBorder(BevelBorder.RAISED,... | 7,394 |
public Object createValue(UIDefaults def) { return new IconUIResource(BasicIconFactory.createEmptyFrameIcon()); } | public Object createValue(UIDefaults def) { return BasicIconFactory.getMenuItemCheckIcon(); } | 7,395 |
public Object createValue(UIDefaults def) { return BasicIconFactory.getRadioButtonIcon(); } | public Object createValue(UIDefaults def) { return BasicIconFactory.getRadioButtonIcon(); } | 7,396 |
public FSEntry addDirectory(String name) throws IOException { if(isReadOnly()) throw new IOException("Filesystem or directory is mounted read-only!"); //create a new iNode for the file //TODO: access rights, file type, UID and GID should be passed through the FSDirectory interface INode newINode; Ext2Direct... | public synchronized FSEntry addDirectory(String name) throws IOException { if(isReadOnly()) throw new IOException("Filesystem or directory is mounted read-only!"); //create a new iNode for the file //TODO: access rights, file type, UID and GID should be passed through the FSDirectory interface INode newINode... | 7,397 |
public FSEntry addDirectory(String name) throws IOException { if(isReadOnly()) throw new IOException("Filesystem or directory is mounted read-only!"); //create a new iNode for the file //TODO: access rights, file type, UID and GID should be passed through the FSDirectory interface INode newINode; Ext2Direct... | public FSEntry addDirectory(String name) throws IOException { if(isReadOnly()) throw new IOException("Filesystem or directory is mounted read-only!"); //create a new iNode for the file //TODO: access rights, file type, UID and GID should be passed through the FSDirectory interface INode newINode; Ext2Direct... | 7,398 |
private void addDirectoryRecord(Ext2DirectoryRecord dr) throws IOException, FileSystemException{ Ext2File dir = new Ext2File(iNode); //read itself as a file //find the last directory record (if any) Ext2FSEntryIterator iterator = (Ext2FSEntryIterator)iterator(); Ext2DirectoryRecord rec=null; while(iterator.hasNe... | private synchronized void addDirectoryRecord(Ext2DirectoryRecord dr) throws IOException, FileSystemException{ Ext2File dir = new Ext2File(iNode); //read itself as a file //find the last directory record (if any) Ext2FSEntryIterator iterator = (Ext2FSEntryIterator)iterator(); Ext2DirectoryRecord rec=null; while(i... | 7,399 |
public FSEntry addFile(String name) throws IOException { if(isReadOnly()) throw new IOException("Filesystem or directory is mounted read-only!"); //create a new iNode for the file //TODO: access rights, file type, UID and GID should be passed through the FSDirectory interface INode newINode; Ext2DirectoryRec... | public synchronized FSEntry addFile(String name) throws IOException { if(isReadOnly()) throw new IOException("Filesystem or directory is mounted read-only!"); //create a new iNode for the file //TODO: access rights, file type, UID and GID should be passed through the FSDirectory interface INode newINode; Ext... | 7,400 |
public FSEntry getEntry(String name) throws IOException{ //parse the directory and search for the file FSEntryIterator iterator=iterator(); while(iterator.hasNext()) { FSEntry entry = iterator.next(); if(entry.getName().equals(name)) return entry; } return null; } | public synchronized FSEntry getEntry(String name) throws IOException{ //parse the directory and search for the file FSEntryIterator iterator=iterator(); while(iterator.hasNext()) { FSEntry entry = iterator.next(); if(entry.getName().equals(name)) return entry; } return null; } | 7,401 |
protected Rectangle modelToView(int position, Shape a, Position.Bias bias) throws BadLocationException { return ((PlainView) view).modelToView(position, a, bias).getBounds(); } | public Shape modelToView(int position, Shape a, Position.Bias bias) throws BadLocationException { return ((PlainView) view).modelToView(position, a, bias).getBounds(); } | 7,402 |
public void uninstallUI(final JComponent component) { super.uninstallUI(component); rootView.setView(null); textComponent.removePropertyChangeListener(updateHandler); textComponent = null; uninstallDefaults(); uninstallListeners(); uninstallKeyboardActions(); } | public void uninstallUI(final JComponent component) { super.uninstallUI(component); rootView.setView(null); textComponent.removePropertyChangeListener(updateHandler); uninstallDefaults(); uninstallListeners(); uninstallKeyboardActions(); } | 7,404 |
public void paintIcon(Component c, Graphics g, int x, int y) { // TODO: work out whether/how the icon changes with different component // states (and also different metal themes) Color savedColor = g.getColor(); g.setColor(Color.black); for (int i = 0; i < 5; i++) g.drawLine(x + i, y + i, x... | public void paintIcon(Component c, Graphics g, int x, int y) { // TODO: work out whether/how the icon changes with different component // states (and also different metal themes) Color savedColor = g.getColor(); if (c.isEnabled()) g.setColor(MetalLookAndFeel.getBlack()); else g.setColor(MetalLookAn... | 7,406 |
protected CoderResult encodeLoop (CharBuffer in, ByteBuffer out) { // TODO: Optimize this in the case in.hasArray() / out.hasArray() while (in.hasRemaining ()) { char c = in.get (); if (c > Byte.MAX_VALUE) { in.position (in.position () - 1); return Code... | protected CoderResult encodeLoop (CharBuffer in, ByteBuffer out) { // TODO: Optimize this in the case in.hasArray() / out.hasArray() while (in.hasRemaining ()) { char c = in.get (); if (c > 0x7f) { in.position (in.position () - 1); return CoderResult.un... | 7,407 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.