The program must allow the user to create a login by using Dr.Java GUI. After he creates a log in it will ask the user would he like to by an Xbox360 game or a PC game. After the user clicks the box it opens a selection of 10 different games for each. The picture of the game will show up and and the price right beside it. Under it it will say BUY! If the user clicks BUY! it will say added to cart. After they finish selecting what they would like it will say check out at the bottom. Once clicked it will display the username, cost, and tax. After that it will log the user out.
I'm have an idea of how to do this but i do not know how to create the box's in java and how to upload the pictures. Can you please help. Any help with this program will be grateful or an example program thanks :)
Jump to Post
What do you mean "create the box"? Do you mean a button that the user can click on, or do you mean the window in which your content (the pictures saying buy it) is displayed?
Look into how to create and use JFrames, JPanels, Layout Managers, JButtons, and JLabels. …
Jump to Post
For the first window where you click to continue, you can look into the JOptionPane class. It has a lot of different options for creating windows quickly and easily. Alternatively, you can create a custom window by using that tutorial I showed you. Look for the tutorial on
All 9 Replies
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.