Java: JFrame resolution?

I made a program using several JFrames on a Mac, and the resolution was fine, everything went right to the screen. But when I run the program on my PC, JFrames are too large and go straight from the screen.

My question is: is it possible to set universal resolution on JFrame so that all components are drawn a little less? I would prefer to do this and then go through the entire program and manually resize each component.

+3
source share
3 answers

I made a program using several JFrames

CardLayout , JDialog JOptionPane (JDialog), , setModal (true) JFrame

, JFrames .

  • AbsoluteLayout

  • -

  • Native OS (f ). JComponents

JFrame , ?

LayoutManager, , ,

, .

LayoutManager,

+5

, Swing. (). .

, . JPan ( JFrame -) - (, - pack()). , . , .

+4

, , JScrollbar! , JFrame.

0

All Articles