bugged stringlengths 6 599k | fixed stringlengths 6 40.8M | __index_level_0__ int64 0 3.24M |
|---|---|---|
public TreeExpansionEvent(Object source, TreePath path) { super(source); this.path = path; } // TreeExpansionEvent() | public TreeExpansionEvent(Object source, TreePath path) { super(source); this.path = path; } // TreeExpansionEvent() | 1,800 |
protected URLConnection(URL url) { // Set up all our instance variables this.url = url; allowUserInteraction = def_allow_user_inter; useCaches = def_use_caches; req_props = new Hashtable(def_req_props); } | protected URLConnection(URL url) { // Set up all our instance variables this.url = url; allowUserInteraction = def_allow_user_inter; useCaches = def_use_caches; req_props = new Hashtable(def_req_props); } | 1,819 |
public boolean getAllowUserInteraction() { return (allowUserInteraction); } | public boolean getAllowUserInteraction() { return (allowUserInteraction); } | 1,820 |
public Object getContent() throws IOException { // connect(); String type = getContentType(); // First try the factory ContentHandler ch = null; if (factory != null) ch = factory.createContentHandler(type); if (ch != null) return (ch.getContent(this)); // Then try our default class try { Class cls = Cla... | public Object getContent() throws IOException { // connect(); String type = getContentType(); // First try the factory ContentHandler ch = null; if (factory != null) ch = factory.createContentHandler(type); if (ch != null) return (ch.getContent(this)); // Then try our default class try { Class cls = Cla... | 1,821 |
public Object getContent() throws IOException { // connect(); String type = getContentType(); // First try the factory ContentHandler ch = null; if (factory != null) ch = factory.createContentHandler(type); if (ch != null) return (ch.getContent(this)); // Then try our default class try { Class cls = Cla... | public Object getContent() throws IOException { // connect(); String type = getContentType(); // First try the factory ContentHandler ch = null; if (factory != null) ch = factory.createContentHandler(type); if (ch != null) return (ch.getContent(this)); // Then try our default class try { Class cls = Cla... | 1,822 |
public Object getContent() throws IOException { // connect(); String type = getContentType(); // First try the factory ContentHandler ch = null; if (factory != null) ch = factory.createContentHandler(type); if (ch != null) return (ch.getContent(this)); // Then try our default class try { Class cls = Cla... | public Object getContent() throws IOException { // connect(); String type = getContentType(); // First try the factory ContentHandler ch = null; if (factory != null) ch = factory.createContentHandler(type); if (ch != null) return (ch.getContent(this)); // Then try our default class try { Class cls = Cla... | 1,823 |
public Object getContent() throws IOException { // connect(); String type = getContentType(); // First try the factory ContentHandler ch = null; if (factory != null) ch = factory.createContentHandler(type); if (ch != null) return (ch.getContent(this)); // Then try our default class try { Class cls = Cla... | public Object getContent() throws IOException { // connect(); String type = getContentType(); // First try the factory ContentHandler ch = null; if (factory != null) ch = factory.createContentHandler(type); if (ch != null) return (ch.getContent(this)); // Then try our default class try { Class cls = Cla... | 1,824 |
public String getContentEncoding() { return (getHeaderField("content-encoding")); } | public String getContentEncoding() { return (getHeaderField("content-encoding")); } | 1,825 |
public int getContentLength() { return (getHeaderFieldInt("content-length", -1)); } | public int getContentLength() { return (getHeaderFieldInt("content-length", -1)); } | 1,826 |
public String getContentType() { String type = getHeaderField("content-type"); if (type == null) type = guessContentTypeFromName(getURL().getFile()); return (type); } | public String getContentType() { String type = getHeaderField("content-type"); if (type == null) type = guessContentTypeFromName(getURL().getFile()); return (type); } | 1,827 |
public long getDate() { return (getHeaderFieldDate("date", 0)); } | public long getDate() { return (getHeaderFieldDate("date", 0)); } | 1,828 |
public static boolean getDefaultAllowUserInteraction() { return (def_allow_user_inter); } | public static boolean getDefaultAllowUserInteraction() { return (def_allow_user_inter); } | 1,829 |
public static String getDefaultRequestProperty(String key) { return ((String) def_req_props.get(key.toLowerCase())); } | public static String getDefaultRequestProperty(String key) { return ((String) def_req_props.get(key.toLowerCase())); } | 1,830 |
public boolean getDefaultUseCaches() { return (def_use_caches); } | public boolean getDefaultUseCaches() { return (def_use_caches); } | 1,831 |
public boolean getDoInput() { return (doInput); } | public boolean getDoInput() { return (doInput); } | 1,832 |
public boolean getDoOutput() { return (doOutput); } | public boolean getDoOutput() { return (doOutput); } | 1,833 |
public long getExpiration() { return (getHeaderFieldDate("expires", 0)); } | public long getExpiration() { return (getHeaderFieldDate("expires", 0)); } | 1,834 |
public static FileNameMap getFileNameMap() { return (fileNameMap); } | public static FileNameMap getFileNameMap() { return (fileNameMap); } | 1,835 |
public String getHeaderField(String name) { for (int i = 0;; i++) { String key = getHeaderFieldKey(i); if (key == null) return (null); if (key.toLowerCase().equals(name.toLowerCase())) return (getHeaderField(i)); } } | public String getHeaderField(String name) { for (int i = 0;; i++) { String key = getHeaderFieldKey(i); if (key == null) return (null); if (key.toLowerCase().equals(name.toLowerCase())) return (getHeaderField(i)); } } | 1,836 |
public long getHeaderFieldDate(String key, long def) { String value = getHeaderField(key); if (value == null) return (def); // This needs to change since Date(String) is deprecated, but DateFormat // doesn't seem to be working for some reason //DateFormat df = DateFormat.getDateInstance(DateFormat.FULL, Locale.... | public long getHeaderFieldDate(String key, long def) { String value = getHeaderField(key); if (value == null) return (def); // This needs to change since Date(String) is deprecated, but DateFormat // doesn't seem to be working for some reason //DateFormat df = DateFormat.getDateInstance(DateFormat.FULL, Locale.... | 1,837 |
public long getHeaderFieldDate(String key, long def) { String value = getHeaderField(key); if (value == null) return (def); // This needs to change since Date(String) is deprecated, but DateFormat // doesn't seem to be working for some reason //DateFormat df = DateFormat.getDateInstance(DateFormat.FULL, Locale.... | public long getHeaderFieldDate(String key, long def) { String value = getHeaderField(key); if (value == null) return (def); // This needs to change since Date(String) is deprecated, but DateFormat // doesn't seem to be working for some reason //DateFormat df = DateFormat.getDateInstance(DateFormat.FULL, Locale.... | 1,838 |
public long getHeaderFieldDate(String key, long def) { String value = getHeaderField(key); if (value == null) return (def); // This needs to change since Date(String) is deprecated, but DateFormat // doesn't seem to be working for some reason //DateFormat df = DateFormat.getDateInstance(DateFormat.FULL, Locale.... | public long getHeaderFieldDate(String key, long def) { String value = getHeaderField(key); if (value == null) return (def); // This needs to change since Date(String) is deprecated, but DateFormat // doesn't seem to be working for some reason //DateFormat df = DateFormat.getDateInstance(DateFormat.FULL, Locale.... | 1,839 |
public long getHeaderFieldDate(String key, long def) { String value = getHeaderField(key); if (value == null) return (def); // This needs to change since Date(String) is deprecated, but DateFormat // doesn't seem to be working for some reason //DateFormat df = DateFormat.getDateInstance(DateFormat.FULL, Locale.... | public long getHeaderFieldDate(String key, long def) { String value = getHeaderField(key); if (value == null) return (def); // This needs to change since Date(String) is deprecated, but DateFormat // doesn't seem to be working for some reason //DateFormat df = DateFormat.getDateInstance(DateFormat.FULL, Locale.... | 1,840 |
public long getHeaderFieldDate(String key, long def) { String value = getHeaderField(key); if (value == null) return (def); // This needs to change since Date(String) is deprecated, but DateFormat // doesn't seem to be working for some reason //DateFormat df = DateFormat.getDateInstance(DateFormat.FULL, Locale.... | public long getHeaderFieldDate(String key, long def) { String value = getHeaderField(key); if (value == null) return (def); // This needs to change since Date(String) is deprecated, but DateFormat // doesn't seem to be working for some reason //DateFormat df = DateFormat.getDateInstance(DateFormat.FULL, Locale.... | 1,841 |
public int getHeaderFieldInt(String key, int def) { String value = getHeaderField(key); if (value == null) return (def); int retval = def; try { retval = Integer.parseInt(value); } catch (NumberFormatException e) { return (def); } return (retval); } | public int getHeaderFieldInt(String key, int def) { String value = getHeaderField(key); if (value == null) return (def); int retval = def; try { retval = Integer.parseInt(value); } catch (NumberFormatException e) { return (def); } return (retval); } | 1,842 |
public int getHeaderFieldInt(String key, int def) { String value = getHeaderField(key); if (value == null) return (def); int retval = def; try { retval = Integer.parseInt(value); } catch (NumberFormatException e) { return (def); } return (retval); } | public int getHeaderFieldInt(String key, int def) { String value = getHeaderField(key); if (value == null) return (def); int retval = def; try { retval = Integer.parseInt(value); } catch (NumberFormatException e) { return (def); } return (retval); } | 1,843 |
public int getHeaderFieldInt(String key, int def) { String value = getHeaderField(key); if (value == null) return (def); int retval = def; try { retval = Integer.parseInt(value); } catch (NumberFormatException e) { return (def); } return (retval); } | public int getHeaderFieldInt(String key, int def) { String value = getHeaderField(key); if (value == null) return (def); int retval = def; try { retval = Integer.parseInt(value); } catch (NumberFormatException e) { return (def); } return (retval); } | 1,844 |
public String getHeaderFieldKey(int index) { return (null); } | public String getHeaderFieldKey(int index) { return (null); } | 1,845 |
public long getIfModifiedSince() { return (ifModifiedSince); } | public long getIfModifiedSince() { return (ifModifiedSince); } | 1,846 |
public InputStream getInputStream() throws IOException { return (null); } | public InputStream getInputStream() throws IOException { return (null); } | 1,847 |
public long getLastModified() { return (getHeaderFieldDate("last-modified", 0)); } | public long getLastModified() { return (getHeaderFieldDate("last-modified", 0)); } | 1,848 |
public OutputStream getOutputStream() throws IOException { return (null); } | public OutputStream getOutputStream() throws IOException { return (null); } | 1,849 |
public Permission getPermission() throws IOException { return (new java.security.AllPermission()); } | public Permission getPermission() throws IOException { return (new java.security.AllPermission()); } | 1,850 |
public Map getRequestProperties() { return Collections.unmodifiableMap(req_props); } | public Map getRequestProperties() { return Collections.unmodifiableMap(req_props); } | 1,851 |
public String getRequestProperty(String key) { return ((String) req_props.get(key.toLowerCase())); } | public String getRequestProperty(String key) { return ((String) req_props.get(key.toLowerCase())); } | 1,852 |
public URL getURL() { return (url); } | public URL getURL() { return (url); } | 1,853 |
public boolean getUseCaches() { return (useCaches); } | public boolean getUseCaches() { return (useCaches); } | 1,854 |
public static String guessContentTypeFromName(String filename) { return (fileNameMap.getContentTypeFor(filename.toLowerCase())); } | public static String guessContentTypeFromName(String filename) { return (fileNameMap.getContentTypeFor(filename.toLowerCase())); } | 1,855 |
public static String guessContentTypeFromStream(InputStream is) throws IOException { return ("application/octet-stream"); } | public static String guessContentTypeFromStream(InputStream is) throws IOException { return ("application/octet-stream"); } | 1,856 |
public void setAllowUserInteraction(boolean allow) { allowUserInteraction = allow; } | public void setAllowUserInteraction(boolean allow) { allowUserInteraction = allow; } | 1,857 |
public static synchronized void setContentHandlerFactory(ContentHandlerFactory fac) { if (factory != null) throw new Error("The ContentHandlerFactory is already set"); factory = fac; } | public static synchronized void setContentHandlerFactory(ContentHandlerFactory fac) { if (factory != null) throw new Error("The ContentHandlerFactory is already set"); factory = fac; } | 1,858 |
public static synchronized void setContentHandlerFactory(ContentHandlerFactory fac) { if (factory != null) throw new Error("The ContentHandlerFactory is already set"); factory = fac; } | public static synchronized void setContentHandlerFactory(ContentHandlerFactory fac) { if (factory != null) throw new Error("The ContentHandlerFactory is already set"); factory = fac; } | 1,859 |
public static synchronized void setDefaultAllowUserInteraction(boolean allow) { def_allow_user_inter = allow; } | public static synchronized void setDefaultAllowUserInteraction(boolean allow) { def_allow_user_inter = allow; } | 1,860 |
public static synchronized void setDefaultRequestProperty(String key, String value) { def_req_props.put(key.toLowerCase(), value); } | public static synchronized void setDefaultRequestProperty(String key, String value) { def_req_props.put(key.toLowerCase(), value); } | 1,861 |
public synchronized void setDefaultUseCaches(boolean use) { def_use_caches = use; } | public synchronized void setDefaultUseCaches(boolean use) { def_use_caches = use; } | 1,862 |
public void setDoInput(boolean input) { doInput = input; } | public void setDoInput(boolean input) { doInput = input; } | 1,863 |
public void setDoOutput(boolean output) { doOutput = output; } | public void setDoOutput(boolean output) { doOutput = output; } | 1,864 |
public static void setFileNameMap(FileNameMap fileNameMap) { URLConnection.fileNameMap = fileNameMap; } | public static void setFileNameMap(FileNameMap fileNameMap) { URLConnection.fileNameMap = fileNameMap; } | 1,865 |
public void setIfModifiedSince(long modified_since) { ifModifiedSince = modified_since; } | public void setIfModifiedSince(long modified_since) { ifModifiedSince = modified_since; } | 1,866 |
public void setRequestProperty(String key, String value) { req_props.put(key.toLowerCase(), value); } | public void setRequestProperty(String key, String value) { req_props.put(key.toLowerCase(), value); } | 1,867 |
public void setUseCaches(boolean use_caches) { useCaches = use_caches; } | public void setUseCaches(boolean use_caches) { useCaches = use_caches; } | 1,868 |
public String toString() { return (url.toString()); } | public String toString() { return (url.toString()); } | 1,869 |
public abstract Object getContent(URLConnection urlc) throws IOException; | public abstract Object getContent(URLConnection urlc) throws IOException; | 1,870 |
createContentHandler(String mime_type); | createContentHandler(String mime_type); | 1,871 |
public MimeTypeMapper() { } | public MimeTypeMapper() { } | 1,872 |
public Date parse (String dateStr, ParsePosition pos) { int fmt_index = 0; int fmt_max = pattern.length(); calendar.clear(); boolean saw_timezone = false; int quote_start = -1; boolean is2DigitYear = false; try { for (; fmt_index < fmt_max; ++fmt_index) { char ch = pattern.charAt(fm... | public Date parse (String dateStr, ParsePosition pos) { int fmt_index = 0; int fmt_max = pattern.length(); calendar.clear(); boolean saw_timezone = false; int quote_start = -1; boolean is2DigitYear = false; try { for (; fmt_index < fmt_max; ++fmt_index) { char ch = pattern.charAt(fm... | 1,873 |
public Date parse (String dateStr, ParsePosition pos) { int fmt_index = 0; int fmt_max = pattern.length(); calendar.clear(); boolean saw_timezone = false; int quote_start = -1; boolean is2DigitYear = false; try { for (; fmt_index < fmt_max; ++fmt_index) { char ch = pattern.charAt(fm... | public Date parse (String dateStr, ParsePosition pos) { int fmt_index = 0; int fmt_max = pattern.length(); calendar.clear(); boolean saw_timezone = false; int quote_start = -1; boolean is2DigitYear = false; try { for (; fmt_index < fmt_max; ++fmt_index) { char ch = pattern.charAt(fm... | 1,874 |
public Date parse (String dateStr, ParsePosition pos) { int fmt_index = 0; int fmt_max = pattern.length(); calendar.clear(); boolean saw_timezone = false; int quote_start = -1; boolean is2DigitYear = false; try { for (; fmt_index < fmt_max; ++fmt_index) { char ch = pattern.charAt(fm... | public Date parse (String dateStr, ParsePosition pos) { int fmt_index = 0; int fmt_max = pattern.length(); calendar.clear(); boolean saw_timezone = false; int quote_start = -1; boolean is2DigitYear = false; try { for (; fmt_index < fmt_max; ++fmt_index) { char ch = pattern.charAt(fm... | 1,875 |
public Date parse (String dateStr, ParsePosition pos) { int fmt_index = 0; int fmt_max = pattern.length(); calendar.clear(); boolean saw_timezone = false; int quote_start = -1; boolean is2DigitYear = false; try { for (; fmt_index < fmt_max; ++fmt_index) { char ch = pattern.charAt(fm... | public Date parse (String dateStr, ParsePosition pos) { int fmt_index = 0; int fmt_max = pattern.length(); calendar.clear(); boolean saw_timezone = false; int quote_start = -1; boolean is2DigitYear = false; try { for (; fmt_index < fmt_max; ++fmt_index) { char ch = pattern.charAt(fm... | 1,876 |
public Date parse (String dateStr, ParsePosition pos) { int fmt_index = 0; int fmt_max = pattern.length(); calendar.clear(); boolean saw_timezone = false; int quote_start = -1; boolean is2DigitYear = false; try { for (; fmt_index < fmt_max; ++fmt_index) { char ch = pattern.charAt(fm... | public Date parse (String dateStr, ParsePosition pos) { int fmt_index = 0; int fmt_max = pattern.length(); calendar.clear(); boolean saw_timezone = false; int quote_start = -1; boolean is2DigitYear = false; try { for (; fmt_index < fmt_max; ++fmt_index) { char ch = pattern.charAt(fm... | 1,877 |
public Date parse (String dateStr, ParsePosition pos) { int fmt_index = 0; int fmt_max = pattern.length(); calendar.clear(); boolean saw_timezone = false; int quote_start = -1; boolean is2DigitYear = false; try { for (; fmt_index < fmt_max; ++fmt_index) { char ch = pattern.charAt(fm... | public Date parse (String dateStr, ParsePosition pos) { int fmt_index = 0; int fmt_max = pattern.length(); calendar.clear(); boolean saw_timezone = false; int quote_start = -1; boolean is2DigitYear = false; try { for (; fmt_index < fmt_max; ++fmt_index) { char ch = pattern.charAt(fm... | 1,878 |
public Date parse (String dateStr, ParsePosition pos) { int fmt_index = 0; int fmt_max = pattern.length(); calendar.clear(); boolean saw_timezone = false; int quote_start = -1; boolean is2DigitYear = false; try { for (; fmt_index < fmt_max; ++fmt_index) { char ch = pattern.charAt(fm... | public Date parse (String dateStr, ParsePosition pos) { int fmt_index = 0; int fmt_max = pattern.length(); calendar.clear(); boolean saw_timezone = false; int quote_start = -1; boolean is2DigitYear = false; try { for (; fmt_index < fmt_max; ++fmt_index) { char ch = pattern.charAt(fm... | 1,879 |
public Date parse (String dateStr, ParsePosition pos) { int fmt_index = 0; int fmt_max = pattern.length(); calendar.clear(); boolean saw_timezone = false; int quote_start = -1; boolean is2DigitYear = false; try { for (; fmt_index < fmt_max; ++fmt_index) { char ch = pattern.charAt(fm... | public Date parse (String dateStr, ParsePosition pos) { int fmt_index = 0; int fmt_max = pattern.length(); calendar.clear(); boolean saw_timezone = false; int quote_start = -1; boolean is2DigitYear = false; try { for (; fmt_index < fmt_max; ++fmt_index) { char ch = pattern.charAt(fm... | 1,880 |
public Date parse (String dateStr, ParsePosition pos) { int fmt_index = 0; int fmt_max = pattern.length(); calendar.clear(); boolean saw_timezone = false; int quote_start = -1; boolean is2DigitYear = false; try { for (; fmt_index < fmt_max; ++fmt_index) { char ch = pattern.charAt(fm... | public Date parse (String dateStr, ParsePosition pos) { int fmt_index = 0; int fmt_max = pattern.length(); calendar.clear(); boolean saw_timezone = false; int quote_start = -1; boolean is2DigitYear = false; try { for (; fmt_index < fmt_max; ++fmt_index) { char ch = pattern.charAt(fm... | 1,881 |
public Date parse (String dateStr, ParsePosition pos) { int fmt_index = 0; int fmt_max = pattern.length(); calendar.clear(); boolean saw_timezone = false; int quote_start = -1; boolean is2DigitYear = false; try { for (; fmt_index < fmt_max; ++fmt_index) { char ch = pattern.charAt(fm... | public Date parse (String dateStr, ParsePosition pos) { int fmt_index = 0; int fmt_max = pattern.length(); calendar.clear(); boolean saw_timezone = false; int quote_start = -1; boolean is2DigitYear = false; try { for (; fmt_index < fmt_max; ++fmt_index) { char ch = pattern.charAt(fm... | 1,882 |
public Date parse (String dateStr, ParsePosition pos) { int fmt_index = 0; int fmt_max = pattern.length(); calendar.clear(); boolean saw_timezone = false; int quote_start = -1; boolean is2DigitYear = false; try { for (; fmt_index < fmt_max; ++fmt_index) { char ch = pattern.charAt(fm... | public Date parse (String dateStr, ParsePosition pos) { int fmt_index = 0; int fmt_max = pattern.length(); calendar.clear(); boolean saw_timezone = false; int quote_start = -1; boolean is2DigitYear = false; try { for (; fmt_index < fmt_max; ++fmt_index) { char ch = pattern.charAt(fm... | 1,883 |
public Date parse (String dateStr, ParsePosition pos) { int fmt_index = 0; int fmt_max = pattern.length(); calendar.clear(); boolean saw_timezone = false; int quote_start = -1; boolean is2DigitYear = false; try { for (; fmt_index < fmt_max; ++fmt_index) { char ch = pattern.charAt(fm... | public Date parse (String dateStr, ParsePosition pos) { int fmt_index = 0; int fmt_max = pattern.length(); calendar.clear(); boolean saw_timezone = false; int quote_start = -1; boolean is2DigitYear = false; try { for (; fmt_index < fmt_max; ++fmt_index) { char ch = pattern.charAt(fm... | 1,884 |
getContentTypeFor(String filename); | getContentTypeFor(String filename); | 1,885 |
public SimpleDateFormat(String pattern, Locale locale) { super(); calendar = new GregorianCalendar(locale); computeCenturyStart(); tokens = new ArrayList(); formatData = new DateFormatSymbols(locale); compileFormat(pattern); this.pattern = pattern; numberFormat = NumberFormat.getInstance(loc... | public SimpleDateFormat() { super(); calendar = new GregorianCalendar(locale); computeCenturyStart(); tokens = new ArrayList(); formatData = new DateFormatSymbols(locale); compileFormat(pattern); this.pattern = pattern; numberFormat = NumberFormat.getInstance(locale); numberFormat.setGrou... | 1,886 |
public SimpleDateFormat(String pattern, Locale locale) { super(); calendar = new GregorianCalendar(locale); computeCenturyStart(); tokens = new ArrayList(); formatData = new DateFormatSymbols(locale); compileFormat(pattern); this.pattern = pattern; numberFormat = NumberFormat.getInstance(loc... | public SimpleDateFormat(String pattern, Locale locale) { super(); calendar = new GregorianCalendar(locale); computeCenturyStart(); tokens = new ArrayList(); formatData = new DateFormatSymbols(locale); compileFormat(pattern); numberFormat = NumberFormat.getInstance(locale); numberFormat.se... | 1,887 |
protected SystemException(String a_reason, int a_minor, CompletionStatus a_completed ) { super(a_reason); minor = a_minor; completed = a_completed; } | protected SystemException(String a_reason, int a_minor, CompletionStatus a_completed ) { super(a_reason); minor = a_minor; completed = a_completed; } | 1,888 |
protected SystemException(String a_reason, int a_minor, CompletionStatus a_completed ) { super(a_reason); minor = a_minor; completed = a_completed; } | protected SystemException(String a_reason, int a_minor, CompletionStatus a_completed ) { super(a_reason + " Minor: " + Integer.toHexString(a_minor) + " (" + (a_minor & 0xFFF) + "). Completed: "+a_completed); minor = a_minor; completed = a_completed; } | 1,889 |
public DDC1ParseException(String s) { super(s); } | public DDC1ParseException(String s) { super(s); } | 1,890 |
private void jbInit() throws Exception { this.setTitle(LangTool.getString("spool.title")); this.setIconImage(My5250.tnicon.getImage()); this.getContentPane().add(createFilterPanel(), BorderLayout.NORTH); // get an instance of our table model stm = new SpoolTableModel(); // create a tabl... | private void jbInit() throws Exception { this.setTitle(LangTool.getString("spool.title")); this.setIconImage(My5250.tnicon.getImage()); this.getContentPane().add(createFilterPanel(), BorderLayout.NORTH); // get an instance of our table model stm = new SpoolTableModel(); // create a tabl... | 1,891 |
private void jbInit() throws Exception { this.setTitle(LangTool.getString("spool.title")); this.setIconImage(My5250.tnicon.getImage()); this.getContentPane().add(createFilterPanel(), BorderLayout.NORTH); // get an instance of our table model stm = new SpoolTableModel(); // create a tabl... | private void jbInit() throws Exception { this.setTitle(LangTool.getString("spool.title")); this.setIconImage(My5250.tnicon.getImage()); this.getContentPane().add(createFilterPanel(), BorderLayout.NORTH); // get an instance of our table model stm = new SpoolTableModel(); // create a tabl... | 1,892 |
public void mousePressed (MouseEvent event) { if (SwingUtilities.isRightMouseButton(event)) showPopupMenu(event); } | public void mousePressed (MouseEvent event) { if (event.isPopupTrigger ()) showPopupMenu(event); } | 1,893 |
public void mouseReleased (MouseEvent event) { if (SwingUtilities.isRightMouseButton(event)) showPopupMenu(event); } | public void mouseReleased (MouseEvent event) { if (event.isPopupTrigger ()) showPopupMenu(event); } | 1,894 |
getIconImage(){ return(icon);} | getIconImage(){ return(icon);} | 1,895 |
public void setPreferredWidth(int preferredWidth) { if (preferredWidth < minWidth) this.preferredWidth = minWidth; else if (preferredWidth > maxWidth) this.preferredWidth = maxWidth; else this.preferredWidth = preferredWidth; } | public void setPreferredWidth(int preferredWidth) { if (preferredWidth < minWidth) this.preferredWidth = minWidth; else if (preferredWidth > maxWidth) this.preferredWidth = maxWidth; else this.preferredWidth = preferredWidth; } | 1,896 |
public void setPreferredWidth(int preferredWidth) { if (preferredWidth < minWidth) this.preferredWidth = minWidth; else if (preferredWidth > maxWidth) this.preferredWidth = maxWidth; else this.preferredWidth = preferredWidth; } | public void setPreferredWidth(int preferredWidth) { if (preferredWidth < minWidth) this.preferredWidth = minWidth; else if (preferredWidth > maxWidth) this.preferredWidth = maxWidth; else this.preferredWidth = preferredWidth; } | 1,897 |
public void setPreferredWidth(int preferredWidth) { if (preferredWidth < minWidth) this.preferredWidth = minWidth; else if (preferredWidth > maxWidth) this.preferredWidth = maxWidth; else this.preferredWidth = preferredWidth; } | public void setPreferredWidth(int preferredWidth) { if (preferredWidth < minWidth) this.preferredWidth = minWidth; else if (preferredWidth > maxWidth) this.preferredWidth = maxWidth; else this.preferredWidth = preferredWidth; firePropertyChange("preferredWidth", oldPrefWidth, this.preferredWidth); } | 1,898 |
public static Frame getFrameForComponent(Component parentComponent) { return (Frame) SwingUtilities.getAncestorOfClass(Frame.class, parentComponent); } | public static Frame getFrameForComponent(Component parentComponent) { return (Frame) SwingUtilities.getAncestorOfClass(Frame.class, parentComponent); } | 1,899 |
public void setLocationRelativeTo(Component c) { int x = 0; int y = 0; if (c == null || !c.isShowing()) { GraphicsEnvironment ge = GraphicsEnvironment.getLocalGraphicsEnvironment(); Point center = ge.getCenterPoint(); x = center.x - (width / 2); y = center.y - (h... | public void setLocationRelativeTo(Component c) { int x = 0; int y = 0; if (c == null || !c.isShowing()) { GraphicsEnvironment ge = GraphicsEnvironment.getLocalGraphicsEnvironment(); Point center = ge.getCenterPoint(); x = center.x - (width / 2); y = center.y - (h... | 1,900 |
public void setLocationRelativeTo(Component c) { int x = 0; int y = 0; if (c == null || !c.isShowing()) { GraphicsEnvironment ge = GraphicsEnvironment.getLocalGraphicsEnvironment(); Point center = ge.getCenterPoint(); x = center.x - (width / 2); y = center.y - (h... | public void setLocationRelativeTo(Component c) { int x = 0; int y = 0; if (c == null || !c.isShowing()) { GraphicsEnvironment ge = GraphicsEnvironment.getLocalGraphicsEnvironment(); Point center = ge.getCenterPoint(); x = center.x - (width / 2); y = center.y - (h... | 1,901 |
public void setLocationRelativeTo(Component c) { int x = 0; int y = 0; if (c == null || !c.isShowing()) { GraphicsEnvironment ge = GraphicsEnvironment.getLocalGraphicsEnvironment(); Point center = ge.getCenterPoint(); x = center.x - (width / 2); y = center.y - (h... | public void setLocationRelativeTo(Component c) { int x = 0; int y = 0; if (c == null || !c.isShowing()) { GraphicsEnvironment ge = GraphicsEnvironment.getLocalGraphicsEnvironment(); Point center = ge.getCenterPoint(); x = center.x - (width / 2); y = center.y - (h... | 1,902 |
public void setOptions(Object[] newOptions) { if (options != newOptions) { Object[] old = options; options = newOptions; firePropertyChange(OPTIONS_PROPERTY, old, options); } } | public void setOptions(Object[] newOptions) { if (options != newOptions) { Object[] old = options; options = newOptions; firePropertyChange(OPTIONS_PROPERTY, old, options); } } | 1,903 |
public void setOptions(Object[] newOptions) { if (options != newOptions) { Object[] old = options; options = newOptions; firePropertyChange(OPTIONS_PROPERTY, old, options); } } | public void setOptions(Object[] newOptions) { if (options != newOptions) { Object[] old = options; options = newOptions; firePropertyChange(OPTIONS_PROPERTY, old, options); } } | 1,904 |
public TN5250jFileChooser(String dir) { super(dir); } | public TN5250jFileChooser(String dir) { super(dir); } | 1,905 |
public SMTPConfig(Frame frame, String title, boolean modal) { super(frame, title, modal); try { jbInit(); pack(); } catch(Exception ex) { ex.printStackTrace(); } } | public SMTPConfig(Frame frame, String title, boolean modal) { super(frame, title, modal); try { jbInit(); pack(); } catch(Exception ex) { ex.printStackTrace(); } } | 1,906 |
public boolean send() throws Exception, AddressException, MessagingException { try { if(!loadConfig(configFile)) return false; Session session = Session.getDefaultInstance(SMTPProperties, null); session.setDebug(false); // create the Multipart and its parts to it ... | public boolean send() throws Exception { try { if(!loadConfig(configFile)) return false; Session session = Session.getDefaultInstance(SMTPProperties, null); session.setDebug(false); // create the Multipart and its parts to it Multipart mp = new MimeMultipart();... | 1,907 |
public void removeAllItems() { if (dataModel instanceof DefaultComboBoxModel) { // Uses special method if we have a DefaultComboBoxModel. ((DefaultComboBoxModel) dataModel).removeAllElements(); } else if(dataModel instanceof MutableComboBoxModel){ // Iterates over all items and removes each. M... | public void removeAllItems() { if (dataModel instanceof DefaultComboBoxModel) // Uses special method if we have a DefaultComboBoxModel. ((DefaultComboBoxModel) dataModel).removeAllElements(); } else if(dataModel instanceof MutableComboBoxModel){ // Iterates over all items and removes each. Mut... | 1,909 |
public void removeAllItems() { if (dataModel instanceof DefaultComboBoxModel) { // Uses special method if we have a DefaultComboBoxModel. ((DefaultComboBoxModel) dataModel).removeAllElements(); } else if(dataModel instanceof MutableComboBoxModel){ // Iterates over all items and removes each. M... | public void removeAllItems() { if (dataModel instanceof DefaultComboBoxModel) { // Uses special method if we have a DefaultComboBoxModel. ((DefaultComboBoxModel) dataModel).removeAllElements(); else if (dataModel instanceof MutableComboBoxModel) { // Iterates over all items and removes each. M... | 1,910 |
public void removeAllItems() { if (dataModel instanceof DefaultComboBoxModel) { // Uses special method if we have a DefaultComboBoxModel. ((DefaultComboBoxModel) dataModel).removeAllElements(); } else if(dataModel instanceof MutableComboBoxModel){ // Iterates over all items and removes each. M... | public void removeAllItems() { if (dataModel instanceof DefaultComboBoxModel) { // Uses special method if we have a DefaultComboBoxModel. ((DefaultComboBoxModel) dataModel).removeAllElements(); } else if(dataModel instanceof MutableComboBoxModel){ // Iterates over all items and removes each. M... | 1,911 |
public void removeAllItems() { if (dataModel instanceof DefaultComboBoxModel) { // Uses special method if we have a DefaultComboBoxModel. ((DefaultComboBoxModel) dataModel).removeAllElements(); } else if(dataModel instanceof MutableComboBoxModel){ // Iterates over all items and removes each. M... | public void removeAllItems() { if (dataModel instanceof DefaultComboBoxModel) { // Uses special method if we have a DefaultComboBoxModel. ((DefaultComboBoxModel) dataModel).removeAllElements(); } else if(dataModel instanceof MutableComboBoxModel){ // Iterates over all items and removes each. M... | 1,912 |
public void setEditable(boolean editable) { if (isEditable != editable) { isEditable = editable; firePropertyChange("editable", ! isEditable, isEditable); } } | public void setEditable(boolean editable) { if (isEditable != editable) { isEditable = editable; firePropertyChange("editable", !isEditable, isEditable); } } | 1,913 |
public abstract void generateCodeFor(VarReturnQuad quad); | public abstract void generateCodeFor(VarReturnQuad quad); | 1,916 |
FileURLLoader(URLClassLoader classloader, URL url) { super(classloader, url); dir = new File(baseURL.getFile()); } | FileURLLoader(URLClassLoader classloader, URL url, URL absoluteUrl) { super(classloader, url); dir = new File(baseURL.getFile()); } | 1,917 |
FileURLLoader(URLClassLoader classloader, URL url) { super(classloader, url); dir = new File(baseURL.getFile()); } | FileURLLoader(URLClassLoader classloader, URL url) { super(classloader, url); dir = new File(baseURL.getFile()); } | 1,918 |
public JarURLLoader(URLClassLoader classloader, URL baseURL) { super(classloader, baseURL); // Cache url prefix for all resources in this jar url. String external = baseURL.toExternalForm(); StringBuffer sb = new StringBuffer(external.length() + 6); sb.append("jar:"); sb.append(exte... | public JarURLLoader(URLClassLoader classloader, URL baseURL, URL absoluteUrl) { super(classloader, baseURL); // Cache url prefix for all resources in this jar url. String external = baseURL.toExternalForm(); StringBuffer sb = new StringBuffer(external.length() + 6); sb.append("jar:"); ... | 1,919 |
public JarURLLoader(URLClassLoader classloader, URL baseURL) { super(classloader, baseURL); // Cache url prefix for all resources in this jar url. String external = baseURL.toExternalForm(); StringBuffer sb = new StringBuffer(external.length() + 6); sb.append("jar:"); sb.append(exte... | public JarURLLoader(URLClassLoader classloader, URL baseURL) { super(classloader, baseURL, absoluteUrl); // Cache url prefix for all resources in this jar url. String external = baseURL.toExternalForm(); StringBuffer sb = new StringBuffer(external.length() + 6); sb.append("jar:"); s... | 1,920 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.