Multiple JRE's

533 byte By AlGi at 2007-9-26 6:39:38
I installed JDK1.4 beta on a Windows 98 machine that already had 1.3 installed. I did not set the path for the new directory and JDK1.4. Yet, 1.4 is now my default rje. And I am unable to find a method to invoke the 1.3 jre. I tried to plug-in console - but apparenty, that is only for applets. ...

Sending email, mail.jar, activation.jar in a jar

860 byte By derekmceachern at 2007-9-26 6:39:42
I've searched through a bunch of archives and I can't find exactly what I need/want.I've written an application that I want to bundle as a jar. I also want this application to be able to send email. I am using the java mail api but it doesn't seem to be cooperating.The application works ...

Resizing the unresizable

435 byte By chirdobus at 2007-9-26 6:40:13
Hello! I have an emulator applet which draws vector graphics written a few years back which is written using absolute positioning using canvas. But I need to scale it up, make it two times the size it is. Any ideas of a good way to go about this? I thought about putting it within a layout ...

Scrollable Popup Menu

237 byte By charlie76 at 2007-9-26 6:40:27
Does anyone know of a way to build a scrollable popup menu? Something similiar to the WinNT menu that has two buttons at the top and bottom allowing someone to scroll up and down the popup?thankscharlie

createImage fail if image is 300 * 46800

565 byte By KwanY at 2007-9-26 6:40:30
I want to create an large image for a component in Applet. If 16bit color is used, it works. However, if 24bit color is used, it fails. The error is:com/ms/awt/peer/INativeImage.createat com/ms/awt/image/ImageRepresentation.offscreenInitat com/ms/awt/image/Image.<init>at ...

Switching From Full Screen Exclusive Mode to Windowed Mode

1598 byte By Pauly_t at 2007-9-26 6:40:54
Hi,I am using JDK 1.4, and have an application that works in Full Screen Exclusive Mode, and I want to beable to switch to a Windowed Mode. I obtain a "An unexpected exception has been detected in native code outside the VM."To set Full Screen I am using the following code:this.isFullScreen = ...

how do i get foreign cahracters in internationalization?

226 byte By mortoza at 2007-9-26 6:40:56
Hi I am new in internalization. Anybody will help me giving some thgoughts/samples how do i add/get foreign character say, french/bangla/japanese etc. while internationalizing? regards.

JFileChooser displays annoying "Drive A" message

298 byte By llansang at 2007-9-26 6:40:58
When I use JFileChooser's showOpenDialog() method with JWS, my app displays a dialog box that says:"There is no disk in the drive. Please insert a disk into drive A:" I've tried setting a current directory and I still get the message. How do I get rid of this message?

Using local classes with Java Plug-In?

659 byte By FBergeron at 2007-9-26 6:42:31
Hi, I'm trying to make the plug-in uses the classes installed on the client machine. I've tried setting the CLASSPATH environment variable. It doesn't work.I've tried setting -cp options in the Java Runtime Parameters of the Java Plug-In Control Panel. Apparently, the java environment ...

HTTP Basic Authentication & JNLP

336 byte By mrichman at 2007-9-26 6:43:25
How do I protect a .jnlp resource via HTTP Basic Authentication? I can see how the first invocation of a .jnlp resource via a browser would typically prompt me for userid/password, but what about when I start the application from the Java Web Start application manager? Also, what about ...

Header!!! Footer!!!

738 byte By proshno at 2007-9-26 6:43:44
Is it at all possible to print header and footer properlyalong with an html document!!!!!! Hi! I am able to print an Html file but along with that I want to print some customised string like some message, date, time, page number etc.. as header and footer, but I am not able to access the ...

Trying to run simple executable from Windows 2000

661 byte By GregJavaHelp at 2007-9-26 6:44:04
I have tried the following code, but it does not work.try{String[] cmd = new String[3];cmd[0] = "cmd.exe" ;cmd[1] = "/C" ;cmd[2] = "test.exe"; Runtime rt = Runtime.getRuntime();Process proc = rt.exec(cmd);}However if I replace 'cmd' with ' "notepad" ' the notepad lauches properly.No ...

