public BuTitledPanel(JComponent _title) { this(_title,new BuBorderLayout(5,5),BuBorders.EMPTY5555); }
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(); }
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 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(); } }
public EbliAtomicsEditorPanel(final EbliAtomicCoordinatesTableModel _model, final CtuluCommandManager _cmd) { tableModel_ = _model; cmd_ = _cmd; table_ = new CtuluTable(); table_.setModel(tableModel_); tableModel_.updateCellEditor(table_); setLayout(new BuBorderLayout()); add(new BuScrollPane(table_)); }
/** * */ public BGrapheComponentListPanel(final BGrapheController _c) { grapheController_=_c; setBorder(BorderFactory.createEmptyBorder(5, 5, 5, 5)); setLayout(new BuBorderLayout()); final JTable t=grapheController_.createTable(); t.setShowGrid(false); add(new BuScrollPane(t),BuBorderLayout.CENTER); }
protected JPopupMenu buildPopup(final JPopupMenu _popup) { _popup.setLayout(new BuBorderLayout(0, 0)); final CtuluPopupColorChooser ctuluPopupColorChooser = new CtuluPopupColorChooser(useInvisible_); ctuluPopupColorChooser.setParentPopup(_popup); ctuluPopupColorChooser.setIdxSelectedColor((Color) getTargetValue()); ctuluPopupColorChooser.addPropertyChangeListenerForSelectedColor(new PropertyChangeListener() { public void propertyChange(final PropertyChangeEvent _evt) { BSelecteurColorChooserBt.this.changeColor((Color) _evt.getNewValue()); } }); _popup.add(ctuluPopupColorChooser); return _popup; } }
public BuPopupWindow() { BuBorderLayout lo=new BuBorderLayout(); lo.setVgap(2); setLayout(lo); setBorder(new CompoundBorder (getBorder(),BuBorders.EMPTY1212)); // setTitle("Hello"); }
public static BuPanel buildPanel(final CtuluFileChooserPanel _pn, final String _label) { final BuPanel res = new BuPanel(); res.setLayout(new BuBorderLayout(3,1)); res.add(new BuLabel(_label), BuBorderLayout.WEST); res.add(_pn, BuBorderLayout.CENTER); return res; }
public BPaletteEdition() { super(); setLayout(new BuVerticalLayout(0, true, false)); buildGlobalsActions(this); editorPanel_ = new BuPanel(); editorPanel_.setLayout(new BuBorderLayout()); editorPanel_.setBorder(BorderFactory.createEtchedBorder()); editorPanel_.setVisible(false); add(editorPanel_); }
public void actionPerformed(final ActionEvent _e) { expr_.getParser().parseExpression(txtFind_.getText()); final CtuluExprGUI gui = new CtuluExprGUI(expr_); final CtuluDialogPanel pn = new CtuluDialogPanel(); pn.setLayout(new BuBorderLayout()); pn.add(gui); final EbliFindDialog imp = (EbliFindDialog) SwingUtilities.getAncestorNamed("EbliFindDialogPanel", this); final JDialog f = imp == null ? null : imp.dial_; if (CtuluDialogPanel.isOkResponse(pn.afficheModale(f, EbliLib.getS("Formule:")))) { txtFind_.setText(gui.getExprText()); } }
public BuPalette() { super("",false,false,false,false); setName ("plPALETTE"); setFrameIcon(new BuEmptyIcon()); putClientProperty("JInternalFrame.isPalette",Boolean.TRUE); setLayer(JLayeredPane.PALETTE_LAYER); content_=(JComponent)getContentPane(); content_.setLayout(new BuBorderLayout()); setSize(120,120); //setResizable(false); }
public static FileFormat chooseFileFormat(final Frame _parent, final FileFormat[] _ft, final String _title) { final BuList list = CtuluLibSwing.createBuList(_ft); list.setSelectionMode(ListSelectionModel.SINGLE_SELECTION); final CtuluDialogPanel pn = new CtuluDialogPanel(); pn.setLayout(new BuBorderLayout()); pn.add(new BuLabel(FudaaResource.FUDAA.getString("Choisir le format du fichier")), BuBorderLayout.NORTH); pn.add(new BuScrollPane(list)); if (pn.afficheModaleOk(_parent, _title)) { return (FileFormat) list.getSelectedValue(); } return null; }
public BSelecteurListComboBox(Dimension sizeCombo) { setLayout(new BuBorderLayout()); cb_ = new BuComboBox(); adapter_ = new CtuluComboBoxModelAdapter(CtuluListModelEmpty.EMPTY); cb_.setModel(adapter_); cbListener_ = new CbDataListener(); listSelectionListener_ = new TargetSelectionListener(); adapter_.addListDataListener(cbListener_); cb_.setEnabled(false); if(sizeCombo!=null){ cb_.setMinimumSize(sizeCombo); cb_.setMaximumSize(sizeCombo); cb_.setSize(sizeCombo); } add(cb_, BuBorderLayout.CENTER); }
public static String showMinimalHtmlDialog(final String _txt, final Component _parent, final boolean _modal) { final CtuluDialogPanel pn = new CtuluDialogPanel(false); pn.setLayout(new BuBorderLayout()); final CtuluHtmlEditorPanel ctuluHtmlEditorPanel = new CtuluHtmlEditorPanel(_txt); pn.add(ctuluHtmlEditorPanel); pn.add(ctuluHtmlEditorPanel.getToolBar(true), BuBorderLayout.NORTH); final CtuluDialog f = new CtuluDialog(CtuluLibSwing.getFrameAncestorHelper(_parent), pn); f.setTitle(BuResource.BU.getString("Edition")); ctuluHtmlEditorPanel.setDialogHandler(f); f.setModal(_modal); f.setJMenuBar(ctuluHtmlEditorPanel.getMenuBar(true, false)); f.pack(); if (f.afficheAndIsOk()) { return ctuluHtmlEditorPanel.getDocumentText(); } return null; }