Package com.publicobject.misc.swing

Examples of com.publicobject.misc.swing.RoundedBorder$TestRunnable


        public TreeCriterionEditorPanel(TreeCriterion tc) {
            super(new BorderLayout());
            this.treeCriterion = tc;
            this.treeCriterion.addPropertyChangeListener(this);
            setBackground(AmazonBrowser.AMAZON_SEARCH_DARK_BLUE);
            setBorder(new RoundedBorder(AmazonBrowser.AMAZON_SEARCH_LIGHT_BLUE, AmazonBrowser.AMAZON_SEARCH_LIGHT_BLUE, AmazonBrowser.AMAZON_SEARCH_DARK_BLUE, 6, 1));

            activeButton.addActionListener(new ButtonHandler());
            activeButton.setBorder(BorderFactory.createEmptyBorder());
            activeButton.setContentAreaFilled(false);
            activeButton.setFocusable(false);
View Full Code Here


        progressBar.setBorder(BorderFactory.createLineBorder(AMAZON_SEARCH_DARK_BLUE, 2));

        final TreeCriteriaEditor treeCriteriaEditor = new TreeCriteriaEditor(TreeCriterion.ALL_CRITERIA);
        treeCriteriaEditor.addPropertyChangeListener("activeCriteria", new ActiveCriteriaPropertyChangeListener());
        treeCriteriaEditor.setOpaque(false);
        treeCriteriaEditor.setBorder(new RoundedBorder(CLEAR, AMAZON_SEARCH_DARK_BLUE, AMAZON_SEARCH_LIGHT_BLUE, 8, 1));

        final JPanel editorPanel = new JPanel(new GridBagLayout());
        editorPanel.setBackground(AMAZON_SEARCH_DARK_BLUE);
        editorPanel.add(treeCriteriaEditor,           new GridBagConstraints(0, 0, 1, 1, 0.0, 0.0, GridBagConstraints.CENTER, GridBagConstraints.NONE, new Insets(0, 5, 0, 5), 0, 0));
        editorPanel.add(Box.createVerticalStrut(1),   new GridBagConstraints(0, 1, 1, 1, 0.0, 1.0, GridBagConstraints.CENTER, GridBagConstraints.VERTICAL, new Insets(0, 0, 0, 0), 0, 0));
View Full Code Here

            this.wrapPanel = new JPanel();
//            Border border = BorderFactory.createCompoundBorder(
//                    BorderFactory.createLineBorder(IssuesBrowser.GLAZED_LISTS_MEDIUM_LIGHT_BROWN, 1),
//                    BorderFactory.createLineBorder(IssuesBrowser.GLAZED_LISTS_LIGHT_BROWN, 2)
//            );
            Border border = new RoundedBorder(IssuesBrowser.GLAZED_LISTS_MEDIUM_LIGHT_BROWN, IssuesBrowser.GLAZED_LISTS_MEDIUM_LIGHT_BROWN, IssuesBrowser.GLAZED_LISTS_LIGHT_BROWN, 5, 0);
            this.wrapPanel.setBorder(border);
            this.wrapPanel.setBackground(IssuesBrowser.GLAZED_LISTS_LIGHT_BROWN);

            setFilterComponent(filterComponent);
        }
View Full Code Here

        mediator = new OracleDialectEpsgMediator(80, hints, wrappedDataSource);
        codes = OracleDialectEpsgMediatorOnlineStressTest.getCodes();
    }

    public void testLeak() throws Throwable {
        TestRunnable runners[] = new TestRunnable[RUNNER_COUNT];
        for (int i = 0; i < RUNNER_COUNT; i++) {
            ClientThread thread = new OracleDialectEpsgMediatorOnlineStressTest.ClientThread(i, mediator);
            thread.iterations = ITERATIONS;
            runners[i] = thread;
        }
View Full Code Here

        super.disconnect();
    }
   
    public void testRunners() throws Throwable {
       
        TestRunnable runners[] = new TestRunnable[RUNNER_COUNT];
        for (int i = 0; i < RUNNER_COUNT; i++) {
            ClientThread thread = new ClientThread(i, mediator);
            thread.iterations = ITERATIONS;
            runners[i] = thread;
        }
View Full Code Here

        codes = getCodes();
    }
   
    public void testRunners() throws Throwable {
       
        TestRunnable runners[] = new TestRunnable[RUNNER_COUNT];
        for (int i = 0; i < RUNNER_COUNT; i++) {
            ClientThread thread = new ClientThread(i, mediator);
            thread.iterations = ITERATIONS;
            runners[i] = thread;
        }
View Full Code Here

        mediator = new HsqlDialectEpsgMediator(80, hints, datasource);
        codes = HsqlDialectEpsgMediatorStressTest.getCodes();
    }

    public void testLeak() throws Throwable {
        TestRunnable runners[] = new TestRunnable[RUNNER_COUNT];
        for (int i = 0; i < RUNNER_COUNT; i++) {
            ClientThread thread = new HsqlDialectEpsgMediatorStressTest.ClientThread(i, mediator);
            thread.iterations = ITERATIONS;
            runners[i] = thread;
        }
View Full Code Here

    public void testRunners() throws Throwable {
        if (!TestData.isExtensiveTest()) {
            return;
        }
        TestRunnable runners[] = new TestRunnable[RUNNER_COUNT];
        for (int i = 0; i < RUNNER_COUNT; i++) {
            ClientThread thread = new ClientThread(i, mediator);
            thread.iterations = ITERATIONS;
            runners[i] = thread;
        }
View Full Code Here

    protected static Test suite() {
        return new TestSuite(ConcurrentAccessTest.class);
    }

    public void testConcurrentAccess() throws Throwable {
        TestRunnable client1 = new CacheClient(filterset1);
        TestRunnable client2 = new CacheClient(filterset2);
        TestRunnable client3 = new CacheClient(filterset1);
        TestRunnable[] trs = new TestRunnable[] { client1, client2, client3 };
        MultiThreadedTestRunner mttr = new MultiThreadedTestRunner(trs);
        mttr.runTestRunnables();
    }
View Full Code Here

TOP

Related Classes of com.publicobject.misc.swing.RoundedBorder$TestRunnable

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.