Create UI with netbeans for different size!

前端 未结 2 1595
感动是毒
感动是毒 2021-01-26 03:56

I want to create UI for my program with netbeans but I don\'t know how to create a UI that when user change the size of program window( maximize or other sizes ) component of th

相关标签:
2条回答
  • 2021-01-26 04:23

    You can use either GridLayout or BorderLayout. Also read this: Using Layout Manager

    0 讨论(0)
  • 2021-01-26 04:30

    Agree 100% with Harry. Also:

    • Avoid using NetBeans default GroupLayout
    • Learn about nesting JPanels each with its own simple layout to in effect nest layout managers and create complex layouts.
    • Probably avoid usingGridBagLayout early on when learning to use layout managers and use the more simple ones if possible. Consider using MiGLayout if you need a complex gridbag-like layout and nesting of simple layouts doesn't solve the problem.
    • If stuck, post an image of your desired GUI layout and your latest code attempt, and we'll be able to give you more specific advice.
    0 讨论(0)
提交回复
热议问题