![]() ![]() I guess my biggest question is how to incorporate the paint() or paintComponet() method in along with the rest of the code. I have all the underlying programing sorted out (that is, the button responds and prints the average to the command line) but I just cannot seem to sort out how to print the average to the panel. The application reads in ints from an external file and should display their average in the panel when the JButton is pressed. ![]() As a setup (a testing app) I have a single class which has a JLabel, a JTextField, a JButton, and a JPanel. I know there are a billion tutorials out there but none of them are clicking with me and I have some specific questions which may help others who are confused. I'm looking for the most basic description of how to draw text within a JPanel. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |