public BuTitledPanel(JComponent _title) { this(_title,new BuBorderLayout(5,5),BuBorders.EMPTY5555); }
public void addLayoutComponent(Component _comp, Object _constraints) { synchronized(_comp.getTreeLock()) { if((_constraints==null)||(_constraints instanceof String)) addLayoutComponent2((String)_constraints,_comp); else throw new IllegalArgumentException ("Can not add to layout: constraint must be a string (or null)"); } }
adjustSize(r,getPreferredSize(c),s); adjustSize(r,getPreferredSize(c),s);
adjustSize(r,getMinimumSize(c),s); adjustSize(r,getMinimumSize(c),s);
public BuPopupWindow() { BuBorderLayout lo=new BuBorderLayout(); lo.setVgap(2); setLayout(lo); setBorder(new CompoundBorder (getBorder(),BuBorders.EMPTY1212)); // setTitle("Hello"); }
public BuGenericPreferencesPanel (String _title, FuPreferences _options, String _mask, boolean _editable, boolean _growable) { super(); //appli_ =_appli; title_ =_title; options_ =_options; editable_=_editable; growable_=_growable; model_ =new BuGenericPreferencesModel (options_,_mask,editable_,growable_); BuBorderLayout lo=new BuBorderLayout(); lo.setVgap(5); lo.setHgap(5); BuPanel p=new BuPanel(); p.setBorder (new CompoundBorder (new BuTitledBorder(getTitle()), EMPTY5555)); p.setLayout(lo); BuTable table=new BuTable(model_); //table.setFont(BuLib.deriveFont("Table",-2)); p.add(new BuScrollPane(table),BuBorderLayout.CENTER); setLayout(new BuBorderLayout()); setBorder(EMPTY5555); add(p,BuBorderLayout.CENTER); setPreferredSize(new Dimension(200,200)); }
pnLeft.setOpaque(false); final JPanel r4 = new JPanel(new BuBorderLayout(2, 1, true, true)); r4.add(r1_, BuBorderLayout.CENTER); r4.add(r2_, BuBorderLayout.SOUTH); r4.setOpaque(false); final BuBorderLayout lay = new BuBorderLayout(2, 1, true, true); lay.setYAlign(0); setLayout(lay); pnRight_=new JPanel(); pnRight_.setLayout(new BuBorderLayout(2,1,true,true)); pnRight_.add(r3_, BuBorderLayout.CENTER); pnRight_.add(r4, BuBorderLayout.EAST);
reponse_=JOptionPane.CANCEL_OPTION; BuBorderLayout mlo=new BuBorderLayout(); layout_=new BuBorderLayout(); layout_.setHgap(GAP); layout_.setVgap(GAP); content_=new BuPanel();
public BCalqueLegendePanel(final BCalqueAffichage _aff, final String _title) { super(); aff_ = _aff; setLayout(new BuBorderLayout()); titleComp_ = new JLabel(); titleComp_.setText(_title); titleComp_.setHorizontalAlignment(SwingConstants.CENTER); add(titleComp_, BuBorderLayout.NORTH); updateState(); }
p.setLayout(lo); BuBorderLayout lo1=new BuBorderLayout(); lo1.setHgap(5); lo1.setVgap(5); BuPanel p1=new BuPanel(); p1.setLayout(lo1); p.add(tfInt_); setLayout(new BuBorderLayout()); setBorder(EMPTY5555); add(p,BuBorderLayout.CENTER);
public void addLayoutComponent(String _name, Component _comp) { String name=_name; if(name==null) name=CENTER; StringBuffer sb=new StringBuffer("@deprecated add(String,Component):"); sb.append(" use add(Component,BuBorderLayout."); sb.append(name.toUpperCase()+" instead at "); String s=FuLog.getStackTrace(); while(s.indexOf("BuBorderLayout")>0) s=s.substring(s.indexOf('\n')+1); while(s.indexOf("Container")>0) s=s.substring(s.indexOf('\n')+1); s=s.substring(s.indexOf('(')+1,s.indexOf(')')); sb.append(s); FuLog.warning(s); addLayoutComponent2(name,_comp); }
public void actionPerformed(final ActionEvent _e) { final CtuluDialogPanel pn = new CtuluDialogPanel(); pn.setLayout(new BuBorderLayout()); final JTable newtable = new CtuluTable(table.getModel()); newtable.getColumnModel().getColumn(0).setPreferredWidth(20); pn.add(new JScrollPane(newtable), BorderLayout.CENTER); pn.afficheModale(table, CtuluDialog.OK_OPTION); newtable.setModel(CtuluListModelEmpty.EMPTY); } });
/** * */ public FudaaUndoPaneFille(final FudaaUndoCmdMngListener _l) { pane_ = new BuTabbedPane(); final JPanel p = new JPanel(); p.setOpaque(true); p.setLayout(new BuBorderLayout()); p.add(pane_, BuBorderLayout.CENTER); setContentPane(p); l_ = _l; pane_.getModel().addChangeListener(this); }
public static void main(final String[] _args) { final JFrame f = new JFrame(); final JPanel pn = new BuPanel(new BuBorderLayout()); final CtuluHtmlEditorPanel ctuluHtmlEditorPanel = new CtuluHtmlEditorPanel(); pn.add(ctuluHtmlEditorPanel); pn.add(ctuluHtmlEditorPanel.getToolBar(true), BuBorderLayout.NORTH); ctuluHtmlEditorPanel.setFrame(f); f.setJMenuBar(ctuluHtmlEditorPanel.getMenuBar()); f.setContentPane(pn); f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); f.pack(); f.show(); }
public BuSplashScreen(BuInformationsSoftware _info, long _delai, String[][] _classes, ClassLoader _loader) { super(BuLib.HELPER); info_ = _info; classes_ = _classes; delai_ = _delai; // base_ =_base; loader_ = _loader; if (loader_ == null) loader_ = getClass().getClassLoader(); content_ = new BuPanel(); content_.setLayout(new BuBorderLayout()); content_.setBorder(new LineBorder(Color.black, 1)); build(); content_.add(panel_, BuBorderLayout.CENTER); setContentPane(content_); }
public void addButton() { if (done_) { return; } done_ = true; setLayout(new BuBorderLayout(0, 0)); add(getButton(), BuBorderLayout.EAST); }
public BSelecteurList() { setLayout(new BuBorderLayout()); list_ = new CustomList(); list_.setRequestFocusEnabled(true); add(new JScrollPane(list_), BuBorderLayout.CENTER); }
public BSelecteurColorChooser(final String _prop,final BuButton[] _bt) { super(_prop); pn_ = new BuPanel(); pn_.setLayout(new BuBorderLayout()); chooser_ = new JColorChooser(); pn_.add(chooser_, BuBorderLayout.CENTER); final JPanel pb = new BuPanel(); pb.setLayout(new BuButtonLayout()); apply_ = new BuButton(BuResource.BU.getToolIcon("appliquer")); apply_.addActionListener(this); pn_.add(pb, BuBorderLayout.SOUTH); pb.add(apply_); if (_bt != null) { for (int i = 0; i < _bt.length; i++) { pb.add(_bt[i]); } } }
Title(String _title) { JLabel t=new JLabel(_title); t.setFont(BuLib.deriveFont("InternalFrameTitlePane",Font.PLAIN,-2)); t.setForeground(Color.white); t.setBorder(new EmptyBorder(1,2,0,2)); JButton b=new JButton("-"); b.setFont(BuLib.deriveFont("InternalFrameTitlePane",Font.BOLD,-2)); b.setBorder(new EmptyBorder(0,2,0,2)); b.setRequestFocusEnabled(false); b.setActionCommand("LINIFY"); // b.addActionListener(BuPopupWindow.this); this.setBackground(this.getBackground().darker()); this.setOpaque(true); this.setLayout(new BuBorderLayout()); this.add(t,BuBorderLayout.CENTER); this.add(b,BuBorderLayout.EAST); } }
public static void main(String[] _args) { BuColorChooser p=new BuColorChooser(); p.setBorder(BuLib.getEmptyBorder(0)); p.setDragEnabled(true); p.setOpaque(false); BuPanel q=new BuPanel(new BuBorderLayout()); q.add(p,BuBorderLayout.CENTER); p.setBorder(BuLib.getEmptyBorder(5)); JFrame f=new JFrame("Color Chooser"); f.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE); f.setContentPane(q); f.pack(); f.show(); } }