This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

View | Details | Raw Unified | Return to bug 24381
Collapse All | Expand All

(-)src/org/netbeans/modules/welcome/ContentPanel.java (-52 / +15 lines)
Lines 39-52 Link Here
39
    public ContentPanel() {
39
    public ContentPanel() {
40
        language = Locale.getDefault().getLanguage();
40
        language = Locale.getDefault().getLanguage();
41
        bundle = NbBundle.getBundle(HelpPanel.class);
41
        bundle = NbBundle.getBundle(HelpPanel.class);
42
        if(System.getProperty("java.vm.version").startsWith("1.3")){ //NOI18N
43
            TipPanel tipPanel = new TipPanel();
42
            TipPanel tipPanel = new TipPanel();
44
            setLayout(new BorderLayout());
43
            setLayout(new BorderLayout());
45
            
46
            jEditorPane1 = new WelcomeEditor();
44
            jEditorPane1 = new WelcomeEditor();
47
            setMinimumSize(new java.awt.Dimension(300, 300));
45
            setMinimumSize(new java.awt.Dimension(300, 300));
48
            setPreferredSize(new java.awt.Dimension(300, 300));
46
            setPreferredSize(new java.awt.Dimension(300, 300));
49
            jEditorPane1.setEditable(false);
47
            jEditorPane1.setEditable(false);
48
        if(System.getProperty("java.vm.version").startsWith("1.3")){
50
            if(System.getProperty("os.name").indexOf("Linux") != -1){
49
            if(System.getProperty("os.name").indexOf("Linux") != -1){
51
                if(!language.equals("en")){
50
                if(!language.equals("en")){
52
                    page = "/org/netbeans/modules/welcome/pages/welcome_1_3_lin_"+language+".html";   // NOI18N
51
                    page = "/org/netbeans/modules/welcome/pages/welcome_1_3_lin_"+language+".html";   // NOI18N
Lines 57-84 Link Here
57
                if(!language.equals("en")){
56
                if(!language.equals("en")){
58
                    page = "/org/netbeans/modules/welcome/pages/welcome_1_3_"+language+".html";   // NOI18N
57
                    page = "/org/netbeans/modules/welcome/pages/welcome_1_3_"+language+".html";   // NOI18N
59
                }else{
58
                }else{
60
                    page= "pages/welcome_1_3.html";   // NOI18N
59
                    page= "pages/welcome.html";   // NOI18N
61
                }
60
                }
62
            }
61
            }
63
            try{
62
        }else {
64
                jEditorPane1.setEditorKit(new javax.swing.text.html.HTMLEditorKit());
63
            if(!language.equals("en"))
65
                jEditorPane1.setPage(getClass().getResource(page));
64
                page = "/org/netbeans/modules/welcome/pages/welcome_"+language+".html";   // NOI18N
66
            }catch(Exception e){
67
                //try to use default page
68
                if(System.getProperty("os.name").indexOf("Linux") != -1)
69
                    page= "pages/welcome_1_3_lin.html";   // NOI18N
70
                else
65
                else
71
                    page= "pages/welcome_1_3.html";   // NOI18N
66
                page= "pages/welcome.html";   // NOI18N
67
        }
72
                try{
68
                try{
69
            jEditorPane1.setEditorKit(new javax.swing.text.html.HTMLEditorKit());
73
                    jEditorPane1.setPage(getClass().getResource(page));
70
                    jEditorPane1.setPage(getClass().getResource(page));
74
                }catch(Exception ep){
71
        }catch(Exception e){    //try to use default page
75
                    if(page.equals("pages/welcome_1_3_lin.html") || page.equals("pages/welcome_1_3.html"))  // NOI18N
72
            //default page was used
76
                        ErrorManager.getDefault().notify(ep);
73
            if(page.equals("pages/welcome_1_3_lin.html") || page.equals("pages/welcome_1_3.html") || page.equals("pages/welcome.html"))  // NOI18N
74
                ErrorManager.getDefault().notify(e);
77
                    else{
75
                    else{
76
                if(System.getProperty("java.vm.version").startsWith("1.3")){    // NOI18N
78
                        if(System.getProperty("os.name").indexOf("Linux") != -1)    // NOI18N
77
                        if(System.getProperty("os.name").indexOf("Linux") != -1)    // NOI18N
79
                            page= "pages/welcome_1_3_lin.html";   // NOI18N
78
                            page= "pages/welcome_1_3_lin.html";   // NOI18N
80
                        else
79
                        else
81
                            page= "pages/welcome_1_3.html";   // NOI18N
80
                            page= "pages/welcome_1_3.html";   // NOI18N
81
                }else
82
                    page = "pages/welcome.html";                // NOI18N
82
                        try{
83
                        try{
83
                            jEditorPane1.setPage(getClass().getResource(page));
84
                            jEditorPane1.setPage(getClass().getResource(page));
84
                        }catch(Exception en){
85
                        }catch(Exception en){
Lines 87-134 Link Here
87
                    }                          
88
                    }                          
88
                }
89
                }
89
                
90
                
90
            }
91
            ControlPanel ctrlPanel = new ControlPanel();
91
            ControlPanel ctrlPanel = new ControlPanel();
92
            add(jEditorPane1,BorderLayout.CENTER);
92
            add(jEditorPane1,BorderLayout.CENTER);
93
            add(ctrlPanel,BorderLayout.EAST);
93
            add(ctrlPanel,BorderLayout.EAST);
94
            
95
            
96
        }else{
97
            initComponents();
98
        }
99
        initListeners();
94
        initListeners();
100
        
101
        
102
    }
103
    
104
    private void initComponents() {
105
        jEditorPane1 = new WelcomeEditor();
106
        
107
        setLayout(new java.awt.BorderLayout());
108
        
109
        setMinimumSize(new java.awt.Dimension(300, 300));
110
        setPreferredSize(new java.awt.Dimension(300, 300));
111
        jEditorPane1.setEditable(false);
112
        if(!language.equals("en"))
113
            page = "/org/netbeans/modules/welcome/pages/welcome_"+language+".html";   // NOI18N
114
        else
115
            page= "pages/welcome.html";   // NOI18N
116
        try{
117
            jEditorPane1.setEditorKit(new javax.swing.text.html.HTMLEditorKit());
118
            jEditorPane1.setPage(getClass().getResource(page));
119
        }catch(Exception e){
120
            if(!page.equals("pages/welcome.html")){   // NOI18N
121
                page = "pages/welcome.html";// NOI18N
122
                try{
123
                    jEditorPane1.setPage(getClass().getResource(page));
124
                }catch(Exception ep){
125
                    ErrorManager.getDefault().notify(ep);
126
                }
127
            }else
128
                ErrorManager.getDefault().notify(e);
129
            
130
        }
131
        add(jEditorPane1, java.awt.BorderLayout.CENTER);
132
        
95
        
133
    }
96
    }
134
    
97
    
(-)src/org/netbeans/modules/welcome/pages/welcome.html (-134 / +22 lines)
Lines 21-30 Link Here
21
       font-size:10pt;
21
       font-size:10pt;
22
       font-family: LucidaSans Roman, Arial, Helvetica;       
22
       font-family: LucidaSans Roman, Arial, Helvetica;       
23
     }  
23
     }  
24
     body {
25
       font-size:10pt;
26
       font-family: LucidaSans Roman, Arial, Helvetica;
27
     } 
28
     
24
     
29
   </style>
25
   </style>
30
</head>
26
</head>
Lines 35-48 Link Here
35
<td colspan='4' background="line.gif" height='1'></td>
31
<td colspan='4' background="line.gif" height='1'></td>
36
</tr>
32
</tr>
37
<tr NOSAVE>
33
<tr NOSAVE>
38
<td COLSPAN="2" BGCOLOR="#000099" NOSAVE valign="center"><b><font face="LucidaSans Roman, Arial, Helvetica, Sans Serif"
34
<td COLSPAN="2" BGCOLOR="#000099" NOSAVE valign="center"><b><font color="#FFFFFF"><FONT size='12pt'>&nbsp;Getting
39
size="11pt"><font color="#FFFFFF"><FONT size='12pt'>&nbsp;Getting
40
Started Using the IDE</font></b></td>
35
Started Using the IDE</font></b></td>
41
36
42
<td background='arch.gif' ></td>
37
<td background='arch.gif' ></td>
43
<!-- 4.stlpec0-->
44
<td bgcolor='#ededeg'></td>
45
</tr>
38
</tr>
39
46
<tr>
40
<tr>
47
<td>&nbsp;</td>
41
<td>&nbsp;</td>
48
42
Lines 49-56 Link Here
49
<td>&nbsp;</td>
43
<td>&nbsp;</td>
50
44
51
<td background='vertical.gif'></td>
45
<td background='vertical.gif'></td>
52
<!-- 4.stlpec 1 -->
46
53
<td bgcolor='#ededeg'></td>
54
</tr>
47
</tr>
55
48
56
<tr NOSAVE>
49
<tr NOSAVE>
Lines 59-66 Link Here
59
<tr NOSAVE>
52
<tr NOSAVE>
60
<td NOSAVE>&nbsp;</td>
53
<td NOSAVE>&nbsp;</td>
61
<td NOSAVE></td>
54
<td NOSAVE></td>
62
<td COLSPAN="2" BGCOLOR="#3366FF" NOSAVE><b><font face="LucidaSans Roman, Arial, Helvetica, Sans Serif"><font color="#FFFFFF">&nbsp;Opening
55
<td COLSPAN="2" BGCOLOR="#3366FF" NOSAVE><b><font color="#FFFFFF">&nbsp;Opening
63
a File</font></font></b></td>
56
a File</font></b></td>
64
<td></td>
57
<td></td>
65
</tr>
58
</tr>
66
59
Lines 85-91 Link Here
85
78
86
<tr>
79
<tr>
87
<td></td>
80
<td></td>
88
<td><object classid='org.netbeans.modules.welcome.MountButton'></object>&nbsp;&nbsp;</td>
81
<td><a
82
href="http://button:8080/foo#org.netbeans.modules.welcome.MountButton"><img border="0"
83
src="mount.gif"></a>&nbsp;&nbsp;</td>
89
<td COLSPAN="2">Open a file by <b>double-clicking</b> its icon in the
84
<td COLSPAN="2">Open a file by <b>double-clicking</b> its icon in the
90
Filesystems tab of the Explorer.<br></td>
85
Filesystems tab of the Explorer.<br></td>
91
<td></td>
86
<td></td>
Lines 146-153 Link Here
146
<tr NOSAVE>
141
<tr NOSAVE>
147
<td></td>
142
<td></td>
148
<td NOSAVE></td>
143
<td NOSAVE></td>
149
<td COLSPAN="2" BGCOLOR="#3366FF" NOSAVE><b><font face="LucidaSans Roman, Arial, Helvetica, Sans Serif"><font
144
<td COLSPAN="2" BGCOLOR="#3366FF" NOSAVE><b><font
150
color="#FFFFFF">&nbsp;In a Hurry?</font></font></b></td>
145
color="#FFFFFF">&nbsp;In a Hurry?</font></b></td>
151
<td></td>
146
<td></td>
152
</tr>
147
</tr>
153
148
Lines 160-167 Link Here
160
155
161
<tr NOSAVE>
156
<tr NOSAVE>
162
<td></td>
157
<td></td>
163
<td ALIGN=RIGHT VALIGN=TOP width='20'><object
158
<td ALIGN=RIGHT VALIGN=TOP width='20'><a
164
classid='org.netbeans.modules.welcome.OpenFileButton'></object></td>
159
href="http://button:8080/foo#org.netbeans.modules.welcome.OpenFileButton"><img border="0"
160
src="open.gif"></a></td>
165
<td ALIGN=CENTER VALIGN=TOP NOSAVE><img SRC="point.gif" height=14 width=15></td>
161
<td ALIGN=CENTER VALIGN=TOP NOSAVE><img SRC="point.gif" height=14 width=15></td>
166
<td>In the <b>main window,</b> choose File->Open File. The IDE will mount the
162
<td>In the <b>main window,</b> choose File->Open File. The IDE will mount the
167
filesystem.<br><br>When you compile and run Java applications within the IDE, the
163
filesystem.<br><br>When you compile and run Java applications within the IDE, the
Lines 177-184 Link Here
177
<tr NOSAVE>
173
<tr NOSAVE>
178
<td NOSAVE></td>
174
<td NOSAVE></td>
179
<td NOSAVE>&nbsp;</td>
175
<td NOSAVE>&nbsp;</td>
180
<td COLSPAN="2" BGCOLOR="#3366FF" NOSAVE><b><font face="LucidaSans Roman, Arial, Helvetica, Sans Serif"><font color="#FFFFFF">&nbsp;Creating
176
<td COLSPAN="2" BGCOLOR="#3366FF" NOSAVE><b><font color="#FFFFFF">&nbsp;Creating
181
a File or Object</font></font></b></td>
177
a File or Object</font></b></td>
182
<td></td>
178
<td></td>
183
</tr>
179
</tr>
184
180
Lines 190-201 Link Here
190
</tr>
186
</tr>
191
187
192
<tr NOSAVE>
188
<tr NOSAVE>
193
<td ALIGN=RIGHT VALIGN=TOP width='30'><object
189
<td ALIGN=RIGHT VALIGN=TOP width='30'><a
194
classid='org.netbeans.modules.welcome.NewFileButton'></object></td>
190
href="http://button:8080/foo#org.netbeans.modules.welcome.NewFileButton"><img border="0"
191
src="newFile.gif"></a></td>
195
<td></td>
192
<td></td>
196
<td COLSPAN="2" NOSAVE>To create a new file in the IDE, you must first
193
<td COLSPAN="2" NOSAVE>To create a new file in the IDE, you must first
197
<b>select
194
<b>select a template</b> for the type of file you want to create.<br></td>
198
a template</b> for the type of file you want to create.<br></td>
199
<td></td>
195
<td></td>
200
</tr>
196
</tr>
201
197
Lines 233-240 Link Here
233
<tr NOSAVE>
229
<tr NOSAVE>
234
<td NOSAVE></td>
230
<td NOSAVE></td>
235
<td></td>
231
<td></td>
236
<td COLSPAN="2" BGCOLOR="#000099" NOSAVE><b><font face="LucidaSans Roman, Arial, Helvetica, Sans Serif"><font
232
<td COLSPAN="2" BGCOLOR="#000099" NOSAVE><b><font
237
color="#FFFFFF">&nbsp;Using Projects</font></font></b></td>
233
color="#FFFFFF">&nbsp;Using Projects</font></b></td>
238
<td></td>
234
<td></td>
239
</tr>
235
</tr>
240
236
Lines 259-374 Link Here
259
</table>
255
</table>
260
</td>
256
</td>
261
257
262
<td ALIGN=LEFT VALIGN=TOP WIDTH="18"  background='vertical.gif' NOSAVE></td>
258
<td ALIGN=LEFT VALIGN=TOP WIDTH="18" height='440' background='vertical.gif' NOSAVE></td>
263
<td ALIGN=LEFT VALIGN=TOP WIDTH="180">
264
<!--start of table in 4th column (4.2)-->
265
<table BORDER=0 CELLSPACING=0 CELLPADDING=0 COLS=3 WIDTH="100%" NOSAVE >
266
259
267
<tr NOSAVE>
268
<td background='horizontal.gif' width='5%'></td>
269
<td COLSPAN="2" BGCOLOR="#000099" NOSAVE><b><font color="#FFFFFF">&nbsp;Customizing</font></b></td>
270
<td width='5%'></td>
271
</tr>
272
273
<tr NOSAVE>
274
<td>&nbsp;</td>
275
<td></td>
276
<td></td>
277
</tr>
278
279
<tr NOSAVE>
280
<td></td>
281
<td>
282
 <table BORDER=0 CELLSPACING=0 CELLPADDING=0 COLS=2 WIDTH="110" NOSAVE >
283
 <td ALIGN=LEFT VALIGN=CENTER width='26'><object
284
classid='org.netbeans.modules.welcome.SetupButton' ></object></td>
285
 <td ALIGN=LEFT VALIGN=CENTER>&nbsp;Setup Wizard...</td>
286
 </table>
287
</td>
288
<td></td>
289
</tr>
290
291
<tr NOSAVE>
292
<td>&nbsp;</td>
293
<td></td>
294
<td></td>
295
</tr>
296
297
<tr NOSAVE>
298
<td></td>
299
<td>
300
 <table BORDER=0 CELLSPACING=0 CELLPADDING=0 COLS=2 WIDTH="113" NOSAVE >
301
 <td COLSPAN="1" ALIGN=LEFT VALIGN=CENTER width='26'><object classid='org.netbeans.modules.welcome.UpdateButton' ></object></td>
302
 <td ALIGN=LEFT VALIGN=CENTER>&nbsp;Update Center...</td>
303
 </table>
304
</td>
305
<td></td>
306
</tr>
307
308
<tr NOSAVE>
309
<td>&nbsp;</td>
310
<td></td>
311
<td></td>
312
</tr>
313
314
<tr NOSAVE>
315
<td background='horizontal.gif' width='5%'></td>
316
<td COLSPAN="2" BGCOLOR="#000099" NOSAVE><b><font color="#FFFFFF">&nbsp;Help</font></b></td>
317
<td></td>
318
</tr>
319
320
<tr NOSAVE>
321
<td>&nbsp;</td>
322
<td></td>
323
<td></td>
324
</tr>
325
326
<tr NOSAVE>
327
<td></td>
328
<td>
329
<a href="foo#gs.key">Key Concepts</a><br><br>
330
331
<a href="foo#gs.ide">IDE Tour</a><br><br>
332
 
333
<a href="foo#gs.gstutor">Getting Started Tutorial</a>
334
</td>
335
<td></td>
336
</tr>
337
338
<tr NOSAVE>
339
<td>&nbsp;</td>
340
<td></td>
341
<td></td>
342
</tr>
343
344
<tr NOSAVE>
345
<td background='horizontal.gif' width='5%'></td>
346
<td COLSPAN="2" BGCOLOR="#000099" NOSAVE><b><font color="#FFFFFF">&nbsp;Tip</font></b></td>
347
<td></td>
348
</tr>
349
350
<tr NOSAVE>
351
<td height='2'></td>
352
<td></td>
353
<td></td>
354
</tr>
355
356
<tr NOSAVE>
357
<td></td>
358
<td COLSPAN="2" NOSAVE height='200'><object classid='org.netbeans.modules.welcome.TipPanel'></object></td>
359
<td>&nbsp;</td>
360
</tr>
361
362
<!--
363
<tr NOSAVE>
364
<td></td>
365
<td><object classid='org.netbeans.modules.welcome.NextButton'></object></td>
366
<td>&nbsp;</td>
367
</tr>
368
-->
369
</table>
370
<!--end of table in 4th column-->
371
</td>
372
260
373
</tr>
261
</tr>
374
</table>
262
</table>

Return to bug 24381