how can i write SwingConstants.LEFT ? SwingConstants is an interface . it isnot a class . how do i access that filed that way ?it has been usued in the JlabelJlabel label = new Jlabel( "Text", SwingConstants.LEFT ) ;
well there is not problem if you access that field in that way.... anywaysif you don't want to access the field you can use JLabel.LEFT ..... all theswing components implements interface SwingConstants ....