I am writing a GUI for a simple computer game. I am using a JButton that, when clicked brings up an additional JFrame that is 400 x 700 pixels to display the Game Rules.
It seems like a simple enough concept but I have not had time to do a lot of programming until recently. The only things I can remember to do to display text are using JLabel, JTextField, or JTextArea. The problem with JLabel is that it is only a single line of text. The problem with the other two is that they can be edited.
What can I do to display multiple lines of text that the end user cannot modify?
It seems like a simple enough concept but I have not had time to do a lot of programming until recently. The only things I can remember to do to display text are using JLabel, JTextField, or JTextArea. The problem with JLabel is that it is only a single line of text. The problem with the other two is that they can be edited.
What can I do to display multiple lines of text that the end user cannot modify?