Proxy configuration in javaws.cfg

295 byte By ashoksridhar at 2007-9-26 6:44:30
Does anyone know the exact property in javaws.cfg to set the Proxy setting to None ? I am currently using :javaws.cfg.proxy.setting=NONEbut this is from JWS beta and I now have 1.0.1_01 and I see that the new version does not save the settings in javaws.cfg anymore ?

java.security.AccessControlException in javaplugin1.3_01

2012 byte By bsssrinivas at 2007-9-26 6:46:05
I am getting the following error when I try to load my applet for the second time..java.security.AccessControlException: access denied (java.lang.RuntimePermission modifyThreadGroup)at java.security.AccessControlContext.checkPermission(Unknown Source)at ...

What is Unicode?

332 byte By yoJuanjo at 2007-9-26 6:46:29
When I get an XML encoded in UTF-8, UTF-16 or ISO8859-1. Is it encoded on Unicode or not?When I work in Java my strings are Unicode (at least that's what I think) can I give the results encoded with ISO8859-1? Can I convert XML in ISO8859-1 to Unicode and Unicode to ISO8859-1, or it's simply ...

Retrieving Poxy info from JWS..

382 byte By Geverson at 2007-9-26 6:46:38
I am looking for a way to retrieve the proxy (if applicable) for a connection during runtime. The app is launched via webstart - which determines the proxy details just fine, but our client (which creates a separate https connection to our server) is not recognising the proxy settings ...

Java-JavaScript Communication in Netscape

4429 byte By srikanth105 at 2007-9-26 6:46:51
HELLO!!I'm trying to communicate between my JApplet and the JavaScript in my HTML. i was quite successful in IE but unable to figure out how to use in Netscape. i have almost tried every possible answer in the forum since yesterday. could anybody please HELP me in solving this. i am using ...

Accessing a JAR-file inside another JAR-file !!!

1030 byte By s5243 at 2007-9-26 6:47:14
Hi!I got a problem. I want to access a JAR-file inside another JAR-file.Look at this code:protected boolean attemptConnection() { try {String databaseConnect = "jdbc:mimer://";Class.forName("someJDBCDriver");databaseConnect += urlField.getText();connect = DriverManager.getConnection( ...

Text file in jar file

444 byte By anat_w at 2007-9-26 6:48:05
Hello,I use a text file in my programin order to get database parameters from the user.InputStream is = getClass().getResourceAsStream(getUrl("/conf/db.properties").getFile()); I need that the user will update the text fileat the first time before he executes the applet.The problem is that the ...

ZipException using JarFile constructor on a previously nested JAR file

1024 byte By chauvirey at 2007-9-26 6:48:57
I have to create a JAR file in which I put other JAR files and also some XML and serialized objects files.I managed to do that, and when I unjar this archive, I get the set of basic JAR files back. But at this moment, when I try to call a new JarFile(...) on one of the file from the unjarred ...

Passing info between Frames

807 byte By aapada at 2007-9-26 6:49:05
hello,i have an application that on "new" menu selection spawns a new frame and takes user input. i am trying to pass this info back to the original frame with no luck. from the "new" frame, i can easily spawn another parent frame using a constructor, but then i have two parent frames open and ...

HELP!! Printing with jdk 1.1.x

200 byte By andres_villa at 2007-9-26 6:49:41
Hi, I'm using getPrintJob (jkd 1.1.x), and I want to know how to print without viewing the print Dialog(I'm using windows), so I can print directly to the printer.Thanks.

Stock Ticker

220 byte By kng29 at 2007-9-26 6:49:45
hi all, can anybody please tell me how to get a stock ticker on my webpage which will take the values from a particular table in the database. i am doing a project using HTML and servlets. thanku in advance

PersistenceDelegate

181 byte By gussev at 2007-9-26 6:50:12
Hello,I would like to subclass the PersistenceDelegate.where may I find some info how I could do it ?And much better an example ?Thank you.

update and paint

2141 byte By borislitvak at 2007-9-26 6:50:44
Hello All,I've encountered an interesting bug:Upon call of repaint() on an object of a class:1) If the class extends Canvas, update() is called.2) If the class extends JFrame, paint() is called.Do you know why?Thank you in advance,Boris.Here is the code, if you are interested:import ...

Corrupt cabinet file?!?!

526 byte By livingrid at 2007-9-26 6:51:44
I am trying to install the Java standard package.I have downloaded the j2sdk-1_3_1-win.exe file 2 times, and I get the same error both times: While unpacking the DATA.TAG, the PackageForTheWeb-program gives the following error:Corrupt cabinet file.When I tried to extract using Win instead, I ...

Java2 runtime environment for Solaris 2.5.1 ?

238 byte By lloydzc at 2007-9-26 6:52:00
Hi,I need to run Java2 applications on Solaris 2.5.1 (SunOS 5.5.1)Can I install Java2 runtime environment on Solaris 2.5.1?Which version of JRE should I have?Any advise will be appreciated.

Kanji and Kana

2040 byte By sunilkg at 2007-9-26 6:52:25
Hi,We are using Siteminder to protect our web site. The user repository is in LDAP. We are getting user attributes using "getHeader()" and the later converting from UTF8(the charset in LDAP). If the data contains Japanese kana characters we donot face any problems, but if the data has kanji ...

Servlet to AWT

77 byte By chandra_1977 at 2007-9-26 6:52:36
Can anyone tell me how to Send parameters from servlet to AWT ?

How do I know that jardiff is working?

445 byte By bokonan at 2007-9-26 6:52:46
Hi,I'm using JNLPDownloadServlet to download my application. This is on Win2K, JRE 1.3.0, Tomcat 3.2.1.It basically works - updates are downloaded - but I don't know if the jardiff "stuff" is happening. How do I find this out?Beyond using the servlet and specifying the version of the jar ...

downloading the jar-file

276 byte By hzirl at 2007-9-26 6:53:35
I've got a problem: I have to write an example-application for Java Web Start. I'm using Tomcat as a WebServer. When I try to start the application I always get the message that the ressource (my jar-file) could not be downloaded. What could I have done wrong?

How to have different color text inside the same text area

115 byte By arafatonline at 2007-9-26 6:53:56
i want to have the different color text inside the same text area. Can anyone tell me how to do that.

detecting client proxy settings

478 byte By albedoj at 2007-9-26 6:54:21
Dear All,Can anyone tell me how to detect client proxy settings from a java application (not in a browser).I tried System.getProperties().getProperty("http.proxyhost") without success.Our application is distribuited using Java Web Start technology and needs to know proxy settings to connect to ...

Java-JavaScript communication in IE?

6040 byte By sundhario at 2007-9-26 6:54:43
I'm using IE to load an applet. I'm trying to do some simple calls from the JavaScript routines to my Java applet methods. Works fine. BUT when I try call my JavaScript routines FROM my Java applet IE locks up and I have to kill the process. here is the HTML code:<SCRIPT ...

Anybody knows a good debugger?

701 byte By Ragnvald at 2007-9-26 6:54:45
Hi.I am looking for a debugger to debug an applet. The applet is downloaded from a webserver(IIS) that run on the local machine. The files downloaded are a .jar file containing the applet and a number of other classes, and some .class files doenloaded on demand by Class.forName(str);. The .java ...

Gui Design

939 byte By rboarman at 2007-9-26 6:54:53
I'm a Powerbuilder programmer who has to do a demo applet connecting to a database. My first problem is with the design. I want to have something like the frame features in HTML where the left side of the screen will have 'menu-type' selections and, when the user clicks on one of them, the ...

How to catch children events?

500 byte By Vladimir_L at 2007-9-26 6:55:13
Hi all!I have a problem. I thought it should be easy to implement, but I didn't found solution! :(The problem is a next one: I have a JFrame that contains some components inside like Panels, Buttons, ... But what I need is a catch all mouse movements inside JFrame even if the event was ...

Parameters

478 byte By 972224 at 2007-9-26 6:55:29
Hello!How can I pass a parameter to the main function of an application? I have tried it with <application-desc main-class="Start"><argument>-name Patrick</argument><argument>-pass xxxx</argument> </application-desc>and without the leading "-" but both ...

MAC Applet refresh Problem..

576 byte By amaruthi at 2007-9-26 6:56:30
Hi,i have an applet with GUI which is having some awt components. in my programming i'm changing the color and caption of the components dynamically.everything is fine in windows OS . On Mac OS , the refresh of applet is not working properly..Is there any method to update the applet AWt ...

troubles writing to file and printing characters above 127

1023 byte By rjflp at 2007-9-26 6:57:31
Hi,Whenever I write to a file or to the standard output (System.out), all characters above 127 are replaced by a question mark.I only started having this problem after upgrading to jdk 1.3.1, with previous version all was fine. I'm using slackware linux 7.0.output of java -versionjava version ...

Which one to use JBeans or Swing?

247 byte By jamesliJ at 2007-9-26 6:58:17
I am really can not decide which tool to use. I would like to develope a GUI based project for customer caring & managment etc. But not sure yet which one to use Swing or JBeans?Please advice. Thanks JL

java extensions in java plug-in

317 byte By vimaljain73 at 2007-9-26 6:58:37
Hi,I am using Java Advance Imaging API (JAI) to display tiff images in the JApplet on client browser. It requires JRE version of JAI to be installed on client machine.Can any one tell me hot to deploy java extensions in java plug-in?ThanksVimalvimalj@momentum-tech.com ...

Tomcat w/ JWS

171 byte By isam_hk at 2007-9-26 6:59:05
Pls help how to config tomcat for using JWS as I'm seldom playing w/ web server and this is only self testing.THanks,iSam

Browser freeze on 'java extension installation' popup

765 byte By J16 at 2007-9-26 6:59:14
I have the following problem happening intermittently:I am attempting to load a web page containing 3 jdk 1.3 Swing-based applets each contained in 3 seperate frames each referencing an HTML. The applets are embodied in jar files. The 3 HTML pages were converted using the 1.3 Java plug-in ...

Esacape?

111 byte By IanMechura at 2007-9-26 6:59:23
How do I use an escape character (like \n) in a Graphics Object or Component.--Ian

Converting any date string to GMT standard ..

415 byte By sujoydc at 2007-9-26 7:00:31
Hi All, I want to convert any date string to GMT standard. The date string may be like this. "Sat Sep 15 14:23:40 IST 2001" I have tried to change my defaultTimeZone . But I don't know why it's not working. Is there something to do with Locals?Can anyone please tell me the way to accomplish ...

JTextArea / Disabling selection

1239 byte By J.Prisco at 2007-9-26 7:01:00
Im getting a bit frustrated with this, hence my post....I have a JTextArea, in which will contain various text.The component should not be editable, and likewise should not be selectable.....I still have not found a way to disable text selection in a JTextArea, in fact any subclass of ...

Panel in JFrame's contentPane (uses CardLayout) hides JMenuBar's JMenuItems

635 byte By fatherlarge at 2007-9-26 7:01:24
For some reason when I use CardLayout in my JFrame, then insert Panels in the JFrame, when I click on my menuBar's menuItem, the list of options appears beneath the Panels I added to the JFrame! For some reason the Panels I added to the JFrame (again, which uses CardLayout) take layering ...

Where to download latest JRE without J2SE?

114 byte By kfsong at 2007-9-26 7:01:39
I just cannot find it. the latest link I can fine is JRE1.2.2.Thank you for help.Janet

Problems installing Plug-In on Netscape 4.08

891 byte By BlackBeauty at 2007-9-26 7:02:18
Hello,Firstly, thankyou for taking the time to read this topic and I hope that someone will be able to shed some light on the problem we are having.I have a user who is using Netscape? Navigator 4.08 and cannot view a 'course explorer' applet that has been written to utilise a Java plug-in. ...