Author: jerome
Date: 2008-08-16 19:57:43 +0200 (Sat, 16 Aug 2008)
New Revision: 1525

Modified:
   
software_suite_v2/software/tools/chatterTux/trunk/Chatter_tux/src/ConfInterface.java
Log:
* Removed components focus borders that was very ugly with used look and feel.

Modified: 
software_suite_v2/software/tools/chatterTux/trunk/Chatter_tux/src/ConfInterface.java
===================================================================
--- 
software_suite_v2/software/tools/chatterTux/trunk/Chatter_tux/src/ConfInterface.java
        2008-08-16 17:56:54 UTC (rev 1524)
+++ 
software_suite_v2/software/tools/chatterTux/trunk/Chatter_tux/src/ConfInterface.java
        2008-08-16 17:57:43 UTC (rev 1525)
@@ -146,7 +146,7 @@
                        
                        //Set Look & Feel
                        try {
-                       
javax.swing.UIManager.setLookAndFeel("com.jgoodies.looks.plastic.Plastic3DLookAndFeel");
 //$NON-NLS-1$
+                       
javax.swing.UIManager.setLookAndFeel("com.jgoodies.looks.plastic.Plastic3DLookAndFeel");
                        } catch(Exception e) {
                        e.printStackTrace();
                        }
@@ -197,6 +197,7 @@
                        
this.locutorSet.setPreferredSize(this.locutorSet.getSize());
                        this.pitchSet.setPreferredSize(this.pitchSet.getSize());
                        this.locutorSet.setLocation(new Point(20, 26));
+                       this.locutorSet.setFocusable(false);
                        this.pitchSet.setLocation(new Point(20, 58));
                        this.voiceConfigPanel.add(this.locutorSet);
                        this.voiceConfigPanel.add(this.pitchSet);
@@ -226,6 +227,7 @@
                        
                        //Displaying registered pitch configuration.
                        this.pitchSet.setValue(Integer.valueOf(pitch));
+                       this.pitchSet.setFocusable(false);
                        
                        //Getting server start / stop function buttons.
                        this.jContentPane.add(this.getStartServer());
@@ -255,6 +257,7 @@
                        this.actionModifier.setLocation(new Point(x, y));
                        //Setting combobox
                        this.parametrized = new JComboBox();
+                       this.parametrized.setFocusable(false);
                        
                        for(int i=1; i < this.ini.getLength(); i++){
                                
this.parametrized.addItem((String)this.ini.getKeyAtIndex(i));
@@ -264,7 +267,7 @@
                        
this.parametrized.setPreferredSize(this.parametrized.getSize());
                        
this.parametrized.setLocation(this.locutorSet.getLocation());
                        this.actionModifier.add(this.parametrized);
-                       
+                                               
                        //Setting parameters display area.
                        this.parameters = new JTextArea();
                        this.parameters.setEditable(false);
@@ -297,6 +300,7 @@
                        this.startServer = new JRadioButton("Start Chatter");
                        this.startServer.setSize(new Dimension(100, 25));
                        this.startServer.setLocation(new Point(200, 26));
+                       this.startServer.setFocusPainted(false);
                        this.startServer.addActionListener(new 
ServerControlActionListener());
                }
                return this.startServer;
@@ -308,6 +312,7 @@
                        this.stopServer = new JRadioButton("Stop Chatter");
                        this.stopServer.setSize(new Dimension(100, 25));
                        this.stopServer.setLocation(new Point(200, 60));
+                       this.stopServer.setFocusPainted(false);
                        this.stopServer.addActionListener(new 
ServerControlActionListener());
                }
                return this.stopServer;
@@ -320,6 +325,7 @@
                        this.ok = new JButton("Ok");
                        this.ok.setSize(new Dimension(73,23));
                        this.ok.setLocation(new Point(215, 2));
+                       this.ok.setFocusPainted(false);
                        this.ok.addMouseListener(new 
java.awt.event.MouseAdapter(){
                                public void 
mousePressed(java.awt.event.MouseEvent event){
                                        //Register configuration.
@@ -336,6 +342,7 @@
                        this.cancel = new JButton("Cancel");
                        cancel.setSize(new Dimension(73, 23));
                        cancel.setLocation(new Point(294, 2));
+                       cancel.setFocusPainted(false);
                        cancel.addMouseListener(new 
java.awt.event.MouseAdapter(){
                                public void 
mousePressed(java.awt.event.MouseEvent event){
                                        System.gc();
@@ -379,6 +386,7 @@
                        this.okEdition = new JButton("Save");
                        this.okEdition.setSize(new Dimension(73,23));
                        
this.okEdition.setPreferredSize(this.okEdition.getSize());
+                       this.okEdition.setFocusPainted(false);
                        this.okEdition.addMouseListener(new 
java.awt.event.MouseAdapter(){
                                public void 
mousePressed(java.awt.event.MouseEvent event){
                                        storeAsIni();


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Tux-droid-svn mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tux-droid-svn

Reply via email to