NetBeans-generated JAR Doesn't Run Outside the IDE

872 byte By Java_Heavena at 2007-10-1 15:25:58
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 ...

Problems Modifying Applet Class

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 ...

Parsing Multiple KeyEvents Simultaneously

495 byte By primoperfecta at 2007-10-1 15:29:46
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 ...

Hidden objects.

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 ...

How to restart windows(all flavours) from java?

389 byte By Sirigineedia at 2007-10-1 15:32:01
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 ...

Java Comm Need Help!!!

852 byte By khickyphutza at 2007-10-1 15:32:34
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 ...

Input data where cursor stay

567 byte By AlliRwegaa at 2007-10-1 15:32:53
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 ...

actionPerformed Problems

1242 byte By JavaUser1975a at 2007-10-1 15:34:17
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 ...

J2SE 1.5.02 not working

1626 byte By Paraguana at 2007-10-1 15:35:52
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 ...

How to add image to keylistener

881 byte By Rodent14a at 2007-10-1 15:58:06
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 ...

Locales not supported by Java

514 byte By yassouraa at 2007-10-1 15:58:38
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 ...

class in jar declared final in 1.5 but not in 1.4

719 byte By esj@datavisor.dka at 2007-10-1 16:05:11
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 ...

free certifacate

142 byte By persianshadowa at 2007-10-1 16:05:16
hi i'm search for free online java certifcate ....... ( contain of courses , exam and.........) do you help me ?

Eclicp 3.0.2 startup error

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, ...

Communication between two Jpanels

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 ...

jTable - sequencially jumping to non-adjacent cells

508 byte By gary.dcca at 2007-10-1 16:16:05
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 ...

Waiting for events

780 byte By Hawkbatsa at 2007-10-1 16:16:51
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 ...

incredibly slow performance in NetBeans 4.0 when power supply is removed

435 byte By scott12358a at 2007-10-1 16:19:40
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 ...

action perform design pattern?!

593 byte By khan2265a at 2007-10-1 16:26:57
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 ...

Where can I download JDK 1.1.8?

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 ...

Handling focus for virtual keyboard

495 byte By cmildenba at 2007-10-1 16:32:44
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 ...

Problem with special character

513 byte By cerosunosa at 2007-10-1 16:33:06
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 ...

public void itemStateChanged(ItemEvent e){}

5311 byte By machine2a at 2007-10-1 16:37:09
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 ...

Is there anyway I can switch from this new Java to an older one?

44 byte By jemoa at 2007-10-1 16:39:27
This update won't work with anything

Where can I get the source code for sun classes?

559 byte By SynnyFunnya at 2007-10-1 16:47:36
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 ...

importing archive files in Eclipse

318 byte By nonprofitbeana at 2007-10-1 16:56:32
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 ...

NullPointerException error when clicking on event button

23452 byte By asterix555a at 2007-10-1 16:57:56
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 ...

Java 1.5 maintenance release schedule

736 byte By acme1268a at 2007-10-1 17:00:56
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 ...

I am in need of Java Outlook API through which i need to access Contacts

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.

Set path variable of windows xp!!!

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 > ...

Linux J2SE 1.5.0 install w/o graphical interface

565 byte By sun_sucksa at 2007-10-1 17:10:08
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 ...

multiple events on same object

738 byte By drew.smitha at 2007-10-1 17:15:03
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, ...

handling my own events

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 ...

How to simulate user clicking on Href

756 byte By darikatlaa at 2007-10-1 17:16:51
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 ...

compiler optimalization

306 byte By pjuza26401a at 2007-10-1 17:24:35
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 ...

More problems with JBuilder X and JDK 1.5

335 byte By JustCavalloa at 2007-10-1 17:30:11
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 ...

How to remove a JTree Node?

189 byte By Kami_Pakistana at 2007-10-1 17:32:07
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?

JVM abort on UnixFileSystem.getLastModifiedTime

3813 byte By michell_sua at 2007-10-1 17:36:43
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 ...

SWT question

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 ...

returning information inputted in a JTextfield

615 byte By amazinggrace1983a at 2007-10-1 17:43:46
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 ...

adding hyperlink event listener to JEditorpane

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 ...

Running Servlet in Eclipse

287 byte By rajnishea at 2007-10-1 17:45:17
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

events effecting panels in multiple tabs

1503 byte By sean_hagena at 2007-10-1 17:46:10
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 ...

message window

52 byte By adithyaa at 2007-10-1 17:46:41
how to pop a message window without using awt

how to run web applications in Eclipse

328 byte By tajmahal2005a at 2007-10-1 17:56:59
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 ...

java.net.SocketException: Software caused connection abort: recv failed

823 byte By Ramesh_9781a at 2007-10-1 17:57:43
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 ...

HTML LINKS

114 byte By marco_pirelaa at 2007-10-1 18:00:37
Hi, I have a program that displays a guide and i need to add some html links. I need an example. Thank you.

Deleting Projects in NetBeans IDE 4.1

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 ...

Event Listener without implementing Interface..?

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 ...

Prevent text edition in some lines

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.