MissingResourceException: Can't find resource

869 byte By aitorsj at 2007-9-26 7:02:54
Hi all!When I try to load a resource bundle I get the error "Can't find resource". My properties file is not on the same directory as the class using it. The file name is: Resources_fr_FR.properties. I try the following:ResourceBundle.getBundle("bolsa.i18n.Resources",new Locale("fr", "FR"));I ...

Problem with JScrollPane + Canvas

434 byte By lambu76 at 2007-9-26 7:02:56
I'm using a class MyCanvas that extended java.awt.canvas.An object of class MyCanvas is included inside a JScrollPane object with the methods getViewport().add(Component comp,int index).The obj MyCanvas shows correctly the image inside, but the JScrollPane obj doesn't scroll automatically. ...

how can i set the image icon in javahelp?

160 byte By whizlabs at 2007-9-26 7:03:16
hi guys,i wan to change the icon (java cup) at the left corner of the frame used by javahelp. How can i do this?thankspradeep

How convert Traditional Chinese Unicode to Simplified Chinese Unicode ?

261 byte By mindterm at 2007-9-26 7:03:38
Hi all, I want to ask how to convert Traditional Chinese Unicode ( in format of & # nnnn ; ) to Simplified Chinese Unicode ( in format of & # nnnn ; ) ? Or how to convert TC in unicode to TC in big5 ? Thx.M.T.

Change Font in TextArea

298 byte By tommy_vossy at 2007-9-26 7:03:56
Hello,I'm working on a small Editor-App and I just want to add the oppurtunity to change fonts. I'm using a TextArea and it should be possible to change the font for parts of the TextArea, not just for the whole one.Thanks for your solutionsGreets Thomas

JApplet mystery

1387 byte By jlucande at 2007-9-26 7:04:29
Hi!I am trying to convert a game application, made using Java - Swing combination, to an JApplet. First I installed the newest JRE1.3.1 from the java.sun.com and used the HTMLConverter. Testing revealed that the JApplet runs quite Ok in the Appletviewer (well, two instances were started ...

Problem installing JDK/JRE 1.3 on Linux PPC

389 byte By kfh1 at 2007-9-26 7:04:52
Hello all,Have any people successfully install JDK/JRE 1.3 on Linux PPC (SuSE 6.4) ? When I try to run the script, it gives me an error as follows:Unpacking...Checksumming...00Extracting..../jre-1_3_1_01-linux-i386-rpm.bin: /install.sfx.700: cannot execute binary fileIs there any workaround ...

Jdk1.3.1_01

417 byte By BlackS at 2007-9-26 7:05:05
After I install jdk1.3.1_01 and then run the programby typing - javac HelloWorld.java class HelloWorld{public static void main(String args[]){system.out.println("Hello World");}} The output saiderror:cannot read: Hello World.java1 errorI don't know why I have faced this problem.Can u help me ...

App Server Configuration

344 byte By LGonzalz at 2007-9-26 7:05:13
We are trying to use WebStart for the first time. We are using IBM Http App Server (Apache). Aside from adding the correct MIME type, what other considerations are necessary on the server? I.e., where do the .jar files go and is the WEB-INF/ directory relevant? If so, how?Any help is greatly ...

JS->Java->JS Problem fix...

7123 byte By sundhario at 2007-9-26 7:05:26
I was running into a bug making calls to a java applet from javascript and having the same java function call a javascript function. i found WAY back in an earlier post that JS->Java->JS calls were not possible in the same thread. SOOOOO I wrote a little test application that does this. ...

Selecting Items in a Choice Box by typing a key

854 byte By jkirkpat at 2007-9-26 7:05:31
I have a drop down choice box that has a list of book titles in it. I want to be able to type in a key in the choice box and have it 'jump down' to select the item that begins with that letter. I have added a keylistener but only does one key at a time. It also seems it looks for exact ...

Can I make a Java program into a system level executable

531 byte By karthiknarain at 2007-9-26 7:05:47
Hi,I have a requirement.I have 3 systems which are coded in different languages.(VB, C++, Java)I want all these systems to access a common application.One way i can do it is to have independent APIs in (VB, C++ & Java)But, i can also have a Java component made into an executable and this ...

Launching JWS Apps from other Apps

217 byte By gshifrin at 2007-9-26 7:05:48
I'd like to launch a JWS app from another app via the OS (so that it gets its own JRE and address space). Can I do that somehow by launching a copy of the JNLP file? Needs to run in both WinXX and UNIX.

Unable to load JWS App

1215 byte By LGonzalz at 2007-9-26 7:05:56
Below is our JNLP file. The title, vendor and description print out to an html page but the application does not launch. Does anyone have any ideas?Thanks.Lynn<!-- JNLP File for SwingSet2 Demo Application --> <jnlp spec="1.0+" codebase=" http://ucidev.unilever.com:81" ...

JWS & Window NT Policy manager problems

775 byte By smcstravick at 2007-9-26 7:06:27
Has anyone had any experience using a Java Web Start deployed application and the Windows NT Policy manager?When I login to the PC as an adminstrator and run the application it works great.When I login to the PC with an account filtered with the NT Policy manager, the application runs fine ...

How can I read content of clipboard?

157 byte By jatro at 2007-9-26 7:07:08
Hello,I develop simple styled text editor and I may implement cut and paste mechanism. How can I read content of clipboard?Thanks

reading from a text file

1177 byte By rickdd at 2007-9-26 7:07:19
Hi, I am reading a text file from an applet using a buffered reader. When I read line by line, I use a while loop. My problem is that in the text file I need hard line breaks to make my reader go to the next line. How do I code this so the reader reads the line length of the text file instead? ...

Getting available Unicode chars from font?

203 byte By autophile at 2007-9-26 7:08:00
Hi all,If I have a Font object, does anyone know how to get a list of Unicode characters it supports? I could use canDisplay 65536 times, but that's silly.Thanks,--Rob

JWS & JDK1.4 w/ JSSE

1006 byte By MarciaP at 2007-9-26 7:08:04
Hi,I have a Java application (say 'MyApp') that uses SSL connections to communicate w/ another applic. So we'rebuilding this applic. w/ JDK1.4.0b and using its JSSE. The user has his/her keys and cert, stored in 'cacerts' and can run this application fine (under UNIX and from MyApp.jar) ...

Flickering Canvas in scrollpane

603 byte By kakanir at 2007-9-26 7:08:05
I am trying to write a chat applet that will scroll posts from the bottom of the screen and smooth scroll them up. I am using a scrollPane to display a canvas that I draw images onto. However, as I draw the images on the canvas, anytime the scollpane is "damaged" it blanks the canvas out, and I ...

Font.canDisplay refuses to admit it can display its own characters!

978 byte By autophile at 2007-9-26 7:08:40
Hi all,I have a true type font, Georgia, included with Windows. I'm using a nice font viewer from www.fontview.n3.net which shows that it includes unicode character 00A3 ("Pound Sign") and also unicode character 03CB ("Greek Small Letter Upsilon with Dialytika").Now, when I load this font, I ...

new boy needs help

383 byte By DenisM at 2007-9-26 7:09:05
I am a complete novice at java and have just started learning. I have a major problem with getting started and wonder if anyone can help.I have written a program in Notepad but when I go to the Ns dos prompt to compile it absolutely nothing happens. I have windows ME as my Operating system and ...

java.security.debug problem

466 byte By ternst0 at 2007-9-26 7:09:30
I am able to set the system property java.security.debug=access in the resources section:<property name="java.security.debug" value="access"/>but it seems that JWS ignores it (no debug information is printed to the log file). The program works fine if I start it as a standalone ...

Dear sir! How can i judge a string's encoding?

196 byte By lee_jin at 2007-9-26 7:09:38
Dear sir! How can i judge a string's encoding?Now i receive a string !but i do not known what encoding this string is? I want a method to judge the encoding.Thank you!

How can I create non-standart Buttons ?

341 byte By pdushanov at 2007-9-26 7:10:11
I want my Button to be with a circular Shape for exampla or an oval and behave like a normal Button.Should I subclass java.awt.Component,java.awt.Canvas or java.awt.Button ? And what else should I do.I tried to overload tha paint method of the Button class but it didn't work.10x fo the ...

JavaWebStart 1.0.1/Weblogic 6.0 --Download Error

835 byte By raopayala at 2007-9-26 7:10:48
Hi,I'm using Weblogic 6.0 sp3 to deploy a test application on my system with JavaWebStart 1.0.1(JWS1.0.1).After I have clicked the link pointing to the jnlp file the JWS1.0.1 is getting started but its showing the following error*********************************** An error occurred while ...

Font Display problem on win 98

658 byte By tntsoft at 2007-9-26 7:11:15
We are facing a font display problem on windows 98. The application written in Java runs on both Win98 and Win NT Server Ver 4.0. It is used to display data in multiple languages eg Camodian, Laotian etc.We are using Arial Unicode MS font for displaying Unicode characters.These characters ...

securing jar file

417 byte By stephensutherland at 2007-9-26 7:11:35
is there a way to secure a jar file so that it cannot be decompiled by customers when they download my java application onto their computer ? let's say I have a jar file with applet classes. is there a way to secure the jar file so that people will not be able to either a. point their browser ...

printing the text file

357 byte By ushasku at 2007-9-26 7:12:54
Hi, I have a java program which returns the output to a text file. Whenever the program is compiled, it reloads the text file. I would like this text file to go to the default printer and get printed automatically, whenever it is reloaded. Can I do this? If so, could u please help me out. Hope ...

Can't run java In Wondow XP

299 byte By javasoftchien at 2007-9-26 7:13:13
Hi, all;I have installed JSDK1.3 in WindowXp, but it seems to me that I can compile the file, but I can't execute the file. The error message was : NoClassFoundException main : MyfileIs the problem of window XP, or my wrong configuration of java? Thanks for helps

Location of Image files

542 byte By tata555_98 at 2007-9-26 7:13:15
I have an application that I want to distribute to internal users via web start. I have it working, but I am having problems with my image files. They are packaged in a jar file. The problem is that I have a properties file that is read when the app starts that points to the location on the ...

Arabic numerals not displaying in Swing text components

741 byte By brian.wainwright at 2007-9-26 7:13:21
On a test system setup with Windows NT Arabic version, we had problems entering Arabic numerics into Swing text components.Other Arabic characters were displayed correctly, but numerals were all represented by Western characters ('0 to 9'). Even when using the "Alt-" method to enter the ...

Certificate failed

423 byte By ashokdarsh at 2007-9-26 7:13:31
I just bought this Digital Signature from Thawte CA & I signed my application (.jar file) using the jarsigner command.. everything went on well.. But When I launch the application It still pops up again with the "Security Warning" window... even if the jar file is signed with a real ...

Win 2K/JRE 1.2.2

412 byte By vw5342 at 2007-9-26 7:13:45
All,I am attempting to test our Java applet under Win2K, but cannot install the java plugin (1.2.2) unless I am logged in as an administrator. Since normal users will not have the capability to log in as an adminstrator under Win2K (at least in our shop) to install the plugin, how are people ...

Writing to a file from an applet

370 byte By akahighlander at 2007-9-26 7:14:21
I have created an applet that runs on a web browser. The applet asks a user for information. I want to be able to have the applet write that information to a file in the same location that the web page is gotten from the server. Does anyone know how to do this? If I run the applet in the ...

IOException in Tomcat on app start

387 byte By gleeky at 2007-9-26 7:15:06
I'm getting this error running JWS on Tomcat ocassionally with SimpleExample from the Java SDK:Ctx(/examples): IOException in: R( /examples + /SimpleExample.jar + null) Connection aborted by peer: socket write errorApp runs. I get the same error for each jar in my development app, and the app ...

Question about URLEncoder misbehavior in servlet w/ program code provided.

864 byte By c3k at 2007-9-26 7:15:13
I simply write the following code to encode 1 chinese string and decode but failure. It works in application mode. Can anyone know the reason? //--Here is the code --// out.println("<body>"); out.println("Encode string:" + request.getParameter("encode") + ""); ...

How to set background image for an JFrame and JApplet?

38 byte By msangeetha at 2007-9-26 7:15:16
thanks,Sangeetha.

Problem accessing backend database

3888 byte By jkedar at 2007-9-26 7:15:31
Hello everybodyI am having exception when i tried to access database from my jws application,the exception is all follows,executing query...Loading classes...getting connection...Exception occurred during event dispatching:java.security.AccessControlException: access denied ...

unicode v1.1 vs unicode v2.0

202 byte By oodip at 2007-9-26 7:15:46
Does anyone here know where I can get all the differences between these two. Also does anyone know exactly what versions of unicode Sybase supports for 11.9x Adaptive Server.

Why doesn't JWS always download the latest jnlp file?

348 byte By santoshkg at 2007-9-26 7:16:27
I'm unable to figure out where and how does JWS cache once downloaded jnlp file. I've made no. of changes in the jnlp file sitting on webserver. In spite of that whenever I run thru browser, it throws the same error and in LaunchFile tab shows the same old contents of jnlp file.Can somebody ...

UnsupportedCommOperationException using Java Communication API

2055 byte By BenEat at 2007-9-26 7:16:38
Hi,I have created an application that uses JavaCommunications API 2.0(comm.jar). I compiled it withthe Java2 SDK 1.3.1, and ran it successfully on Win32.For practical reasons, I compile on a SUN workstation, then I copy the *.class on a PC where I run my application.To run it, I type:>java ...

Not able to enter French characters in Applets on SOlaris2.8 of Netscape

443 byte By mvgopal1 at 2007-9-26 7:17:39
Hi,I've tried with one of the javasite applet for testing French characters. This applet menstioned as internationalized applet. Here is the link for the sample applet at java site: http://192.9.48.9/applets/glossary/index.htmlThis I've tried on Solaris2.8 with Netscape4.7. I'd logined using ...

introspecting inner class

249 byte By bommineni at 2007-9-26 7:18:14
How do I introspect an inner class of a package from a class of another package?I am getting IllegalAccessException while introspecting.This is nothing but package restrictions in Java. But is there any solution for this?

Calling Methods from a JSObject

702 byte By sundhario at 2007-9-26 7:18:47
I'm trying to call a method of a JSObject that I pass to a java applet. II figured I start of by trying some examples w/ the document object.JavaScript:function something(){document.applet1.doSomething(document)}Java:public void doSomething(JSObject document) {System.out.println(document);}1) ...

JavaTM 2 SDK, Standard Edition, v 1.4 Beta 2 for RedHat on Sparc ?!?!

844 byte By Electromed at 2007-9-26 7:18:56
Hi, I've recently dowload the JavaTM 2 SDK, Standard Edition, v 1.4 Beta 2 for Solaris since only this distribution support Sparc. But I've got problem to decompress the binary scripted file.When I execute the shell,sh j2sdk-1_4_0-beta2-solsparc.shit display the Software Evaluation License ...

Any Tools to convert HTML unicode to JAVA unicode ?

262 byte By mindterm at 2007-9-26 7:19:09
Dear all, I would like to ask any tools to convert HTMLunicode ( e.g. & # n n n n ) to JAVA unicode ( e.g. \un n n n ) ? and reverse JAVA unicode to HTML unicode ?e.g. & # 1 2 A B to \u 1 2 A BM.T.

How to use AppletContext.....?

1324 byte By reddyumamaheswar at 2007-9-26 7:19:20
Hello,How can I use AppletContext within a class that is being called by an applet. All I need is on click on that text, I wanted to open a document or an HTML page. I am using this code, Please see below and help me.import java.awt.*;import java.awt.event.*;import java.lang.*;import ...

Applet-Servlet-Database

389 byte By reddyumamaheswar at 2007-9-26 7:19:22
Hello,I am a Java programmer, basically learning. I am having a doubt regarding my Applet-Servlet Communication. Can you please help me? All I need is to send some data from an applet to the servlet and from servlet to the database. As I am new to this topic can you pleae help me by giving a ...

Passing JavaScript Objects to Java

759 byte By sundhario at 2007-9-26 7:19:45
I'm trying to pass a JavaScript object to Java but I keep getting exceptions.I'm under the assumption that if I pass a JavaScript object to Java, it must be received by Java as a JSObject. function someObject(s){this.text = s;this.getStuff = SO_getStuff;}function SO_getStuff(){return ...