Source Code Cross Referenced for VAInstallPanel.java in  » Installer » VAInstall » com » memoire » vainstall » gui » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Installer » VAInstall » com.memoire.vainstall.gui 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


01:        /**
02:         * $RCSfile: VAInstallPanel.java,v $
03:         * @creation     01/02/00
04:         * @modification $Date: 2004/02/02 20:57:58 $
05:         */package com.memoire.vainstall.gui;
06:
07:        import java.awt.*;
08:        import javax.swing.*;
09:        import javax.swing.border.*;
10:        import com.memoire.vainstall.VAInstallStep;
11:        import com.memoire.vainstall.VAGlobals;
12:
13:        /**
14:         * @version      $Id: VAInstallPanel.java,v 1.5 2004/02/02 20:57:58 deniger Exp $
15:         * @author       Axel von Arnim
16:         */
17:
18:        public class VAInstallPanel extends VAPanel implements  VAInstallStep {
19:            JLabel lbDetails_, lbStatus_;
20:            JProgressBar pbProgress_;
21:
22:            public VAInstallPanel() {
23:                super ();
24:
25:                setLayout(new BoxLayout(this , BoxLayout.X_AXIS));
26:
27:                JPanel pnMain = new JPanel();
28:                pnMain.setBorder(new CompoundBorder(new EtchedBorder(),
29:                        new EmptyBorder(new Insets(5, 5, 5, 5))));
30:                pnMain.setLayout(new BoxLayout(pnMain, BoxLayout.Y_AXIS));
31:
32:                JPanel pnHaut = new JPanel();
33:                pnHaut.setLayout(new BorderLayout());
34:
35:                JLabel lbTitle = new JLabel(
36:                        VAGlobals.OPERATION == VAGlobals.INSTALL ? VAGlobals
37:                                .i18n("UI_Installation")
38:                                : VAGlobals.OPERATION == VAGlobals.UPDATE ? VAGlobals
39:                                        .i18n("UI_Update")
40:                                        : VAGlobals.OPERATION == VAGlobals.UNINSTALL ? VAGlobals
41:                                                .i18n("UI_Uninstallation")
42:                                                : VAGlobals
43:                                                        .i18n("UI_UnknownOperation"));
44:                lbTitle.setFont(lbTitle.getFont().deriveFont(Font.BOLD, 20));
45:                lbTitle.setOpaque(true);
46:                lbTitle.setBorder(new EmptyBorder(new Insets(5, 0, 5, 0)));
47:                lbTitle.setBackground(pnMain.getBackground().darker());
48:                lbTitle.setForeground(Color.white);
49:                pnHaut.add(BorderLayout.NORTH, lbTitle);
50:
51:                lbDetails_ = new JLabel();
52:                lbDetails_.setText(VAGlobals.i18n("UI_ClickNextToStart"));
53:                lbDetails_.setOpaque(true);
54:                pnHaut.add(BorderLayout.SOUTH, lbDetails_);
55:
56:                JPanel pnBas = new JPanel();
57:                pnBas.setLayout(new BorderLayout());
58:                pbProgress_ = new JProgressBar();
59:                pnBas.add(BorderLayout.NORTH, pbProgress_);
60:                lbStatus_ = new JLabel();
61:                lbStatus_.setText(VAGlobals.i18n("UI_ReadyToStart"));
62:                lbStatus_.setOpaque(true);
63:                lbStatus_.setBackground(pnMain.getBackground().brighter());
64:                pnBas.add(BorderLayout.SOUTH, lbStatus_);
65:
66:                pnMain.add(pnHaut);
67:                pnMain.add(pnBas);
68:
69:                JComponent pnImage = VAImagePanel.IMAGE_PANEL;
70:                add(pnImage);
71:                add(pnMain);
72:            }
73:
74:            public void details(String msg) {
75:                int index = msg.lastIndexOf(System
76:                        .getProperty("file.separator"));
77:                if (index > -1)
78:                    msg = msg.substring(index + 1);
79:                lbDetails_.setText(msg);
80:                //RepaintManager.currentManager(lbDetails_).paintDirtyRegions(); // OSX Repaint - see VAWizard.java
81:            }
82:
83:            public void status(String msg) {
84:                lbStatus_.setText(msg);
85:                //RepaintManager.currentManager(lbStatus_).paintDirtyRegions(); // OSX Repaint - see VAWizard.java
86:            }
87:
88:            public void setProgression(int n) {
89:                pbProgress_.setValue(n);
90:                //RepaintManager.currentManager(pbProgress_).paintDirtyRegions(); // OSX Repaint - see VAWizard.java
91:                if (n >= 100) {
92:                    details(VAGlobals.i18n("UI_DecompressionFinished"));
93:                }
94:            }
95:
96:            public int getProgression() {
97:                return pbProgress_.getValue();
98:            }
99:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.