bugged stringlengths 6 599k | fixed stringlengths 6 40.8M | __index_level_0__ int64 0 3.24M |
|---|---|---|
public Component getTreeCellRendererComponent(JTree tree, Object val, boolean selected, boolean expanded, boolean leaf, int row, boolean hasFocus) { this.selected = selected; this.hasFocus = hasFocus; if (leaf) setLeafIcon(getLeafIcon()); else if (expanded) setOpenIcon(getOp... | publicComponentgetTreeCellRendererComponent(JTreetree,Objectval, booleanselected,booleanexpanded,booleanleaf,introw, booleanhasFocus) {this.selected=selected;this.hasFocus=hasFocus;if(leaf) setLeafIcon(getLeafIcon());elseif(expanded) setOpenIcon(getOpenIcon());else setClosedIcon(getClosedIcon());setText(val.... | 12,357 |
private void nextRandomBytes(byte[] buffer) { if (rnd != null) { rnd.nextBytes(buffer); } else { new SecureRandom ().nextBytes(buffer); } } | private void nextRandomBytes(byte[] buffer) { if (rnd != null) { rnd.nextBytes(buffer); } else { new SecureRandom ().nextBytes(buffer); } } | 12,358 |
private void nextRandomBytes(byte[] buffer) { if (rnd != null) { rnd.nextBytes(buffer); } else { new SecureRandom ().nextBytes(buffer); } } | private void nextRandomBytes(byte[] buffer) { if (rnd != null) { rnd.nextBytes(buffer); else { new SecureRandom ().nextBytes(buffer); } | 12,359 |
public boolean equals (Object obj) { if (!(obj instanceof VMID)) { return false; } VMID other = (VMID) obj; if (addr.length != other.addr.length) { return false; } for (int i = addr.length - 1; i >= 0; i--) { if (addr[i] != other.addr[i]) { ... | public boolean equals (Object obj) { if (!(obj instanceof VMID)) { return false; } VMID other = (VMID) obj; if (addr.length != other.addr.length) { return false; } for (int i = addr.length - 1; i >= 0; i--) { if (addr[i] != other.addr[i]) { ... | 12,360 |
public boolean equals (Object obj) { if (!(obj instanceof VMID)) { return false; } VMID other = (VMID) obj; if (addr.length != other.addr.length) { return false; } for (int i = addr.length - 1; i >= 0; i--) { if (addr[i] != other.addr[i]) { ... | public boolean equals (Object obj) { if (!(obj instanceof VMID)) { if (obj instanceof VMID) { VMID other = (VMID) obj; return uid.equals(other.uid) && Arrays.equals(addr, other.addr); } VMID other = (VMID) obj; if (addr.length != other.addr.length) { if (obj instanceof VMI... | 12,361 |
public boolean equals (Object obj) { if (!(obj instanceof VMID)) { return false; } VMID other = (VMID) obj; if (addr.length != other.addr.length) { return false; } for (int i = addr.length - 1; i >= 0; i--) { if (addr[i] != other.addr[i]) { ... | public boolean equals (Object obj) { if (!(obj instanceof VMID)) { return false; } VMID other = (VMID) obj; if (addr.length != other.addr.length) { return false; } for (int i = addr.length - 1; i >= 0; i--) { if (addr[i] != other.addr[i]) { ... | 12,362 |
public int hashCode () { return super.hashCode(); } | public int hashCode () { return super.hashCode(); } | 12,363 |
public MyInternalFrame() { super("#" + (++openFrameCount), true, //resizable true, //closable true, //maximizable true);//iconifiable //...Create the GUI and put it in the window... //...Then set the window size or call pack... se... | public MyInternalFrame() { super("#" + (++openFrameCount), true, //resizable true, //closable true, //maximizable true);//iconifiable //...Create the GUI and put it in the window... //...Then set the window size or call pack... setSize(300,300); //Set the window's location. setLocation(xO... | 12,364 |
public MyInternalFrame() { super("#" + (++openFrameCount), true, //resizable true, //closable true, //maximizable true);//iconifiable //...Create the GUI and put it in the window... //...Then set the window size or call pack... se... | public MyInternalFrame() { super("#" + (++openFrameCount), true, //resizable true, //closable true, //maximizable true);//iconifiable //...Create the GUI and put it in the window... //...Then set the window size or call pack... se... | 12,365 |
public MyInternalFrame() { super("#" + (++openFrameCount), true, //resizable true, //closable true, //maximizable true);//iconifiable //...Create the GUI and put it in the window... //...Then set the window size or call pack... se... | public MyInternalFrame() { super("#" + (++openFrameCount), true, //resizable true, //closable true, //maximizable true);//iconifiable //...Create the GUI and put it in the window... //...Then set the window size or call pack... se... | 12,366 |
public MyInternalFrame() { super("#" + (++openFrameCount), true, //resizable true, //closable true, //maximizable true);//iconifiable //...Create the GUI and put it in the window... //...Then set the window size or call pack... se... | public MyInternalFrame() { super("#" + (++openFrameCount), true, //resizable true, //closable true, //maximizable true);//iconifiable //...Create the GUI and put it in the window... //...Then set the window size or call pack... se... | 12,367 |
public MyInternalFrame() { super("#" + (++openFrameCount), true, //resizable true, //closable true, //maximizable true);//iconifiable //...Create the GUI and put it in the window... //...Then set the window size or call pack... se... | public MyInternalFrame() { super("#" + (++openFrameCount), true, //resizable true, //closable true, //maximizable true);//iconifiable //...Create the GUI and put it in the window... //...Then set the window size or call pack... se... | 12,368 |
public MyInternalFrame() { super("#" + (++openFrameCount), true, //resizable true, //closable true, //maximizable true);//iconifiable //...Create the GUI and put it in the window... //...Then set the window size or call pack... se... | public MyInternalFrame() { super("#" + (++openFrameCount), true, //resizable true, //closable true, //maximizable true);//iconifiable //...Create the GUI and put it in the window... //...Then set the window size or call pack... se... | 12,369 |
public MyInternalFrame() { super("#" + (++openFrameCount), true, //resizable true, //closable true, //maximizable true);//iconifiable //...Create the GUI and put it in the window... //...Then set the window size or call pack... se... | public MyInternalFrame() { super("#" + (++openFrameCount), true, //resizable true, //closable true, //maximizable true);//iconifiable //...Create the GUI and put it in the window... //...Then set the window size or call pack... se... | 12,370 |
public void internalFrameActivated(InternalFrameEvent e) { displayMessage("Internal frame activated", e); repaint(); } | public void internalFrameActivated(InternalFrameEvent e) { activated = true; repaint(); } | 12,372 |
public void internalFrameClosed(InternalFrameEvent e) { displayMessage("Internal frame closed", e); } | public void internalFrameClosed(InternalFrameEvent e) { } | 12,373 |
public void internalFrameClosing(InternalFrameEvent e) { displayMessage("Internal frame closing", e); disconnectMe(); } | public void internalFrameClosing(InternalFrameEvent e) { disconnectMe(); } | 12,374 |
public void internalFrameDeiconified(InternalFrameEvent e) { displayMessage("Internal frame deiconified", e); } | public void internalFrameDeiconified(InternalFrameEvent e) { } | 12,376 |
public void internalFrameIconified(InternalFrameEvent e) { displayMessage("Internal frame iconified", e); } | public void internalFrameIconified(InternalFrameEvent e) { } | 12,377 |
public void internalFrameOpened(InternalFrameEvent e) { displayMessage("Internal frame opened", e); } | public void internalFrameOpened(InternalFrameEvent e) { } | 12,378 |
public Session getSessionAt( int index) { JInternalFrame[] frames = desktop.getAllFrames(); return (Session)frames[index].getContentPane(); } | public Session getSessionAt( int index) { JInternalFrame[] frames = desktop.getAllFrames(); return (Session)frames[index].getContentPane(); } | 12,380 |
private void nextSession() { MyInternalFrame[] frames = (MyInternalFrame[])desktop.getAllFrames(); MyInternalFrame miv = (MyInternalFrame)desktop.getSelectedFrame(); int index = desktop.getIndexOf(miv); if (index < desktop.getComponentCount() - 1) { try { frames[index + 1].setS... | private void nextSession() { MyInternalFrame[] frames = (MyInternalFrame[])desktop.getAllFrames(); MyInternalFrame miv = (MyInternalFrame)desktop.getSelectedFrame(); int index = desktop.getIndexOf(miv); if (index < desktop.getComponentCount() - 1) { try { frames[index + 1].setS... | 12,381 |
private void nextSession() { MyInternalFrame[] frames = (MyInternalFrame[])desktop.getAllFrames(); MyInternalFrame miv = (MyInternalFrame)desktop.getSelectedFrame(); int index = desktop.getIndexOf(miv); if (index < desktop.getComponentCount() - 1) { try { frames[index + 1].setS... | private void nextSession() { MyInternalFrame[] frames = (MyInternalFrame[])desktop.getAllFrames(); MyInternalFrame miv = (MyInternalFrame)desktop.getSelectedFrame(); int index = desktop.getIndexOf(miv); if (index < desktop.getComponentCount() - 1) { try { frames[index].setSelec... | 12,382 |
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... | 12,383 |
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... | 12,384 |
public void run() { JInternalFrame[] frames = desktop.getAllFrames(); frames[index].setTitle(d); } | public void run() { JInternalFrame[] frames = desktop.getAllFrames(); frames[index].setTitle(frames[index].getTitle() + " " + d); } | 12,385 |
private void prevSession() { MyInternalFrame[] frames = (MyInternalFrame[])desktop.getAllFrames(); MyInternalFrame miv = (MyInternalFrame)desktop.getSelectedFrame(); int index = desktop.getIndexOf(miv); if (index == 0) {// desktop.setSelectedFrame(frames[frames.length - 1]); try {... | private void prevSession() { MyInternalFrame[] frames = (MyInternalFrame[])desktop.getAllFrames(); MyInternalFrame miv = (MyInternalFrame)desktop.getSelectedFrame(); int index = desktop.getIndexOf(miv); if (index == 0) {// desktop.setSelectedFrame(frames[frames.length - 1]); try {... | 12,386 |
public void removeSessionView(Session targetSession) { MyInternalFrame[] frames = (MyInternalFrame[])desktop.getAllFrames(); int index = desktop.getIndexOf(targetSession); System.out.println("session found and closing down " + index); targetSession.removeSessionListener(this); targetSession.... | public void removeSessionView(Session targetSession) { MyInternalFrame[] frames = (MyInternalFrame[])desktop.getAllFrames(); int index = desktop.getIndexOf(targetSession); System.out.println("session found and closing down " + index); targetSession.removeSessionListener(this); targetSession.... | 12,388 |
public void removeSessionView(Session targetSession) { MyInternalFrame[] frames = (MyInternalFrame[])desktop.getAllFrames(); int index = desktop.getIndexOf(targetSession); System.out.println("session found and closing down " + index); targetSession.removeSessionListener(this); targetSession.... | public void removeSessionView(Session targetSession) { MyInternalFrame[] frames = (MyInternalFrame[])desktop.getAllFrames(); int index = desktop.getIndexOf(targetSession); System.out.println("session found and closing down " + index); targetSession.removeSessionListener(this); targetSession.... | 12,389 |
private void initXTFRInfo() { // 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 JPanel(); sp.setLay... | private void initXTFRInfo() { // 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 JPanel(); sp.setLay... | 12,390 |
private void initXTFRInfo() { // 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 JPanel(); sp.setLay... | private void initXTFRInfo() { // 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 JPanel(); sp.setLay... | 12,391 |
private void initXTFRInfo() { // 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 JPanel(); sp.setLay... | private void initXTFRInfo() { // 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 JPanel(); sp.setLay... | 12,392 |
private void initXTFRInfo() { // 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 JPanel(); sp.setLay... | private void initXTFRInfo() { // 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 JPanel(); sp.setLay... | 12,393 |
private void initXTFRInfo() { // 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 JPanel(); sp.setLay... | private void initXTFRInfo() { // 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 JPanel(); sp.setLay... | 12,394 |
private void initXTFRInfo() { // 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 JPanel(); sp.setLay... | private void initXTFRInfo() { // 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 JPanel(); sp.setLay... | 12,395 |
private void initXTFRInfo() { // 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 JPanel(); sp.setLay... | private void initXTFRInfo() { // 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 JPanel(); sp.setLay... | 12,396 |
private void initXTFRInfo() { // 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 JPanel(); sp.setLay... | private void initXTFRInfo() { // 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 JPanel(); sp.setLay... | 12,397 |
private void initXTFRInfo() { // 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 JPanel(); sp.setLay... | private void initXTFRInfo() { // 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 JPanel(); sp.setLay... | 12,398 |
private void initXTFRInfo() { // 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 JPanel(); sp.setLay... | private void initXTFRInfo() { // 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 JPanel(); sp.setLay... | 12,399 |
private void initXTFRInfo() { // 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 JPanel(); sp.setLay... | private void initXTFRInfo() { // 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 JPanel(); sp.setLay... | 12,400 |
private void initXTFRInfo() { // 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 JPanel(); sp.setLay... | private void initXTFRInfo() { // 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 JPanel(); sp.setLay... | 12,401 |
public void itemStateChanged(ItemEvent e) { Object source = e.getItemSelectable(); if (source == useQuery) { if (useQuery.isSelected()) { queryWizard.setEnabled(true); as400p.remove(fieldsLabel); as400p.remove(allFields); as400p.remove(selectedFields); as400p.remove(textDescLabel); as400p.remove(... | public void itemStateChanged(ItemEvent e) { Object source = e.getItemSelectable(); if (source == useQuery) { if (useQuery.isSelected()) { queryWizard.setEnabled(true); as400p.remove(fieldsLabel); as400p.remove(allFields); as400p.remove(selectedFields); as400p.remove(textDescLabel); as400p.remove(... | 12,402 |
public void itemStateChanged(ItemEvent e) { Object source = e.getItemSelectable(); if (source == useQuery) { if (useQuery.isSelected()) { queryWizard.setEnabled(true); as400p.remove(fieldsLabel); as400p.remove(allFields); as400p.remove(selectedFields); as400p.remove(textDescLabel); as400p.remove(... | public void itemStateChanged(ItemEvent e) { Object source = e.getItemSelectable(); if (source == useQuery) { if (useQuery.isSelected()) { queryWizard.setEnabled(true); as400p.remove(fieldsLabel); as400p.remove(allFields); as400p.remove(selectedFields); as400p.remove(textDescLabel); as400p.remove(... | 12,403 |
public void itemStateChanged(ItemEvent e) { Object source = e.getItemSelectable(); if (source == useQuery) { if (useQuery.isSelected()) { queryWizard.setEnabled(true); as400p.remove(fieldsLabel); as400p.remove(allFields); as400p.remove(selectedFields); as400p.remove(textDescLabel); as400p.remove(... | public void itemStateChanged(ItemEvent e) { Object source = e.getItemSelectable(); if (source == useQuery) { if (useQuery.isSelected()) { queryWizard.setEnabled(true); as400p.remove(fieldsLabel); as400p.remove(allFields); as400p.remove(selectedFields); as400p.remove(textDescLabel); as400p.remove(... | 12,404 |
public void itemStateChanged(ItemEvent e) { Object source = e.getItemSelectable(); if (source == useQuery) { if (useQuery.isSelected()) { queryWizard.setEnabled(true); as400p.remove(fieldsLabel); as400p.remove(allFields); as400p.remove(selectedFields); as400p.remove(textDescLabel); as400p.remove(... | public void itemStateChanged(ItemEvent e) { Object source = e.getItemSelectable(); if (source == useQuery) { if (useQuery.isSelected()) { queryWizard.setEnabled(true); as400p.remove(fieldsLabel); as400p.remove(allFields); as400p.remove(selectedFields); as400p.remove(textDescLabel); as400p.remove(... | 12,405 |
public void setDragMode(int mode) { if ((mode != LIVE_DRAG_MODE) && (mode != OUTLINE_DRAG_MODE)) throw new IllegalArgumentException("Drag mode not valid."); // FIXME: Unsupported mode. if (mode == OUTLINE_DRAG_MODE) { // throw new IllegalArgumentException("Outline drag modes are unsupported... | public void setDragMode(int mode) if ((mode != LIVE_DRAG_MODE) && (mode != OUTLINE_DRAG_MODE)) throw new IllegalArgumentException("Drag mode not valid."); // FIXME: Unsupported mode. if (mode == OUTLINE_DRAG_MODE) // throw new IllegalArgumentException("Outline drag modes are unsupported."... | 12,406 |
public void setDragMode(int mode) { if ((mode != LIVE_DRAG_MODE) && (mode != OUTLINE_DRAG_MODE)) throw new IllegalArgumentException("Drag mode not valid."); // FIXME: Unsupported mode. if (mode == OUTLINE_DRAG_MODE) { // throw new IllegalArgumentException("Outline drag modes are unsupported... | public void setDragMode(int mode) { if ((mode != LIVE_DRAG_MODE) && (mode != OUTLINE_DRAG_MODE)) throw new IllegalArgumentException("Drag mode not valid."); // FIXME: Unsupported mode. if (mode == OUTLINE_DRAG_MODE) { // throw new IllegalArgumentException("Outline drag modes are unsupported... | 12,407 |
public void addParameterObject(Object o) throws AssemblyException { if (!klass.isInstance(o)) throw new AssemblyException( new IllegalArgumentException( "Cannot add object " + o + " to array where the elements are o... | public void addParameterObject(Object o) throws AssemblyException { if (!klass.isInstance(o)) throw new AssemblyException( new IllegalArgumentException( "Cannot add object " + o + " to array where the elements are o... | 12,409 |
public void addParameterObject(Object o) throws AssemblyException { if (!klass.isInstance(o)) throw new AssemblyException( new IllegalArgumentException( "Cannot add object " + o + " to array where the elements are o... | public void addParameterObject(Object o) throws AssemblyException { if (!klass.isInstance(o)) throw new AssemblyException( new IllegalArgumentException( "Cannot add object " + o + " to array where the elements are o... | 12,410 |
public Object endContext(Context outerContext) throws AssemblyException { if (array == null) { array = Array.newInstance(klass, list.size()); for (int i = 0; i < list.size(); i++) Array.set(array, i, list.get(i)); } return array; } | public Object endContext(Context outerContext) throws AssemblyException { if (length != Array.getLength(array)) { array = Array.newInstance(klass, list.size()); for (int i = 0; i < list.size(); i++) Array.set(array, i, list.get(i)); } return array;... | 12,411 |
public Object endContext(Context outerContext) throws AssemblyException { if (array == null) { array = Array.newInstance(klass, list.size()); for (int i = 0; i < list.size(); i++) Array.set(array, i, list.get(i)); } return array; } | public Object endContext(Context outerContext) throws AssemblyException { if (array == null) { array = Array.newInstance(klass, list.size()); for (int i = 0; i < list.size(); i++) Array.set(array, i, list.get(i)); } return array; } | 12,412 |
public Object get(int index) throws AssemblyException { if (array == null) return list.get(index); else return Array.get(array, index); } | public Object get(int index) throws AssemblyException { if (array == null) return list.get(index); else return Array.get(array, index); } | 12,413 |
public void set(int index, Object o) throws AssemblyException { if (array == null) { if (klass.isInstance(o)) list.add(index, o); else throw new AssemblyException( new IllegalArgumentException("Argument is not compatible to arra... | public void set(int index, Object o) throws AssemblyException { if (array == null) { if (klass.isInstance(o)) list.add(index, o); else throw new AssemblyException( new IllegalArgumentException("Argument is not compatible to arra... | 12,414 |
public JWindow() { super(SwingUtilities.getOwnerFrame()); windowInit(); } | public JWindow() { super(SwingUtilities.getOwnerFrame(null)); windowInit(); } | 12,416 |
public Graphics getGraphics() { log.debug("getGraphics"); final Component parent = component.getParent(); if (parent != null) { //System.out.println("creating graphics"); return parent.getGraphics().create(location.x, location.y, size.width, size.height); ... | public Graphics getGraphics() { log.debug("getGraphics"); final Component parent = component.getParent(); if (parent != null) { //System.out.println("creating graphics"); return parent.getGraphics().create(location.x, location.y, size.width, size.height); ... | 12,417 |
public void hide() { setVisible(false); } | public final void hide() { setVisible(false); } | 12,418 |
public Dimension minimumSize() { return jComponent.getMinimumSize(); } | public final Dimension minimumSize() { return jComponent.getMinimumSize(); } | 12,419 |
public Dimension preferredSize() { return jComponent.getPreferredSize(); } | public final Dimension preferredSize() { return jComponent.getPreferredSize(); } | 12,420 |
public void print(Graphics g) { jComponent.print(g); } | public final void print(Graphics g) { jComponent.print(g); } | 12,421 |
public void repaint(long tm, int x, int y, int width, int height) { jComponent.repaint(tm, x, y, width, height); paintAWTComponent(); } | public final void repaint(long tm, int x, int y, int width, int height) { jComponent.repaint(tm, x, y, width, height); paintAWTComponent(); } | 12,422 |
public void requestFocus() { jComponent.requestFocus(); } | public final void requestFocus() { jComponent.requestFocus(); } | 12,423 |
public void reshape(int x, int y, int width, int height) { setBounds(x, y, width, height); } | public final void reshape(int x, int y, int width, int height) { setBounds(x, y, width, height); } | 12,424 |
public void setBackground(Color c) { jComponent.setBackground(c); paintAWTComponent(); } | public final void setBackground(Color c) { jComponent.setBackground(c); paintAWTComponent(); } | 12,425 |
public void setBounds(int x, int y, int width, int height) { Rectangle b = jComponent.getBounds(); jComponent.setBounds(x, y, width, height); if (b.width != width || b.height != height) { sendComponentEvent(ComponentEvent.COMPONENT_RESIZED); } else { sendComponentEv... | public void setBounds(int x, int y, int width, int height) { Rectangle b = jComponent.getBounds(); jComponent.setBounds(x, y, width, height); if (b.width != width || b.height != height) { sendComponentEvent(ComponentEvent.COMPONENT_RESIZED); } else { sendComponentEv... | 12,426 |
public void setBounds(int x, int y, int width, int height) { Rectangle b = jComponent.getBounds(); jComponent.setBounds(x, y, width, height); if (b.width != width || b.height != height) { sendComponentEvent(ComponentEvent.COMPONENT_RESIZED); } else { sendComponentEv... | public void setBounds(int x, int y, int width, int height) { Rectangle b = jComponent.getBounds(); jComponent.setBounds(x, y, width, height); if ((oldWidth != width) || (oldHeight != height)) { sendComponentEvent(ComponentEvent.COMPONENT_RESIZED); } else { sendCompo... | 12,427 |
public void setBounds(int x, int y, int width, int height) { Rectangle b = jComponent.getBounds(); jComponent.setBounds(x, y, width, height); if (b.width != width || b.height != height) { sendComponentEvent(ComponentEvent.COMPONENT_RESIZED); } else { sendComponentEv... | publicvoidsetBounds(intx,inty,intwidth,intheight){Rectangleb=jComponent.getBounds();jComponent.setBounds(x,y,width,height);if(b.width!=width||b.height!=height){sendComponentEvent(ComponentEvent.COMPONENT_RESIZED);}else{sendComponentEvent(ComponentEvent.COMPONENT_MOVED);}} | 12,428 |
public void setCursor(Cursor cursor) { jComponent.setCursor(cursor); } | public final void setCursor(Cursor cursor) { jComponent.setCursor(cursor); } | 12,429 |
public void setEnabled(boolean b) { jComponent.setEnabled(b); } | public final void setEnabled(boolean b) { jComponent.setEnabled(b); } | 12,430 |
public void setEventMask(long mask) { // TODO Auto-generated method stub } | public final void setEventMask(long mask) { // TODO Auto-generated method stub } | 12,431 |
public void setFont(Font f) { jComponent.setFont(f); paintAWTComponent(); } | public final void setFont(Font f) { jComponent.setFont(f); paintAWTComponent(); } | 12,432 |
public void setVisible(boolean b) { jComponent.setVisible(b); paintAWTComponent(); } | public final void setVisible(boolean b) { jComponent.setVisible(b); paintAWTComponent(); } | 12,433 |
public void show() { setVisible(true); } | public final void show() { setVisible(true); } | 12,434 |
public static Component[] getVisibleChildren(Container c) { Component[] children = c.getComponents(); Vector visible = new Vector(); for (int i = 0; i < children.length; i++) if (children[i].isVisible()) visible.add(children[i]); return (Component[]) visible.toArray(new Container[visible.size... | public static List getVisibleChildren(Container c) { Component[] children = c.getComponents(); Vector visible = new Vector(); for (int i = 0; i < children.length; i++) if (children[i].isVisible()) visible.add(children[i]); return (Component[]) visible.toArray(new Container[visible.size()]); ... | 12,435 |
public static Component[] getVisibleChildren(Container c) { Component[] children = c.getComponents(); Vector visible = new Vector(); for (int i = 0; i < children.length; i++) if (children[i].isVisible()) visible.add(children[i]); return (Component[]) visible.toArray(new Container[visible.size... | public static Component[] getVisibleChildren(Container c) { Component[] children = c.getComponents(); Vector visible = new Vector(); for (int i = 0; i < children.length; i++) if (children[i].isVisible()) visible.add(children[i]); return (Component[]) visible.toArray(new Container[visible.size... | 12,436 |
public Object createValue(UIDefaults table) { InputMapUIResource im = new InputMapUIResource (); for (int i = 0; 2*i+1 < bind.length; ++i) { Object curr = bind[2*i]; if (curr instanceof KeyStroke) im.put((KeyStroke) curr, bind[2*i+1]); else im.put... | public Object createValue(UIDefaults table) { InputMapUIResource im = new InputMapUIResource (); for (int i = 0; 2*i+1 < bind.length; ++i) { Object curr = bind[2*i]; if (curr instanceof KeyStroke) im.put((KeyStroke) curr, bind[2*i+1]); else im.put... | 12,437 |
public Object createValue(UIDefaults table) { InputMapUIResource im = new InputMapUIResource (); for (int i = 0; 2*i+1 < bind.length; ++i) { Object curr = bind[2*i]; if (curr instanceof KeyStroke) im.put((KeyStroke) curr, bind[2*i+1]); else im.put... | public Object createValue(UIDefaults table) { InputMapUIResource im = new InputMapUIResource (); for (int i = 0; 2*i+1 < bind.length; ++i) { Object curr = bind[2 * i]; if (curr instanceof KeyStroke) im.put((KeyStroke) curr, bind[2*i+1]); else im.p... | 12,438 |
public Object createValue(UIDefaults table) { InputMapUIResource im = new InputMapUIResource (); for (int i = 0; 2*i+1 < bind.length; ++i) { Object curr = bind[2*i]; if (curr instanceof KeyStroke) im.put((KeyStroke) curr, bind[2*i+1]); else im.put... | public Object createValue(UIDefaults table) { InputMapUIResource im = new InputMapUIResource (); for (int i = 0; 2*i+1 < bind.length; ++i) { Object curr = bind[2*i]; if (curr instanceof KeyStroke) im.put((KeyStroke) curr, bind[2 * i + 1]); else im... | 12,439 |
public Object createValue(UIDefaults table) { InputMapUIResource im = new InputMapUIResource (); for (int i = 0; 2*i+1 < bind.length; ++i) { Object curr = bind[2*i]; if (curr instanceof KeyStroke) im.put((KeyStroke) curr, bind[2*i+1]); else im.put... | public Object createValue(UIDefaults table) { InputMapUIResource im = new InputMapUIResource (); for (int i = 0; 2*i+1 < bind.length; ++i) { Object curr = bind[2*i]; if (curr instanceof KeyStroke) im.put((KeyStroke) curr, bind[2 * i + 1]); else im... | 12,440 |
public ProxyLazyValue(String s) { final String className = s; inner = new LazyValue () { public Object createValue (UIDefaults table) { try { return Class .forName(className) .getConstructor(new Class[] ... | public ProxyLazyValue(String s) { final String className = s; inner = new LazyValue() { public Object createValue (UIDefaults table) { try { return Class .forName(className) .getConstructor(new Class[] {... | 12,441 |
public ProxyLazyValue(String s) { final String className = s; inner = new LazyValue () { public Object createValue (UIDefaults table) { try { return Class .forName(className) .getConstructor(new Class[] ... | public ProxyLazyValue(String s) { final String className = s; inner = new LazyValue () { public Object createValue(UIDefaults table) { try { return Class .forName(className) .getConstructor(new Class[] {... | 12,442 |
public Object createValue (UIDefaults table) { try { return Class .forName(className) .getConstructor(new Class[] {}) .newInstance(new Object[] {}); } catch (Exception e) { ... | public Object createValue(UIDefaults table) { try { return Class .forName(className) .getConstructor(new Class[] {}) .newInstance(new Object[] {}); } catch (Exception e) { ... | 12,443 |
public Object createValue (UIDefaults table) { try { return Class .forName (className) .getMethod (methodName, new Class[] {}) .invoke (null, new Object[] {}); } catch (... | public Object createValue(UIDefaults table) { try { return Class .forName (className) .getMethod (methodName, new Class[] {}) .invoke (null, new Object[] {}); } catch (E... | 12,444 |
public Object createValue (UIDefaults table) { try { return Class .forName (className) .getMethod (methodName, new Class[] {}) .invoke (null, new Object[] {}); } catch (... | public Object createValue (UIDefaults table) { try { return Class .forName (className) .getMethod (methodName, new Class[] {}) .invoke (null, new Object[] {}); } catch (... | 12,445 |
public Class getUIClass(String id, ClassLoader loader) { String className = (String) get (id); if (className == null) return null; try { if (loader == null) loader = ClassLoader.getSystemClassLoader(); return loader.loadClass (className); } catch (Exception e)... | public Class getUIClass(String id, ClassLoader loader) { String className = (String) get(id); if (className == null) return null; try { if (loader == null) loader = ClassLoader.getSystemClassLoader(); return loader.loadClass (className); } catch (Exception e) ... | 12,446 |
public Checkbox() { this("", false, null); } | public Checkbox() { this("", false, null); } | 12,447 |
public Checkbox() { this("", false, null); } | public Checkbox() { this("", false, null); } | 12,448 |
public synchronized void addItemListener(ItemListener listener) { item_listeners = AWTEventMulticaster.add(item_listeners, listener); } | public synchronized void addItemListener(ItemListener listener) { item_listeners = AWTEventMulticaster.add(item_listeners, listener); } | 12,449 |
public synchronized void addItemListener(ItemListener listener) { item_listeners = AWTEventMulticaster.add(item_listeners, listener); } | public synchronized void addItemListener(ItemListener listener) { item_listeners = AWTEventMulticaster.add(item_listeners, listener); } | 12,450 |
public void addNotify() { if (peer == null) peer = getToolkit().createCheckbox(this); super.addNotify(); } | public void addNotify() { if (peer == null) peer = getToolkit().createCheckbox(this); super.addNotify(); } | 12,451 |
public void addNotify() { if (peer == null) peer = getToolkit().createCheckbox(this); super.addNotify(); } | public void addNotify() { if (peer == null) peer = getToolkit().createCheckbox(this); super.addNotify(); } | 12,452 |
void dispatchEventImpl(AWTEvent e) { if (e.id <= ItemEvent.ITEM_LAST && e.id >= ItemEvent.ITEM_FIRST && (item_listeners != null || (eventMask & AWTEvent.ITEM_EVENT_MASK) != 0)) processEvent(e); else super.dispatchEventImpl(e); } | void dispatchEventImpl(AWTEvent e) { if (e.id <= ItemEvent.ITEM_LAST && e.id >= ItemEvent.ITEM_FIRST && (item_listeners != null || (eventMask & AWTEvent.ITEM_EVENT_MASK) != 0)) processEvent(e); else super.dispatchEventImpl(e); } | 12,453 |
void dispatchEventImpl(AWTEvent e) { if (e.id <= ItemEvent.ITEM_LAST && e.id >= ItemEvent.ITEM_FIRST && (item_listeners != null || (eventMask & AWTEvent.ITEM_EVENT_MASK) != 0)) processEvent(e); else super.dispatchEventImpl(e); } | void dispatchEventImpl(AWTEvent e) { if (e.id <= ItemEvent.ITEM_LAST && e.id >= ItemEvent.ITEM_FIRST && (item_listeners != null || (eventMask & AWTEvent.ITEM_EVENT_MASK) != 0)) processEvent(e); else super.dispatchEventImpl(e); } | 12,454 |
public CheckboxGroup getCheckboxGroup() { return (group); } | public CheckboxGroup getCheckboxGroup() { return (group); } | 12,455 |
public String getLabel() { return (label); } | public String getLabel() { return (label); } | 12,456 |
public Object[] getSelectedObjects() { if (state == false) return (null); Object[] objs = new Object[1]; objs[0] = label; return (objs); } | public Object[] getSelectedObjects() { if (state == false) return (null); Object[] objs = new Object[1]; objs[0] = label; return (objs); } | 12,457 |
public Object[] getSelectedObjects() { if (state == false) return (null); Object[] objs = new Object[1]; objs[0] = label; return (objs); } | public Object[] getSelectedObjects() { if (state == false) return (null); Object[] objs = new Object[1]; objs[0] = label; return (objs); } | 12,458 |
public Object[] getSelectedObjects() { if (state == false) return (null); Object[] objs = new Object[1]; objs[0] = label; return (objs); } | public Object[] getSelectedObjects() { if (state == false) return (null); Object[] objs = new Object[1]; objs[0] = label; return (objs); } | 12,459 |
public boolean getState() { return (state); } | public boolean getState() { return (state); } | 12,460 |
protected String paramString() { return ("label=" + label + ",state=" + state + ",group=" + group + "," + super.paramString()); } | protected String paramString() { return ("label=" + label + ",state=" + state + ",group=" + group + "," + super.paramString()); } | 12,461 |
protected void processEvent(AWTEvent event) { if (event instanceof ItemEvent) processItemEvent((ItemEvent) event); else super.processEvent(event); } | protected void processEvent(AWTEvent event) { if (event instanceof ItemEvent) processItemEvent((ItemEvent) event); else super.processEvent(event); } | 12,462 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.