Author: jerome
Date: 2009-02-06 16:39:32 +0100 (Fri, 06 Feb 2009)
New Revision: 3586
Modified:
software_suite_v2/software/tools/control_center_presentation/trunk/control_center_presentation/src/CancelButton.java
software_suite_v2/software/tools/control_center_presentation/trunk/control_center_presentation/src/ccp_main.java
Log:
* Fixed : #25 ?\226?\128?\148 tooltip gfx and button layout.
Modified:
software_suite_v2/software/tools/control_center_presentation/trunk/control_center_presentation/src/CancelButton.java
===================================================================
---
software_suite_v2/software/tools/control_center_presentation/trunk/control_center_presentation/src/CancelButton.java
2009-02-06 15:19:19 UTC (rev 3585)
+++
software_suite_v2/software/tools/control_center_presentation/trunk/control_center_presentation/src/CancelButton.java
2009-02-06 15:39:32 UTC (rev 3586)
@@ -27,7 +27,6 @@
import javax.swing.ImageIcon;
import javax.swing.JButton;
-import javax.swing.JFrame;
public class CancelButton extends JButton{
@@ -35,7 +34,7 @@
private String text = "";
private Color color = Color.white;
- public CancelButton(String text, final JFrame parent){
+ public CancelButton(String text){
super();
this.text = text;
this.setContentAreaFilled(false);
@@ -51,7 +50,6 @@
public void mouseReleased(java.awt.event.MouseEvent
event){
color = Color.white;
- parent.dispose();
}
});
Modified:
software_suite_v2/software/tools/control_center_presentation/trunk/control_center_presentation/src/ccp_main.java
===================================================================
---
software_suite_v2/software/tools/control_center_presentation/trunk/control_center_presentation/src/ccp_main.java
2009-02-06 15:19:19 UTC (rev 3585)
+++
software_suite_v2/software/tools/control_center_presentation/trunk/control_center_presentation/src/ccp_main.java
2009-02-06 15:39:32 UTC (rev 3586)
@@ -163,11 +163,22 @@
linkButton.setPreferredSize(linkButton.getSize());
linkButton.setLocation(26, 345);
- this.cancelButton = new
CancelButton(properties.getCancelButtonText(), this.frame);
+ this.cancelButton = new
CancelButton(properties.getCancelButtonText());
cancelButton.setSize(177, 52);
cancelButton.setPreferredSize(linkButton.getSize());
cancelButton.setLocation(224, 345);
+ cancelButton.addMouseListener(new java.awt.event.MouseAdapter(){
+
+ public void mousePressed(java.awt.event.MouseEvent
event)
+ {
+ tux.attitune.stop();
+ tux.destroy();
+ frame.dispose();
+ }
+
+ });
+
p.add(atStartup);
p.add(linkButton);
p.add(cancelButton);
------------------------------------------------------------------------------
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
_______________________________________________
Tux-droid-svn mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tux-droid-svn