@Override public void doLayout() { super.doLayout(); }
JScrollPane scroll = new JScrollPane(table); JPanel p = new JPanel(new BorderLayout()); p.add(scroll, BorderLayout.CENTER); JOptionPane.showMessageDialog(null, p); table.addNotify(); p.doLayout(); BufferedImage bi = new BufferedImage(p.getWidth() + 100, p.getHeight() + 100, BufferedImage.TYPE_INT_RGB); Graphics g = bi.createGraphics(); p.paint(g); g.dispose();
@Override public void doLayout() { Integer lastMacroIndex = backend.getSettings().getLastMacroIndex()+1; // Create components if needed for (int i = customGcodeButtons.size(); i <= lastMacroIndex; i++) { Macro macro = backend.getSettings().getMacro(i); customGcodeButtons.add(createMacroButton(i)); macroGcodeFields.add(createMacroField(i, MACRO_FIELD.CODE, macro.getGcode())); macroNameFields.add(createMacroField(i, MACRO_FIELD.NAME, macro.getName())); macroDescriptionFields.add(createMacroField(i, MACRO_FIELD.DESCRIPTION, macro.getDescription())); } add(this.buttonPanel, "grow, span 4"); add(buttonHeader, "sg 1"); add(nameHeader); add(gcodeHeader); add(descriptionHeader); for (int i = 0; i < customGcodeButtons.size(); i++) { add(customGcodeButtons.get(i), "sg 1"); add(macroNameFields.get(i)); add(macroGcodeFields.get(i)); add(macroDescriptionFields.get(i)); } updateCustomGcodeControls(backend.isIdle()); super.doLayout(); }
public void doLayout() { super.doLayout(); initializing = false; }
public void doLayout() { super.doLayout(); initializing = false; }
public int getPreferredHeight() { if( _labelContainer == null ) { return 0; } _labelContainer.doLayout(); return _labelContainer.getPreferredSize().height + 2; }
JPanel panel = new JPanel(); ... // add components panel.setSize(300, 300); panel.doLayout();
@Override public void doLayout() { super.doLayout(); this.fireStateChanged(); }
// Creating the panel JPanel lPanel = new JPanel(); //lPanel.setSize(1000, 1000); //default size, not needed anymore lPanel.setLayout(new BoxLayout(lPanel, BoxLayout.PAGE_AXIS)); //Adding the content lPanel.add(new JLabel("Blah")); // etc... //Adjust the panel to its preferred size lPanel.setSize(lPanel.getPreferredSize()); //Call the layout method //(this will adjust the content components to their correct size and position) lPanel.doLayout();
@Override public Dimension getPreferredSize(){ // this is a workaround because the boundaries of the children are required to // compute the preferred size of this components. It is not pretty... if( dockablePane != null && !dockablePane.isValid() ){ dockablePane.doLayout(); } return getBasePane().getPreferredSize(); }
@Override public void doLayout () { super.doLayout(); generateSprite(); centerSprite(); }
@Override public void doLayout () { super.doLayout(); generateSprite(); centerSprite(); }
/** * This method is called to update the panel for this property sheet. */ public void updateTunablePanel() { if (tunablesPanel == null) return; tunablesPanel.removeAll(); addSubPanels(tunablesPanel, tunablesList.iterator(), new Integer(100000), null); tunablesPanel.doLayout(); tunablesPanel.validate(); // now signal any listeners that we've resized ComponentListener[] resizeListeners = tunablesPanel.getComponentListeners(); if (resizeListeners == null) return; for (int i = 0; i < resizeListeners.length; i++) { resizeListeners[i].componentResized(new ComponentEvent(tunablesPanel, ComponentEvent.COMPONENT_RESIZED)); } }
@Override public void doLayout() { if (navControlShown && navControlWrapper != null) { navControlWrapper.setLocation(getWidth() - navControlWrapper.getWidth() - 4, 4); } super.doLayout(); }
@Override public void doLayout() { if (navControlShown && navControlWrapper != null) { navControlWrapper.setLocation(getWidth() - navControlWrapper.getWidth() - 4, 4); } super.doLayout(); }
@Override public void doLayout() { if (navControlShown && navControlWrapper != null) { navControlWrapper.setLocation(getWidth() - navControlWrapper.getWidth() - 4, 4); } super.doLayout(); }
/** * Causes this container to lay out its components. Most programs should not call this method directly, but should * invoke the <code>validate</code> method instead. * * @see LayoutManager#layoutContainer * @see #setLayout * @see #validate * @since JDK1.1 */ @Override public void doLayout() { if (removeExtraDividers()) { ((JideSplitPaneLayout) getLayout()).invalidateLayout(this); } super.doLayout(); }
@Override public void doLayout() { if (table != null) { table.setSize(getSize().width, table.getSize().height); table.doLayout(); } super.doLayout(); }
@Override public void doLayout() { layoutFrames(); super.doLayout(); applicationHeaderPanel.doLayout(); for (TrackPanel tp : getTrackPanels()) { tp.getScrollPane().doLayout(); } }