[elvystrac] r1894 - tooltipy pro panely a kategorie

  • From: elvys@xxxxxxxxxxxxxxxxxxxxxx
  • To: elvystrac@xxxxxxxxxxxxx
  • Date: Fri, 26 Feb 2010 01:42:57 +0100

Author: EvaV
Date: 2010-02-26 01:42:57 +0100 (Fri, 26 Feb 2010)
New Revision: 1894

Modified:
   
trunk/layouteditor/LayoutDesigner/src/com/elvys/applet/components/TabbedPane.java
Log:
tooltipy pro panely a kategorie

Modified: 
trunk/layouteditor/LayoutDesigner/src/com/elvys/applet/components/TabbedPane.java
===================================================================
--- 
trunk/layouteditor/LayoutDesigner/src/com/elvys/applet/components/TabbedPane.java
   2010-02-25 23:13:18 UTC (rev 1893)
+++ 
trunk/layouteditor/LayoutDesigner/src/com/elvys/applet/components/TabbedPane.java
   2010-02-26 00:42:57 UTC (rev 1894)
@@ -113,23 +113,24 @@
        public void addNewTab(String tabName, DesignArea newDesignArea, int 
leftWidth, int bottomHeight, int designAreaWidth, int designAreaHeight) {
                                
                System.out.println(leftWidth + " : " + bottomHeight);
-               JPanel tabPanel = new JPanel();
+               JPanel panelPanel = new JPanel();
                Color lightGray = new Color(211, 211, 211);
-               tabPanel.setBackground(lightGray);
+               panelPanel.setBackground(lightGray);
+               
panelPanel.setToolTipText(properties.getProperty("tooltip.panels"));
+               panelPanel.setLocation(0,0);
+               panelPanel.setSize(leftWidth, designAreaHeight);
                
-               tabPanel.setLocation(0,0);
-               tabPanel.setSize(leftWidth, designAreaHeight);
-               
                JPanel catPanel = new JPanel();
                catPanel.setBackground(lightGray);
                catPanel.setLocation(leftWidth, designAreaHeight);
                catPanel.setSize(designAreaWidth, bottomHeight);
                
+               
catPanel.setToolTipText(properties.getProperty("tooltip.categories"));
                newDesignArea.setLocation(leftWidth,0);
                newDesignArea.setSize(designAreaWidth, designAreaHeight);
-               Tab tab = new Tab(newDesignArea, tabPanel, catPanel);
+               Tab tab = new Tab(newDesignArea, panelPanel, catPanel);
                tab.setLayout(null);
-               tab.add(tabPanel);
+               tab.add(panelPanel);
                tab.add(catPanel);
                tab.add(newDesignArea);
                


Other related posts:

  • » [elvystrac] r1894 - tooltipy pro panely a kategorie - elvys