Package com.nexirius.framework.swing

Examples of com.nexirius.framework.swing.CFJLabel


        for (int i = 0; i < children.length; i++) {
            String child = children[i];
            JPanel cellPanel = new JPanel(new BorderLayout());

            CFJLabel label = new CFJLabel(factory.getClientResource(), child);
            label.setFont(new Font("Tahoma", Font.BOLD, 7));
            cellPanel.add(label, BorderLayout.NORTH);
            try {
                cellPanel.add(factory.createDefaultEditor(getDataModel().getChild(child)).getJComponent(), BorderLayout.CENTER);
            } catch (Exception e) {
                e.printStackTrace()//To change body of catch statement use File | Settings | File Templates.
View Full Code Here


    }

    private Component createFieldEditor(String field, ViewerFactory factory) {
        JPanel panel = new JPanel(new BorderLayout());

        CFJLabel cfjLabel = new CFJLabel(factory.getClientResource(), field);

        cfjLabel.setPreferredSize(new Dimension(Math.max(200, cfjLabel.getPreferredSize().width), cfjLabel.getPreferredSize().height));
        panel.add(cfjLabel, BorderLayout.WEST);
        try {
            panel.add(factory.createDefaultEditor(getDataModel().getChild(field)).getJComponent(), BorderLayout.CENTER);
        } catch (Exception e) {
            e.printStackTrace()//To change body of catch statement use File | Settings | File Templates.
View Full Code Here

  public JComponent createJComponent(ViewerFactory factory) {
    setLayout(new BorderLayout());
    setBorder(new EmptyBorder(new Insets(4, 4, 4, 4)));
   
    try {
      add(new CFJLabel(factory.getClientResource(), "separator.text"), BorderLayout.NORTH);

      JComponent center = factory.createViewer(new RadioBoxViewerCreator(), separator).getJComponent();
 
      add(center, BorderLayout.CENTER);
View Full Code Here

        try {
            DataModel parent_model = parent_viewer.getDataModel();
            String resourceID = getModelFieldName();

            // create the label
            JLabel label = new CFJLabel(parent_viewer.getFactory().getClientResource(), resourceID);

            label.setOpaque(true);

            parent_viewer.add(label);

            defaultLayout(label, parent_viewer.getFactory());
        } catch (Exception ex) {
View Full Code Here

        return ret;
    }

    public JLabel createJLabel(String textResourceId) {
        return new CFJLabel(resources, textResourceId);
    }
View Full Code Here

TOP

Related Classes of com.nexirius.framework.swing.CFJLabel

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.