bugged
stringlengths
6
599k
fixed
stringlengths
6
40.8M
__index_level_0__
int64
0
3.24M
protected Container createContentPane() { JPanel p = new JPanel(); p.setName(this.getName() + ".contentPane"); p.setLayout(new BorderLayout()); return p; }
protected Container createContentPane() { JPanel p = new JPanel(); p.setName(this.getName() + ".contentPane"); p.setLayout(new BorderLayout()); return p; }
4,078
protected Component createGlassPane() { JPanel p = new JPanel(); p.setName(this.getName() + ".glassPane"); p.setLayout(new BorderLayout()); p.setVisible(false); p.setOpaque(false); return p; }
protected Component createGlassPane() { JPanel p = new JPanel(); p.setName(this.getName() + ".glassPane"); p.setLayout(new BorderLayout()); p.setVisible(false); p.setOpaque(false); return p; }
4,079
protected Component createGlassPane() { JPanel p = new JPanel(); p.setName(this.getName() + ".glassPane"); p.setLayout(new BorderLayout()); p.setVisible(false); p.setOpaque(false); return p; }
protected Component createGlassPane() { JPanel p = new JPanel(); p.setName(this.getName() + ".glassPane"); p.setLayout(new BorderLayout()); p.setVisible(false); p.setOpaque(false); return p; }
4,080
protected Component createGlassPane() { JPanel p = new JPanel(); p.setName(this.getName() + ".glassPane"); p.setLayout(new BorderLayout()); p.setVisible(false); p.setOpaque(false); return p; }
protected Component createGlassPane() { JPanel p = new JPanel(); p.setName(this.getName() + ".glassPane"); p.setLayout(new BorderLayout()); p.setVisible(false); p.setOpaque(false); return p; }
4,081
protected JLayeredPane createLayeredPane() { JLayeredPane l = new JLayeredPane(); l.setLayout(null); return l; }
protected JLayeredPane createLayeredPane() { JLayeredPane l = new JLayeredPane(); l.setLayout(null); return l; }
4,082
protected LayoutManager createRootLayout() { return new RootLayout(); }
protected LayoutManager createRootLayout() { return new RootLayout(); }
4,083
public Container getContentPane() { if (contentPane == null) setContentPane(createContentPane()); return contentPane; }
public Container getContentPane() { if (contentPane == null) setContentPane(createContentPane()); return contentPane; }
4,084
public Component getGlassPane() { if (glassPane == null) setGlassPane(createGlassPane()); return glassPane; }
public Component getGlassPane() { if (glassPane == null) setGlassPane(createGlassPane()); return glassPane; }
4,085
public JLayeredPane getLayeredPane() { if (layeredPane == null) setLayeredPane(createLayeredPane()); return layeredPane; }
public JLayeredPane getLayeredPane() { if (layeredPane == null) setLayeredPane(createLayeredPane()); return layeredPane; }
4,086
public void setContentPane(Container p) { contentPane = p; getLayeredPane().add(contentPane, JLayeredPane.FRAME_CONTENT_LAYER); }
public void setContentPane(Container p) { contentPane = p; getLayeredPane().add(contentPane, JLayeredPane.FRAME_CONTENT_LAYER); }
4,087
public void setGlassPane(Component f) { if (glassPane != null) remove(glassPane); glassPane = f; glassPane.setVisible(false); add(glassPane, 0); }
public void setGlassPane(Component f) { if (glassPane != null) remove(glassPane); glassPane = f; glassPane.setVisible(false); add(glassPane, 0); }
4,088
public void setGlassPane(Component f) { if (glassPane != null) remove(glassPane); glassPane = f; glassPane.setVisible(false); add(glassPane, 0); }
public void setGlassPane(Component f) { if (glassPane != null) remove(glassPane); glassPane = f; glassPane.setVisible(false); add(glassPane, 0); }
4,089
public void setGlassPane(Component f) { if (glassPane != null) remove(glassPane); glassPane = f; glassPane.setVisible(false); add(glassPane, 0); }
public void setGlassPane(Component f) { if (glassPane != null) remove(glassPane); glassPane = f; glassPane.setVisible(false); add(glassPane, 0); }
4,090
public void setJMenuBar(JMenuBar m) { JLayeredPane jlPane = getLayeredPane(); if (menuBar != null) jlPane.remove(menuBar); menuBar = m; if (menuBar != null) jlPane.add(menuBar, JLayeredPane.FRAME_CONTENT_LAYER); }
public void setJMenuBar(JMenuBar m) { JLayeredPane jlPane = getLayeredPane(); if (menuBar != null) jlPane.remove(menuBar); menuBar = m; if (menuBar != null) jlPane.add(menuBar, JLayeredPane.FRAME_CONTENT_LAYER); }
4,091
public void setJMenuBar(JMenuBar m) { JLayeredPane jlPane = getLayeredPane(); if (menuBar != null) jlPane.remove(menuBar); menuBar = m; if (menuBar != null) jlPane.add(menuBar, JLayeredPane.FRAME_CONTENT_LAYER); }
public void setJMenuBar(JMenuBar m) { JLayeredPane jlPane = getLayeredPane(); if (menuBar != null) jlPane.remove(menuBar); menuBar = m; if (menuBar != null) jlPane.add(menuBar, JLayeredPane.FRAME_CONTENT_LAYER); }
4,092
public void setJMenuBar(JMenuBar m) { JLayeredPane jlPane = getLayeredPane(); if (menuBar != null) jlPane.remove(menuBar); menuBar = m; if (menuBar != null) jlPane.add(menuBar, JLayeredPane.FRAME_CONTENT_LAYER); }
public void setJMenuBar(JMenuBar m) { JLayeredPane jlPane = getLayeredPane(); if (menuBar != null) jlPane.remove(menuBar); menuBar = m; if (menuBar != null) jlPane.add(menuBar, JLayeredPane.FRAME_CONTENT_LAYER); }
4,093
public void setLayeredPane(JLayeredPane f) { if (layeredPane != null) remove(layeredPane); layeredPane = f; add(f, -1); }
public void setLayeredPane(JLayeredPane f) { if (layeredPane != null) remove(layeredPane); layeredPane = f; add(f, -1); }
4,094
public void setWindowDecorationStyle(int style) { if (style != NONE && style != FRAME && style != INFORMATION_DIALOG && style != ERROR_DIALOG && style != COLOR_CHOOSER_DIALOG && style != FILE_CHOOSER_DIALOG && style != QUESTION_DIALOG && style != WARNING_DIALOG && style != PLAIN_DIALOG) throw n...
public void setWindowDecorationStyle(int style) { if (style != NONE && style != FRAME && style != INFORMATION_DIALOG && style != ERROR_DIALOG && style != COLOR_CHOOSER_DIALOG && style != FILE_CHOOSER_DIALOG && style != QUESTION_DIALOG && style != WARNING_DIALOG && style != PLAIN_DIALOG) throw n...
4,095
public VmCompiledCode( NativeCodeCompiler compiler, VmByteCode bytecode, Address nativeCode, Object compiledCode, int size, VmCompiledExceptionHandler[] eTable, Address defaultExceptionHandler, VmAddressMap addressTable) { this.compiler = compiler; this.magic = compiler.getMagic(); this.bytecod...
public VmCompiledCode( NativeCodeCompiler compiler, VmByteCode bytecode, Address nativeCode, Object compiledCode, int size, VmCompiledExceptionHandler[] eTable, Address defaultExceptionHandler, VmAddressMap addressTable) { this.compiler = compiler; this.magic = compiler.getMagic(); this.bytecod...
4,096
public static CannotProceed extract(Any a) { try { return ((CannotProceedHolder) a.extract_Streamable()).value; } catch (ClassCastException ex) { throw new BAD_OPERATION(); } }
public static CannotProceed extract(Any a) { try { return ((CannotProceedHolder) a.extract_Streamable()).value; } catch (ClassCastException ex) { BAD_OPERATION bad = new BAD_OPERATION(); bad.initCause(ex); bad.minor = Minor.Any; throw bad; } }
4,100
public ProgressMonitor(Component component, Object message, String note, int minimum, int maximum) { // Set Data this.component = component; this.message = message; this.note = note; this.minimum = minimum; this.maximum = maximum; // TODO } // ProgressMonitor()
public ProgressMonitor(Component component, Object message, String note, int minimum, int maximum) { // Set Data this.component = component; this.message = message; this.note = note; this.minimum = minimum; this.maximum = maximum; // TODO } // ProgressMonitor()
4,101
public ProgressMonitor(Component component, Object message, String note, int minimum, int maximum) { // Set Data this.component = component; this.message = message; this.note = note; this.minimum = minimum; this.maximum = maximum; // TODO } // ProgressMonitor()
public ProgressMonitor(Component component, Object message, String note, int minimum, int maximum) { // Set Data this.component = component; this.message = message; this.note = note; this.minimum = minimum; this.maximum = maximum; // TODO } // ProgressMonitor()
4,102
public void close() { // TODO } // close()
public void close() { // TODO } // close()
4,103
public int getMaximum() { return maximum; // TODO } // getMaximum()
public int getMaximum() { return maximum; // TODO } // getMaximum()
4,104
public int getMillisToDecideToPopup() { return millisToDecideToPopup; // TODO } // getMillisToDecideToPopup()
public int getMillisToDecideToPopup() { return millisToDecideToPopup; // TODO } // getMillisToDecideToPopup()
4,105
public int getMillisToPopup() { return millisToPopup; // TODO } // getMillisToPopup()
public int getMillisToPopup() { return millisToPopup; // TODO } // getMillisToPopup()
4,106
public int getMinimum() { return minimum; // TODO } // getMinimum()
public int getMinimum() { return minimum; // TODO } // getMinimum()
4,107
public String getNote() { return note; // TODO } // getNote()
public String getNote() { return note; // TODO } // getNote()
4,108
public boolean isCanceled() { return false; // TODO } // isCanceled()
public boolean isCanceled() { return false; // TODO } // isCanceled()
4,109
public void setMaximum(int maximum) { this.maximum = maximum; // TODO } // setMaximum()
public void setMaximum(int maximum) { this.maximum = maximum; // TODO } // setMaximum()
4,110
public void setMillisToDecideToPopup(int time) { millisToDecideToPopup = time; // TODO } // setMillisToDecideToPopup()
public void setMillisToDecideToPopup(int time) { millisToDecideToPopup = time; // TODO } // setMillisToDecideToPopup()
4,111
public void setMillisToPopup(int time) { millisToPopup = time; // TODO } // setMillisToPopup()
public void setMillisToPopup(int time) { millisToPopup = time; // TODO } // setMillisToPopup()
4,112
public void setMinimum(int minimum) { this.minimum = minimum; // TODO } // setMinimum()
public void setMinimum(int minimum) { this.minimum = minimum; // TODO } // setMinimum()
4,113
public void setNote(String note) { this.note = note; // TODO } // setNote()
public void setNote(String note) { this.note = note; // TODO } // setNote()
4,114
public void setProgress(int progress) { // TODO } // setProgress()
public void setProgress(int progress) { // TODO } // setProgress()
4,115
public void setSelected(ButtonModel m, boolean b) { if ((sel != m || b) && (! b || sel == m)) return; if (b && sel != m) { ButtonModel old = sel; sel = m; if (old != null) old.setSelected(false); AbstractButton button = FindButton(old); if (button != null) button.repaint(); } else if (! b...
public void setSelected(ButtonModel m, boolean b) { if ((sel != m || b) && (! b || sel == m)) return; if (b && sel != m) { ButtonModel old = sel; sel = m; if (old != null) old.setSelected(false); AbstractButton button = FindButton(old); if (button != null) button.repaint(); } else if (!b ...
4,117
public CharHolder(char initial_value) { value = initial_value; }
public CharHolder() { value = initial_value; }
4,118
public CharHolder(char initial_value) { value = initial_value; }
public CharHolder(char initial_value) { }
4,119
public void loadPlugins(PluginRegistry piRegistry) { if (jarFile == null) { return; } final InitJarPluginLoader loader = new InitJarPluginLoader(); for (Enumeration e = jarFile.entries(); e.hasMoreElements();) { final JarEntry entry = (JarEntry) e.nextElement(); if (entry.getName().endsWith(".jar")) { try...
public void loadPlugins(PluginRegistry piRegistry) { if (jarFile == null) { return; } final InitJarPluginLoader loader = new InitJarPluginLoader(); for (Enumeration e = jarFile.entries(); e.hasMoreElements();) { final JarEntry entry = (JarEntry) e.nextElement(); if (entry.getName().endsWith(".jar")) { try...
4,120
public void loadPlugins(PluginRegistry piRegistry) { if (jarFile == null) { return; } final InitJarPluginLoader loader = new InitJarPluginLoader(); for (Enumeration e = jarFile.entries(); e.hasMoreElements();) { final JarEntry entry = (JarEntry) e.nextElement(); if (entry.getName().endsWith(".jar")) { try...
public void loadPlugins(PluginRegistry piRegistry) { if (jarFile == null) { return; } final InitJarPluginLoader loader = new InitJarPluginLoader(); for (Enumeration e = jarFile.entries(); e.hasMoreElements();) { final JarEntry entry = (JarEntry) e.nextElement(); if (entry.getName().endsWith(".jar")) { try...
4,121
public void loadPlugins(PluginRegistry piRegistry) { if (jarFile == null) { return; } final InitJarPluginLoader loader = new InitJarPluginLoader(); for (Enumeration e = jarFile.entries(); e.hasMoreElements();) { final JarEntry entry = (JarEntry) e.nextElement(); if (entry.getName().endsWith(".jar")) { try...
public void loadPlugins(PluginRegistry piRegistry) { if (jarFile == null) { return; } final InitJarPluginLoader loader = new InitJarPluginLoader(); for (Enumeration e = jarFile.entries(); e.hasMoreElements();) { final JarEntry entry = (JarEntry) e.nextElement(); if (entry.getName().endsWith(".jar")) { try...
4,122
public final void drawChar(Graphics2D g, int pos, int row, int col) { Screen5250 s = screen; ScreenPlanes planes = s.planes;// int attr = planes.getCharAttr(pos); int attr = updateRect.attr[pos]; sChar[0] = updateRect.text[pos]; setDrawAttr(pos); boolean attributePlace = planes.isA...
publicfinalvoiddrawChar(Graphics2Dg,intpos,introw,intcol){Screen5250s=screen;ScreenPlanesplanes=s.planes;//intattr=planes.getCharAttr(pos);intattr=updateRect.attr[pos];sChar[0]=updateRect.text[pos];setDrawAttr(pos);booleanattributePlace=planes.isAttributePlace(s.getPos(row,col));//attributePlace=true;intwhichGui=update...
4,124
public final void drawChar(Graphics2D g, int pos, int row, int col) { Screen5250 s = screen; ScreenPlanes planes = s.planes;// int attr = planes.getCharAttr(pos); int attr = updateRect.attr[pos]; sChar[0] = updateRect.text[pos]; setDrawAttr(pos); boolean attributePlace = planes.isA...
publicfinalvoiddrawChar(Graphics2Dg,intpos,introw,intcol){Screen5250s=screen;ScreenPlanesplanes=s.planes;//intattr=planes.getCharAttr(pos);intattr=updateRect.attr[pos];sChar[0]=updateRect.text[pos];setDrawAttr(pos);booleanattributePlace=planes.isAttributePlace(s.getPos(row,col));//attributePlace=true;intwhichGui=update...
4,125
public final void drawChar(Graphics2D g, int pos, int row, int col) { Screen5250 s = screen; ScreenPlanes planes = s.planes;// int attr = planes.getCharAttr(pos); int attr = updateRect.attr[pos]; sChar[0] = updateRect.text[pos]; setDrawAttr(pos); boolean attributePlace = planes.isA...
public final void drawChar(Graphics2D g, int pos, int row, int col) { Screen5250 s = screen; ScreenPlanes planes = s.planes;// int attr = planes.getCharAttr(pos); int attr = updateRect.attr[pos]; sChar[0] = updateRect.text[pos]; setDrawAttr(pos); boolean attributePlace = planes.isAttributePlace(s.getPos(row,c...
4,126
public final void drawChar(Graphics2D g, int pos, int row, int col) { Screen5250 s = screen; ScreenPlanes planes = s.planes;// int attr = planes.getCharAttr(pos); int attr = updateRect.attr[pos]; sChar[0] = updateRect.text[pos]; setDrawAttr(pos); boolean attributePlace = planes.isA...
publicfinalvoiddrawChar(Graphics2Dg,intpos,introw,intcol){Screen5250s=screen;ScreenPlanesplanes=s.planes;//intattr=planes.getCharAttr(pos);intattr=updateRect.attr[pos];sChar[0]=updateRect.text[pos];setDrawAttr(pos);booleanattributePlace=planes.isAttributePlace(s.getPos(row,col));//attributePlace=true;intwhichGui=update...
4,127
protected final boolean isAttributePlace(int pos) { return screenIsAttr[pos]; }
protected final boolean isAttributePlace(int pos) { return screenIsAttr[pos] == '1' ? true : false; }
4,128
private final void registerBlockIndex(long i, long blockNr) throws FileSystemException, IOException{ final long blockCount = getSizeInBlocks(); final int indirectCount = getIndirectCount(); long allocatedBlocks = i; if(i != blockCount) throw new FileSystemException( "Trying to register block "+i+" (counts from ...
private final void registerBlockIndex(long i, long blockNr) throws FileSystemException, IOException{ final long blockCount = getSizeInBlocks(); final int indirectCount = getIndirectCount(); long allocatedBlocks = i; if(i != blockCount) throw new FileSystemException( "Trying to register block "+i+" (counts from ...
4,131
Certificate[] getCertificates() { return entry.getCertificates(); }
Certificate[] getCertificates() { return ((JarEntry) ((JarURLLoader) loader).jarfile.getEntry(name)) .getCertificates(); }
4,142
protected Class findClass(final String className) throws ClassNotFoundException { // Just try to find the resource by the (almost) same name String resourceName = className.replace('.', '/') + ".class"; Resource resource = findURLResource(resourceName); if (resource == null) throw new ClassNotFou...
protected Class findClass(final String className) throws ClassNotFoundException { // Just try to find the resource by the (almost) same name String resourceName = className.replace('.', '/') + ".class"; Resource resource = findURLResource(resourceName); if (resource == null) throw new ClassNotFou...
4,143
protected Class findClass(final String className) throws ClassNotFoundException { // Just try to find the resource by the (almost) same name String resourceName = className.replace('.', '/') + ".class"; Resource resource = findURLResource(resourceName); if (resource == null) throw new ClassNotFou...
protected Class findClass(final String className) throws ClassNotFoundException { // Just try to find the resource by the (almost) same name String resourceName = className.replace('.', '/') + ".class"; Resource resource = findURLResource(resourceName); if (resource == null) throw new ClassNotFou...
4,144
public static Icon getMenuItemCheckIcon() { return new DummyIcon(); }
public static Icon getMenuItemCheckIcon() { return new Icon() { public int getIconHeight() { return 13; } public int getIconWidth() { return 13; } public void paintIcon(Component c, Graphics g, int x, int y) { Color saved = g.getColor(); g.setColor(Color.BLACK); g.drawLine(3 + x, 5 + y, 3 + x, 9 + y); g.drawLin...
4,146
void paintBackingStore(Graphics g) { // If we have no backing store image yet or the size of the component has // changed, we need to rebuild the backing store. if (backingStoreImage == null || sizeChanged) { backingStoreImage = createImage(getWidth(), getHeight()); sizeChanged = false; ...
void paintBackingStore(Graphics g) { // If we have no backing store image yet or the size of the component has // changed, we need to rebuild the backing store. if (backingStoreImage == null || sizeChanged) { backingStoreImage = createImage(getWidth(), getHeight()); sizeChanged = false; ...
4,147
protected void paintBorder(Graphics graphics) { Border border = getBorder(); if (paintBorder && border != null) border.paintBorder(this, graphics, 0, 0, getWidth(), getHeight()); }
protected void paintBorder(Graphics graphics) { Border border = getBorder(); if (paintBorder && border != null) border.paintBorder(this, graphics, 0, 0, getWidth(), getHeight()); }
4,148
public static org.omg.CORBA.Object extract(Any a) { try { return ((ObjectHolder) a.extract_Streamable()).value; } catch (ClassCastException ex) { throw new BAD_OPERATION("CORBA object expected"); } }
public static org.omg.CORBA.Object extract(Any a) { try { return ((ObjectHolder) a.extract_Streamable()).value; } catch (ClassCastException ex) { BAD_OPERATION bad = new BAD_OPERATION("CORBA object expected"); bad.minor = Minor.Any; throw bad; } }
4,150
private void checkLegacy() { // we check if the sessions file already exists in the directory // if it does exist we are working with an old install so we // need to set the settings directory to the users directory File ses = new File("sessions"); if(ses.exists()) { settings.setProperty("emulator.settingsD...
private void checkLegacy() { // we check if the sessions file already exists in the directory // if it does exist we are working with an old install so we // need to set the settings directory to the users directory File ses = new File("sessions"); if(ses.exists()) { settings.setProperty("emulator.settingsD...
4,151
private void checkLegacy() { // we check if the sessions file already exists in the directory // if it does exist we are working with an old install so we // need to set the settings directory to the users directory File ses = new File("sessions"); if(ses.exists()) { settings.setProperty("emulator.settingsD...
private void checkLegacy() { // we check if the sessions file already exists in the directory // if it does exist we are working with an old install so we // need to set the settings directory to the users directory File ses = new File("sessions"); if(ses.exists()) { settings.setProperty("emulator.settingsD...
4,152
private void checkLegacy() { // we check if the sessions file already exists in the directory // if it does exist we are working with an old install so we // need to set the settings directory to the users directory File ses = new File("sessions"); if(ses.exists()) { settings.setProperty("emulator.settingsD...
private void checkLegacy() { // we check if the sessions file already exists in the directory // if it does exist we are working with an old install so we // need to set the settings directory to the users directory File ses = new File("sessions"); if(ses.exists()) { settings.setProperty("emulator.settingsD...
4,153
private void initialize() { loadSettings(); loadSessions(); loadMacros(); loadKeyStrokes(); }
private void initialize() { loadSettings(); loadSessions(); loadMacros(); loadKeyStrokes(); }
4,154
private void loadKeyStrokes() {// FileInputStream in = null;// Properties keystrokes = new Properties();//// try {// in = new FileInputStream(settingssDirectory()// + KEYMAP);// keystrokes.load(in);// }// catch (FileNotFoundException fnfe) ...
private void loadKeyStrokes() {// FileInputStream in = null;// Properties keystrokes = new Properties();//// try {// in = new FileInputStream(settingssDirectory()// + KEYMAP);// keystrokes.load(in);// }// catch (FileNotFoundException fnfe) ...
4,155
private void loadMacros() {// FileInputStream in = null;// Properties macs = new Properties();//// try {// in = new FileInputStream(settingssDirectory()// + MACROS);// macs.load(in);// }// catch (FileNotFoundException fnfe) {System.out.prin...
private void loadMacros() {// FileInputStream in = null;// Properties macs = new Properties();//// try {// in = new FileInputStream(settingssDirectory()// + MACROS);// macs.load(in);// }// catch (FileNotFoundException fnfe) {System.out.prin...
4,156
private void loadSessions() {// FileInputStream in = null;// Properties sessions = new Properties();//// try {// in = new FileInputStream(settingssDirectory() + SESSIONS);// sessions.load(in);//// }// catch (FileNotFoundException fnfe) {// System.out.println(" Inform...
private void loadSessions() {// FileInputStream in = null;// Properties sessions = new Properties();//// try {// in = new FileInputStream(settingssDirectory() + SESSIONS);// sessions.load(in);//// }// catch (FileNotFoundException fnfe) {// System.out.println(" Inform...
4,157
private void loadSettings() { FileInputStream in = null; settings = new Properties(); try { in = new FileInputStream("tn5250jsettings.cfg"); settings.load(in); } catch (FileNotFoundException fnfe) { System.out.println(" Information Message: " + fnfe.getMessage() + "...
private void loadSettings() { FileInputStream in = null; settings = new Properties(); try { in = new FileInputStream(settingsFile); settings.load(in); } catch (FileNotFoundException fnfe) { System.out.println(" Information Message: " + fnfe.getMessage() + ". The fi...
4,158
private void loadSettings() { FileInputStream in = null; settings = new Properties(); try { in = new FileInputStream("tn5250jsettings.cfg"); settings.load(in); } catch (FileNotFoundException fnfe) { System.out.println(" Information Message: " + fnfe.getMessage() + "...
private void loadSettings() { FileInputStream in = null; settings = new Properties(); try { in = new FileInputStream("tn5250jsettings.cfg"); settings.load(in); } catch (FileNotFoundException fnfe) { System.out.println(" Information Message: " + fnfe.getMessage() + "...
4,159
private void loadSettings() { FileInputStream in = null; settings = new Properties(); try { in = new FileInputStream("tn5250jsettings.cfg"); settings.load(in); } catch (FileNotFoundException fnfe) { System.out.println(" Information Message: " + fnfe.getMessage() + "...
private void loadSettings() { FileInputStream in = null; settings = new Properties(); try { in = new FileInputStream("tn5250jsettings.cfg"); settings.load(in); } catch (FileNotFoundException fnfe) { System.out.println(" Information Message: " + fnfe.getMessage() + "...
4,160
private void loadSettings() { FileInputStream in = null; settings = new Properties(); try { in = new FileInputStream("tn5250jsettings.cfg"); settings.load(in); } catch (FileNotFoundException fnfe) { System.out.println(" Information Message: " + fnfe.getMessage() + "...
private void loadSettings() { FileInputStream in = null; settings = new Properties(); try { in = new FileInputStream("tn5250jsettings.cfg"); settings.load(in); } catch (FileNotFoundException fnfe) { System.out.println(" Information Message: " + fnfe.getMessage() + "...
4,161
private void loadSettings() { FileInputStream in = null; settings = new Properties(); try { in = new FileInputStream("tn5250jsettings.cfg"); settings.load(in); } catch (FileNotFoundException fnfe) { System.out.println(" Information Message: " + fnfe.getMessage() + "...
private void loadSettings() { FileInputStream in = null; settings = new Properties(); try { in = new FileInputStream("tn5250jsettings.cfg"); settings.load(in); } catch (FileNotFoundException fnfe) { System.out.println(" Information Message: " + fnfe.getMessage() + "...
4,162
public void saveSettings() { try { FileOutputStream out = new FileOutputStream("tn5250jsettings.cfg"); settings.store(out,"----------------- tn5250j Global Settings --------------"); } catch (FileNotFoundException fnfe) {} catch (IOException ioe) {} }
public void saveSettings() { try { FileOutputStream out = new FileOutputStream("tn5250jsettings.cfg"); settings.store(out,"----------------- tn5250j Global Settings --------------"); } catch (FileNotFoundException fnfe) {} catch (IOException ioe) {} }
4,163
private String settingsDirectory() { //System.out.println(settings.getProperty("emulator.settingsDirectory")); return settings.getProperty("emulator.settingsDirectory"); }
private String settingsDirectory() { //System.out.println(settings.getProperty("emulator.settingsDirectory")); return settings.getProperty("emulator.settingsDirectory"); }
4,164
public void drawString(String text, int x, int y) { System.out.println("drawText():" + text); if(this.font != null) ((JNodeToolkit)Toolkit.getDefaultToolkit()).getFontManager().drawText(this,text,font,x,y); }
public void drawString(String text, int x, int y) { System.out.println("drawText():" + text); if(this.font != null) ((JNodeToolkit)Toolkit.getDefaultToolkit()).getFontManager().drawText(this,text,font,x,y); }
4,165
public cObject get(byte[] key) { synchronized (objects) { return (cObject) objects.get(key); } }
public cObject get(byte[] key) { synchronized (objects) { return (cObject) objects.get(key); } } }
4,166
public cObject get(byte[] key) { synchronized (objects) { return (cObject) objects.get(key); } }
public cObject get(byte[] key) { synchronized (objects) { return (cObject) objects.get(key); }
4,167
public cObject getKey(org.omg.CORBA.Object stored_object) { synchronized (objects) { Map.Entry item; Iterator iter = objects.entrySet().iterator(); cObject ref; while (iter.hasNext()) { item = (Map.Entry) iter.next(); ref = (cObject) item.getValue(); if (stored_objec...
public cObject getKey(org.omg.CORBA.Object stored_object) { synchronized (objects) { Map.Entry item; Iterator iter = objects.entrySet().iterator(); cObject ref; while (iter.hasNext()) { item = (Map.Entry) iter.next(); ref = (cObject) item.getValue(); if (stored_objec...
4,168
public cObject getKey(org.omg.CORBA.Object stored_object) { synchronized (objects) { Map.Entry item; Iterator iter = objects.entrySet().iterator(); cObject ref; while (iter.hasNext()) { item = (Map.Entry) iter.next(); ref = (cObject) item.getValue(); if (stored_objec...
public cObject getKey(org.omg.CORBA.Object stored_object) { synchronized (objects) { Map.Entry item; Iterator iter = objects.entrySet().iterator(); cObject ref; while (iter.hasNext()) { item = (Map.Entry) iter.next(); ref = (cObject) item.getValue(); if (stored_objec...
4,169
public cObject getKey(org.omg.CORBA.Object stored_object) { synchronized (objects) { Map.Entry item; Iterator iter = objects.entrySet().iterator(); cObject ref; while (iter.hasNext()) { item = (Map.Entry) iter.next(); ref = (cObject) item.getValue(); if (stored_objec...
public cObject getKey(org.omg.CORBA.Object stored_object) { synchronized (objects) { Map.Entry item; Iterator iter = objects.entrySet().iterator(); cObject ref; while (iter.hasNext()) { item = (Map.Entry) iter.next(); ref = (cObject) item.getValue(); if (stored_objec...
4,170
public void remove(org.omg.CORBA.Object object) { synchronized (objects) { cObject ref = getKey(object); if (ref != null) objects.remove(ref.key); } }
public void remove(org.omg.CORBA.Object object) { synchronized (objects) { cObject ref = getKey(object); if (ref != null) objects.remove(ref.key); } }
4,171
public void remove(org.omg.CORBA.Object object) { synchronized (objects) { cObject ref = getKey(object); if (ref != null) objects.remove(ref.key); } }
public void remove(org.omg.CORBA.Object object) { synchronized (objects) { cObject ref = getKey(object); if (ref != null) objects.remove(ref.key); }
4,172
public static Constant getInstance(Object value) { return new ReferenceConstant(value); }
public static Constant getInstance(Object value) { return new ReferenceConstant(value); }
4,173
public boolean containsKey(Integer key) { boolean result = super.containsKey(key); if(result) Ext2Debugger.debug("CACHE HIT, size:"+size(),4); else Ext2Debugger.debug("CACHE MISS",4); return result; }
public boolean containsKey(Integer key) { boolean result = super.containsKey(key); if(result) Ext2Debugger.debug("CACHE HIT, size:"+size(),4); else Ext2Debugger.debug("CACHE MISS",4); return result; }
4,174
public boolean containsKey(Integer key) { boolean result = super.containsKey(key); if(result) Ext2Debugger.debug("CACHE HIT, size:"+size(),4); else Ext2Debugger.debug("CACHE MISS",4); return result; }
public boolean containsKey(Integer key) { boolean result = super.containsKey(key); if(result) Ext2Debugger.debug("CACHE HIT, size:"+size(),4); else Ext2Debugger.debug("CACHE MISS",4); return result; }
4,175
public boolean getDragEnabled() throws NotImplementedException { // FIXME: Implement return false; }
public boolean getDragEnabled() { // FIXME: Implement return false; }
4,176
public boolean getDragEnabled() throws NotImplementedException { // FIXME: Implement return false; }
public boolean getDragEnabled() throws NotImplementedException { // FIXME: Implement return dragEnabled; }
4,177
protected String paramString() { return "JFileChooser"; }
protected String paramString() { StringBuffer sb = new StringBuffer(super.paramString()); sb.append(",approveButtonText="); if (approveButtonText != null) sb.append(approveButtonText); sb.append(",currentDirectory="); if (currentDir != null) sb.append(currentDir); sb.append(",dialogTitle="); if (dialogTitle != nu...
4,178
public void setDragEnabled(boolean b) throws NotImplementedException { // FIXME: Implement }
public void setDragEnabled(boolean b) { // FIXME: Implement }
4,179
public void setDragEnabled(boolean b) throws NotImplementedException { // FIXME: Implement }
if (b && GraphicsEnvironment.isHeadless()) throw new HeadlessException(); dragEnabled = b; if (b && GraphicsEnvironment.isHeadless()) throw new HeadlessException(); dragEnabled = b; publicif (b && GraphicsEnvironment.isHeadless()) throw new HeadlessException(); dragEnabled = b; voidif (b && GraphicsEnvironment.isHea...
4,180
public void addActionListener(ActionListener l) { // FIXME: Need to implement }
editor.addActionListener(l); editor.addActionListener(l); publiceditor.addActionListener(l); voideditor.addActionListener(l); addActionListener(ActionListenereditor.addActionListener(l); l)editor.addActionListener(l); editor.addActionListener(l); {editor.addActionListener(l); editor.addActionListener(l); editor.addActi...
4,181
public void removeActionListener(ActionListener l) { // FIXME: Need to implement }
editor.removeActionListener(l); editor.removeActionListener(l); publiceditor.removeActionListener(l); voideditor.removeActionListener(l); removeActionListener(ActionListenereditor.removeActionListener(l); l)editor.removeActionListener(l); editor.removeActionListener(l); {editor.removeActionListener(l); editor.removeAct...
4,182
public ICC_ColorSpace(ICC_Profile profile) { super(CS_sRGB, profile.getNumComponents()); thisProfile = profile; }
public ICC_ColorSpace(ICC_Profile profile) { super(profile.getColorSpaceType(), profile.getNumComponents()); converter = getConverter(profile); thisProfile = profile; }
4,183
public float[] fromCIEXYZ(float[] colorvalue) { // FIXME: Not implemented throw new UnsupportedOperationException(); }
public float[] fromCIEXYZ(float[] colorvalue) { // FIXME: Not implemented return converter.fromCIEXYZ(colorvalue); }
4,185
public float[] fromRGB(float[] rgbvalue) { if (rgbvalue.length < 3) throw new IllegalArgumentException (); // FIXME: Always assumes sRGB: return rgbvalue; }
public float[] fromRGB(float[] rgbvalue) { if (rgbvalue.length < 3) throw new IllegalArgumentException (); // FIXME: Always assumes sRGB: return rgbvalue; }
4,186
public float getMaxValue(int idx) { if (type == TYPE_XYZ && idx >= 0 && idx <= 2) return 1 + 32767 / 32768f; else if (type == TYPE_Lab) { if (idx == 0) return 100; if (idx == 1 || idx == 2) return 127; } if (idx < 0 || idx >= numComponents) throw new Illeg...
public float getMaxValue(int idx) { if (type == ColorSpace.TYPE_XYZ && idx >= 0 && idx <= 2) return 1 + 32767 / 32768f; else if (type == TYPE_Lab) { if (idx == 0) return 100; if (idx == 1 || idx == 2) return 127; } if (idx < 0 || idx >= numComponents) thro...
4,187
public float getMaxValue(int idx) { if (type == TYPE_XYZ && idx >= 0 && idx <= 2) return 1 + 32767 / 32768f; else if (type == TYPE_Lab) { if (idx == 0) return 100; if (idx == 1 || idx == 2) return 127; } if (idx < 0 || idx >= numComponents) throw new Illeg...
public float getMaxValue(int idx) { if (type == TYPE_XYZ && idx >= 0 && idx <= 2) return 1 + 32767 / 32768f; else if (type == ColorSpace.TYPE_Lab) { if (idx == 0) return 100; if (idx == 1 || idx == 2) return 127; } if (idx < 0 || idx >= numComponents) thro...
4,188
public float getMaxValue(int idx) { if (type == TYPE_XYZ && idx >= 0 && idx <= 2) return 1 + 32767 / 32768f; else if (type == TYPE_Lab) { if (idx == 0) return 100; if (idx == 1 || idx == 2) return 127; } if (idx < 0 || idx >= numComponents) throw new Illeg...
public float getMaxValue(int idx) { if (type == TYPE_XYZ && idx >= 0 && idx <= 2) return 1 + 32767 / 32768f; else if (type == TYPE_Lab) { if (idx == 0) return 100; if (idx == 1 || idx == 2) return 127; } if (idx < 0 || idx >= nComponents) throw new Illegal...
4,189
public float getMinValue(int idx) { if (type == TYPE_Lab && (idx == 1 || idx == 2)) return -128; if (idx < 0 || idx >= numComponents) throw new IllegalArgumentException(); return 0; }
public float getMinValue(int idx) { if (type == TYPE_Lab && (idx == 1 || idx == 2)) return -128; if (idx < 0 || idx >= numComponents) throw new IllegalArgumentException(); return 0; }
4,190
public float[] toCIEXYZ(float[] colorvalue) { // FIXME: Not implemented throw new UnsupportedOperationException(); }
public float[] toCIEXYZ(float[] colorvalue) { // FIXME: Not implemented return converter.toCIEXYZ(colorvalue); }
4,191
public float[] toRGB(float[] colorvalue) { if (colorvalue.length < numComponents) throw new IllegalArgumentException (); // FIXME: Always assumes sRGB: return colorvalue; }
public float[] toRGB(float[] colorvalue) { if (colorvalue.length < numComponents) throw new IllegalArgumentException (); // FIXME: Always assumes sRGB: return colorvalue; }
4,192
public int getColorSpaceType() { throw new Error("not implemented"); }
public int getColorSpaceType() { return header.getColorSpace(); }
4,193
public int getNumComponents() { switch (profileID) { case ColorSpace.CS_sRGB: case ColorSpace.CS_LINEAR_RGB: case ColorSpace.CS_CIEXYZ: return 3; case ColorSpace.CS_GRAY: return 1; case ColorSpace.CS_PYCC: // have no clue about this one default: throw new UnsupportedOperationExc...
public int getNumComponents() { switch (profileID) { case ColorSpace.CS_sRGB: case ColorSpace.CS_LINEAR_RGB: case ColorSpace.CS_CIEXYZ: return 3; case ColorSpace.CS_GRAY: return 1; case ColorSpace.CS_PYCC: // have no clue about this one default: throw new UnsupportedOperationExc...
4,194
public ArrayIndexOutOfBoundsException(String s) { super(s); }
public ArrayIndexOutOfBoundsException() { super(s); }
4,195
public ArrayIndexOutOfBoundsException(String s) { super(s); }
public ArrayIndexOutOfBoundsException(String s) { super(s); }
4,196
public DefaultFocusManager() { // TODO } // DefaultFocusManager()
public DefaultFocusManager() { // TODO } // DefaultFocusManager()
4,197