logging-log4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From psm...@apache.org
Subject cvs commit: jakarta-log4j-sandbox/src/java/org/apache/log4j/chainsaw LogUI.java
Date Fri, 02 May 2003 04:43:52 GMT
psmith      2003/05/01 21:43:52

  Modified:    src/java/org/apache/log4j/chainsaw LogUI.java
  Log:
  Somehow the Vertical & West toolbar seems more pleasing to me, but
  others might disagree....
  
  Revision  Changes    Path
  1.15      +13 -7     jakarta-log4j-sandbox/src/java/org/apache/log4j/chainsaw/LogUI.java
  
  Index: LogUI.java
  ===================================================================
  RCS file: /home/cvs/jakarta-log4j-sandbox/src/java/org/apache/log4j/chainsaw/LogUI.java,v
  retrieving revision 1.14
  retrieving revision 1.15
  diff -u -r1.14 -r1.15
  --- LogUI.java	2 May 2003 04:29:37 -0000	1.14
  +++ LogUI.java	2 May 2003 04:43:51 -0000	1.15
  @@ -200,7 +200,7 @@
           } else {
             runnable = new Runnable() {
               public void run() {
  -              getContentPane().add(removeToolbarComponent, BorderLayout.NORTH);
  +              getContentPane().add(removeToolbarComponent, BorderLayout.WEST);
                 getRootPane().repaint();
                 getRootPane().revalidate();
               }
  @@ -234,20 +234,26 @@
      * @param fileMenu need the filemenu to extract the Open/Save actions
      */
     private void createToolbar(FileMenu fileMenu) {
  -    toolbar = new JToolBar("Chainsaw");
  -    toolbar.setFloatable(false);
  -    toolbar.setRollover(true);
  +    toolbar = new JToolBar(JToolBar.VERTICAL);
  +    toolbar.setFloatable(true);
  +    toolbar.setRollover(false);
  +    
  +    Insets buttonMargins = new Insets(1,1,1,1);
       
       JButton fileOpenButton = new JButton(fileMenu.getFileOpenAction());
  +    fileOpenButton.setMargin(buttonMargins);
  +
       JButton fileSaveButton = new JButton(fileMenu.getFileSaveAction());
  +    fileSaveButton.setMargin(buttonMargins);
  +    
       fileOpenButton.setText("");
       fileSaveButton.setText("");
       
       toolbar.add(fileOpenButton);      
       toolbar.add(fileSaveButton);
  -    toolbar.addSeparator();
  +//    toolbar.addSeparator();
       
  -    toolbar.setMargin(new Insets(0,0,0,0));
  +    toolbar.setMargin(buttonMargins);
   
     }
     
  @@ -328,7 +334,7 @@
       tabbedPane.add("Welcome", new WelcomePanel());
       panePanel.add(tabbedPane);
   
  -    getContentPane().add(toolbar, BorderLayout.NORTH);
  +    getContentPane().add(toolbar, BorderLayout.WEST);
       getContentPane().add(panePanel, BorderLayout.CENTER);
   
       addWindowListener(
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: log4j-dev-help@jakarta.apache.org


Mime
View raw message