Reputation: 469
I'm using Java Swing and I want to it to set its JFrame
size and the size of inner components size based on Screen resolution. I also want it to be compatible on any device like Tablet, laptop. Any easy solution for this?
Upvotes: 1
Views: 1474
Reputation: 109815
I also want it to be compatible on any device like Tablet,laptop.Any easy solution for this.
JScrollPane
to JFrame
, then put JPanel
nested all JComponent
s to JScrollPane
, then all JComponent
s are accesible for non-standard screens e.g net_books, crazy tablets with two or more Native OS (most of screen in Native OS there is scrolled by default)I'm using Java Swing and I want to it to set its JFrame size and the size of inner components size based on Screen resolution.
Upvotes: 3