Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>This is a known bug: <a href="http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4737788" rel="noreferrer">http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4737788</a></p> <p>Quote from this link:</p> <blockquote> <p>A workaround is to subclass JFrame and override the setExtendedState method, catching any maximize events before they happen and setting the maximum bounds of the frame appropriately before calling the superclass's setExtendedState method.</p> </blockquote> <pre><code>import java.awt.*; import javax.swing.*; public class PFrame extends JFrame { private Rectangle maxBounds; public PFrame() { super(); maxBounds = null; } //Full implementation has other JFrame constructors public Rectangle getMaximizedBounds() { return(maxBounds); } public synchronized void setMaximizedBounds(Rectangle maxBounds) { this.maxBounds = maxBounds; super.setMaximizedBounds(maxBounds); } public synchronized void setExtendedState(int state) { if (maxBounds == null &amp;&amp; (state &amp; Frame.MAXIMIZED_BOTH) == Frame.MAXIMIZED_BOTH) { Insets screenInsets = getToolkit().getScreenInsets(getGraphicsConfiguration()); Rectangle screenSize = getGraphicsConfiguration().getBounds(); Rectangle maxBounds = new Rectangle(screenInsets.left + screenSize.x, screenInsets.top + screenSize.y, screenSize.x + screenSize.width - screenInsets.right - screenInsets.left, screenSize.y + screenSize.height - screenInsets.bottom - screenInsets.top); super.setMaximizedBounds(maxBounds); } super.setExtendedState(state); } } </code></pre>
    singulars
    1. This table or related slice is empty.
    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.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      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