Package org.tools.ui.utils

Examples of org.tools.ui.utils.BasicFrame


    /**
     *
     * @param title
     */
    public OggPlayerApp(String title) {
        JFrame frame = new BasicFrame(title);

        // icon
        frame.setIconImage(TestIOManager.getAsImage("/icons/app.icon.png"));

        // components
        JLabel label = new JLabel("Song");
        JProgressBar progress = new JProgressBar();
        JButton load = new JButton("Browse");
        JToggleButton play = new JToggleButton("Play");

        // layout
        frame.setLayout(new MigLayout("wrap 2"));
        frame.add(label, "wmin 200, sg a");
        frame.add(load, "sg b");
        frame.add(progress, "sg a");
        frame.add(play, "sg b");


        // pack and set visible
        frame.pack();
        frame.setVisible(true);
    }
View Full Code Here

TOP

Related Classes of org.tools.ui.utils.BasicFrame

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.