protected void setDisplayMode (int width, int height) { Dimension size = new Dimension(Math.round(width / scaleX), Math.round(height / scaleY)); LwjglFrame.this.getContentPane().setPreferredSize(size); LwjglFrame.this.getContentPane().invalidate(); LwjglFrame.this.pack(); LwjglFrame.this.setLocationRelativeTo(null); updateSize(width, height); }
protected void setDisplayMode (int width, int height) { Dimension size = new Dimension(Math.round(width / scaleX), Math.round(height / scaleY)); LwjglFrame.this.getContentPane().setPreferredSize(size); LwjglFrame.this.getContentPane().invalidate(); LwjglFrame.this.pack(); LwjglFrame.this.setLocationRelativeTo(null); updateSize(width, height); }
protected void setDisplayMode (int width, int height) { LwjglAWTFrame.this.getContentPane().setPreferredSize(new Dimension(width, height)); LwjglAWTFrame.this.getContentPane().invalidate(); LwjglAWTFrame.this.pack(); LwjglAWTFrame.this.setLocationRelativeTo(null); updateSize(width, height); }
protected void setDisplayMode (int width, int height) { LwjglAWTFrame.this.getContentPane().setPreferredSize(new Dimension(width, height)); LwjglAWTFrame.this.getContentPane().invalidate(); LwjglAWTFrame.this.pack(); LwjglAWTFrame.this.setLocationRelativeTo(null); updateSize(width, height); }
invalidate(); this.repaint();
public void addNotify() { super.addNotify(); invalidate(); } //--------------------------------------------------------------------
public void warn(String s) { status.setText(s); Container c = this; while (c.getParent() != null) c = c.getParent(); c.invalidate(); c.validate(); c.repaint(); }
private void relayout() { if (parentContainer != null) { if (parentContainer instanceof JComponent) { ((JComponent) parentContainer).revalidate(); } else { parentContainer.invalidate(); } parentContainer.repaint(); } }
private void invalidateHost() { if (host instanceof JComponent) { ((JComponent)host).revalidate(); } else { host.invalidate(); } host.repaint(); }
/** * Invalidates our frame so the JVM is forced to redraw it. */ void framerepaint() { MainFrame_.invalidate(); MainFrame_.validate(); MainFrame_.repaint(); }
@Override public void run() { getParent().invalidate(); getMainContentPane().revalidate(); } });
private static void invalidateAndRepaint(Container container) { if (container == null) return; if (container instanceof JComponent) { ((JComponent) container).revalidate(); } else { container.invalidate(); } container.repaint(); }
private static void invalidateAndRepaint(Container container) { if (container == null) { return; } if (container instanceof JComponent) { ((JComponent) container).revalidate(); } else { container.invalidate(); } container.repaint(); }
private static void invalidateAndRepaint(Container container) { if (container == null) { return; } if (container instanceof JComponent) { ((JComponent) container).revalidate(); } else { container.invalidate(); } container.repaint(); }
protected void setDisplayMode (int width, int height) { Dimension size = new Dimension(Math.round(width / scaleX), Math.round(height / scaleY)); LwjglFrame.this.getContentPane().setPreferredSize(size); LwjglFrame.this.getContentPane().invalidate(); LwjglFrame.this.pack(); LwjglFrame.this.setLocationRelativeTo(null); updateSize(width, height); }
@Override public void run() { getParent().invalidate(); getParent().validate(); } }
public void addNotify(){ super.addNotify(); // call the real one first... this.invalidate(); this.validate(); this.doLayout(); } //--------------------------------------------------------------------
/** * Sets the date. Fires the property change "date" if date != null. * * @param date * the new date. */ public void setDate(Date date) { dateEditor.setDate(date); if (getParent() != null) { getParent().invalidate(); } }
protected void setDisplayMode (int width, int height) { LwjglAWTFrame.this.getContentPane().setPreferredSize(new Dimension(width, height)); LwjglAWTFrame.this.getContentPane().invalidate(); LwjglAWTFrame.this.pack(); LwjglAWTFrame.this.setLocationRelativeTo(null); updateSize(width, height); }
public void run() { dorefresh = false; fireTableDataChanged(); getTable().getParent().invalidate(); getTable().getParent().doLayout(); getTable().repaint(); } });