我是二年级学生,我正在研究我的OOP项目(计算器).我已经完成了数字按钮和运算符的功能.现在我正处于重新安排按钮的阶段.首先,我只是将按钮大小设置为(50,50),它工作正常,其标签仍然可见,但当我决定将其缩小(30,30)时,其标签变为"..."而不是.
这是照片:

继承我的代码:
lblEdit.setBounds(-138,-5,180,50);
lblView.setBounds(-90,-5,180,50);
lblHelp.setBounds(-40,-5,180,50);
txt.setBounds(15,35,250,30); // text pane
txt2.setBounds(0,330,100,20);
blank.setBounds(15,80,30,30); // this is just an extra button, no use at all, OK? :D
btnMC.setBounds(15,115,30,30);
btnMR.setBounds(15,150,30,30);
btnMS.setBounds(15,185,30,30);
btnMp.setBounds(15,220,30,30);
Run Code Online (Sandbox Code Playgroud) java user-interface swing layout-manager null-layout-manager