FlowLayout flow = new FlowLayout(); flow.setAlignOnBaseline(true); panel.setLayout(flow);
flowLayout1.setAlignOnBaseline(true); pnlContent.setLayout(flowLayout1); add(pnlContent, java.awt.BorderLayout.CENTER);
cabecalhosContainer.setMaximumSize(new java.awt.Dimension(32767, 40)); java.awt.FlowLayout flowLayout1 = new java.awt.FlowLayout(java.awt.FlowLayout.LEADING, 0, 0); flowLayout1.setAlignOnBaseline(true); cabecalhosContainer.setLayout(flowLayout1); jPanel1.add(cabecalhosContainer, java.awt.BorderLayout.CENTER);
public DCBannerPanel(final Image leftImage, final Image bgImage, final Image rightImage, final String title) { _leftImage = adjuster.scale(leftImage); _bgImage = adjuster.scale(bgImage); _rightImage = adjuster.scale(rightImage); if (title == null) { _title1 = null; _title2 = null; } else { final int linebreak = title.indexOf('\n'); if (linebreak == -1) { _title1 = title; _title2 = null; } else { _title1 = title.substring(0, linebreak); _title2 = title.substring(linebreak + 1); } } if (leftImage == null) { _titleIndent = 0; } else { _titleIndent = _leftImage.getWidth(this); } setOpaque(false); final FlowLayout layout = new FlowLayout(Alignment.RIGHT.getFlowLayoutAlignment(), 4, 38); layout.setAlignOnBaseline(true); setLayout(layout); }
flowLayout1.setAlignOnBaseline(true); jPanel5.setLayout(flowLayout1);
/** * Instantiates a new tool panel. * * @param parentObj the parent obj * @param toolMap the tool map */ public ToolPanel(ToolSelectionInterface parentObj, Map<Class<?>, List<ToolInterface>> toolMap) { this.toolSelection = parentObj; theToolPanel = new JPanel(); FlowLayout flowLayout = (FlowLayout) theToolPanel.getLayout(); flowLayout.setAlignOnBaseline(true); flowLayout.setVgap(1); flowLayout.setHgap(1); setLayout(new BoxLayout(this, BoxLayout.Y_AXIS)); this.add(theToolPanel); this.toolMap = toolMap; JPanel optionsPanel = new JPanel(); add(optionsPanel); JCheckBox chckbxRecursive = new JCheckBox(Localisation.getString(ToolPanel.class, "ToolPanel.recursive")); chckbxRecursive.addActionListener( new ActionListener() { public void actionPerformed(ActionEvent e) { toolSelection.setRecursiveFlag(chckbxRecursive.isSelected()); } }); optionsPanel.add(chckbxRecursive); this.setPreferredSize(new Dimension(50, EMPTY_TOOL_PANEL_HEIGHT)); }
((FlowLayout) bg.getLayout()).setAlignOnBaseline(true); frame.add(bg); JPanel left = new JPanel();
CameraLabWindow() { final Container content = this.getContentPane(); this.setJMenuBar(menu(this)); final ExecutorService background_workers = NullCheck.notNull(Executors.newFixedThreadPool(1)); final GLProfile profile = GLProfile.get(GLProfile.GL3); final GLCapabilities caps = new GLCapabilities(profile); final GLWindow window = GLWindow.create(caps); window.setSize(512, 512); final NewtCanvasAWT canvas = new NewtCanvasAWT(window); canvas.requestFocus(); final JPanel canvas_panel = new JPanel(); canvas_panel.add(canvas); final ExampleRenderer renderer = new ExampleRenderer(); final Panel controls = new Panel(background_workers, renderer, canvas_panel, window); final FlowLayout layout = new FlowLayout(FlowLayout.LEADING, 8, 8); layout.setAlignOnBaseline(true); content.setLayout(layout); content.add(canvas_panel); content.add(controls); final Animator anim = new Animator(); anim.add(window); anim.start(); }