Netbeans problem Resizable

0

Witam.
mam problem z ustaleniem stałej wielkości okna w javie. Ktoś tworzył w netbeans?
Wybieram New Project->Java->Java DesktopApplication->Next->Finish.

Jak ustaiwć, aby okno było stałych rozmiarów bez możliwości maksymalizaji i zwiększania okna?

0

setResizable(false);

0

To niestety tyczy się tylko jFrame. A tam JFrame nie ma:/

[FrameView]
[jPanel]
[jmenuBar]

tylko te komponenty są:/

0

A co to jest FrameView? W standardowej javie nie ma takiej klasy.

0

Tekst z Netbeans:
Desktop Aplication: Creates a skeleton of a desktop application based on the Swing Application Framework (JSR 296). This template provides basic application infrastructure such as a menu bar, persisting of window state, and status bar. With this template, you can also generate code to create a GUI interface for a database table.

A basic application skeleton containing everything needed to start with a general desktop application, such as the following:
main frame with a menu bar and status bar

  • About box
  • main Application class
  • implementation of status bar messages and progress indication
  • resource management mechanisms to better handle loading of icons and strings
0

Oprócz setResizable(false) możesz jeszcze umieścić wywołanie setPrefferedSize(), które pozwoli ustawić konkretne stałe wymiary. Oba wywołania zanim w kodzie nastąpi wywołanie setVisible(true) dla okna aplikacji (nie ważne czy JFrame czy JFrameView lub inna - ma być rzutowalna do JFrame).

1 użytkowników online, w tym zalogowanych: 0, gości: 1