JLabel won't show with JPanel.setLayout(null). Why?

This is the problem with absolute positioning (or null layout). It requires you to set the sizes of all your components, otherwise they will stay are their default zero-size and won't appear. That's why it's always better to use a layout manager .

You have to set the size of the label explicitly; try using setBounds instead of setLocation. For example, lab. SetBounds(100,100,200,30); Also there's no need to call setVisible(true); on the label.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions