increase height of a jlabel in positive y direction?
问题 When i setSize of a jLabel, normally it grows towards bottom. How can i increase the height in positive y direction ? After pressing init Current Result Expected result My source code private void initActionPerformed(java.awt.event.ActionEvent evt) { int p = Integer.parseInt(abc[0].getText()); int q = Integer.parseInt(abc[1].getText()); int r = Integer.parseInt(abc[2].getText()); int s = Integer.parseInt(abc[3].getText()); int t = Integer.parseInt(abc[4].getText()); one.setSize(20, p*10 );