0
I’m doing a program involving the Pitgora theorem, and I’d like to leave a triangle in the middle, with three Jtextfields around the three sides of it. I did that, but the problem is that when I create Jtextfield and add it to the desired Container, it gets huge. It’s a very large white rectangle that when I click to type, comes out a small letter. So my question is: How can I change the size of this Jtextfield to decrease it and avoid unnecessary sizes?
NOTE: I am using the Swing library and AWT same!!
– Isaac Reinaldo
What is the Layout of your Jtextfield content pane? Example: Borderlayout, Miglayout, Gridbaglayout...
– Math