No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
13 Posted Topics
Hi all, I'm currently trying to solve a problem with a JList. I've got an actionPerformed event applied to the JList (also tried the item updated event but it has the same effect), and whenever this event is fired, (i.e. the user makes a selection), something happens. Now, the problem … | |
Hi all, ive got a problem relating to the log4j.jar file (I suppose it would be the same problem regardless of what the .jar file is). I created a library based off the log4j.jar file, and the logging works and everything runs smoothly on my laptop. However, when I use … | |
Hi all, ive got a bit of an annoying problem regarding JUnit 4.5. I've created a bunch of unit tests which work properly when I right click the class and press 'Test' (in Netbeans). However, when I right click the whole project and press 'Test', i get a ClassNotFoundException. I … | |
Hi all, I'm writing a simple encryption algorithm and have stumbled upon a problem relating to the file handling itself. What my program does is reads text from a file, encrypts it, and writes it to another file. That's all well and good, and it works fine - until a … | |
I need to generate a JInternalFrame every time the user presses a button. Is it possible to use the netbeans GUI builder to do so, since it is created dynamically, or do I need to code the internal frame's UI layout manually? If so, how can it be done with … | |
Hi all, I've got a certain instance in my program where an integer variable, let's call it 'x', is initialised in one part of a class, however the value is not present when the integer is called in another class. To explain further, I've got 2 classes - 'class1' and … | |
I'm trying to create a method which checks if a certain text file is empty, and if so it deletes it. However, the program seems to freeze for one reason or another when executing this part. [CODE]try { BufferedReader in = new BufferedReader(new FileReader("File List.txt")); String str; while ((str = … | |
I'm creating a word processor similar to Microsoft Word (but much simpler). I'm having a problem with a dialog box. When a user presses the 'new document' button, it prompts the user to enter the file name, and when the user does so, he presses ok, and the file name … | |
Hi, I'm having a problem with this part of my code: [CODE]} while ((menu2.equals("4") == false) || ((menu2.equals("3")) == false));[/CODE] The compiler seems to be ignoring it for me... is there something wrong? I basically want the loop to end if the String menu2 is either "4" or "3". What … | |
Hi all, I've got a problem relating to error reporting. In the code posted below, when the user actually presses enter after reading the error, the program does not loop back to the main menu, but merely repeats the error. If I remove the "input.nextLine();" code in line 17, then … | |
Hi all, I have read many IT degree related posts on this discussion board regarding CIS vs. CS degrees. In a week I must hand in my application for university which starts in October. My main dilemma, similar to other users on this discussion board, is that I must choose … | |
I'm currently learning java, and im having a problem understanding what's going on when we use a constructor when inheriting from a class that already has a constructor. The best would be to just throw in my example. I have 2 classes, "Person" and "Employee". "Employee" is inheriting from "Person", … | |
I am familiar with the differences between public and private. However, I read many online explanations about 'protected'. What I gather is that a protected field can be viewed and manipulated by all classes within the package, and all subsequent subclasses, ragardless of what package they are in right? Well … |
The End.