Logo 
Search:

Java Forum

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds

swingconstants problem

  Asked By: Bonni    Date: Mar 28    Category: Java    Views: 487
  

how can i write SwingConstants.LEFT ? SwingConstants is an interface . it is
not a class . how do i access that filed that way ?

it has been usued in the Jlabel
Jlabel label = new Jlabel( "Text", SwingConstants.LEFT ) ;

Share: 

 

1 Answer Found

 
Answer #1    Answered By: Barak Levi     Answered On: Mar 28

well there is not problem  if you access  that field in that way.... anyways
if you don't want to access the field you can use JLabel.LEFT ..... all the
swing components implements interface  SwingConstants ....

 
Didn't find what you were looking for? Find more on swingconstants problem Or get search suggestion and latest updates.




Tagged: