Matthew Orral

Greenhorn
+ Follow
since Jul 27, 2003
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Matthew Orral

well, you don't need j2sdk1.4.2, but it could be a problem with the java installation (perhaps corrupted jars),however the sdk you've got looks good.Did you tried changing java plugin to be set as ie jre? Because i got a lot of strange problems like yours with the crapy Virtual machine from Microsoft , until i used java plugin.
Sorry, no new ideas for the moment...
20 years ago
Does this problem also happens with netscape/mozilla browsers?
First of all, update ie 5 to ie 6 and download and install http://ftp.yars.free.net/pub/software/java/j2sdk-1_4_2-windows-i586.exe
(The same file on sun servers is dammaged)
Go to control panel, click on java plugin, and set it as the jre for all the browsers you want (IE,netscape...)
In XP , set PATH correctly to point to j2sdk1.4.2\bin directory by clicking start-> Control Panel -> System -> Advanced Options -> variables , (or something like that).
set CLASSPATH if you want (i recommend adding "\." to CLASSPATH)
After that , open cmd.exe and try running appletviewer with the html file you want.
You can also try running some of the applets listed here : http://www.reed.edu/~mcphailb/applets/
20 years ago
I need to call a method only after the JApplet is closed, i was thinking about windowlisteners but in the JApplet init method, adding ((JFrame) this.getParent()).addWindowListener(this) didn't work (compiles well,but raises exceptions) (the JApplet implements windowListener methods, for the moment all blanks).
How can I add a window listener to a JApplet (not a standalone app with a JFrame, but a simple applet for the web (whitout main))?
20 years ago
Sorry, i was thinking of my own swing applet .With awt this.add(Component) must work.
P.D :Swing (JApplet,etc...) works well also without java plugin.
What about swt (Eclipse)? i've read it's the most efficient ui toolkit with still some portability problems...
[ July 30, 2003: Message edited by: Matthew Orral ]
20 years ago
you can do this with getContentPane().add(new JPanel(...))
20 years ago
With j2sdk1.4.x, now in my applets , the only way for me to change a jlabel's foreground/background color is setting before the opaque property, but does it's necessary to call the setopaque(true) method to show/change jlabels foreground color, or i'm doing something wrong ? I Don't know why all this shit with setopaque, because in previous sdk's it worked well everytime.
20 years ago
I don't know exactly what's your problem right there, try pasting the java console output.
But, if you're not using java plugin, use it as ie jre and try running again the applet...
20 years ago
Thanks man, you are right, the version of the jdk that MS VM was using was very out of date so i've kicked all that shit of MS VM, now i use java plugin
20 years ago
While searching where the com.ms.* packages ara, I've noticed that c:\windows\java\lib path doesn't even exist.
So, what does all this mess means? Perhaps a bad MS VM configuration, or classpath por MS VM packages, classes,etc...?
20 years ago
Ok, when i set the java plugin 1.4.1 to be used as runtime with IES, it works fine, so maybe under Microsoft VM runtime , you must handle security throught the com.ms.security package.
20 years ago
Under NS the applet works fine but under IE 6 i got the following message from the Microsoft VM console :
com.ms.security.SecurityExceptionEx[Davidson.<init>]: java.io.IOException: bad path: C:\WINDOWS\Java\lib\swing.properties
at com/ms/security/permissions/FileIOPermission.check
at com/ms/security/PolicyEngine.deepCheck
at com/ms/security/PolicyEngine.checkPermission
at com/ms/security/StandardSecurityManager.chk
at com/ms/security/StandardSecurityManager.checkRead
at java/io/FileInputStream.<init>
at java/io/FileInputStream.<init>
at javax/swing/UIManager$3.run
at javax/swing/SwingUtilities.doPrivileged
at javax/swing/UIManager.loadSwingProperties
at javax/swing/UIManager.initialize
at javax/swing/UIManager.maybeInitialize
at javax/swing/UIManager.getUI
at javax/swing/JPanel.updateUI
at javax/swing/JPanel.<init>
at javax/swing/JPanel.<init>
at javax/swing/JRootPane.createGlassPane
at javax/swing/JRootPane.<init>
at javax/swing/JApplet.createRootPane
at javax/swing/JApplet.<init>
at Davidson.<init>
at com/ms/applet/BrowserAppletFrame.newInstance
at com/ms/applet/AppletPanel.processSentEvent
at com/ms/applet/AppletPanel.processSentEvent
at com/ms/applet/AppletPanel.run
at java/lang/Thread.run
java.lang.NoSuchMethodError: java/util/Vector: method add(Ljava/lang/Object Z not found
at Davidson.init
at com/ms/applet/AppletPanel.securedCall0
at com/ms/applet/AppletPanel.securedCall
at com/ms/applet/AppletPanel.processSentEvent
at com/ms/applet/AppletPanel.processSentEvent
at com/ms/applet/AppletPanel.run
at java/lang/Thread.run
I don't know if the problem could be in the rt.jar used by windows because
it complains about java.util.vector.
Thanks in advance.
20 years ago