• Post Reply Bookmark Topic Watch Topic
  • New Topic

Netbeans Design View

 
james kinyua
Greenhorn
Posts: 28
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hae, am using netbeans to create GUI but i can`t go to design view in netbeans 8.0.2.
i have even tried netbeans 7.4 and it is the same.
 
Ganish Patil
Ranch Hand
Posts: 529
19
Chrome Eclipse IDE Hibernate Java jQuery MySQL Database Netbeans IDE Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have you created JFrame in your project ?
 
james kinyua
Greenhorn
Posts: 28
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
yes. i have extended JFrame in my class
 
Piet Souris
Rancher
Posts: 1631
36
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi James,

it's not enough to simply add a new class to your project, whether
you extend it to a JFrame, JPanel or not.
You have to specifically add "JFrame Form' or 'JPanel Form'. You can do this
when you right click your project or package in the project panel,
and choose for 'new'. There you see these options.

Greetz,
Piet
 
james kinyua
Greenhorn
Posts: 28
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Piet.

The Design layout is now there but i have one more problem, i wanted to drag and drop Jlabels and JTextFields but i cannot see them.
 
Ganish Patil
Ranch Hand
Posts: 529
19
Chrome Eclipse IDE Hibernate Java jQuery MySQL Database Netbeans IDE Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Double click on a class file which extended JFrame or JPanel from NeatBeans, not hard coded by hand as Piet said, then right click on screen you will get a pop up menu.
In that Add From Palatte-->Swing Controls-->Label or whichever control you want. At the right side of the screen, below the close button of NetBeans, on 3rd row there is two tiny square brackets overlapping each other click on that you will see this Palatte window.
see these images you will get that though won't understand just search tutorials o youtube.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!