sle swing program in java how to use the display mode method in when java