I am developing a math game and I was thinking about displaying the data like so:
- Display the data that the user is to screencap and send to me, in a JFrame. This data will be displayed in the form of two JTabbedPanes, each tab showing a table (with five rows and 8 columns)
- Ask the user (via
JOptionPane.showConfirmDialog()
) if they would like to see a graphical representation of their progress. - If they click "Yes", then show them a JFrame with their chart. This JFrame will have a
JMenuBar
with only oneJMenu
with twoJMenuItem
s (an option for both of the two modes). - In this new JFrame, display via CardLayout the active JTabbedPane (the FloatMode has four difficulties, while the IntMode has all the FloatMode's difficulties plus Elementary School difficulty.
I know that multiple JFrames can be bad practice, and I was thinking about using JSplitPane
s, but then it might get too crowded (and I wouldn't be able to let the users choose the mode!). Would a JDialog
be recommended, or would you recommend something else? //I apologize if it sounds like I am asking you all to do some of my thinking for me...