Skip to content

sorifiend/customBorder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

customBorder

An example java class for a question on StackOverflow: https://stackoverflow.com/questions/45667001/attaching-images-to-jlabels-border

To use this code copy it into your project as a new class, then add the following to your form class:

   //Create border
   MyCustomBorder border = new MyCustomBorder(Color.BLACK, 10, new Point(0, 0), img1, new Point(0, 0), img2);

   //Add border to component
   my_jLabel.setBorder( border );

   //Add action listeners for dragging sliders
   border.addListeners(my_jLabel);

Full usage for MyCustomBorder:

   MyCustomBorder border = new MyCustomBorder(Color colour, int borderThickness, Point firstSlider, BufferedImage firstSliderImage, Point secondSlider, BufferedImage secondSliderImage);

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages