Place JLabel on top of JLabel with image in

前端 未结 3 1779
慢半拍i
慢半拍i 2020-12-03 23:38

I am pretty sure that this question has been asked before, but my case is slightly different as in i am trying to place a JLabel on top of a JLabel acting as a background, I

3条回答
  •  無奈伤痛
    2020-12-04 00:07

    you can do that by this:

    JLabel l1=new JLabel();
    JLabel l2=new JLabel();
    l1.add(l2, JLabel.NORTH);
    

提交回复
热议问题