Examples of JComponentFactory


Examples of net.jini.lookup.ui.factory.JComponentFactory

                    e.printStackTrace();
                }
            }
            JComponent[] jComponents = new JComponent[factoryList.size()];
            for(int i = 0; i < factoryList.size(); i++) {
                JComponentFactory factory =
                    (JComponentFactory)factoryList.get(i);
                jComponents[i] = factory.getJComponent(serviceItem);
            }
            return (jComponents);
        } catch(MalformedURLException e) {
            e.printStackTrace();
        } catch(IOException e) {
View Full Code Here

Examples of net.jini.lookup.ui.factory.JComponentFactory

        if(JFrameFactory.class.isAssignableFrom(factoryClass))
            uiComponent = new LaunchPanel(factory, item);
        else if(JWindowFactory.class.isAssignableFrom(factoryClass))
            uiComponent = new LaunchPanel(factory, item);
        else if(JComponentFactory.class.isAssignableFrom(factoryClass)) {
            JComponentFactory fac = (JComponentFactory)factory;
            uiComponent = fac.getJComponent(item);
            String name = uiComponent.getAccessibleContext().getAccessibleName();
            if(name==null)
                uiComponent.getAccessibleContext().setAccessibleName(
                                                  uiComponent.getClass().getName());
View Full Code Here

Examples of net.jini.lookup.ui.factory.JComponentFactory

                JWindowFactory uiFactory = (JWindowFactory)factory;
                JWindow window = uiFactory.getJWindow(serviceItem);
                window.validate();
                window.setVisible(true);
            } else if(JComponentFactory.class.isAssignableFrom(factoryClass)) {
                JComponentFactory uiFactory = (JComponentFactory)factory;
                JComponent component = uiFactory.getJComponent(serviceItem);
                String name = component.getAccessibleContext().getAccessibleName();
                if(name==null) {
                    component.getAccessibleContext().setAccessibleName(component.getClass().getName());
                }
                JComponentFrame componentFrame = new JComponentFrame(component, name);
                componentFrame.setLocationRelativeTo(parent);
                componentFrame.setVisible(true);
            } else if(JDialogFactory.class.isAssignableFrom(factoryClass)) {
                JDialogFactory uiFactory = (JDialogFactory)factory;
                JDialog dialog = uiFactory.getJDialog(serviceItem);
                dialog.validate();
                dialog.setVisible(true);
            }
        } catch (Exception e) {
            Util.showError(e, parent, "Service UI Exception");
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.