Java Forum

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds

disabling the border of a swing window

  Asked By: Clifford    Date: Oct 28    Category: Java    Views: 1617

I created a swing window,but when the mouse is exited from the
window then the border should vanish,but i dont know how to achieve
this.Can any one help me in this issue.



2 Answers Found

Answer #1    Answered By: Chad Bradley     Answered On: Oct 28

for jcomponent its like this ... even u set the border  to emptyborder the border
will always appear. if u do componet.setBorder(null) then the border won't be

This might be applicable for frames. i have'nt tried , if u try let me know.

Answer #2    Answered By: Laurel Collins     Answered On: Oct 28

I think whether a top Frame's border  can be disabled is determined by
the native OS. As the Java GUI libs are designed for use in all the OS,
this feature hasn't been implemented, AFAIK.

Didn't find what you were looking for? Find more on disabling the border of a swing window Or get search suggestion and latest updates.