Author: remi
Date: 2008-11-29 15:21:28 +0100 (Sat, 29 Nov 2008)
New Revision: 2921
Added:
software_suite_v2/software/tools/attitunesStudio/trunk/src/GUI/AttituneAbout.java
Log:
* added GUI about
Added:
software_suite_v2/software/tools/attitunesStudio/trunk/src/GUI/AttituneAbout.java
===================================================================
---
software_suite_v2/software/tools/attitunesStudio/trunk/src/GUI/AttituneAbout.java
(rev 0)
+++
software_suite_v2/software/tools/attitunesStudio/trunk/src/GUI/AttituneAbout.java
2008-11-29 14:21:28 UTC (rev 2921)
@@ -0,0 +1,166 @@
+/* This file is part of "Attitunes studio".
+ * Copyright 2008, kysoh
+ * Author : Remi Jocaille
+ * eMail : [EMAIL PROTECTED]
+ * Site : http://www.kysoh.com/
+ *
+ * "TuxDroid Control Center" is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * "TuxDroid Control Center" is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public
+ * License along with "TuxDroid Control Center"; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+
+
+package GUI;
+
+import java.awt.FlowLayout;
+import java.awt.GridBagConstraints;
+import java.awt.GridBagLayout;
+import java.awt.GridLayout;
+import java.awt.Insets;
+import java.awt.event.MouseAdapter;
+import java.awt.event.MouseEvent;
+
+import javax.swing.ImageIcon;
+import javax.swing.JButton;
+import javax.swing.JFrame;
+import javax.swing.JLabel;
+import javax.swing.JPanel;
+
+import com.tuxisalive.attitunes.ATTMessages;
+
+
+
+/**
+* This code was edited or generated using CloudGarden's Jigloo
+* SWT/Swing GUI Builder, which is free for non-commercial
+* use. If Jigloo is being used commercially (ie, by a corporation,
+* company or business for any purpose whatever) then you
+* should purchase a license for each developer using Jigloo.
+* Please visit www.cloudgarden.com for details.
+* Use of Jigloo implies acceptance of these licensing terms.
+* A COMMERCIAL LICENSE HAS NOT BEEN PURCHASED FOR
+* THIS MACHINE, SO JIGLOO OR THIS CODE CANNOT BE USED
+* LEGALLY FOR ANY CORPORATE OR COMMERCIAL PURPOSE.
+*/
+public class AttituneAbout extends JFrame
+{
+
+ private static final long serialVersionUID = 1L;
+ private ImageIcon logo;
+ private JButton jButtonOk;
+ private JLabel jLabelAuthor;
+ private JLabel jLabelVersion;
+ private JLabel jLabelAppName;
+ private JPanel jPanelBtOk;
+ private JPanel jPanelInfos;
+ private JPanel jPanelLogo;
+ private JLabel jLabelLogo;
+
+ public AttituneAbout()
+ {
+ super();
+ this.setIconImage(new
ImageIcon(getClass().getResource("/icone.png")).getImage());
+ this.setTitle(ATTMessages.getString("MainFrame.1"));
+ this.setResizable(false);
+ /* Init the frame */
+ initGUI();
+ }
+
+ private void initGUI()
+ {
+ try
+ {
+ GridLayout thisLayout = new GridLayout(3, 1);
+ thisLayout.setHgap(5);
+ thisLayout.setVgap(5);
+ thisLayout.setColumns(1);
+ thisLayout.setRows(3);
+ getContentPane().setLayout(thisLayout);
+ {
+ jPanelLogo = new JPanel();
+ FlowLayout jPanel1Layout = new FlowLayout();
+ jPanelLogo.setLayout(jPanel1Layout);
+ getContentPane().add(jPanelLogo);
+ jPanelLogo.setPreferredSize(new
java.awt.Dimension(294, 93));
+ {
+ logo = new
ImageIcon(getClass().getResource("/icone.png"));
+ jLabelLogo = new JLabel();
+ jPanelLogo.add(jLabelLogo);
+ jLabelLogo.setIcon(logo);
+ jLabelLogo.setPreferredSize(new
java.awt.Dimension(48, 60));
+ }
+ }
+ {
+ jPanelInfos = new JPanel();
+ GridBagLayout jPanel4Layout = new
GridBagLayout();
+ jPanel4Layout.rowWeights = new double[] {0.1,
0.1, 0.1};
+ jPanel4Layout.rowHeights = new int[] {7, 7, 7};
+ jPanel4Layout.columnWeights = new double[]
{0.0, 0.1};
+ jPanel4Layout.columnWidths = new int[] {0, 20};
+ jPanelInfos.setLayout(jPanel4Layout);
+ getContentPane().add(jPanelInfos);
+ {
+ jLabelAppName = new JLabel();
+ jPanelInfos.add(jLabelAppName, new
GridBagConstraints(1, 0, 1, 1, 0.0, 0.0, GridBagConstraints.CENTER,
GridBagConstraints.NONE, new Insets(0, 0, 0, 0), 0, 0));
+ jLabelAppName.setText("Attitunes
Studio");
+ }
+ {
+ jLabelVersion = new JLabel();
+ jPanelInfos.add(jLabelVersion, new
GridBagConstraints(1, 1, 1, 1, 0.0, 0.0, GridBagConstraints.CENTER,
GridBagConstraints.NONE, new Insets(0, 0, 0, 0), 0, 0));
+ jLabelVersion.setText("Version 0.0.1");
+ }
+ {
+ jLabelAuthor = new JLabel();
+ jPanelInfos.add(jLabelAuthor, new
GridBagConstraints(1, 2, 1, 1, 0.0, 0.0, GridBagConstraints.CENTER,
GridBagConstraints.NONE, new Insets(0, 0, 0, 0), 0, 0));
+ jLabelAuthor.setText("Copyright (C)
2008 Kysoh <[EMAIL PROTECTED]>");
+ }
+ }
+ {
+ jPanelBtOk = new JPanel();
+ GridBagLayout jPanel5Layout = new
GridBagLayout();
+ jPanel5Layout.rowWeights = new double[] {0.0,
0.0, 0.1};
+ jPanel5Layout.rowHeights = new int[] {16, 30,
7};
+ jPanel5Layout.columnWeights = new double[]
{0.1, 0.1, 0.1};
+ jPanel5Layout.columnWidths = new int[] {7, 7,
7};
+ jPanelBtOk.setLayout(jPanel5Layout);
+ getContentPane().add(jPanelBtOk);
+ {
+ jButtonOk = new JButton();
+ jPanelBtOk.add(jButtonOk, new
GridBagConstraints(1, 1, 1, 1, 0.0, 0.0, GridBagConstraints.CENTER,
GridBagConstraints.NONE, new Insets(0, 0, 0, 0), 0, 0));
+ jButtonOk.setText("Ok");
+ jButtonOk.setPreferredSize(new
java.awt.Dimension(93, 29));
+ jButtonOk.addMouseListener(new
MouseAdapter() {
+ public void
mousePressed(MouseEvent evt) {
+
jButtonOkMousePressed(evt);
+ }
+ });
+ }
+ }
+
+
+
+ this.setSize(350, 220);
+ }
+ catch(Exception e)
+ {
+ e.printStackTrace();
+ }
+ }
+
+ private void jButtonOkMousePressed(MouseEvent evt)
+ {
+ this.dispose();
+ }
+
+}
Property changes on:
software_suite_v2/software/tools/attitunesStudio/trunk/src/GUI/AttituneAbout.java
___________________________________________________________________
Name: svn:keywords
+ Id
-------------------------------------------------------------------------
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