Can someone give an example of a button listener to use? Please help.
488 byte By
yreddy1 at 2007-9-26 2:16:22
Hi Guys,I am building a swing application and whenever a new screen shows up on the window, they tend to show up behind the Microsoft Magnifier. They are actually supposed to show up below the Magnifier itself. How can I make that happen?I am aware that I can set the following in the ...
Hi experts, i get a interesting problem for handling HK wording.i am doing a project which take input from the web by using JSP and store the result to Oracle DB(charset UTF8).i found that some character is change to something like this "# & 3 7 0 3 2 ;" rather that a a unicode character ...
2124 byte By
mpetres at 2007-9-26 2:17:34
Hello everyone,I am posting about a JTree refresh problem that seems to be very popular....My code uses a custom model that implements TreeModel (unfortunately I cannot just inherit from DefaultTreeModel). My custom model also provides the same implementations for the fireTreeNodesXXXX() and ...
Is it possible to find out the list of characters encodings (UTF-8, cp1252) supported by the JVM dynamically at runtime?I am aware that there is a list of supported encodings listed on the Sun site for Sun's JVM. However, I also know that the supported encodings can vary depending upon the ...
291 byte By
rthorton at 2007-9-26 2:19:26
Hi,Is there a way of changing pixel colours in (say) a Graphics (or image) object? I want to be able to create a Graphics object, and then change pixel colours, as determined by the results of a numerical simulation, as results are generated.Any help appreciated!
94 byte By
rmahale at 2007-9-26 2:19:29
Is it possible to pass value of variables in java as parameter to unix commands?
140 byte By
okkim at 2007-9-26 2:19:35
Is there a way to count number of colors in image?For example: How can I know when my image is black and white (gif) ?
355 byte By
Aryaroop at 2007-9-26 2:19:39
Hi,Can someone please help me with the following requirement?I have an applet that displayes a lot of data. The requirement is that on an event (say user clicks on a button), the data has to be downloaded to the directory specified by the user...Any idea how this can be done?Regards,Aryaroop ...
514 byte By
greghug at 2007-9-26 2:19:46
After the user has initially said that this is okay and selected "please don't warn me again", does anyone know how to save these settings between program invocations?It is a real pain for the user to keep having to say yes to this every time they restart my label printing application. Most of ...
480 byte By
rampe29 at 2007-9-26 2:19:51
I downloaded JDK 2.0 SE 1.3.1 and Java 2.0 RunTimeEnvironment SE 1.3.1. I created this path d:\jdk1.3.1\bin to enable using commands java and javac in command prompt. What I have to do to enable use jre -cp . Hello command to test my Hello program in Windows JRE?If I now type jre command to ...
I'm new to computers in general, but how can I write text onto a JTextarea - i need to type into one TextArea in Spanish and in English in the other - can I set up a textarea to be able to write words that include Spanish characters - I've read through most of the forums, but most don't ...
I have written an application using the Forte CE IDE. Now I want to deploy it to other PCs running JRE1.3, so I used the JAR packager to create a JAR file and I ensured the manifest had the Start class specified. Unfortunately, when I try to run this application via the command line on either ...
I have written an application using the Forte CE IDE. Now I want to deploy it to other PCs running JRE1.3, so I used the JAR packager to create a JAR file and I ensured the manifest had the Start class specified. Unfortunately, when I try to run this application via the command line on either ...
652 byte By
GL_Lgb at 2007-9-26 2:21:22
Hi,my JNLP file contains the following snippet...<resources os="Windows"><nativelib href="lib/windows/corelib.jar"/></resources>...where corelib.jar contains several DLL files. The first DLL depends on others contained in the same jar file. Lauching the program under Windows ...
269 byte By
rontyro at 2007-9-26 2:21:38
Hello. I am a newbie wrt Java.My question is:Is it possible to install JavaTM 2 SDK, Standard Edition Version 1.3.1 for Microsoft Windows onto the D: or E: drive? If yes, how can this be done? Thank you,Ron.
235 byte By
LuckyLeo at 2007-9-26 2:22:01
I have compiled all the java file using javac command , but when i tried run the program using javac command , it thrown a excetion:Exception in thread "main" java.lang.NoClassDefFoundError:Why?Thanks
HiI have some problem executing class file under UNIX. I have a directory under UNIX,/home/user1wherein I have placed a class file say "JavaProg.class"I execute "java JavaProg" from the above directoryand it generates the desired output. Now, I have another directory,/home/user2wherein I again ...
292 byte By
davidvvv at 2007-9-26 2:22:20
Hello,I am trying to find an api or something that will give me a list of java processes running on the machine, so that I can see if my java program is running. I happen to need this for NT, but there should be something for the JRE Any ideas?thanks
509 byte By
lets629 at 2007-9-26 2:22:27
I have a JWS application has been running successfully under JWS 1.0. I like it. However, the JWS 1.0.1 gave me a painful problem:"Bad MIME type returned from server when accessing resource: http://MyTestingSite.com/WebStart/example.jnlp - text/html"I tried the ways that ppl suggested in the ...
281 byte By
aweinber at 2007-9-26 2:23:03
I tested the notepad sample Application, and noticed that in the jnlp file there is no security tag. Also I saw that the jar file is not signed.The notepad application can read and write files on my local disk.Where are the security restrictions?
I have written an application that is on a Time accurate box, if the time drifts the System clock is reset(forward and/or back). I have noticed that when I set the time forward the application doesn't care, However when I set the time back my app stops all threads and waits for the time to ...
I wanted to access the com components of Visio using java. Can anyone help me with the source code as the code will help me in understanding how it does muh better. Hope some one has worked on this problem and have the solution ready, if so please help me.Thanks for all the help in ...
854 byte By
JAYF at 2007-9-26 2:25:11
HELLO,I HAVE DEVELOPED A SOMEWHAT COMPLICATED GRID BAG LAYOUT DIALOG WITH THE FOLLOWING:16 LINES WITH COLUMNS OF INFORMATION ALL OF WHICH ARE LABELS.2 LINES WITH COLUMNS OF TEXTFIELDS AND LABELS WHICH ARE DIFFERENT COLUMN POSITIONS THAN THE FIRST 16 LINES.1 LINE OF BUTTONS.GETTING THIS TO LOOK ...
131 byte By
jane75 at 2007-9-26 2:25:53
Is there any big different I use string.equals and collate.equals to compare japanese word , french, icelandic etc ?
452 byte By
ecspasc at 2007-9-26 2:26:34
I'm considering tools and utils for a new project and WebStart looks like it could suit our needs just perfect.Just one little question:If I have a system with multiple applications controlled by WebStart, is it possible to restrict user access?I need to be able to present different selections ...
97 byte By
maxima2 at 2007-9-26 2:27:02
How can I use StringTokenizer for hebrew text?(Direction from right to left)
142 byte By
BRoberto at 2007-9-26 2:27:06
I have to setup the environment variable of j2sdk on Linux (debian)How?Thanks!Roberto.(caaib@tin.it)
933 byte By
damoncwk at 2007-9-26 2:27:16
HI,I have installed ant, j2ee tomcat-3.2.2 and jdk1.3 and when i tried to compile the source file downloaded from java.sun byant converter, it prompted"Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/tools/ant/main"I am running it on win98 with the autoexec.bat containing ...
666 byte By
hiobsun at 2007-9-26 2:28:49
So far I have loaded a helpset, created a helpbroker and I'm able to view context sensitive help for menu items and components in the main frame of my application.I can also view help by adding the following line to my modal dialog:mainFrame.helpBroker.enableHelpOnButton( helpbutton, ...
In my AWT - GUI screen I face flickering problems when I ported my application from jdk1.1.8 to jdk1.3.1.Can any one suggest some steps by which this problem of screen flickkering can be overcome.I am working in winNT platform.
363 byte By
hiobsun at 2007-9-26 2:28:52
Activating my CSH from a modal dialog leaves not only the main frame inactive but the help window as well preventing further navigation in the help.Do I have to start the help in a separate JVM earning a load of communication problems or is there an elegant way to circumvent this ...
609 byte By
MagDy at 2007-9-26 2:29:05
Hello, I have two applications.Both packed into .jar files and uses manifest files so they can be executed by double-click.One firstapp.jarothersecondapp.jarHere is the problem.Either .jar file I click on, the secondapp.jar is executed.Though if I execute them from a command prompt with.Java ...
347 byte By
BCBCBC at 2007-9-26 2:29:11
hi all,i am about to read all (...) the jws docs, but i have to know some basics immediatelly...sorry.1. when i have a "normal" application ==> do i have to make LOTS OF changes to use this code for an jws application ?2. where can i download sample code ? thank you all,andi ...
240 byte By
BRoberto at 2007-9-26 2:29:23
I have to install Tomcat 4 on a linux machine (Debian) as an application server (that is Apache serves the static content (html) and Tomcat serves jsp file)How can I do ?ThanksRoberto(caaib@tin.it)
We are experiencing a landry list of problems with java 1.2.2 and 1.3 when trying to print reasonably simple reports. I am just curious if anyone has encounterd problems like these, or if anyone has had any luck working around them. We would really like to release our software to production but ...
I've been using the same upload servlet (based on the O'Reilly) for the past year. I noticed today that it throws an exception when trying to resize the image (after upload). Was wondering if anyone had any ideas about why this might be popping up now. I am running Windows 2000 Pro and ...
998 byte By
rflahert at 2007-9-26 2:30:16
My test code converts a Unicode string to UTF-8 and back. The Unicode->UTF-8 seems to work, but UTF-8->Unicode fails. I copied the code from String's constructor taking the encoding to see if ByteToCharConverter was throwing an exception, add it was throwing a MalformedInputException. It ...
Hi,I am unable to view any applet in my IE5.5. Can some body suggest some way out.thankssanat
542 byte By
mkart5 at 2007-9-26 2:33:08
HiI tried to download sdk 1.3.1 for linux using both Netscape and IE..they downloaded onto my win 2000 machine allright but when I copied it onto a cd and tried to load it on my linux m/c at home it wouldn't load. It reads the file and at exactly 27% it stops and gives an error message. I am ...
214 byte By
testajus at 2007-9-26 2:33:16
I have a applet that works great in windows 2000 however when a pc with NT 4 trys to open the page it gets a message asking to download the microsoft vitual machine. What is causing this. Please help.
Hi All,I'm using SOAP to transfer Java Objects to my application. Everything works great if the client has access to the class file for the object it receives.I get a ClassNotFoundException in my deserializer if the class file is not available on the client.I can solve this problem (I think) ...
721 byte By
hubes1 at 2007-9-26 2:34:39
hey,i'm having some really annoying issues trying to write Java applets and using the 1.3 plugin. when i try size the applet using the html params of width and height, the applet looks like it's scaled to the correct size. however, when i do a getWidth(), if i set my width to anything less ...
297 byte By
chunyun at 2007-9-26 2:35:02
if i want to use hotjava to view html files, and when i click a button or something in application, how can i get an existing hotjava window and update its contents?in Netscape, we have -remote option to find out. Thanks for replying!!! -Frank
863 byte By
mneumi at 2007-9-26 2:36:47
Hi all!Is there any more sophisticated way of getting the memory requirements of objects at run-time?Currently I'm using Runtime.totalMemory()-Runtime.freeMemory() to estimate the memory usage before and after loading the object in question. The difference should be the memory used by the ...
4953 byte By
abcdefg2 at 2007-9-26 2:36:52
I have written some code to print from a file to a printer. The problem is that only the first page prints out and the rest do not. Here's more clarification:Becasue I assume that in a file about 45 lines make up a normal page I am able to get the right amount of pages to be displayed in the ...
Hi i want to play Flash4 file xxx.swf in swing ComponentJMF Api Supports upto Flash2 only i downloadled Flash4 player which is a ocx file .how can i integrate this ocx in swing Componenthelp me pleaseregardsMahesh.B
633 byte By
Tamer at 2007-9-26 2:37:14
Hi,I'm new into java development, and I would like to check the following: Now, if i develop a small application, that makes some simple stuff (it's size is around 100k bytes) and i want to distribute it to some users as a stand alone application, I know that the users machine should be ...
812 byte By
Xuelynom at 2007-9-26 2:37:18
Hello, i'd like to have some answers to thoses questions:Im coding a programme with "graphs" inside JInternalFrames and i would like to save them and what is inside (panels, with panels inside and dnd listeners and my lord, a lot of things indeed).Can i just use XMLEncoder/XMLDecoder to ...
3449 byte By
humesr at 2007-9-26 2:37:44
Aug 1, 2001PROBLEM:Upon manual installation of the Sun 1.3.1 JAVA Plug In on a client, our applet will load but can no longer "find" the properties file and throws a MissingResourceException. Otherclass files from our single jar are found OK. No other changeswere made on this machine - only the ...