A java program Calculator which I've developed, and which runs flawlessly within NetBeans IDE 4.1, creates a JAR file in the /dist directory as expected. The resulting created file has location .../dist/Calculator.jar. Now, when I click on the Calculator.jar file, nothing happens, i.e. it ...
913 byte By
Stimphya at 2007-10-1 15:26:20
I'm kinda a newb to java applets.I am making an applet to display images, but I am having difficulties building "new" versions of the same applet. It seems that when I compile my .Java code into a .Class for the first time in a directory, then run IE I can see the applet as it is intended to ...
Ok, I am working on a fairly simple game where there are two little tanks, each controlled by a different person but receiving key events from the same keyboard.I'm not sure what I need to do to enable simultaneous keyEvent parsing, but I would like for both tanks to be able to move at the ...
510 byte By
zyBitXa at 2007-10-1 15:30:11
I have installed:JDK 5.0-03, J2ME Wireless Toolkit 1.0.4-2, NetBeans IDE 4.1 och NetBeans Mobilitypack 4.0Running NetBeans IDE, KToolBar or any other application in these packages results in an empty window or dialogbox on the screen.No menus, no toolbars, no icons or text.It is possible to ...
Hi can anybody help me how to restart windows(all flavors) from a java program. Is it possible using Runtime.exec(). If so, what is the process name I have to pass? . My requirement is to popup a wraning message saying "Restart Windows Now? " with "Yes" or "No" buttons. On selecting "Yes" the ...
Gud day... i just wanna ask regarding java communications or the package javax.comm... i downloaded, installed, and tried the sample from the PDF file included in the java comm download... i was able to use the javax.com package and compiled the sample program successfully. The problem is ...
I need to write application which read data from the card and input this data where the cursor is. si this program will act as input device.This application will apply to all application which are running while this application is running. So how can talk with windos to do so. My all input to ...
I have 2 JTextField objects in the same class that have an action listener associated with them. I was wondering how I can implement my actionPerformed() method so it knows which object generated the action. I have attached the relevent code, commenting out the second actionPeformed() method to ...
To whomever may help with my problem:I have been trying to logon to sites and visit many webpages and I get "Click here to get the plugin" message with a light blue puzzle piece above the message. Then I follow that link to the download center, (which I don't need to do because I already have ...
Hello i am making a game for my grade 12 computer programming class, it is a RPG game. I am farly new at all these key listeners and what not, so i have had some trouble trying to add an image in to a keylistener. What I am trying to do is make a 'human' move through my school to find a lost ...
Hi to all of you,I'm working on a project that manipulates data in hungarian language and i discovered that the JDK 1.4.02_07 cannot read nor write special characters from this language. In the JDK specifications (see page http://java.sun.com/j2se/1.4.2/docs/guide/intl/locale.doc.html), is it ...
Anybody know the reason for this confusing error I was moving a project to a new pc - where I had 1.5 (and 1.4) installed.Extending a class in a jar-file (compiled with1.3 or earlier ) suddely malfunctioned with the error -: cannot extend final class xizzy.I looked at the source .... it was not ...
hi i'm search for free online java certifcate ....... ( contain of courses , exam and.........) do you help me ?
6602 byte By
slfoonga at 2007-10-1 16:05:42
Hi there,does anybody know about what cause the following error when starting up the Eclipse. Your help is much appreciated. Thanks.!SESSION Jun 13, 2005 10:30:37.307 eclipse.buildId=M200503110845java.version=1.4.2_07java.vendor=Sun Microsystems Inc.BootLoader constants: OS=win32, ARCH=x86, ...
734 byte By
cs98nt1a at 2007-10-1 16:09:16
Hi all!I have the following problem. I am developing a db application. I have a Jframe with a table and a button. The button opens another jframe that is used to insert a user. The table of the previous panel lists all the users in the db. When I enter a user I want to update the table and ...
Hello Master minds:Is it possible, in a jTable, that after you edit the data in one cell, to send focus/cursor to another cell that maybe not in the same row or column as the edited cell ? Example: I just finished editting the data in cell 1,1. Upon pressing "ENTER" in that cell, I want it to ...
I have a method in a GUI class which is called when a button is pressed. This method calls another GUI class with its own set of buttons. I need to be able to press a button on this new GUI then return to the exact point in the original method.The method is shown below: public void ...
I have a Dell Latitude D810 laptop running at 1.7 GHz with 1 Gig of RAM. NetBeans 4.0 runs just fine when the laptop is plugged in. When running off of the battery,NetBeans 4.0 slows to an unbelievably slow speed. It takes 10 seconds for a menu to be displayed, for example. Does anyone know why ...
I want to put the action perform in another classnot as a inner classbut the problem that comes up is the issue with passing a reference of all those components, i have to basically pass most of them, which is just crazysay you have a New button that loads all your information and adds ...
372 byte By
bbatmana at 2007-10-1 16:29:23
Guys, do you know anywhere on sun's website where the 1.1.8 JDK can be found?It appears to have disappeared from http://java.sun.com/products/archive/(Note: I need the JDK and NOT the JRE, since I need to verify that some code compiles and the jre lacks javac.)Or do you know of some other ...
I have a virtual keyboard in a non-modal dialog. My main application frame has multiple text component fields. I am trying to deliver key events from my virtual keyboard dialog to which ever text component last had the focus in the frame. However when the JButton is clicked in the keyboard ...
Hello.I want to write in my Linux system file, sombe text files, named X for example. This X file, is created from a String, wich contains special characters like "? or an accent in Spanish lik "cami髇" or something similar.The problem is, when I want to see the file in my system i notice that ...
Hello! I am a student majoring in IT - Programming and have very little experience writing code and really need some help here. I am having trouble with my code. I seems that I have the correct braces, however, I could use some guidance on this. I've posted my code for full view:import ...
44 byte By
jemoa at 2007-10-1 16:39:27
This update won't work with anything
Hello,When ever you download sun's j2sdk, the archive always contains the source code for the entire sdk in a zip file called src.zip except the sun.xxx classes like sun.awt.print.PrintDialog or sun.awt.font.FontResolver. For debugging purposes I need, if availabe, the source code of these ...
I use Eclipse to develop Java applications. I need to import some archive files (not the default jar files available in j2sdk), for my project. How can i import jar files in Eclipse. I googled for the answer, used Eclipse help but still cant find the answer. Can anyone help me with this?Thanx ...
I`m a java student trying to create a game that rolls the dice by clicking on the 'Roll Dice" button. I want the number of dots on the face of the dice to be displayed on a label, but instead I`m getting an error. The dice are rolling but the label is not being updated.....please can someone ...
With the new release plan regarding major and minor releases to the standard edition, is there any preliminary information regarding any planned maintenance releases for the 1.5 release such as 1.5.1 or 1.5.2? I recall that the goal starting with 1.5 was for Sun to focus on major releases ...
92 byte By
KRK2005a at 2007-10-1 17:03:56
I need Java API for Outlook through which i can access contacts and tasks in outlook.
439 byte By
darngara at 2007-10-1 17:09:54
HiI want to set the path variable of windows xp from my application. That is add a line like this: C:\ ...\jre\binI have tried it doing something like this:System.setProperty("java.library,path","C:\...\jre\bin");But it doesn磘 works, when I restart my computer and go to Control Panel > ...
Here's a special situation from the geniuses at Sun.1. Bundle NetBeans for the J2SE. Never mind that people may want a 'server' installation.2. So, I try to run it with the installer with the -console option on Linux (Fedora Core 4):$ ./jdk-1_5_0_04-nb-4_1-linux.bin -consoleThe wizard cannot ...
I am using SWT. I have a sash that seperates a tree and a browser and I need to be able to do the following...Drag the sash to any location within the view.Double click the sash to hide the contents on the left of the sash (make it return to 0 x cord.). When the sash is double clicked again, ...
696 byte By
j__fa at 2007-10-1 17:16:13
What ive got works. Im just curious about my methods compared to what i "should" be doing...Am using swing, and what I have works a little bit like a forum. So I have a list of sections and entries. When a user clicks a section, the main panel displays entries for that section.Ive added the ...
I have a small problem, I need to simulate user clicking on a href that is present in a webpage. I cannot copy the URL and load it as it contains some script that will be added automatically when i click the URL. So I came to know that I can do this by ...
Hi everybody,I would like to ask you where could I find some information how compiler (for example from sun) is working and how can I this compiler optimalize. I'm interested mainly in this area:- can I switch off compiling of never used classesThank you very ...
Hi guys, I'm using JBuilder X with JDK 1.5 compiler support, and I still have a big problem...Someone know how to avoidthe following error when fully rebuilding a big project?StdErr: java.lang.OutOfMemoryError: Java heap spaceI already tried to call javac with -J-Xms and -J-Xmx ...
Actually I have managed to drop a database view residing as a node in my JTree through a query but i wanna see the node disappear as soon as I remove it,,plz can anybody help me out?
I am not sure whether patch needs to be applied or how to resolve it. This issue showed up a few times this morning. Also is 99% of "compacting perm gen" an issue? =========================================================Here are the versions.SunOS ISU113 5.8 Generic_108528-29 sun4u sparc ...
356 byte By
DevXTa at 2007-10-1 17:36:54
How can you prompt a save dialog when a user clicks on the close box and still keep the main shell alive till the user chooses a yes or no which exits the application or a cancel which keeps the application active...The dialog part i can do...but how to keep the window active when you hit the ...
Hi, thanks for reading....I'm currently writing a piece of code, and need to allow the user to input info in a nice GUI JTextfield, and press an OK button, with an eventListener attached. Trouble is, I then need to use the info they entered, for calculations etc etc in the rest of my ...
593 byte By
vidyuta at 2007-10-1 17:43:57
Hi,I have a program that displays html in a jeditorpane. I have added some html links to my pane and a hyperlink listener. This works fine when the JEditorpane is not editable. However, I would like to edit the text in the jeditorpane and be able to click on certain places in the JEditorpane ...
Hello frensi have configured eclipse and tomcat and tomcat is running well in eclipse.But when create tomcat project and write a servlet it gives error for all servlet class and fail to compile .What and how classpath is to configure in eclipse to run servlet
I'm currently working on an application that has three tabs inside a JTabbedPane. Inside each pane is several panels ( probably a minimum of 5 panels to a pane, for layout resons ). I'm starting to code in the event handling for all of the buttons, and I have a few problems.One: All of the ...
52 byte By
adithyaa at 2007-10-1 17:46:41
how to pop a message window without using awt
Hi Frendz,I am having Eclipse 3.0 and Web Sphere Application Server 5.0.I am using these two for the first time so i don't know how to configure the Eclipse and WebSphere.So can anyone tell me the full procedure for configuring these two and how to run web applications(Servlets and JSP) from ...
Hello allI have my server socket program in C which is in linux system and my Client socket is in Java which is in Windows 2000. I have to establish nearly 1000 connection. And also i should receive data from all the connection in client side. But i can able to connect 232 users only. while 232 ...
Hi, I have a program that displays a guide and i need to add some html links. I need an example. Thank you.
664 byte By
pg917a at 2007-10-1 18:05:16
I created a web application project (WebApplication1) using NB, but even after I deleted this project (outside of IDE), I'm still getting refereces in Tomcat to this deleted project. For example, when I create completely brand new web proejcts, and run it with Tomcat, Tomcat gives me errors ...
450 byte By
akhilja at 2007-10-1 18:07:41
Hi,I have to implement 3 event listeners to a group of classes. All these classes have exactly the same code of listeners. Is there any way to do this without repeating same listener code in all the classes. I mean is it possible to using this listeners using something like bridge pattern.All ...
274 byte By
lucaz_a at 2007-10-1 18:10:03
Hi people,I need to prevent text edition in some areas, like the NetBeans IDE generated code (for the visuals).I think I must handle the user input and check if that line is avaible for edition.How can I write this code?.Thanks in advance.