drawing text within a JPanel

前端 未结 4 1244
生来不讨喜
生来不讨喜 2021-01-05 16:04

I\'m looking for the most basic description of how to draw text within a JPanel. I know there are a billion tutorials out there but none of them are clicking with me and I h

4条回答
  •  温柔的废话
    2021-01-05 16:27

    I think you should not be subclassing JFrame. Make an instance of JFrame an instance
    variable of Main class and add the JPanel etc. to it.

提交回复
热议问题