Menu

#21 Try out MigLayout, use it in the connection dialog

Backlog
Open
nobody
None
nobody
Refactoring
2018-03-28
2016-07-16
Ulf Lorenz
No

Note: Originally meant to be merged with ticket #24, but resurrected again, since miglayout in this issue and the docker classes in #24 tackle different problems.

Problem

The current GUI layout is not very flexible. In particular, it does not look very good if you resize the windows, which is a use-case that is much more common with ticket #24.

To improve on this state of affairs, we want to try out using MigLayout (miglayout.com (www.miglayout.com)), which is explicitly meant to deal with such problems.

To be done
  1. Study MigLayout, especially with respect to how it works with resizing and how to tune it for possible needs that we may have.
  2. Convert the GUI to use MigLayout for the layout stuff.
Notes
  • deal with custom graphics for buttons and lavels etc.

The GUI graphics so far have been done by Jonathan Blois, he may be available for further assistance with graphics.

Related

Tickets: #24

Discussion

  • Arno Kemner

    Arno Kemner - 2018-03-13

    Especially for the ClientList and the Chat window the use of MigLayout would be useful, because with the use of Docking-Frames these window had to be fixed size. The use of the Dimension with Integer.MAX_VALUE is not possible to dynamically scale the panel's contents with the size of the panel.
    See this commit

     
  • Ulf Lorenz

    Ulf Lorenz - 2018-03-28
    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -1,12 +1,18 @@
    -Note: Originally meant to be merged with [ticket #24](#24), but resurrected again, since miglayout in this issue and the docker classes in #24 tackle very different problems.
    +Note: Originally meant to be merged with [ticket #24](#24), but resurrected again, since miglayout in this issue and the docker classes in #24 tackle different problems.
    
    -The goal here is to have a look at MigLayout ([miglayout.com](http://www.miglayout.com/)) and try to simplify the GUI layout with it.
    +**Problem**
    
    -1. Have a look at MigLayout. Especially tackle: How does it work with different resolutions?
    -2. If it looks good, convert the ConnectionDialog to use MigLayout. Then, try to clean up the connection dialog as much as possible. Basically, this dialog should be finished after this task.
    -3. Try to deal with the other dialogs as well.
    +The current GUI layout is not very flexible. In particular, it does not look very good if you resize the windows, which is a use-case that is much more common with [ticket #24](#24).
    
    -Issues:
    +To improve on this state of affairs, we want to try out using MigLayout ([miglayout.com](http://www.miglayout.com/)), which is explicitly meant to deal with such problems.
    +
    +**To be done**
    +
    +1. Study MigLayout, especially with respect to how it works with resizing and how to tune it for possible needs that we may have.
    +2. Convert the GUI to use MigLayout for the layout stuff.
    +
    +
    +**Notes**
    
    
     * deal with custom graphics for buttons and lavels etc.
    
     

    Related

    Tickets: #24

  • Ulf Lorenz

    Ulf Lorenz - 2018-03-28
    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -1,18 +1,18 @@
     Note: Originally meant to be merged with [ticket #24](#24), but resurrected again, since miglayout in this issue and the docker classes in #24 tackle different problems.
    
    -**Problem**
    +#####Problem#####
    
     The current GUI layout is not very flexible. In particular, it does not look very good if you resize the windows, which is a use-case that is much more common with [ticket #24](#24).
    
     To improve on this state of affairs, we want to try out using MigLayout ([miglayout.com](http://www.miglayout.com/)), which is explicitly meant to deal with such problems.
    
    -**To be done**
    +#####To be done#####
    
    
     1. Study MigLayout, especially with respect to how it works with resizing and how to tune it for possible needs that we may have.
     2. Convert the GUI to use MigLayout for the layout stuff.
    
    
    -**Notes**
    +#####Notes#####
    
    
     * deal with custom graphics for buttons and lavels etc.
    
     

    Related

    Tickets: #24


Log in to post a comment.