To whom this may concern:
For several weeks, I have been attempting to write a Java program that uses an image as the GUI, with 6 spots on the image going to different pieces of code. 4 of the spots are Java coded calculators, and 2 of them go to pdf manuals.
I started using a text editor, and had success with the calculator functionality. The GUI was really difficult for me, so I moved to NetBeans to try to implement this.
At this point, NetBeans "cannot find symbol" getCodeBase(), and I have imported about every library I can think of. Point being, I have code everywhere, and am totally confused as to how to get the GUI working, and to get my different calculators and manuals to all "talk" to each other.
Should I go back to my text editor? Should I continue working NetBeans? I am completely confused, and my deadline is very, very soon.
Can anybody offer advise, or possibly even what the base code would look like? I thought that I knew how to program before I took this on, and boy have I been schooled!
Any help is very, very much appreciated.
Thank you,
Chad T
It is true that it is a little frustated learning Java GUI for the first time but when you are used to do that, you should have no problem anymore.
What you need to know regarding the GUI is that the positioning. Please search yahoo based on Layout. There are many Layout in Java such as FlowLayout which default your GUI from left to right, BorderLayout which divides your screen into NORTH, WEST, CENTER and etc. BoxLayou, GridLayout and etc.
You may also search yahoo or google on the Panel or JPanel if you use Swing. The panel can contain many components of your GUI such as JBUtton, JTextField and etc.
Then you need to know more about Listener. For the JButton, JTextField, they all have the listeners to configure what they need to execute if they are pressed or invoked.
By learning these three components, I believe that you should have some clear and obvious idea. Please search on JavaAlmanac.com and etc.
My suggestion...just stick to NetBeans or you may post your prob here.
Regards
Dave