All Questions

7
votes
2answers
8945 views

Netbeans GUI editor generating its own incomprehensible code

When creating a new project in netbeans, if i select JAVA Desktop application, it creates some code which I DO NOT RECOGNISE AT ALL as what i had learnt in swing. It imports packages such as : org.j...
6
votes
3answers
2748 views

How to wire one pane to another

How do I wire output to paneWithList? PaneWithList has a listener on its JList so that the selected row is output to the console. How can I direct that output to the JTextPane on output? Could Pane...
7
votes
1answers
30122 views

Java Swing button colors

I am using NET Beans IDE for developing my application in LINUX. I have used synthetica package to generate new look and feel. All is well till now. Now my next stage is to add colors to buttons when...
13
votes
5answers
30718 views

Centering a JLabel on a JPanel

I'm using the NetBeans GUI builder to handle my layout (I'm terrible with LayoutManagers) and am trying to place a simple JLabel so that it is always centered (horizontally) inside its parent JPanel. ...
37
votes
2answers
100440 views

How to setup classpath in Netbeans?

Can someone tell me where and how I setup classpath in Netbeans? I would like to add a .jar file.
40
votes
4answers
159771 views

How to add a JAR in NetBeans

Let's say you create a new project, and want it to make use of some 3rd party library, say, widget.jar. Where do you add this JAR: File >> Project Properties >> Libraries >> Compile-Time Libraries; ...
44
votes
13answers
106599 views

java.lang.RuntimeException: Uncompilable source code - what can cause this?

This error is just bizarre, my code compiles fine, I can see there are no problems with it, yet this error has just popped up. I have tried re-starting NetBeans and there is no additional exception in...
14
votes
1answers
18293 views

How to use CardLayout with Netbeans GUI Builder

Preface (this is a self-answer post) I've gotten my feet wet with Netbeans GUI Builder but I am just not starting to dive in to it to learn the more intricate details. I really didn't even know hot ...
23
votes
3answers
138284 views

How to correctly get image from 'Resources' folder in NetBeans

I have a Java Project in NetBeans 7.0. I want to add some image to some label dynamically. The image will differ depending on the state of the program. I put one such image, 'filling.jpg', in the 'r...
113
votes
13answers
155074 views

How to clear the cache in NetBeans

I created a project in NetBeans, and I would like to clear the NetBeans cache. I'm running NetBeans 7.0.1 on a Windows 7 machine. How do I do this?

Previous Next