Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is corresponding .net usercontrol in java?

For .net developers usercontrols are vital. I am trying to develop a java swing application. I want to create my custom "usercontrols", just like in .net. But there is no usercontrol :).

In some places i see something like "javabean" but it is not clear ? Can anyone guide me ? How can i create a usercontrol in java ?

like image 889
Yaya Avatar asked Dec 04 '25 07:12

Yaya


1 Answers

@Grook's link explains the basics of swing components. But for me , I need something more special and easy solution.

Basically a jpanel is similar to a usercontrol in .net.

Here is a good tutorial that explains using jpanels and their reusability which is so similar to .net usercontrols.

http://video.codegear.com/jbuilder/2008/SwingDesigner/VisualInheritance/Visual%20Inheritance.htm

  • the video is about jbuilder IDE but it is the similar on netbeans .
like image 62
Yaya Avatar answered Dec 05 '25 20:12

Yaya



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!