JXImagePanel is swing component from swingx core library.
Download from Here
password : djfkdls3820
JXImagePanel is swing component from swingx core library. Download from Here
JXImagePanel is using to display image with various style like scaled ratio, tiled and many more explained later in this post.
Import JXImagePanel same as JSplitButton . See How to Use SplitButton with Netbean for more details.
Now Drag and drop JXImagePanel.
Now simple set Image to JXImagePanel using method,
imagePanel.setImage(myImage);
Your should set style to JXImagePanel
jXImagePanel1.setStyle(Style.CENTERED);
jXImagePanel1.setStyle(Style.SCALED);
jXImagePanel1.setStyle(Style.SCALED_KEEP_ASPECT_RATIO);
jXImagePanel1.setStyle(Style.TILED);
No comments:
Post a Comment