comp.lang.java.programmer http://groups-beta.google.com/group/comp.lang.java.programmer [EMAIL PROTECTED]
Today's topics: * Object Serialization and Reading - 1 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/5e22559b0dad7a33 * Open a file in JApplet - 2 messages, 2 authors http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/6e1f0d8a39cf939a * how to disassembly a .jar file? how to see what are the classes inside the .jar file? - 4 messages, 4 authors http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/a31bfa08e211ea4f * SWT - 5 messages, 3 authors http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/e16efe31d3c6e2c5 * Java applets run locally now blocked by Windows XP SP2 - 2 messages, 2 authors http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/b4bb5fe98f62c07a * showDocument blocked by new microsoft pop-up blocker - 2 messages, 2 authors http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/d6a00b2c3f47822 * Strange StringIndexOutOfBoundsException - 2 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/fd07e0f1420fb8cd * waitFor returns 255 on HP Unix - 2 messages, 2 authors http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/22a9eff3b4c323d1 * What a mess: Date, milliseconds, GregorianCalendar - 1 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/559d9f1964889f34 * PCMCIA and COMM API - 1 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/d08b61cd45fd7071 * URLClassLoader slow in 1.4.2 - 1 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/447066d9ab919949 * warning ... no definition of serialVersionUID ? - 1 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/f6b4326f47ae57dc * java script help needed - 2 messages, 2 authors http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/198986c6717cf1c9 * How to do bitmap icon in front of menu-items in Java? what is the class for menu-item in Java? - 1 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/3ac74a360cb38fcd * JSP upload - 1 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/b256ab5784e1497f ========================================================================== TOPIC: Object Serialization and Reading http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/5e22559b0dad7a33 ========================================================================== == 1 of 1 == Date: Wed, Aug 25 2004 3:39 pm From: Sudsy <[EMAIL PROTECTED]> Rich Wahl wrote: <snip> > private JTextArea outputField; Here, it's an instance variable. <snip> > JTextArea outputField = new JTextArea(20, 55); Here, it's a method variable which "hides" the outer definition. <snip> Solution: change the second snippet to remove the type declaration, i.e.: outputField = new JTextArea( 20, 55 ); Don't worry, it will gel for you in time. ========================================================================== TOPIC: Open a file in JApplet http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/6e1f0d8a39cf939a ========================================================================== == 1 of 2 == Date: Wed, Aug 25 2004 3:46 pm From: [EMAIL PROTECTED] (Jenny) Hi, I tried to open a file and read it into an JApplet. It does not display the string in the file. Could tell me which part of code does not run and why? Could you tell me how to fix it? Thanks a lot. Here is the code: Java file 1: import java.awt.*; import javax.swing.*; import java.io.*; public class PieApplet extends JApplet { Color uneasyBeingGreen = new Color(0xCC, 0xCC, 0x99); Color zuzusPetals = new Color(0xCC, 0x66, 0xFF); Color zootSuit = new Color(0x66, 0x66, 0x99); Color sweetHomeAvocado = new Color(0x66, 0x99, 0x66); Color shrinkingViolet = new Color(0x66, 0x66, 0x99); Color miamiNice = new Color(0x33, 0xFF, 0xFF); Color inBetweenGreen = new Color(0x00, 0x99, 0x66); Color norwegianBlue = new Color(0x33, 0xCC, 0xCC); Color purpleRain = new Color(0x66, 0x33, 0x99); Color freckle = new Color (0x99, 0x66, 0x33); public void init() { Container pane = getContentPane(); PiePanel pie = new PiePanel(10); pie.addSlice(uneasyBeingGreen, 1284); pie.addSlice(zuzusPetals, 1046); pie.addSlice(zootSuit, 281); pie.addSlice(sweetHomeAvocado, 232); pie.addSlice(shrinkingViolet, 176); pie.addSlice(miamiNice, 148); pie.addSlice(inBetweenGreen, 143); pie.addSlice(norwegianBlue, 133); pie.addSlice(purpleRain,130); pie.addSlice(freckle, 127); pane.add(pie); setContentPane(pane); } } Java file 2: import java.awt.*; import javax.swing.*; import java.awt.geom.*; import java.io.*; public class PiePanel extends JPanel { private PieSlice[] slice; private int current = 0; private float totalSize = 0; private Color background; public PiePanel(int sliceCount) { slice = new PieSlice[sliceCount]; background = getBackground(); } public void addSlice(Color sColor, float sSize) { if (current <= slice.length) { slice[current] = new PieSlice(sColor, sSize); totalSize += sSize; current++; } } public void paintComponent(Graphics comp) { super.paintComponent(comp); Graphics2D comp2D = (Graphics2D) comp; int width = getSize().width - 10; int height = getSize().height - 15; int xInset = 5; int yInset = 5; if (width < 5) xInset = width; if (height < 5) yInset = height; comp2D.setColor(background); comp2D.fillRect(0, 0, getSize().width, getSize().height); comp2D.setColor(Color.lightGray); Ellipse2D.Float pie = new Ellipse2D.Float( xInset, yInset, width, height); comp2D.fill(pie); float start = 0; for (int i = 0; i < slice.length; i++) { float extent = slice[i].size * 360F / totalSize; comp2D.setColor(slice[i].color); Arc2D.Float drawSlice = new Arc2D.Float( xInset, yInset, width, height, start, extent, Arc2D.Float.PIE); start += extent; comp2D.fill(drawSlice); try { File f = new File("hello.txt"); FileInputStream file = new FileInputStream(f); byte[] b = new byte[20]; file.read(b); String s = new String(b); comp2D.drawString(s,20,20); file.close(); } catch (Exception e) { } } } } class PieSlice { Color color = Color.lightGray; float size = 0; PieSlice(Color pColor, float pSize) { color = pColor; size = pSize; } } HTML file: <applet code="PieApplet.class" width="300" height="200"> </applet> in hello.txt: Hello World. == 2 of 2 == Date: Wed, Aug 25 2004 4:23 pm From: Paul Lutus <[EMAIL PROTECTED]> Jenny wrote: > Hi, > > I tried to open a file and read it into an JApplet. It does not > display the string in the file. Could tell me which part of code does > not run and why? No, not really. What error messages does your JApplet generate? Do you have a shorter, more concise version of your program? -- Paul Lutus http://www.arachnoid.com ========================================================================== TOPIC: how to disassembly a .jar file? how to see what are the classes inside the .jar file? http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/a31bfa08e211ea4f ========================================================================== == 1 of 4 == Date: Wed, Aug 25 2004 4:02 pm From: "lucy" <[EMAIL PROTECTED]> Dear all Java gurus, Is there a way to disassembly a .jar file. How to see what are the classes inside the .jar file; what are the methods available, and the calling convention to those mothod functions? Is there such a debugger or disassembler in Java? thanks a lot == 2 of 4 == Date: Wed, Aug 25 2004 4:21 pm From: Carl <[EMAIL PROTECTED]> lucy wrote: > Dear all Java gurus, > > Is there a way to disassembly a .jar file. How to see what are the classes > inside the .jar file; what are the methods available, and the calling > convention to those mothod functions? > > Is there such a debugger or disassembler in Java? > > thanks a lot > > See http://java.sun.com/j2se/1.4.2/docs/tooldocs/tools.html Particularly the jar and javap tools. HTH, Carl. == 3 of 4 == Date: Wed, Aug 25 2004 4:19 pm From: Paul Lutus <[EMAIL PROTECTED]> lucy wrote: > Dear all Java gurus, > > Is there a way to disassembly a .jar file. How to see what are the classes > inside the .jar file; what are the methods available, and the calling > convention to those mothod functions? > > Is there such a debugger or disassembler in Java? > > thanks a lot List jar contents: jar -t filename.jar Extract a named file: jar -x filename.jar (name) Extract all: jar -x filename.jar -- Paul Lutus http://www.arachnoid.com == 4 of 4 == Date: Wed, Aug 25 2004 5:45 pm From: "Byron Lee" <[EMAIL PROTECTED]> In addition to using the jar commandline, if you're using an IDE (like Sun One Studio, etc.), you can mount the jar file and expand it in a tree structure to see all of it's classes, fields, method signatures, etc. visually. "lucy" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Dear all Java gurus, > > Is there a way to disassembly a .jar file. How to see what are the classes > inside the .jar file; what are the methods available, and the calling > convention to those mothod functions? > > Is there such a debugger or disassembler in Java? > > thanks a lot > > ========================================================================== TOPIC: SWT http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/e16efe31d3c6e2c5 ========================================================================== == 1 of 5 == Date: Wed, Aug 25 2004 4:19 pm From: "Lee" <[EMAIL PROTECTED]> What is SWT and is supported by Sun? I have an application RSSOwl which uses SWT and it runs much more smoothly than Swing. Has anyone used SWT? Is it worth using over Swing? == 2 of 5 == Date: Wed, Aug 25 2004 4:23 pm From: Carl <[EMAIL PROTECTED]> Lee wrote: > What is SWT and is supported by Sun? I have an application RSSOwl which uses > SWT and it runs much more smoothly than Swing. Has anyone used SWT? Is it > worth using over Swing? > > IMO, yes, yes, and sometimes. You might want to start here: http://www.eclipse.org/swt/ HTH, Carl. == 3 of 5 == Date: Wed, Aug 25 2004 4:44 pm From: Carl <[EMAIL PROTECTED]> Carl wrote: > Lee wrote: > >> What is SWT and is supported by Sun? I have an application RSSOwl >> which uses >> SWT and it runs much more smoothly than Swing. Has anyone used SWT? Is it >> worth using over Swing? >> >> > > IMO, yes, yes, and sometimes. > > You might want to start here: > > http://www.eclipse.org/swt/ > > HTH, > Carl. Ooops, that should read no, yes, and sometimes :) Carl. == 4 of 5 == Date: Wed, Aug 25 2004 5:53 pm From: "Hal Rosser" <[EMAIL PROTECTED]> I think what Carl was saying is: SWT is not Sun - endorsed Its an IBM thing - I think And the Eclipse IDE has a plug-in so you can use SWT SWT is not pure Java - but some folks use it for the reason you pointed out "Lee" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > What is SWT and is supported by Sun? I have an application RSSOwl which uses > SWT and it runs much more smoothly than Swing. Has anyone used SWT? Is it > worth using over Swing? > > --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.732 / Virus Database: 486 - Release Date: 7/29/2004 == 5 of 5 == Date: Wed, Aug 25 2004 6:06 pm From: Carl <[EMAIL PROTECTED]> Hal Rosser wrote: > I think what Carl was saying is: > SWT is not Sun - endorsed > Its an IBM thing - I think > And the Eclipse IDE has a plug-in so you can use SWT > SWT is not pure Java - but some folks use it for the reason you pointed out > Actually, its a Eclipse Foundation thing. The Eclipse IDE itself uses SWT. The link to the eclipse.org/swt page is a link to the eclipse.org swt project page and provides "Detailed information about developing applications with SWT..." This may have been more appropriate. http://dev.eclipse.org/viewcvs/index.cgi/%7Echeckout%7E/platform-swt-home/faq.html ========================================================================== TOPIC: Java applets run locally now blocked by Windows XP SP2 http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/b4bb5fe98f62c07a ========================================================================== == 1 of 2 == Date: Wed, Aug 25 2004 4:25 pm From: Paul Lutus <[EMAIL PROTECTED]> Mickey Segal wrote: > After installation of the Windows XP SP2 update, Java applets running > locally get blocked by Internet Explorer for Windows. / ... > Are there any good workarounds for this problem? Yep. Don't design your site with pop-ups. -- Paul Lutus http://www.arachnoid.com == 2 of 2 == Date: Wed, Aug 25 2004 5:43 pm From: "Mickey Segal" <[EMAIL PROTECTED]> "Paul Lutus" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Mickey Segal wrote: > >> After installation of the Windows XP SP2 update, Java applets running >> locally get blocked by Internet Explorer for Windows. > >> Are there any good workarounds for this problem? > > Yep. Don't design your site with pop-ups. This thread has nothing to do with the "showDocument blocked by new microsoft pop-up blocker" thread. The problem discussed in this thread occurs for a simple "Hello world" applet run locally (the same applet as at http://segal.org/java/Hello/ but run locally). (Incidentally pop-up Java Frames are not blocked by Microsoft's pop-up blocker; the problem in the other thread only affects showDocument). ========================================================================== TOPIC: showDocument blocked by new microsoft pop-up blocker http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/d6a00b2c3f47822 ========================================================================== == 1 of 2 == Date: Wed, Aug 25 2004 4:27 pm From: Paul Lutus <[EMAIL PROTECTED]> Mickey Segal wrote: > As expected, the new Microsoft pop-up blocker that comes with the Windows > XP > SP2 update blocks Java's showDocument method. This also happens with the > Google pop-up blocker (http://segal.org/java/pop_window/) but does not > occur with the Netscape or Apple Safari pop-up blockers. > > Is there any way to detect whether the Microsoft or Google pop-up blocker > is on so one could re-direct the user to a page describing how to turn the > pop-up blocker off for a particular Web site? No, but you could have a conspicuous Web page entry explaining the problem and offering a remedy, for those who want it. For this, you have to own the site and control its content. > This over-zealous blocking Really. If it was overzealous, people would turn it off. That word is redserved for those who create pop-ups, not the feature that prevents them from appearing. > is a real bother if you need to pop-up documentation windows from a Java > applet. Put the documentation in the applet, not over it. -- Paul Lutus http://www.arachnoid.com == 2 of 2 == Date: Wed, Aug 25 2004 5:36 pm From: "Mickey Segal" <[EMAIL PROTECTED]> "Paul Lutus" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > ... you could have a conspicuous Web page entry explaining the problem > and offering a remedy, for those who want it. For this, you have to own > the > site and control its content. This is what we've done, with a big red notice that comes on if the browser is Internet Explorer for Windows. If there were a good way for the Web page to determine whether the user had a popup blocker enabled we could make the notice more of a one-time in-your-face warning, but I am not aware of a way to do so. Suggestions are appreciated. > Really. If it was overzealous, people would turn it off. The Netscape pop-up blocker seems to do very well at blocking pop-ups and it doesn't block showDocument. ========================================================================== TOPIC: Strange StringIndexOutOfBoundsException http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/fd07e0f1420fb8cd ========================================================================== == 1 of 2 == Date: Wed, Aug 25 2004 4:38 pm From: Paul Lutus <[EMAIL PROTECTED]> Andrew Thompson wrote: > On Wed, 25 Aug 2004 11:40:14 -0700, Paul Lutus wrote: > >>> Also, it seems a better group for the moment might be.. >>> <http://www.physci.org/codes/javafaq.jsp#cljh> > ,, >> The site being promoted above as a "better group" is in fact not part of >> Usenet at all. > > The site listed above is my site, it merely contains > further information on the group I am 'promoting', > < comp.lang.java.help > > ..which BTW, is one that we both post to, (and > very much part of Usenet).. You very clearly describe your *Web* *site*, not comp.java.lang.help, as a *group*. See above and below. > >>..It may have better, more to-the-point content (as seems tto >> be so), But people should be aware that it also serves someone's >> commercial interest, which Usenet cannot do. > > I was not proposing the OP post messages to my site. > I neither run, nor am interested in running, forums, In that case, what does this mean: >> Also, it seems a better group for the moment might be.. >> <http://www.physci.org/codes/javafaq.jsp#cljh> >> [ the people ther are much nicer, trust me.. ;-) ] You describe it as a "group", and infer that it is a group like this one, but nicer. What conclusion is a newbie meant to draw?. The remedy is to describe your site as ... hmmm ... a Web site? Not a group, and without any inference of comparability to Usenet? > > Usenet is just fine, and I discourage people from posting > through 'web-based interfaces' to Usenet, as these sites > generally do not give posters adequate information of the > chaotic, 'rough and tumble' nature of Usenet (nor point > out that Usenet is not a help-desk) Then in the future, you won't want to be describing your site as a "group" and comparing your Web site to Usenet groups as though there is a functional basis for comparison. Right? > My only point, in that post, is that questions from > new Java programmers are better dealt with on the > *Usenet* group specifically intended for them. That is not what you said. By implication, you are trying to create a distinction between things that are not comparable, as though your site needed to be distinguished from Usenet. It doesn't. Your Web site is not a group. > I do not quite understand where you are coming > from Paul, did I/we get wires crossed somehow? I have been crystal clear. -- Paul Lutus http://www.arachnoid.com == 2 of 2 == Date: Wed, Aug 25 2004 4:41 pm From: Paul Lutus <[EMAIL PROTECTED]> Andrew Thompson wrote: > On Wed, 25 Aug 2004 20:07:28 +0100, Chris Uppal wrote: >> Paul Lutus wrote: >>> Andrew Thompson wrote: >>>> Also, it seems a better group for the moment might be.. >>>> <http://www.physci.org/codes/javafaq.jsp#cljh> >>>> [ the people ther are *much* nicer, trust me.. ;-) ] >>> >> [...] >>> The site being promoted above as a "better group" is in fact not part of >>> Usenet at all. [...] >> >> It seems to me that Paul has a good point here. If your (Andrew's) aim >> is to direct people to comp.lang.java.help, then wouldn't a link like >> news:comp.lang.java.help (or whatever the URL syntax is) be better ? > > Feel free to do that Chris. > > I, OTOH, will continue to post as I did, because I have > already considered this matter and come up with what I > feel is the best (all round, balanced) approach. Fine, as long as you do not continue to mislead people as you have been doing. > > The page lists the major Java groups and gives > a sentence or two that provides further description > of each. Then it links to the easiest place to > browse/search those groups. That is not what you said. You directed a poster to your site, using the word "group" and suggesting that your site is a "better group" than this one. You are beginning to show an integrity chasm. -- Paul Lutus http://www.arachnoid.com ========================================================================== TOPIC: waitFor returns 255 on HP Unix http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/22a9eff3b4c323d1 ========================================================================== == 1 of 2 == Date: Wed, Aug 25 2004 5:03 pm From: [EMAIL PROTECTED] (Jakir) Hi waitFor() method returns value 255 on HP Unix when I try to start netscape through Runtime.getRuntime().exec("netscape") method. I also tried to give the full path but same results. I am able to start netscape from C program or from commandline but it fails when I try to do same thing from Java application. It works fine on Solaris. What is the meaning of value 255. Where I can get the information regarding the value returned by the waitFor() method. Regards Jakir == 2 of 2 == Date: Wed, Aug 25 2004 5:53 pm From: Paul Lutus <[EMAIL PROTECTED]> Jakir wrote: > Hi > > waitFor() method returns value 255 on HP Unix when I try to start > netscape through Runtime.getRuntime().exec("netscape") method. Most likely, this is a -1, but you don't say how you stored or printed it. > I also tried to give the full path but same results. > I am able to start netscape from C program or from commandline but it > fails when I try to do same thing from Java application. Post the code and say where the application is located on your system. > It works fine on Solaris. > What is the meaning of value 255. Where I can get the information > regarding the value returned by the waitFor() method. Uhh, the documentation? http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Process.html#waitFor() -- Paul Lutus http://www.arachnoid.com ========================================================================== TOPIC: What a mess: Date, milliseconds, GregorianCalendar http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/559d9f1964889f34 ========================================================================== == 1 of 1 == Date: Wed, Aug 25 2004 6:10 pm From: "P.Hill" <[EMAIL PROTECTED]> P.Hill wrote: > Gordon Beaton wrote: > >> From rfc1305: >> "The effect is to slew the clock to a new value at a small, constant >> rate, rather than incorporate the adjustment all at once, which >> could cause the clock to be set backward." > > > Cool! I didn't know that bit. Thanks for the input and the correction. Hmm, I just found the quote you mentioned. It is in the section 7.1.2 Unix Clock Model There does not seem to be any other mention of slewing in the entire document outside of this specialized section. Information on making sure your Windows system is running SNTP is availble from no less than NIST Boulder (the folks who keep Atomic Time in the Western US) at: http://www.boulder.nist.gov/timefreq/service/pdf/win2000xp.pdf See section 5. I still don't see any guarantees anywhere that time will never jump back, but I'm encouraged by the quote Gordon mentioned. thanks, -Paul ========================================================================== TOPIC: PCMCIA and COMM API http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/d08b61cd45fd7071 ========================================================================== == 1 of 1 == Date: Wed, Aug 25 2004 6:53 pm From: JScoobyCed <[EMAIL PROTECTED]> Christian Marko wrote: > JScoobyCed <[EMAIL PROTECTED]> wrote in message news:<[EMAIL PROTECTED]>... > >>Christian Marko wrote: >> >> >>>Hi! >>> >>>Does anyone have experiences with the COMM API and the usage of the >>>PCMCIA port? With the COMM API the PCMCIA ports should also be found, >>>or not? >>> >>>I have a PCMCIA port on my notebook, but this port won't be found, by >>>the appropriate class of the COMM API. As i read in other posts, the >>>port should be found. Can anyone help me? >>> > > OK, but i use a RS-232 serial PCMCIA card, where to the PCMCIA card 4 > RS-232 ports are connected. These ports are seen by the OS (Win98, > W2K, WinXP) and listed as COM ports, but not by the COMM API. > > Does you or anyone else know any alternative to the COMM API? Oh ! That's different. If it is a PCMCIA card that add serial ports, then yes they should be found by the COMM PAI (provided these ports are listed in the Hardware/Device Manager, which is the case as I read you). Try the sample code of the COMMAPI to simply list the ports seen Java. It should list the Parallel port and the serial ports. All Virtual/Emulated Serial ports should appear (I can list the Serial Port created by my BlueTooth dongle, or I use to emulate a serial Port other InfraRed). Also if you have an internal modem, it should list the virtual serial port (/usually/ COM3). The following code with print the list of Serial/Parallel port if COMM API is correctly installed: <code> public void listPorts() { Class.forName("com.sun.comm.Win32Driver") Enumeration list = CommPortIdentifier.getPortIdentifiers(); CommPortIdentifier po; while(list.hasMoreElements()) { po = (CommPortIdentifier) list.nextElement(); if(po.getPortType() == CommPortIdentifier.PORT_SERIAL) { System.out.println("Serial port found: " + po.getName()); } else if(po.getPortType() == CommPortIdentifier.PORT_PARALLEL) { System.out.println("Parallel port found: " + po.getName()); } } } </code> To have a valid COMM API installed: 1. Find the default path of the java.exe (usually C:\Program Files\Java\JRE\bin\java.exe on Windows, but check yours): JAVA_HOME 2. in JAVA_HOME\bin put win32comm.dll 3. in JAVA_HOME\lib put the javax.comm.properties 4. in JAVA_HOME\lib\ext put the comm.jar That's all I can help :) -- JScoobyCed What about a JScooby snack Shaggy ? ... Shaggy ?! ========================================================================== TOPIC: URLClassLoader slow in 1.4.2 http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/447066d9ab919949 ========================================================================== == 1 of 1 == Date: Wed, Aug 25 2004 7:08 pm From: [EMAIL PROTECTED] (Timothy Fosdike) I have a problem with jre 1.4.2 and the standard java.net.URLClassLoader under Linux. The ClassLoader loads alright from the filesystem, but hangs for about 5 minutes before loading from a network source. I have tested all the obvious suspects, including DNS/reverse DNS lookup without any results. During the 5-minute hang, a netstat on the computer on which the java is running reveals that the java program is waiting for a timeout on a random port on the local computer, but even setting up a local firewall to block incoming access to these ports does not speed up the timeout. Why this is I don't know. It appears to run alright with a http://localhost/... address, but not with a remote address. I notice that others in this group have had this problem, so it is not the fault of my network. Has anyone found an answer to the problem? ========================================================================== TOPIC: warning ... no definition of serialVersionUID ? http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/f6b4326f47ae57dc ========================================================================== == 1 of 1 == Date: Wed, Aug 25 2004 7:10 pm From: [EMAIL PROTECTED] (Denis Labon) I compile the following code and it gives me a warning about "serializable class". Do some1 know what the warning means? I compile the code in Suse 9.0 and use java v1.5.0-beta2. COMPILE COMMAND: javac -Xlint *.java Thanx! /* Test.java:14: warning: [serial] serializable class Test has no definition of serialVersionUID public class Test extends JOptionPane ^ 1 warning */ import javax.swing.JFrame; import javax.swing.JOptionPane; public class Test extends JOptionPane { public Test( ) { super(); } public static void main( String args[] ) { } } ========================================================================== TOPIC: java script help needed http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/198986c6717cf1c9 ========================================================================== == 1 of 2 == Date: Wed, Aug 25 2004 7:17 pm From: [EMAIL PROTECTED] (BKS) I know some of you are expert in Java script. I need your help. I want to get a pop up window for an image when clicked (mouseover) on a text. Specifically, I like to say .. Please click "HERE" to see larger image. And when someone clicks on "HERE", a window with an image should pop up. can anyone help me on this? Thanks. == 2 of 2 == Date: Wed, Aug 25 2004 7:22 pm From: "Murray" <[EMAIL PROTECTED]> "BKS" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I know some of you are expert in Java script. I need your help. > I want to get a pop up window for an image when clicked (mouseover) on a text. > > Specifically, I like to say .. Please click "HERE" to see larger image. > And when someone clicks on "HERE", a window with an image should pop up. > > can anyone help me on this? Thanks. See comp.lang.javascript Java is not Javascript ========================================================================== TOPIC: How to do bitmap icon in front of menu-items in Java? what is the class for menu-item in Java? http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/3ac74a360cb38fcd ========================================================================== == 1 of 1 == Date: Wed, Aug 25 2004 7:11 pm From: "gino" <[EMAIL PROTECTED]> "Nick Pomfret" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I'm inclined to agree. In the past I've foundJMenus and menu items quite > limited (in terms of look and feel) and have been forced to implement my > own. > > -- > > ** http://www.tabletoolkit.com ** > Aggregate JTables to an arbitary level to create your own pivot tables > > > "Paul Lutus" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > > gino wrote: > > > > > Hi all, > > > I have some menu-items in Java, they are "checked" menu-items... I want > to > > > change that "check tick" in front of the menu items to other bitmap icon > > > to display some fancy bitmaps in front of the menu items... > > > > So write your own MenuItem class or extension. > > > > > HOw can I do that in Java? Which class in AWT does this menu-item belong > > > to? > > > > Read the documentation. > > > > http://java.sun.com/j2se/1.3/docs/api/java/awt/MenuItem.html > > > > java.lang.Object , java.awt.MenuComponent, java.awt.MenuItem > > > > Don't cross-post without a reason. > > > > -- > > Paul Lutus > > http://www.arachnoid.com > > > > Hi how to write my own extension class? I just found out they are belong the following class... javax.swing.JPopupMenu But what is the simplest way to do that? ========================================================================== TOPIC: JSP upload http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/b256ab5784e1497f ========================================================================== == 1 of 1 == Date: Wed, Aug 25 2004 7:37 pm From: [EMAIL PROTECTED] (Matt) I need to implement JSP upload page that upload files to the server. I want to know if Java API can do that? or we need special component? I don't know how upload file works internally. All I have now is the following upload form. <FORM ACTION="process.jsp" METHOD="POST"> <INPUT TYPE="FILE" name="uploadFile"> <INPUT TYPE="SUBMIT" </FORM> please advise. thanks!! ======================================================================= You received this message because you are subscribed to the Google Groups "comp.lang.java.programmer". comp.lang.java.programmer [EMAIL PROTECTED] Change your subscription type & other preferences: * click http://groups-beta.google.com/group/comp.lang.java.programmer/prefs Report abuse: * send email explaining the problem to [EMAIL PROTECTED] Unsubscribe: * click http://groups-beta.google.com/group/comp.lang.java.programmer/subscribe ======================================================================= Google Groups: http://groups-beta.google.com ------------------------ Yahoo! Groups Sponsor --------------------~--> $9.95 domain names from Yahoo!. Register anything. http://us.click.yahoo.com/J8kdrA/y20IAA/yQLSAA/BCfwlB/TM --------------------------------------------------------------------~-> Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/kumpulan/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
