Can you make a small program that compiles, executes and tries to do what you want done?
SOmething that we can use for testing.
NormR1
Posting Sage
7,742 posts since Jun 2010
Reputation Points: 1,158
Solved Threads: 793
Skill Endorsements: 16
You're close. All you need to do is to add the new field to the existing visible JFrame - not a button, not a new frame, just the existing one.
Depending on what layout manager you are using you may also need to call pack() afterwards to let the layout manager make space for the new field.
JamesCherrill
... trying to help
8,500 posts since Apr 2008
Reputation Points: 2,583
Solved Threads: 1,454
Skill Endorsements: 29
why are you creating a new JFrame? there 's no need whatso ever to do so.
just instantiate a new JTextField and add that to the current JFrame.
stultuske
Industrious Poster
4,369 posts since Jan 2007
Reputation Points: 1,318
Solved Threads: 610
Skill Endorsements: 23
ok so can you edit the above text for me?
No, absolutely not. This is not a "we do your homework for you" service.
We will help you to learn Java, and help you to write your own programs, but you have to put in the effort.
Try to write this yourself. Get as far as you can, then come back here for help on whatever it is that's stopping you.
JamesCherrill
... trying to help
8,500 posts since Apr 2008
Reputation Points: 2,583
Solved Threads: 1,454
Skill Endorsements: 29