|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
Problem java
From an example on internet which uses jframe I want to create a file on netbens6 otherwise how to remove the lines which it generates by default.
![]() |
|
#2
|
|||
|
|||
|
Quote:
Can you reformulate your question please ? Thanks Do you speak about this code in the page generated in Netbeans 6 ? Code:
// Variables declaration - do not modify
private javax.swing.JPanel mainPanel;
private javax.swing.JMenuBar menuBar;
private javax.swing.JProgressBar progressBar;
private javax.swing.JLabel statusAnimationLabel;
private javax.swing.JLabel statusMessageLabel;
private javax.swing.JPanel statusPanel;
// End of variables declaration
|
|
#3
|
|||
|
|||
|
I usually just create a new "Java Class", rather than picking one of the templates (in your case, I assume you are picking "create a new JPanel"). A generic java class will start you out with just an empty class, which you can code however you like.
Those templates can be useful when you are starting out with something, and are not sure what all you need to have in your code. In your case, you don't really need a template, since you are copying an internet example. Just "create a new Java class", give it the proper name, then paste in the code from the internet example. |
![]() |
| Viewing: Dev Articles Community Forums > Programming > Java Development > Problem java |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|