JPanel said to be opaque what does that mean?

前端 未结 3 1256
闹比i
闹比i 2020-12-11 19:19

In Swing JPanel said to be opaque, what does that mean?

Also how JPanel VS JComponent compared in relation to opaque?

Please explain if possible in simple te

3条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-11 20:03

    Another useful reference is the section on Opacity in the article Painting in AWT and Swing. It's also helpful to know that JPanel is opaque by default on many L&Fs, while JLabel is not.

提交回复
热议问题