I have JButtonin JFrame. Layout JFrameis null. I gave the absolute position to the button. But when I minimize or maximize the frame, the position of the buttons becomes broken, how can I dynamically set it relative to JFrame?
JButton
JFrame
Write your own layout . Otherwise, you will do the same, just with a mess listener .
Use the layout manager. This is the problem with which they are intended for automatic processing.
, - . , , , . AbsoluteLayout, , Netbeans. , .
Java:
http://java.sun.com/docs/books/tutorial/uiswing/layout/none.html
, , , , ( ) ( ).
: , , . GridBagLayout , , . java :
http://java.sun.com/docs/books/tutorial/uiswing/layout/gridbag.html
Source: https://habr.com/ru/post/1730536/More articles:A group connection with several conditions, and one of them with a constant - vb.netWhat is the best way to create this database? - sqlWhat css hacks for IE 6 and 7 are future proofs? - cssDoes using AJAX use PHP memory usage? - javascriptкак объект List List добавляет прилагаемую строку - c#Lisp Function Chain Macro - macrosНастройка образа. Источник из файла ресурсов - c#Аппаратные точки останова на XP 64 бит - debugginghow to show arab warning from left to right - javascriptDead end in single-threaded application - multithreadingAll Articles