Package shag.search

Examples of shag.search.SearchField


    private JFrame createSearchFieldFrame() {
        JFrame result = new JFrame("SearchField Demo");
        result.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);

        JPanel content = new JPanel(new BorderLayout(0, 5));
        SearchField sf = new DemoSearchField();
        sf.setMinimumSearchKeyLength(1);
        content.add(sf, BorderLayout.NORTH);
        sf = new DemoSearchField(true);
        sf.setMinimumSearchKeyLength(1);
        sf.setComboBoxModel(new DefaultComboBoxModel(new String[] { "Hello", "Wacky" }));
        content.add(sf, BorderLayout.SOUTH);

        StringBuffer sb = new StringBuffer("<html><p>You can choose from:</p><ul>");
        for (DemoBean db: DATA) {
            sb.append("<li>");
View Full Code Here

TOP

Related Classes of shag.search.SearchField

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.