Hey guys, can someone give me a hand on creating this applet? I don't need it to do anything, I just need to make it look this way, the buttons don't do anything, I just need the design to be this way.
Can you please help me do it as I'm totaly new to applets.:
The program is divided into three panels (JPanel)
1. In the first section the user chooses the destinations, from where to where (JComboBox),
and he chooses the number of seats (JTextField).
He can also choose wether he is going to travel with a Bag or a Suitcase (JCheckBox).
2. In the second field, the user types his personal infos, name, surname, number of passport (JTextField).
3. In the third field, the user chooses one of the payment methods (JRadioButton).
The buying of the ticke is confirmed with the "Buy" button (JButton), or it's canceled with the "Quit" button.
I don't even know where to start mate.. I've tried 100 tutorials, 100 videos, there has to be something NEW which doesn't make sense on them... soooooooo frustrated!
Can someone at least show me an example, so I know what to look for when learning?
Bashkim Ukshini wrote:I don't even know where to start mate..
How about here.
It creates an applet that displays a label with the text Hello World, so all you need to do is update the run method to display your GUI.
That's all you need to know about Swing - the GUI is Swing programming.
Then you just need to read the next few sections of the tutorial to learn how to deploy the applet.
Now matter which value I give to a specific item for the Y value (to move it further below) it doesn't affect it, it still stays just one line below the previous element.
I also can't make the elements start from the left, eventho they have values 0,0, their starting possition is this one: