How to display " ****" in a TextField?

285 byte By reddyumamaheswar at 2007-9-26 5:48:07
Hello,How do I make a TextField to behave like a password field. i.e when the user enters some text into it the textfield, the text should be displayed in the form of " ****** ". Can any one help me by giving some source code? Thanksumajava@yahoo.com

JnlpDownloadServlet doesn't work with Weblogic 6.0 ?

1360 byte By maksgroup at 2007-9-26 5:48:13
Hello,I tried to make WAR application according to instructions in downloadservletguide.html, but Weblogic shows this in error log:<02.09.2001 19:55:31 MSD> <Error> <HTTP> <[WebAppServletContext(1869629,webarc)] Servlet failed with Exceptionjava.lang.NullPointerExceptionat ...

MS Office bug

429 byte By eda6 at 2007-9-26 5:48:33
Dear all,I have got a proglem:I developed an applet (147k) that is being used by approximately 200 usersas a client. The 15 of them cannot run MS Office when the applet is active.Is it a common bug ?The system specification follows: W95 B 400950 BIE 5.5ver. 5.00.2314.1003JRe 1.3.0_02MS Office ...

Problem running JRE as user under Windows 2000

406 byte By cjflanagan at 2007-9-26 5:48:46
I installed JRE 1.3.0_1 as an administrator under W2K and it works fine, accessing a chat facility on a community web site that is hosted on our behalf. When I try to use as an ordinary user I am told that JRE is not installed correctly. Is this something to do wth W2K permissions and, if so, ...

Running as user under Windows 2000

407 byte By cjflanagan at 2007-9-26 5:48:48
I installed JRE 1.3.0_1 as an administrator under W2K and it works fine, accessing a chat facility on a community web site that is hosted on our behalf. When I try to use as an ordinary user I am told that JRE is not installed correctly. Is this something to do wth W2K permissions and, if so, ...

JRE1.3.1 - No Swingall.jar ?

714 byte By bmudie at 2007-9-26 5:49:14
Hi, I am a Network Administrator (No Java programming knowledge)When running the following application from Windows NT with Java Plugin 1.1, the application runs fine;"C:\Program Files\Java Plug-in 1.1\bin\jrew.exe" -cp "c:\Program Files\Java Plug-in ...

Ahead-of-time Compilation

241 byte By nx2059 at 2007-9-26 5:49:26
I've heard that in Kaffe they are going to usegcj to precompile the runtime environment. I'm just wondering why sun hasn't done something like this. (and perhaps break up rt.jar into more than one file). Any thoughts?

Can a Frame be added to Browser?

176 byte By littlehoi1979 at 2007-9-26 5:49:27
Hi all,I am a Java newbie, I want to ask whether I can add a frame into a browser or not? If not, how can I do that in other way? Thankyou!Littlehoi

Inconsistant loading with JRE

1079 byte By mbratina at 2007-9-26 5:49:29
Just wondering if anyone has any tips, hints, help, suggestions, etc., on a Java related problem.The short version of the problem. Java applets will load from some sites and won't from some others.Here are some more details:OS: Redhat 7.1Browser: Opera 5.05 TP1Java 2 Runtime Environment ...

How to close a Frame present in an Applet?

1662 byte By reddyumamaheswar at 2007-9-26 5:49:42
Hello,How do I close a Frame present within an Applet? Here is what I have done, it is working fine in appletviewer but in the browser, it is not getting closed, I should close the browser itself to close that frame. Here is the code that I have written to close the framepublic class abc ...

Error in Netscape6 with java plugin 1.3.0_01 :Applet notinited

1558 byte By bsssrinivas at 2007-9-26 5:49:55
I am getting the following error message while I try to load my (awt)applet for the second time(first time its getting loaded without any problem).java.security.AccessControlException: access denied (java.lang.RuntimePermission modifyThreadGroup) at ...

Deploy Java application

