bugged stringlengths 6 599k | fixed stringlengths 10 599k | __index_level_0__ int64 0 1.13M |
|---|---|---|
protected void installComponents() { // create and install arrow button arrowButton = createArrowButton(); comboBox.add(arrowButton); // Set list that will be used by BasicComboBoxRender // in order to determine the right colors when rendering listBox = new JList(); Color background = arrowButt... | protected void installComponents() { // create and install arrow button arrowButton = createArrowButton(); comboBox.add(arrowButton); // Set list that will be used by BasicComboBoxRender // in order to determine the right colors when rendering listBox = new JList(); Color background = arrowButt... | 8,718 |
protected void installDefaults() { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); comboBox.setBackground(defaults.getColor("ComboBox.background")); comboBox.setFont(defaults.getFont("ComboBox.font")); comboBox.setForeground(defaults.getColor("ComboBox.foreground")); // Set default color tha... | protected void installDefaults() { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); comboBox.setBackground(defaults.getColor("ComboBox.background")); comboBox.setFont(defaults.getFont("ComboBox.font")); comboBox.setForeground(defaults.getColor("ComboBox.foreground")); // Set default color tha... | 8,719 |
protected void installDefaults() { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); comboBox.setBackground(defaults.getColor("ComboBox.background")); comboBox.setFont(defaults.getFont("ComboBox.font")); comboBox.setForeground(defaults.getColor("ComboBox.foreground")); // Set default color tha... | protected void installDefaults() { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); comboBox.setBackground(defaults.getColor("ComboBox.background")); comboBox.setFont(defaults.getFont("ComboBox.font")); comboBox.setForeground(defaults.getColor("ComboBox.foreground")); // Set default color tha... | 8,720 |
protected void installListeners() { // install combo box's listeners propertyChangeListener = createPropertyChangeListener(); comboBox.addPropertyChangeListener(propertyChangeListener); focusListener = createFocusListener(); comboBox.addFocusListener(focusListener); itemListener = createItemListene... | protected void installListeners() { // install combo box's listeners propertyChangeListener = createPropertyChangeListener(); comboBox.addPropertyChangeListener(propertyChangeListener); focusListener = createFocusListener(); comboBox.addFocusListener(focusListener); itemListener = createItemListene... | 8,721 |
protected void installListeners() { // install combo box's listeners propertyChangeListener = createPropertyChangeListener(); comboBox.addPropertyChangeListener(propertyChangeListener); focusListener = createFocusListener(); comboBox.addFocusListener(focusListener); itemListener = createItemListene... | protected void installListeners() { // install combo box's listeners propertyChangeListener = createPropertyChangeListener(); comboBox.addPropertyChangeListener(propertyChangeListener); focusListener = createFocusListener(); comboBox.addFocusListener(focusListener); itemListener = createItemListene... | 8,722 |
public boolean isFocusTraversable(JComboBox c) { if (comboBox.isEditable()) return true; return false; } | public boolean isFocusTraversable(JComboBox c) { if (!comboBox.isEditable()) return true; return false; } | 8,723 |
public void paint(Graphics g, JComponent c) { if (c instanceof JComboBox) { JComboBox cb = (JComboBox) c; paintBorder(g, comboBox.getBounds(), hasFocus); Rectangle rect = rectangleForCurrentValue(); paintCurrentValueBackground(g, rect, hasFocus); paintCurrentValue(g, rect, hasFocus); } } | public void paint(Graphics g, JComponent c) { if (c instanceof JComboBox) { JComboBox cb = (JComboBox) c; paintBorder(g, comboBox.getBounds(), hasFocus); Rectangle rect = rectangleForCurrentValue(); paintCurrentValueBackground(g, rect, hasFocus); paintCurrentValue(g, rect, hasFocus); } } | 8,724 |
public void paintCurrentValue(Graphics g, Rectangle bounds, boolean hasFocus) { if (! comboBox.isEditable()) { Object currentValue = comboBox.getSelectedItem(); boolean isPressed = arrowButton.getModel().isPressed(); /* Gets the component to be drawn for the current value. * If there is currently no selecte... | public void paintCurrentValue(Graphics g, Rectangle bounds, boolean hasFocus) { if (! comboBox.isEditable()) { Object currentValue = comboBox.getSelectedItem(); boolean isPressed = arrowButton.getModel().isPressed(); /* Gets the component to be drawn for the current value. * If there is currently no selecte... | 8,725 |
protected Rectangle rectangleForCurrentValue() { Rectangle cbBounds = comboBox.getBounds(); // Subtract width or the arrow button and border insets Rectangle rectForCurrentValue = new Rectangle(cbBounds.x + borderInsets.left, ... | protected Rectangle rectangleForCurrentValue() { Rectangle cbBounds = comboBox.getBounds(); // Subtract width or the arrow button and border insets Rectangle rectForCurrentValue = new Rectangle(cbBounds.x + borderInsets.left, ... | 8,726 |
public void unconfigureArrowButton() { arrowButton.removeMouseListener(mouseListener); } | public void unconfigureArrowButton() { } | 8,727 |
protected void uninstallDefaults() { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); comboBox.setBackground(null); comboBox.setFont(null); comboBox.setForeground(null); shadow = null; darkShadow = null; lightHighlight = null; highlight = null; } | protected void uninstallDefaults() { if (comboBox.getFont() instanceof UIResource) comboBox.setFont(null); comboBox.setBackground(null); comboBox.setFont(null); comboBox.setForeground(null); shadow = null; darkShadow = null; lightHighlight = null; highlight = null; } | 8,728 |
protected void uninstallDefaults() { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); comboBox.setBackground(null); comboBox.setFont(null); comboBox.setForeground(null); shadow = null; darkShadow = null; lightHighlight = null; highlight = null; } | protected void uninstallDefaults() { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); comboBox.setBackground(null); comboBox.setFont(null); comboBox.setForeground(null); shadow = null; darkShadow = null; lightHighlight = null; highlight = null; } | 8,729 |
protected void uninstallDefaults() { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); comboBox.setBackground(null); comboBox.setFont(null); comboBox.setForeground(null); shadow = null; darkShadow = null; lightHighlight = null; highlight = null; } | protected void uninstallDefaults() { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); comboBox.setBackground(null); comboBox.setFont(null); comboBox.setForeground(null); shadow = null; darkShadow = null; highlight = null; } | 8,730 |
protected void uninstallListeners() { comboBox.removePropertyChangeListener(propertyChangeListener); propertyChangeListener = null; comboBox.removeFocusListener(focusListener); focusListener = null; comboBox.removeItemListener(itemListener); itemListener = null; comboBox.removeKeyListener(keyLis... | protected void uninstallListeners() { comboBox.removePropertyChangeListener(propertyChangeListener); propertyChangeListener = null; comboBox.removeFocusListener(focusListener); focusListener = null; comboBox.removeItemListener(itemListener); itemListener = null; comboBox.removeKeyListener(keyLis... | 8,731 |
protected void uninstallListeners() { comboBox.removePropertyChangeListener(propertyChangeListener); propertyChangeListener = null; comboBox.removeFocusListener(focusListener); focusListener = null; comboBox.removeItemListener(itemListener); itemListener = null; comboBox.removeKeyListener(keyLis... | protected void uninstallListeners() { comboBox.removePropertyChangeListener(propertyChangeListener); propertyChangeListener = null; comboBox.removeFocusListener(focusListener); focusListener = null; comboBox.removeItemListener(itemListener); itemListener = null; comboBox.removeKeyListener(keyLis... | 8,732 |
public Object createValue(UIDefaults table) { InputMap im = new InputMap (); for (int i = 0; 2*i+1 < bind.length; ++i) { im.put (KeyStroke.getKeyStroke ((String) bind[2*i]), bind[2*i+1]); } return im; } | public Object createValue(UIDefaults table) { InputMapUIResource im = new InputMapUIResource (); for (int i = 0; 2*i+1 < bind.length; ++i) { im.put (KeyStroke.getKeyStroke ((String) bind[2*i]), bind[2*i+1]); } return im; } | 8,733 |
public Object createValue(UIDefaults table) { InputMap im = new InputMap (); for (int i = 0; 2*i+1 < bind.length; ++i) { im.put (KeyStroke.getKeyStroke ((String) bind[2*i]), bind[2*i+1]); } return im; } | public Object createValue(UIDefaults table) { InputMap im = new InputMap (); 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(KeyStroke.getKeyStroke((String) curr), bin... | 8,734 |
public static FocusManager getCurrentManager() { return null; // TODO } | public static FocusManager getCurrentManager() { KeyboardFocusManager fm = KeyboardFocusManager.getCurrentKeyboardFocusManager(); if (fm instanceof FocusManager) return (FocusManager) fm; else { System.err.println("The Swing FocusManager API has been obsoleted by"); System.err.println("the new KeyboardFocusManager ... | 8,736 |
public Dimension getMaximumSize() { return MAXIMUM_SIZE; } | public Dimension getMaximumSize() { return new Dimension(Integer.MAX_VALUE, Integer.MAX_VALUE); } | 8,739 |
public Dimension getMinimumSize() { return MINIMUM_SIZE; } | public Dimension getMinimumSize() { return new Dimension(5, 5); } | 8,740 |
public Dimension getPreferredSize() { return PREFERRED_SIZE; } | public Dimension getPreferredSize() { return new Dimension(16, 16); } | 8,741 |
public void paint(Graphics g) { super.paint(g); Rectangle bounds = getBounds(); int size = bounds.height / 4; int x = bounds.x + (bounds.width - size) / 2; int y = (bounds.height - size) / 4; ButtonModel m = getModel(); if (m.isArmed()) { x++; y++; } paintTriangle(g, x... | public void paint(Graphics g) { super.paint(g); Rectangle bounds = getBounds(); int size = bounds.height / 4; int x = bounds.x + (bounds.width - size) / 2; int y = (bounds.height - size) / 4; ButtonModel m = getModel(); if (m.isArmed()) { x++; y++; } paintTriangle(g, x... | 8,742 |
private String dealWithClosingGroupNodes (BaseObject obj, OutputStream outputstream, String indent) { // Should *both* groupMemberHash and openGroupNodeHash be synchronized?? synchronized(obj.groupMemberHash) { synchronized(obj.openGroupNodeHash) { Iterator iter = obj.openGroupNodeHash.iterator(); /... | private String dealWithClosingGroupNodes (BaseObject obj, OutputStream outputstream, String indent) { // Should *both* groupMemberHash and openGroupNodeHash be synchronized?? synchronized(obj.groupMemberHash) { synchronized(this.openGroupNodeHash) { Iterator iter = obj.openGroupNodeHash.iterator(); ... | 8,743 |
private String dealWithClosingGroupNodes (BaseObject obj, OutputStream outputstream, String indent) { // Should *both* groupMemberHash and openGroupNodeHash be synchronized?? synchronized(obj.groupMemberHash) { synchronized(obj.openGroupNodeHash) { Iterator iter = obj.openGroupNodeHash.iterator(); /... | private String dealWithClosingGroupNodes (BaseObject obj, OutputStream outputstream, String indent) { // Should *both* groupMemberHash and openGroupNodeHash be synchronized?? synchronized(obj.groupMemberHash) { synchronized(obj.openGroupNodeHash) { Iterator iter = this.openGroupNodeHash.iterator(); ... | 8,744 |
private String dealWithClosingGroupNodes (BaseObject obj, OutputStream outputstream, String indent) { // Should *both* groupMemberHash and openGroupNodeHash be synchronized?? synchronized(obj.groupMemberHash) { synchronized(obj.openGroupNodeHash) { Iterator iter = obj.openGroupNodeHash.iterator(); /... | private String dealWithClosingGroupNodes (BaseObject obj, OutputStream outputstream, String indent) { // Should *both* groupMemberHash and openGroupNodeHash be synchronized?? synchronized(obj.groupMemberHash) { synchronized(obj.openGroupNodeHash) { Iterator iter = obj.openGroupNodeHash.iterator(); /... | 8,745 |
private String dealWithOpeningGroupNodes (BaseObject obj, OutputStream outputstream, String indent) { // Should *both* groupMemberHash and openGroupNodeHash be synchronized?? synchronized(obj.groupMemberHash) { synchronized(obj.openGroupNodeHash) { Iterator iter = obj.groupMemberHash.iterator(); // ... | private String dealWithOpeningGroupNodes (BaseObject obj, OutputStream outputstream, String indent) { // Should *both* groupMemberHash and openGroupNodeHash be synchronized?? synchronized(obj.groupMemberHash) { synchronized(this.openGroupNodeHash) { Iterator iter = obj.groupMemberHash.iterator(); //... | 8,746 |
private String dealWithOpeningGroupNodes (BaseObject obj, OutputStream outputstream, String indent) { // Should *both* groupMemberHash and openGroupNodeHash be synchronized?? synchronized(obj.groupMemberHash) { synchronized(obj.openGroupNodeHash) { Iterator iter = obj.groupMemberHash.iterator(); // ... | private String dealWithOpeningGroupNodes (BaseObject obj, OutputStream outputstream, String indent) { // Should *both* groupMemberHash and openGroupNodeHash be synchronized?? synchronized(obj.groupMemberHash) { synchronized(obj.openGroupNodeHash) { Iterator iter = obj.groupMemberHash.iterator(); // ... | 8,747 |
private String dealWithOpeningGroupNodes (BaseObject obj, OutputStream outputstream, String indent) { // Should *both* groupMemberHash and openGroupNodeHash be synchronized?? synchronized(obj.groupMemberHash) { synchronized(obj.openGroupNodeHash) { Iterator iter = obj.groupMemberHash.iterator(); // ... | private String dealWithOpeningGroupNodes (BaseObject obj, OutputStream outputstream, String indent) { // Should *both* groupMemberHash and openGroupNodeHash be synchronized?? synchronized(obj.groupMemberHash) { synchronized(obj.openGroupNodeHash) { Iterator iter = obj.groupMemberHash.iterator(); // ... | 8,748 |
private String dealWithOpeningGroupNodes (BaseObject obj, OutputStream outputstream, String indent) { // Should *both* groupMemberHash and openGroupNodeHash be synchronized?? synchronized(obj.groupMemberHash) { synchronized(obj.openGroupNodeHash) { Iterator iter = obj.groupMemberHash.iterator(); // ... | private String dealWithOpeningGroupNodes (BaseObject obj, OutputStream outputstream, String indent) { // Should *both* groupMemberHash and openGroupNodeHash be synchronized?? synchronized(obj.groupMemberHash) { synchronized(obj.openGroupNodeHash) { Iterator iter = obj.groupMemberHash.iterator(); // ... | 8,749 |
public void toXDFOutputStream ( OutputStream outputstream, Hashtable XMLDeclAttribs, String indent, boolean dontCloseNode, String newNodeNameString,... | public void toXDFOutputStream ( OutputStream outputstream, Hashtable XMLDeclAttribs, String indent, boolean dontCloseNode, String newNodeNameString,... | 8,750 |
public void toXDFOutputStream ( OutputStream outputstream, Hashtable XMLDeclAttribs, String indent, boolean dontCloseNode, String newNodeNameString,... | public void toXDFOutputStream ( OutputStream outputstream, Hashtable XMLDeclAttribs, String indent, boolean dontCloseNode, String newNodeNameString,... | 8,751 |
public void toXDFOutputStream ( OutputStream outputstream, Hashtable XMLDeclAttribs, String indent, boolean dontCloseNode, String newNodeNameString,... | public void toXDFOutputStream ( OutputStream outputstream, Hashtable XMLDeclAttribs, String indent, boolean dontCloseNode, String newNodeNameString,... | 8,752 |
public void toXDFOutputStream ( OutputStream outputstream, Hashtable XMLDeclAttribs, String indent, boolean dontCloseNode, String newNodeNameString,... | public void toXDFOutputStream ( OutputStream outputstream, Hashtable XMLDeclAttribs, String indent, boolean dontCloseNode, String newNodeNameString,... | 8,753 |
public void toXDFOutputStream ( OutputStream outputstream, Hashtable XMLDeclAttribs, String indent, boolean dontCloseNode, String newNodeNameString,... | public void toXDFOutputStream ( OutputStream outputstream, Hashtable XMLDeclAttribs, String indent, boolean dontCloseNode, String newNodeNameString,... | 8,754 |
public void toXDFOutputStream ( OutputStream outputstream, Hashtable XMLDeclAttribs, String indent, boolean dontCloseNode, String newNodeNameString,... | public void toXDFOutputStream ( OutputStream outputstream, Hashtable XMLDeclAttribs, String indent, boolean dontCloseNode, String newNodeNameString,... | 8,755 |
public void toXDFOutputStream ( OutputStream outputstream, Hashtable XMLDeclAttribs, String indent, boolean dontCloseNode, String newNodeNameString,... | public void toXDFOutputStream ( OutputStream outputstream, Hashtable XMLDeclAttribs, String indent, boolean dontCloseNode, String newNodeNameString,... | 8,756 |
public void toXDFOutputStream ( OutputStream outputstream, Hashtable XMLDeclAttribs, String indent, boolean dontCloseNode, String newNodeNameString,... | public void toXDFOutputStream ( OutputStream outputstream, Hashtable XMLDeclAttribs, String indent, boolean dontCloseNode, String newNodeNameString,... | 8,757 |
public void toXDFOutputStream ( OutputStream outputstream, Hashtable XMLDeclAttribs, String indent, boolean dontCloseNode, String newNodeNameString,... | public void toXDFOutputStream ( OutputStream outputstream, Hashtable XMLDeclAttribs, String indent, boolean dontCloseNode, String newNodeNameString,... | 8,758 |
public void actionPerformed(ActionEvent e) { String t = new Date(e.getWhen()).toString(); Session ses; for (int x = 0; x < sessions.size(); x++) { try { ses = (Session)sessions.get(x); if (ses.isConnected() && ses.isSendKeepAlive()) { ses.getVT().sendHeartBe... | public void actionPerformed(ActionEvent e) { Session ses; for (int x = 0; x < sessions.size(); x++) { try { ses = (Session)sessions.get(x); if (ses.isConnected() && ses.isSendKeepAlive()) { ses.getVT().sendHeartBeat(); //System.out.println(" s... | 8,760 |
public static ComponentUI createUI(JComponent component) { if (instances == null) instances = new HashMap(); Object o = instances.get(component); MetalScrollBarUI instance; if (o == null) { instance = new MetalScrollBarUI(); instances.put(component, instance); } else instance ... | public static ComponentUI createUI(JComponent component) { if (instances == null) instances = new HashMap(); Object o = instances.get(component); MetalScrollBarUI instance; if (o == null) { instance = new MetalScrollBarUI(); instances.put(component, instance); } else instance ... | 8,761 |
protected void paintThumb(Graphics g, JComponent c, Rectangle thumbBounds) { // first we fill the background g.setColor(thumbColor); g.fillRect(thumbBounds.x, thumbBounds.y, thumbBounds.width, thumbBounds.height); // draw the outer dark line g.setColor(thumbDarkShadowColor); g.drawRec... | protected void paintThumb(Graphics g, JComponent c, Rectangle thumbBounds) { // first we fill the background g.setColor(thumbColor); g.fillRect(thumbBounds.x, thumbBounds.y, thumbBounds.width, thumbBounds.height); // draw the outer dark line g.setColor(thumbDarkShadowColor); g.drawRec... | 8,762 |
protected void paintThumb(Graphics g, JComponent c, Rectangle thumbBounds) { // first we fill the background g.setColor(thumbColor); g.fillRect(thumbBounds.x, thumbBounds.y, thumbBounds.width, thumbBounds.height); // draw the outer dark line g.setColor(thumbDarkShadowColor); g.drawRec... | protected void paintThumb(Graphics g, JComponent c, Rectangle thumbBounds) { // first we fill the background g.setColor(thumbColor); g.fillRect(thumbBounds.x, thumbBounds.y, thumbBounds.width, thumbBounds.height); // draw the outer dark line g.setColor(thumbDarkShadowColor); g.drawRec... | 8,763 |
public long getLastModified() throws IOException { //return ftpFile.lastModified().getTime(); return ftpFile.getTimestamp().getTimeInMillis(); } | public long getLastModified() throws IOException { //return ftpFile.lastModified().getTime(); return ftpFile.lastModified().getTime(); } | 8,764 |
public boolean isDirectory() { return ftpFile.isDirectory(); } | public boolean isDirectory() { return ftpFile.isDir(); } | 8,765 |
public boolean isFile() { return !ftpFile.isFile(); } | public boolean isFile() { return !ftpFile.isDir() && !ftpFile.isLink(); } | 8,766 |
protected void readFormatTable(ByteArrayOutputStream baosp,int readType, CodePage codePage) { ScreenField sf; boolean isSigned = false; char c; if (masterMDT) { StringBuffer sb = new StringBuffer(); for (int x = 0; x < sizeFields; x++) { ... | protected void readFormatTable(ByteArrayOutputStream baosp,int readType, CodePage codePage) { ScreenField sf; boolean isSigned = false; char c; if (masterMDT) { StringBuffer sb = new StringBuffer(); for (int x = 0; x < sizeFields; x++) { ... | 8,768 |
protected void readFormatTable(ByteArrayOutputStream baosp,int readType, CodePage codePage) { ScreenField sf; boolean isSigned = false; char c; if (masterMDT) { StringBuffer sb = new StringBuffer(); for (int x = 0; x < sizeFields; x++) { ... | protected void readFormatTable(ByteArrayOutputStream baosp,int readType, CodePage codePage) { ScreenField sf; boolean isSigned = false; char c; if (masterMDT) { StringBuffer sb = new StringBuffer(); for (int x = 0; x < sizeFields; x++) { ... | 8,769 |
private void initJarPaths() { String userDir = System.getProperty("user.dir"); if (new File(userDir + File.separator + "jython.jar").exists()) { jarClassPaths = userDir + File.separator + "jython.jar"; } if (jarClassPaths != null) System.setProperty("python.path",jarClassPaths); ... | private void initJarPaths() { String userDir = System.getProperty("user.dir"); if (new File(userDir + File.separator + "jython.jar").exists()) { jarClassPaths = "." + File.pathSeparator + "jython.jar" + File.pathSeparator + "jt400.jar" + File.pathSeparator + "itext.jar"; if (sessions.contains("scri... | 8,770 |
static public void main(String[] args) { if (isSpecified("-MDI",args)) { useMDIFrames = true; } if (!isSpecified("-nc",args)) { if (!checkBootStrapper(args)) { // if we did not find a running instance and the -d options is // specified start up the bootstrap de... | static public void main(String[] args) { if (isSpecified("-MDI",args)) { useMDIFrames = true; } if (!isSpecified("-nc",args)) { if (!checkBootStrapper(args)) { // if we did not find a running instance and the -d options is // specified start up the bootstrap de... | 8,771 |
static public void main(String[] args) { if (isSpecified("-MDI",args)) { useMDIFrames = true; } if (!isSpecified("-nc",args)) { if (!checkBootStrapper(args)) { // if we did not find a running instance and the -d options is // specified start up the bootstrap de... | static public void main(String[] args) { if (isSpecified("-MDI",args)) { useMDIFrames = true; if (!isSpecified("-nc",args)) { if (!checkBootStrapper(args)) { // if we did not find a running instance and the -d options is // specified start up the bootstrap dea... | 8,772 |
public void actionPerformed(ActionEvent event) { // first we filter the following events: // - control characters // - key events with the ALT modifier (FIXME: filter that too!) char c = event.getActionCommand().charAt(0); if (Character.isISOControl(c)) return; ... | public void actionPerformed(ActionEvent event) { // first we filter the following events: // - control characters // - key events with the ALT modifier (FIXME: filter that too!) char c = event.getActionCommand().charAt(0); if (Character.isISOControl(c)) return; ... | 8,773 |
private void doPopup (MouseEvent me) { JMenuItem menuItem; Action action; popup = new JPopupMenu(); final Gui5250 g = this; JMenuItem mi; final int pos = screen.getRowColFromPoint(me.getX(),me.getY()) - (screen.getCols()-1); if (!rubberband.isAreaSelected() && s... | private void doPopup (MouseEvent me) { JMenuItem menuItem; Action action; popup = new JPopupMenu(); final Gui5250 g = this; JMenuItem mi; final int pos = screen.getRowColFromPoint(me.getX(),me.getY()) - (screen.getCols()-1); if (!rubberband.isAreaSelected() && s... | 8,774 |
private void doPopup (MouseEvent me) { JMenuItem menuItem; Action action; popup = new JPopupMenu(); final Gui5250 g = this; JMenuItem mi; final int pos = screen.getRowColFromPoint(me.getX(),me.getY()) - (screen.getCols()-1); if (!rubberband.isAreaSelected() && s... | private void doPopup (MouseEvent me) { JMenuItem menuItem; Action action; popup = new JPopupMenu(); final Gui5250 g = this; JMenuItem mi; final int pos = screen.getRowColFromPoint(me.getX(),me.getY()) - (screen.getCols()-1); if (!rubberband.isAreaSelected() && s... | 8,775 |
public void actionPerformed(ActionEvent e) { screen.pasteMe(false); getFocusForMe(); } | public void actionPerformed(ActionEvent e) { screen.sendKeys(MNEMONIC_PASTE); getFocusForMe(); } | 8,776 |
public void actionPerformed(ActionEvent e) { screen.copyMe(); getFocusForMe(); } | public void actionPerformed(ActionEvent e) { screen.sendKeys(MNEMONIC_COPY); getFocusForMe(); } | 8,777 |
public void setMacroRunning(boolean mr) { macroRunning = mr; if (macroRunning) screen.setSRIndicatorOn(); else screen.setSRIndicatorOff(); stopMacro = false; } | public void setMacroRunning(boolean mr) { macroRunning = mr; if (macroRunning) screen.setSRIndicatorOn(); else screen.setSRIndicatorOff(); stopMacro = !macroRunning; } | 8,778 |
public void setStopMacroRequested () { setMacroRunning(true); macroRunning = false; } | public void setStopMacroRequested () { setMacroRunning(true); macroRunning = false; } | 8,779 |
private void copyConfigs(String sesFile) { /** Copy the config-files to the user's home-dir */ String srcFile = System.getProperty("user.dir") + File.separator + sesFile; String dest = System.getProperty("user.home") + File.separator + ".tn5250j" + File.separator + sesFile; File rmvFil... | private void copyConfigs(String sesFile) { /** Copy the config-files to the user's home-dir */ String srcFile = System.getProperty("user.dir") + File.separator + sesFile; String dest = System.getProperty("user.home") + File.separator + ".tn5250j" + File.separator + sesFile; File rmvFil... | 8,780 |
private void copyConfigs(String sesFile) { /** Copy the config-files to the user's home-dir */ String srcFile = System.getProperty("user.dir") + File.separator + sesFile; String dest = System.getProperty("user.home") + File.separator + ".tn5250j" + File.separator + sesFile; File rmvFil... | private void copyConfigs(String sesFile) { /** Copy the config-files to the user's home-dir */ String srcFile = System.getProperty("user.dir") + File.separator + sesFile; String dest = System.getProperty("user.home") + File.separator + ".tn5250j" + File.separator + sesFile; File rmvFil... | 8,781 |
private void loadSettings() { FileInputStream in = null; FileInputStream again = null; settings = new Properties(); // here we will check for a system property is provided first. if (System.getProperties().containsKey("emulator.settingsDirectory")) { settings.setProperty("emul... | private void loadSettings() { FileInputStream in = null; FileInputStream again = null; settings = new Properties(); // here we will check for a system property is provided first. if (System.getProperties().containsKey("emulator.settingsDirectory")) { settings.setProperty("emul... | 8,782 |
private void loadSettings() { FileInputStream in = null; FileInputStream again = null; settings = new Properties(); // here we will check for a system property is provided first. if (System.getProperties().containsKey("emulator.settingsDirectory")) { settings.setProperty("emul... | private void loadSettings() { FileInputStream in = null; FileInputStream again = null; settings = new Properties(); // here we will check for a system property is provided first. if (System.getProperties().containsKey("emulator.settingsDirectory")) { settings.setProperty("emul... | 8,783 |
private void loadSettings() { FileInputStream in = null; FileInputStream again = null; settings = new Properties(); // here we will check for a system property is provided first. if (System.getProperties().containsKey("emulator.settingsDirectory")) { settings.setProperty("emul... | private void loadSettings() { FileInputStream in = null; FileInputStream again = null; settings = new Properties(); // here we will check for a system property is provided first. if (System.getProperties().containsKey("emulator.settingsDirectory")) { settings.setProperty("emul... | 8,784 |
private static int writeBitString(OutputStream out, BitString bs) throws IOException { byte[] buf = bs.getShiftedByteArray(); out.write(buf.length + 1); out.write(bs.getIgnoredBits()); out.write(buf); return buf.length; } | private static int writeBitString(OutputStream out, BitString bs) throws IOException { byte[] buf = bs.getShiftedByteArray(); writeLength(out, buf.length + 1); out.write(bs.getIgnoredBits()); out.write(buf); return buf.length; } | 8,785 |
private static int writeBitString(OutputStream out, BitString bs) throws IOException { byte[] buf = bs.getShiftedByteArray(); out.write(buf.length + 1); out.write(bs.getIgnoredBits()); out.write(buf); return buf.length; } | private static int writeBitString(OutputStream out, BitString bs) throws IOException { byte[] buf = bs.getShiftedByteArray(); out.write(buf.length + 1); out.write(bs.getIgnoredBits()); out.write(buf); return buf.length + 1; } | 8,786 |
protected Object alloc(VmClassType<?> vmClass, int alignedSize) { if (nextFreePtr == null) { /* This heap is full */ return null; } final Offset tibOffset = this.tibOffset; final Word headerSize = Word.fromIntZeroExtend(this.headerSize); final Offset flagsOffset = this.flagsOffset... | protected Object alloc(VmClassType<?> vmClass, int alignedSize) { if (nextFreePtr.EQ(Address.zero())) { /* This heap is full */ return null; } final Offset tibOffset = this.tibOffset; final Word headerSize = Word.fromIntZeroExtend(this.headerSize); final Offset flagsOffset = this.... | 8,787 |
protected Object alloc(VmClassType<?> vmClass, int alignedSize) { if (nextFreePtr == null) { /* This heap is full */ return null; } final Offset tibOffset = this.tibOffset; final Word headerSize = Word.fromIntZeroExtend(this.headerSize); final Offset flagsOffset = this.flagsOffset... | protected Object alloc(VmClassType<?> vmClass, int alignedSize) { if (nextFreePtr == null) { /* This heap is full */ return null; } final Offset tibOffset = this.tibOffset; final Word headerSize = Word.fromIntZeroExtend(this.headerSize); final Offset flagsOffset = this.flagsOffset... | 8,788 |
protected Object alloc(VmClassType<?> vmClass, int alignedSize) { if (nextFreePtr == null) { /* This heap is full */ return null; } final Offset tibOffset = this.tibOffset; final Word headerSize = Word.fromIntZeroExtend(this.headerSize); final Offset flagsOffset = this.flagsOffset... | protected Object alloc(VmClassType<?> vmClass, int alignedSize) { if (nextFreePtr == null) { /* This heap is full */ return null; } final Offset tibOffset = this.tibOffset; final Word headerSize = Word.fromIntZeroExtend(this.headerSize); final Offset flagsOffset = this.flagsOffset... | 8,789 |
protected final void defragment() throws UninterruptiblePragma { final Word size = Word.fromIntZeroExtend(getSize()); final Word headerSize = Word.fromIntZeroExtend(this.headerSize); Word offset = headerSize; final Offset sizeOffset = this.sizeOffset; final Offset tibOffset = this... | protected final void defragment() throws UninterruptiblePragma { final Word size = Word.fromIntZeroExtend(getSize()); final Word headerSize = Word.fromIntZeroExtend(this.headerSize); Word offset = headerSize; final Offset sizeOffset = this.sizeOffset; final Offset tibOffset = this... | 8,790 |
public static void main(String[] args) { try { String s = null; s.length(); System.out.println("No throw of NPE: NOK!"); } catch (NullPointerException ex) { System.out.println("catch of NPE: OK! (" + ex + ")"); } } | public static void main(String[] args) { String s = null; s.length(); System.out.println("No throw of NPE: NOK!"); } catch (NullPointerException ex) { System.out.println("catch of NPE: OK! (" + ex + ")"); } } | 8,791 |
public static void main(String[] args) { try { String s = null; s.length(); System.out.println("No throw of NPE: NOK!"); } catch (NullPointerException ex) { System.out.println("catch of NPE: OK! (" + ex + ")"); } } | public static void main(String[] args) { try { String s = null; s.length(); System.out.println("No throw of NPE: NOK!"); } catch (NullPointerException ex) { System.out.println("catch of NPE: OK! (" + ex + ")"); } } | 8,792 |
final byte[] encodeText(String text) throws IOException { encoder.reset(); if (!encoder.canEncode(text)) { // Check each character StringBuffer buf = new StringBuffer(); int len = text.length(); for (int i = 0; i < len; i++) { char c = text.charAt(i); ... | final byte[] encodeText(String text) throws IOException { encoder.reset(); if (!encoder.canEncode(text)) { // Check each character StringBuffer buf = new StringBuffer(); int len = text.length(); for (int i = 0; i < len; i++) { char c = text.charAt(i); ... | 8,793 |
final byte[] encodeText(String text) throws IOException { encoder.reset(); if (!encoder.canEncode(text)) { // Check each character StringBuffer buf = new StringBuffer(); int len = text.length(); for (int i = 0; i < len; i++) { char c = text.charAt(i); ... | final byte[] encodeText(String text) throws IOException { encoder.reset(); if (!encoder.canEncode(text)) { // Check each character StringBuffer buf = new StringBuffer(); int len = text.length(); for (int i = 0; i < len; i++) { char c = text.charAt(i); ... | 8,794 |
public long getLength() { return ftpFile.getSize(); } | public long getLength() { return ftpFile.size(); } | 8,795 |
public synchronized void read(long fileOffset, ByteBuffer dest) throws IOException { try { if(data == null){ synchronized(fileSystem) { fileSystem.cwd(parent.path()); //data = fileSystem.get(getName()); InputStream in = fileSy... | public synchronized void read(long fileOffset, ByteBuffer dest) throws IOException { try { if(data == null){ synchronized(fileSystem) { fileSystem.cwd(parent.path()); //data = fileSystem.get(getName()); InputStream in = fileSy... | 8,796 |
private Object get(int index) { Object result = cp[ index]; /* * if (result == null) { System.err.println("Warning: cp[" + index + "] * (tag " + tags[index] + ") returns null"); */ return result; } | private Object get(int index) { Object result = cp[ index]; /* * if (result == null) { System.err.println("Warning: cp[" + index + "] * (tag " + tags[index] + ") returns null"); */ return result; } | 8,797 |
public int indexOf(Object object) { for (int i = 0; i < used; i++) { final Object o = cp[ i]; if ((o != null) && (o.equals(object))) { return i; } } return -1; } | public final int indexOf(Object object) { for (int i = 0; i < used; i++) { final Object o = cp[ i]; if ((o != null) && (o.equals(object))) { return i; } } return -1; } | 8,798 |
public void keyPressed( KeyEvent evt ) { int lead = BasicListUI.this.list.getLeadSelectionIndex(); int max = BasicListUI.this.list.getModel().getSize() - 1; // Do nothing if list is empty if (max == -1) return; // Process the key event. Bindings can be found in // j... | public void keyPressed( KeyEvent evt ) { int lead = BasicListUI.this.list.getLeadSelectionIndex(); int max = BasicListUI.this.list.getModel().getSize() - 1; // Do nothing if list is empty if (max == -1) return; // Process the key event. Bindings can be found in // j... | 8,801 |
public void keyPressed( KeyEvent evt ) { int lead = BasicListUI.this.list.getLeadSelectionIndex(); int max = BasicListUI.this.list.getModel().getSize() - 1; // Do nothing if list is empty if (max == -1) return; // Process the key event. Bindings can be found in // j... | public void keyPressed( KeyEvent evt ) { int lead = BasicListUI.this.list.getLeadSelectionIndex(); int max = BasicListUI.this.list.getModel().getSize() - 1; // Do nothing if list is empty if (max == -1) return; // Process the key event. Bindings can be found in // j... | 8,802 |
public void keyPressed( KeyEvent evt ) { int lead = BasicListUI.this.list.getLeadSelectionIndex(); int max = BasicListUI.this.list.getModel().getSize() - 1; // Do nothing if list is empty if (max == -1) return; // Process the key event. Bindings can be found in // j... | public void keyPressed( KeyEvent evt ) { int lead = BasicListUI.this.list.getLeadSelectionIndex(); int max = BasicListUI.this.list.getModel().getSize() - 1; // Do nothing if list is empty if (max == -1) return; // Process the key event. Bindings can be found in // j... | 8,805 |
public void keyPressed( KeyEvent evt ) { int lead = BasicListUI.this.list.getLeadSelectionIndex(); int max = BasicListUI.this.list.getModel().getSize() - 1; // Do nothing if list is empty if (max == -1) return; // Process the key event. Bindings can be found in // j... | public void keyPressed( KeyEvent evt ) { int lead = BasicListUI.this.list.getLeadSelectionIndex(); int max = BasicListUI.this.list.getModel().getSize() - 1; // Do nothing if list is empty if (max == -1) return; // Process the key event. Bindings can be found in // j... | 8,806 |
public void keyPressed( KeyEvent evt ) { int lead = BasicListUI.this.list.getLeadSelectionIndex(); int max = BasicListUI.this.list.getModel().getSize() - 1; // Do nothing if list is empty if (max == -1) return; // Process the key event. Bindings can be found in // j... | public void keyPressed( KeyEvent evt ) { int lead = BasicListUI.this.list.getLeadSelectionIndex(); int max = BasicListUI.this.list.getModel().getSize() - 1; // Do nothing if list is empty if (max == -1) return; // Process the key event. Bindings can be found in // j... | 8,807 |
public void mouseClicked(MouseEvent event) { Point click = event.getPoint(); int index = BasicListUI.this.locationToIndex(list, click); if (index == -1) return; if (event.isControlDown()) { if (BasicListUI.this.list.getSelectionMode() == ListSelectionModel... | public void mouseClicked(MouseEvent event) { Point click = event.getPoint(); int index = BasicListUI.this.locationToIndex(list, click); if (index == -1) return; if (event.isControlDown()) { if (BasicListUI.this.list.getSelectionMode() == ListSelectionModel... | 8,809 |
public Dimension getPreferredSize() { Dimension size = super.getPreferredSize(); if (columns != 0) size.width = columns * getColumnWidth(); return size; } | public Dimension getPreferredSize() { Dimension size = super.getPreferredSize(); if (columns != 0) { Insets i = getInsets(); size.width = columns * getColumnWidth() + i.left + i.right; } return size; } | 8,811 |
private static Clipboard getClipboard(JComponent component) { // Avoid throwing exception if the system clipboard access failed // in the past. if (clipboard != null) return clipboard; else { try { SecurityManager sm = System.getSecurityManager(); if (sm... | private static Clipboard getClipboard(JComponent component) { // Avoid throwing exception if the system clipboard access failed // in the past. if (clipboard != null) return clipboard; else { try { SecurityManager sm = System.getSecurityManager(); if (sm... | 8,812 |
private static Clipboard getClipboard(JComponent component) { // Avoid throwing exception if the system clipboard access failed // in the past. if (clipboard != null) return clipboard; else { try { SecurityManager sm = System.getSecurityManager(); if (sm... | private static Clipboard getClipboard(JComponent component) { // Avoid throwing exception if the system clipboard access failed // in the past. if (clipboard != null) return clipboard; else { try { SecurityManager sm = System.getSecurityManager(); if (sm... | 8,813 |
public ProgressMonitorInputStream(Component component, Object message, InputStream stream) { super(stream); // TODO } // ProgressMonitorInputStream() | public ProgressMonitorInputStream(Component component, Object message, InputStream stream) { super(stream); // TODO } // ProgressMonitorInputStream() | 8,814 |
public void close() throws IOException { // TODO } // close() | public void close() throws IOException { // TODO } // close() | 8,815 |
public ProgressMonitor getProgressMonitor() { return null; // TODO } // getProgressMonitor() | public ProgressMonitor getProgressMonitor() { return null; // TODO } // getProgressMonitor() | 8,816 |
public int read() throws IOException { return 0; // TODO } // read() | public int read() throws IOException { return 0; // TODO } // read() | 8,817 |
public synchronized void reset() throws IOException { // TODO } // reset() | public synchronized void reset() throws IOException { // TODO } // reset() | 8,818 |
public long skip(long length) throws IOException { return 0; // TODO } // skip() | public long skip(long length) throws IOException { return 0; // TODO } // skip() | 8,819 |
public Object action (SaxDocumentHandler handler, Attributes attrs) throws SAXException { String parentNodeName = getParentNodeName(); // create new object appropriately Note newnote = new Note(); newnote.setAttributes(attrs); // set XML attributes from pass... | public Object action (SaxDocumentHandler handler, Attributes attrs) throws SAXException { String parentNodeName = getParentNodeName(); // create new object appropriately Note newnote = new Note(); newnote.setAttributes(attrs); // set XML attributes from pass... | 8,820 |
public void iconifyFrame(JInternalFrame frame) { JDesktopPane p = frame.getDesktopPane(); JDesktopIcon icon = frame.getDesktopIcon(); if (p != null && p.getSelectedFrame() == frame) p.setSelectedFrame(null); else { try { frame.setSelected(false); } catch (PropertyVetoException e) { ... | public void iconifyFrame(JInternalFrame frame) { JDesktopPane p = frame.getDesktopPane(); JDesktopIcon icon = frame.getDesktopIcon(); if (p != null && p.getSelectedFrame() == frame) p.setSelectedFrame(null); else { try { frame.setSelected(false); } catch (PropertyVetoException e) { ... | 8,825 |
protected void setWasIcon(JInternalFrame frame, boolean value) { frame.setWasIcon(value, WAS_ICON_ONCE_PROPERTY); } // setWasIcon() | protected void setWasIcon(JInternalFrame frame, Boolean value) { frame.setWasIcon(value, WAS_ICON_ONCE_PROPERTY); } // setWasIcon() | 8,826 |
protected void setWasIcon(JInternalFrame frame, boolean value) { frame.setWasIcon(value, WAS_ICON_ONCE_PROPERTY); } // setWasIcon() | protected void setWasIcon(JInternalFrame frame, boolean value) { frame.setWasIcon(value, WAS_ICON_ONCE_PROPERTY); } // setWasIcon() | 8,827 |
public PluginDescriptorModel(XMLElement e) throws PluginException { this(null, null, e); } | public PluginDescriptorModel(XMLElement e) throws PluginException { this(null, e); } | 8,828 |
public ClassLoader getPluginClassLoader() { if (classLoader == null) { if (system) { classLoader = ClassLoader.getSystemClassLoader(); } else { if (jarFile == null) { throw new RuntimeException("Cannot create classloader without a jarfile"); } final int reqMax = requires.length; final PluginCla... | public ClassLoader getPluginClassLoader() { if (classLoader == null) { if (system) { classLoader = ClassLoader.getSystemClassLoader(); } else { if (jarFile == null) { throw new RuntimeException("Cannot create classloader without a jarfile"); } final int reqMax = requires.length; final PluginCla... | 8,829 |
public Object run() { return new PluginClassLoader(PluginDescriptorModel.this, jarFile, preLoaders); } | public Object run() { return new PluginClassLoader(registry, PluginDescriptorModel.this, jarFile, preLoaders); } | 8,830 |
public final void resolve() throws PluginException { if (!resolved) { for (int i = 0; i < extensions.length; i++) { extensions[i].resolve(); } for (int i = 0; i < extensionPoints.length; i++) { extensionPoints[i].resolve(); } for (int i = 0; i < requires.length; i++) { requires[i].resolve(); } ... | public final void resolve(PluginRegistryModel registry) throws PluginException { if ((this.registry != null) && (this.registry != registry)) { throw new SecurityException("Cannot overwrite the registry"); } if (!resolved) { for (int i = 0; i < extensions.length; i++) { extensions[i].resolve(); } for (int i =... | 8,831 |
public final void resolve() throws PluginException { if (!resolved) { for (int i = 0; i < extensions.length; i++) { extensions[i].resolve(); } for (int i = 0; i < extensionPoints.length; i++) { extensionPoints[i].resolve(); } for (int i = 0; i < requires.length; i++) { requires[i].resolve(); } ... | public final void resolve() throws PluginException { if (!resolved) { for (int i = 0; i < extensions.length; i++) { extensions[i].resolve(); } for (int i = 0; i < extensionPoints.length; i++) { extensionPoints[i].resolve(); } for (int i = 0; i < requires.length; i++) { requires[i].resolve(); } ... | 8,832 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.