Search:

Type: Posts; User: Norm

Search: Search took 0.21 seconds.

  1. Re: create class and add jtext and jbutton in the panel

    I think there are examples of code that uses JFrames on this forum. Use the Search box at the top right of the page.
  2. Re: create class and add jtext and jbutton in the panel

    Look at samples on this forum.
    Ask Google for some samples.
    Look through the java tutorials: https://docs.oracle.com/javase/tutorial/reallybigindex.html

    Look at this part of the tutorial:...
  3. Re: create class and add jtext and jbutton in the panel

    What does it do?
    The main class creates a JFrame but doesn't add anything to it.
    It would be better if the code to create the JFrame is in the constructor for the class.
    Also create the the JPanel...
  4. Re: create class and add jtext and jbutton in the panel

    The simple code does not need a paintComponent method. Remove that method.
    It does need a JFrame and a main method.
    From my last post:
Results 1 to 4 of 4