418 byte By ytkwok at 2007-9-26 5:50:30
I am going to distribute my Java application. As most of the target do not have the JRE installed. I would like to package the JRE with my application. So that they can only install once or even no need installation to start the application. In addition, I can always bundle the lastest version ...

Join the Microsoft boycott!

178 byte By eeyvind at 2007-9-26 5:50:56
Join the Microsoft boycott.Check out: http://www.geocities.com/virtualexp/ms.htm Webmasters! Support this action by linking to this page.

My AWT component is not working well

1632 byte By axa2001ro at 2007-9-26 5:52:42
Hy, I am trying to make my first AWT componente but the result is not how I wanted.Here is the "abstract" code for that class ( it's drawing a variable square - it don't have any usefulness, but educational): public class SquareClass extends Componenet{private Graphics offScrG;private Image ...

Copy/Save Html file

174 byte By bklow at 2007-9-26 5:52:49
HiIs there any exisitng API/JavaBeans for saving and copying HTML file together with its dependencies (e.g. other files referred in 'href')?Boon

Deploying application on a remote server

686 byte By gulfi at 2007-9-26 5:53:12
Hi,I'm trying to deploy a very simple application (freak.ear) on a J2EE server V1.2.1 running on a remote host. The server seems to be running correctly as I get access to the welcome page. When deploying the app I get the following error message:There was a deployment ...

Parts and Resources

140 byte By davesmithS at 2007-9-26 5:53:19
Does anyone know the difference between a 'part' and a 'resource' in relation to the DownloadService methods?Cheers

Global Event Listener

329 byte By eleshm at 2007-9-26 5:53:24
I am creating a JFrame/JPanel with lots of text fields and buttons on it and I add a global key press listener such that if I press the F1 key, it accesses a help dialogue. How do attach this default key press listener to the GUI such that all key presses route through this listener ...

Getting localized month and days name

659 byte By parad2000 at 2007-9-26 5:53:25
I am trying to get the name of the months and the days according to the local passed to the request parameter in a JSP:<%Locale vLocale = request.getLocale();DateFormatSymbols dfs = new DateFormatSymbol(vLocale);String days[] = dfs.getWeekdays();String months[] = dfs.getMonths();%>The ...

wrapping of Label text

236 byte By dgk_goa at 2007-9-26 5:53:41
hi javaGurusCan any one clear my difficulty of how to wrap the text in Label as when the size of its container increases or decreases. Any reply will appreciate.thanking you in advanceregardsdgk

Launcher Blocked

185 byte By docouto at 2007-9-26 5:54:27
Hello,When I try to launche an application with signed jars,my launcher is bloqued in an infinite loop !can you help me ?thank you.Fred.

Marc's Web Start Kamasutra

683 byte By van.woerkom at 2007-9-26 5:54:33
My goal during the last weeks was to enable our company's application to run via the Web Start client.Further installation should be as uncomplicated as possible. This task implied that except Web Start installation itself, the application should just require one click to download and install ...

How can I pass arguments into exec jar?

379 byte By java0077 at 2007-9-26 5:54:39
I have managed to create an executable jar and been trying to run it by typing:java -jar convert.jar testFile.csvbut, the Main-Class inside convert.jar does not seem to read this filename. Is there a way to pass this inside?If I run the program directly (not via this exec jar), it reads the ...

Upgrading JDK 1.3.1 to 1.4 beta 2

297 byte By noamt at 2007-9-26 5:54:56
Hi.I'm running on Windows 98. I want to upgrade (ie, not running side-by-side) my 1.3.1 jdk to the new 1.4 beta. What's the best way to go - uninstalling the current version before installing the new one, or installing the new one on top of the current?

Basic installation question

378 byte By etc2001 at 2007-9-26 5:55:34
Hi - I downloaded j2sdk-1_3_1-win.exe and ran it. It then does some unpacking but nothing further. I'm not prompted for any installation options, and it appears that no directories are created. I'm running WinNT. Any ideas what is going on? I rebooted the machine, thinking it could possibly ...

Convert String 'java.awt.Color[r=255,g=0,b=204]' to Color

123 byte By teeming at 2007-9-26 5:55:37
I have to read a String 'java.awt.Color[r=255,g=0,b=204]' and then how can i convert this to Color ?

how to search the file in all directories

362 byte By jpullareddy at 2007-9-26 5:55:40
dear sir,i know how to retrive ms word while clicking the button action.,if know the path of file where it exists.if i dont know the path,i want to search ms word in exiting all directoriesand retrive msword .how to do search the file?please help me ,thanks ,pullareddyjpullareddy@hotmail.com ...

Not able to load images

367 byte By ramkumar_april17 at 2007-9-26 5:55:55
I am using JBuilder-5.0 for converting my application into web-start application.When I access my application for the server the server is not able to retrieve the images from the jar.The images are placed in a separate package from the class files.I am using RMI to retrieve the data from my ...

Write chinese character to file

630 byte By rexwkk at 2007-9-26 5:55:57
I need to write a java program to retrieve data from database and then write them to file.The problem is that one field is chinese character, after I write chinese character to file, and open it with Excel, those characters were interpreted as BIG-5, and some characters even corrupted.Database: ...

Java plugin hangs when communicating to browser scripts (Using JSObject)

931 byte By nuuwijava at 2007-9-26 5:56:19
I saw several questions in the forum regarding the Java plug-in 1.3.1, however I would like to post this as separately since I want your attention to this, ASAP.The problem is this, when I run Java Swing Applet using IE 5.0 with the Java plug-in 1.3.1 communication from Applet to browser hangs. ...

Windows shortcut in Java

260 byte By Blue27 at 2007-9-26 5:56:35
Do you know how to create a Windows shortcut from within Java? I am making an install shield for my Java program (makes it much smaller than installanywhere can), and need this feature to have a shortcut to it placed on the desktop.

if I want to set -Xbootclasspath , how to do it in jnlp file

131 byte By handtalk at 2007-9-26 5:57:30
if I want to set -Xbootclasspath to let jvm know my classpath, how to do it in jnlp file. or have other way to do it.

Unable to Embed ActiveX in Java

574 byte By vimaljain73 at 2007-9-26 5:57:32
Hi,We are trying to embed an activex control (ocx control) in java using third party tool JacoZoom. We are not able to create an instance of com.inzoom.axjni.ActiveX class using ActiveX w = new ActiveX("DTDLG.DTDlgCtrl.1");System.out.println(" W : " + w);While printing the value of this object ...

Netscape.javascript.JSException at random times

387 byte By andre55 at 2007-9-26 5:57:51
Hi,We have a web application that uses the plug-in on the front end (tried 1.3.1 and 1.3.0), this uses Java to Javascript communication and the other way.At random times during some calls the follwing error message appears:Netscape.javascript.JSException: Method invocation failed:0x8002003 .Any ...

How to add a KeyEvent for "<"?

280 byte By joernE at 2007-9-26 5:57:52
Hello,I try to defined a KeyEvent for "<". I tried KeyEvent.VK_LESS but that does not work.When I use KeyEvent.VK_L I have defined the Event for the l-key and ist works, but VK_LESS does not work for pressing "<".Any Ideas?Jörn

Complete disposal of windows? (urgent)

450 byte By erijo197 at 2007-9-26 5:58:33
After closing child windows, making sure that they are disposed using window.dispose(), I've noticed that I still get handles to all windows, even the disposed ones, when using windows.getOwnedWindows() for the parent.This, I assume means that the disposed windows wpn't be garbed? In that ...

App starts when it mustn't

486 byte By tinca at 2007-9-26 5:58:35
Dear All,We are struggling with this. Our app is allowed to start only when the system is online (no offline-allowed tag in jnlp), still it starts even when offline.We tried removing application from within JWS, removing by hand so on, but can't figure out why this happen and how to solve ...

Socket connection to localhost

568 byte By gronert at 2007-9-26 5:58:44
Hi forum,I'm struggling with the problems appearing when modifying a desktop application to fit the sandbox paradigm of webstart.When starting this application it sets up a database (hsql) in its init process listening on port 8118.Now I want to connect to this database setting up a socket to ...

i18n and databases

791 byte By chrgosselin at 2007-9-26 5:59:12
Hi, I have a problem with i18n. I understand the concept of resource bundles but it is a whole different thing when the data you want to internationalize is in a database. For example, I have a table called "Category" with the following attributes: cat_id, cat_code, cat_name and ...

Java Serial Port Program

3986 byte By mpangrekar at 2007-9-26 5:59:16
Hello,I would like to use COMM API for writing program to access serial port from Java. I tried to compile SimpleWrite.java & SimpleRead.javawith JD 1.1.6 & jdk1.3.0_02, but it was showing errors.Which jdk version is best suited for Java COMM API?Code follows below for SimpleWrite.java ...

Java Plug-in and IE 6

248 byte By badandy at 2007-9-26 5:59:17
Has anyone tried to use the Java Plug-in 1.3.1 with IE 6 on Win 2000 or Win XP? If so, does it still work. I'm wondering whether Sun is gonna have to make it's plugin an ActiveX component like Apple had to with its Quicktime plugin.

How does JWS retrieve the browser's configuration?

172 byte By izhidov at 2007-9-26 5:59:48
What is the approach? Also what happens if I want to specify https or SOCKS proxy settings. App Manager does not seem to handle that.Cheers,Ivan

How to identify "Doubleclick" from the mouse?

750 byte By l_lnarayanan at 2007-9-26 6:00:43
HI,Actually i am using the following code for "DoubleClick".component.addMouseListener(new MouseAdapter(){public void mouseClicked(MouseEvent me){System.out.println("Click count"+me.getClickCount());if(me.getClickCount() == 2){do something()}}});When i doubleclick the mouse, I am getting the ...

Doing a CLS in a DOS window

506 byte By kmarois at 2007-9-26 6:00:47
I wrote a C++ EXE called Clear.Exe that clears the screen at a DOS prompt. It works just fine from theDOS prompt, if you type:c:\clear.exe When I do this in JAVA, I get no response:Runtime run = Runtime.getRuntime(); Process proc = run.exec("clear.exe"); My C++ Code is:#include ...

JWS over HTTPS

2550 byte By s_krishnan at 2007-9-26 6:00:58
I have an iPlanet Web Server running HTTPS on the extranet and a WebLogic App Server inside the company intranet. My application resides on the App server and the Web Server proxies all requests through to the App Server. I set the MIME type on the Web Server to process JNLP files and am trying ...

Need Help on Signed Applets

2522 byte By adabala_r at 2007-9-26 6:01:17
I am trying to run the signed applets and followed the steps described at http://forum.java.sun.com/thread.jsp?forum=30&thread=134099 .Here the steps I followed On Server :1) created the jar file containing the classes required.2)generated the keystore using keytool -genkey3) exported the ...

Debug plugin applet in remote VM

771 byte By fiallega at 2007-9-26 6:01:38
I am trying to debug a test applet I created so that the debugger will interact with the plug in.I have tried to follow all the information I have found in the subject.1. Added the parameter to the plugin console-Djava.compiler=NONE-Xnoagent-Xdebug ...

Installing j2re on FreeBSD (VERY IMPORTANT)!!!!

85 byte By mike_8706 at 2007-9-26 6:02:11
I downloaded the linux version of it. And i just cant get it installed.

ClassNotFoundException with JAR while deployeing Applet.

228 byte By lml919 at 2007-9-26 6:02:41
I import sun.jdbc.rowset.CachedRowSet In my Applet ,and I include it in my JAR ,However I get the Exception:ClassNotFoundException (sun.jdbc.rowset.CachedRowSet) when I brow the applet from IE.

i18n & l10n best practices

255 byte By zeevb at 2007-9-26 6:03:11
I am looking for information on i18n best practices in large projects e.g. how to manage many resources? What tools can help with l10n? How to preserve context for easy translation? etc.Thank you in advance,Ze'ev