Link to home
Start Free TrialLog in
Avatar of prakash k
prakash k

asked on

deleting spaces between two jlabels when one of the jlabel is disabled

can anyone help me how to delete the spaces between two jlabels when one is disabled...i have two jlabels one after another vertically.when i disable the second jlabel,the spaces between the jlabel1 and jlabel2 must be deleted.can anyone help me how to do it?
thanks in advance!!
Avatar of CEHJ
CEHJ
Flag of United Kingdom of Great Britain and Northern Ireland image

a. why would you 'disable' a JLabel? What would that mean?
b. why would you expect the layout to change?
This question needs an answer!
Become an EE member today
7 DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform.
View membership options
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.