Note that there are some explanatory texts on larger screens.

plurals
  1. POMigLayout Shrink Behavior
    primarykey
    data
    text
    <p>with the JPanel defined below (embedded in a JTabPanel in a JSplitPane):</p> <p>If I maximize, the panel is redrawn correctly to the new dimensions If I minimize the panel is NOT redrawn to the previous dimensions If I drag the corner to increase the size the panel is redrawn to correct dimensions If I drag a corner to decrease size the panel is NOT redrawn to the expected dimensions</p> <pre><code>container.setLayout(new MigLayout("debug,fillx,wrap 5", "[75:75:75][fill][75:75:75][fill][140:140:140,align left]")); container.add(labelSrcTitle, "span 4"); container.add(buttonAddRef, ""); container.add(srcTitle, "span"); container.add(srcListing, "span,grow"); container.add(sepRef,"span,growx"); container.add(refTitle,"span"); container.add(refListing,"span 4,grow"); container.add(buttonEdit,"split 2"); container.add(buttonDelete,""); container.add(name,"span 4,growx"); container.add(buttonSEdit,"split 3"); container.add(buttonSDelete); container.add(buttonSAdd,""); container.add(lType,""); container.add(lClaim,"grow"); container.add(lQual,""); container.add(lNotes,"grow"); container.add(buttonCEdit, "split 3"); container.add(buttonCDelete); container.add(buttonCAdd, ""); </code></pre> <p>I would like (and expect) that if I maximize then minimize, the screen will get redrawn to its original configuration. what am I missing? If it matters, all the JTextArea fields are line wrap true.</p> <h1><strong>Edited:</strong></h1> <p>Here is a much simpler example - the issue seems to be with JTextArea with linewrap set on. The following code in a JFrame recreates the issue:</p> <pre><code> JPanel root = new JPanel(new MigLayout("fill,debug")); JTextArea t = new JTextArea(); t.setLineWrap(true); root.add(t,"growx"); setContentPane(root); setLocationRelativeTo(null); setSize(200, 200); </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload