GUI: reworked battlefield panels to use layouts and dynamic settings (no needs in NetBeans to modify it, no needs in size calculations, improved positions and sizes, deleted outdated code);

This commit is contained in:
Oleg Agafonov 2024-08-05 19:00:42 +04:00
parent 546fc1ed9a
commit f105828e1c
9 changed files with 98 additions and 728 deletions

View file

@ -1579,12 +1579,13 @@ public class MageFrame extends javax.swing.JFrame implements MageClient {
public void setConnectButtonText(String status) {
this.btnConnect.setText(status);
// Needed to layout the tooltbar after text length change
// Needed to layout the toolbar after text length change
// TODO: need research, is it actual?
GUISizeHelper.refreshGUIAndCards(false);
//GUISizeHelper.refreshGUIAndCards(false);
this.btnConnect.repaint();
this.btnConnect.revalidate();
this.btnConnect.invalidate();
//this.btnConnect.repaint();
//this.btnConnect.revalidate();
}
public static MageUI getUI() {