Examples of GUIData


Examples of lcmc.common.ui.GUIData

     */
    public void error(final String msg) {
        final String msg0 = ERROR_STRING + msg;
        System.out.println(msg0);
        LoggerFactory.LOG_BUFFER.add(msg0);
        final GUIData guiData = AppContext.getBean(GUIData.class);
        SwingUtilities.invokeLater(new Runnable() {
            @Override
            public void run() {
                JOptionPane.showMessageDialog(guiData.getMainFrame(),
                                              new JScrollPane(new JTextArea(msg, 20, 60)),
                                              Tools.getString("Error.Title"),
                                              JOptionPane.ERROR_MESSAGE);
            }
        });
View Full Code Here

Examples of lcmc.common.ui.GUIData

            params = NO_PARAMS;
        } else {
            params = paramsLine.split("\\s+");
        }
        final LCMC lcmc = AppContext.getBean(LCMC.class);
        final GUIData guiData = AppContext.getBean(GUIData.class);

        lcmc.initApp(params);

        final Application application = AppContext.getBean(Application.class);
        final LCMCApplet thisObject = this;
        application.invokeLater(new Runnable() {
            @Override
            public void run() {
                if (!application.isEmbedApplet()) {
                    guiData.setMainFrame(thisObject);
                    setJMenuBar(lcmc.getMenuBar());
                    setContentPane(lcmc.getMainPanel());
                    setGlassPane(lcmc.getMainGlassPane());
                    lcmc.createAndShowGUI(thisObject);
                } else {
                    final JFrame mainFrame = new JFrame();
                    guiData.setMainFrame(mainFrame);
                    lcmc.createMainFrame(mainFrame);
                    lcmc.createAndShowGUI(mainFrame);
                }
            }
        });
View Full Code Here

Examples of org.jpedal.objects.acroforms.formData.GUIData

                //get FormRenderer and Data objects
                AcroRenderer renderer = decode_pdf.getFormRenderer();
                if(renderer==null)
                        return scroll;
                GUIData formData=renderer.getCompData();

        /**
         * populate our list with details
         */
                for (Object aFormsOnPage : formsOnPage) {

                    // get name of form
                    String formName = (String) aFormsOnPage;

                    //swing component we map data into
                    Component[] comp = (Component[]) formRenderer.getComponentsByName(formName);

                    if (comp != null) {

                        //number of components - may be several child items
                        //int count = comp.length;

                        //take value or first if array to check for types (will be same if children)
                        FormObject formObj = null;

                        //extract list of actual PDF references to display and get FormObject
                        String PDFrefs = "PDF ref=";

                        JLabel ref = new JLabel();

                        //actual data read from PDF
                        Object[] rawFormData = formData.getRawForm(formName);
                        int objCount = rawFormData.length;
                        for (Object aRawFormData : rawFormData) {
                            formObj = (FormObject) aRawFormData;
                            PDFrefs = PDFrefs + ' ' + formObj.getObjectRefAsString();
                        }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.