Package org.apache.pivot.wtk

Examples of org.apache.pivot.wtk.Window.open()


        } catch (SerializationException exception) {
            throw new RuntimeException(exception);
        }

        // Open the Pivot window on the display
        window.open(displayHost.getDisplay());

        // Open and select the internal frame
        internalFrame.setLocation(240, 100);
        internalFrame.setSize(480, 360);
        internalFrame.setVisible(true);
View Full Code Here


                                        this.getClass().getResource("splash.bxml"));
                            } catch (Exception e) {
                                throw new RuntimeException(e);
                            }
                            if (window != null) {
                                window.open(displayArgument);
                                progressOverlay.increment(weight);
                            }
                        }
                    });
                } catch (Exception e) {
View Full Code Here

        final CardPane cardPane = new CardPane();
        cardPane.getStyles().put("selectionChangeEffect", CardPaneSkin.SelectionChangeEffect.HORIZONTAL_SLIDE);

        final Window window = new Window(cardPane);
        window.open(display);

        DesktopApplicationContext.scheduleRecurringCallback(new Runnable() {
            @Override
            public void run() {
                Thread.currentThread().setName("switcher-thread");
View Full Code Here

    public void startup(Display display, Map<String, String> properties) throws Exception {
        Window window = new Window();
        window.setMaximized(true);
        sheet = new FileBrowserSheet(FileBrowserSheet.Mode.SAVE_TO);
        sheet.getWindowStateListeners().add(new SelectFileListener());
        window.open(display);
        sheet.open(window);
    }

    private class SelectFileListener extends WindowStateListener.Adapter {
        @Override
View Full Code Here

    @Override
    public void startup(Display display, Map<String, String> properties) throws Exception {
        BXMLSerializer bxmlSerializer = new BXMLSerializer();
        Window window = (Window) bxmlSerializer.readObject(getClass().getResource("pivot_837.bxml"));
        window.open(display);
    }

    @Override
    public boolean shutdown(boolean optional) throws Exception {
        return false;
View Full Code Here

                paragraph.getParagraphListeners().add(paragraphListener);
            }
        });

        Window window = new Window(textArea);
        window.open(display);
      }

    public static void main(String[] args) {
        DesktopApplicationContext.main(Pivot841.class, args);
    }
View Full Code Here

                menuPopulated = false;
            }
        });


        window.open(display);
    }

    @Override
    public boolean shutdown(boolean optional) throws Exception {
        return false;
View Full Code Here

    public void startup(Display display, Map<String, String> properties) throws Exception
    {
        // TODO: empty currently ...

        Window window = new Window();
        window.open(display);
      }

    public static void main(String[] args) {
        DesktopApplicationContext.main(Pivot838.class, args);
    }
View Full Code Here

                Window window = new Window();
                window.setTitle("New Secondary Window");
                window.setMaximized(true);
                window.setContent(new Label("I am a secondary window!"));
                window.open(displayLocal);
            }
        });

        sheet.getWindowStateListeners().add(new WindowStateListener.Adapter() {
            @Override
View Full Code Here

{
    @Override
    public void startup(Display display, Map<String, String> properties) throws Exception {
        BXMLSerializer bxmlSerializer = new BXMLSerializer();
        Window window = (Window) bxmlSerializer.readObject(getClass().getResource("pivot_835.bxml"));
        window.open(display);
    }

    @Override
    public boolean shutdown(boolean b) throws Exception {
        return false;
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.