I am simply trying to change the actual size of my JLabel
and JTextField
. At the moment I have them on a JPanel
with a GridLayout
. I just want the label and the textfield right next to one another in each row.
Right now they're so spread out because my JLabel
is huge even though I want it very small. I have tried using setPreferredSize()
and setSize()
, but their sizes do not change. I just want them set to 30.
Can someone please provide some insight into my dilemma?