harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ilya Okomin (JIRA)" <j...@apache.org>
Subject [jira] Created: (HARMONY-2209) [classlib][swing] Toolbar can be attached on top of another toolbar
Date Thu, 16 Nov 2006 11:04:37 GMT
[classlib][swing] Toolbar can be attached on top of another toolbar

                 Key: HARMONY-2209
                 URL: http://issues.apache.org/jira/browse/HARMONY-2209
             Project: Harmony
          Issue Type: Bug
          Components: Classlib
            Reporter: Ilya Okomin
            Priority: Minor

Steps to reproduce:

1. Run the test case (written below): It creates 2 toolbars. 
2. Drag one toolbar on top of another: The frame around the dragging window becomes dark which
that the toolbar can be attached here which is wrong. 
3. Drop the toolbar: Both toolbars are attached to the same position which is also wrong.


import java.awt.BorderLayout;

import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JToolBar;

public class test {
    public static void main(String[] args) {
        JFrame f = new JFrame("Toolbar demo");

        JToolBar toolBar = new JToolBar("Toolbar1");
        toolBar.add(new JButton("1"));
        f.getContentPane().add(toolBar, BorderLayout.PAGE_START);

        toolBar = new JToolBar("ToolBar2");
        toolBar.add(new JButton("2"));
        f.getContentPane().add(toolBar, BorderLayout.PAGE_END);

        f.setSize(300, 200);


This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira


View raw message