This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
I have small problem with AWT while arranging buttons.
I want to arrange one text field in one line , and next all lines will be followed by buttons like calculator.
I can able to show buttons as i like but text field is not showing appropriately.
here is my code :
Here is the whole class, if you want you can execute directly, and am attaching output of the program as well.
could you please let me know how can i achieve,
I really appriciate if anyone have any solutions.
On line 28 you add textpanel. A Frame uses a BorderLayout by default. You omit the constraints so that means you add textpanel to the center. On line 29 you then add panel - again to the center. This overwrites textpanel, effectively removing it from the frame.
Specify the constraints when adding textpanel (and preferably, panel as well):