• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

help with textarea insertion

 
neha gautam
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello all, i m new to swings........
kindly help me insertin a textarea in which i want
to display the String stored in data.. i have problem addin the panel to the frame..
shud i make a new frame object and then add panel to it(frame1) i want my String(here named as data) to be displayed in a GUI window
or can i do it with the frame instance i made it in main method..
kindly correct me if i m wrong any where

thanks to all

 
Maneesh Godbole
Saloon Keeper
Posts: 11064
13
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Whats the problem you are facing with your existing code?
 
Maneesh Godbole
Saloon Keeper
Posts: 11064
13
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When you post some code, please post real code
http://faq.javaranch.com/java/PostRealCode

Your current code is full of typos.
If people find they are spending time fixing your typos, they might be discouraged in helping you.
 
neha gautam
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i m really sorry maneesh if you got this type of perception
ill be more careful from now on, kindly pardon me

on clicking the radio button , i shud get the string displayed on the GUI window, but its
not happenin(nothin is happenin), i don know wat i m missin

 
Maneesh Godbole
Saloon Keeper
Posts: 11064
13
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I dont really understand why your UI is designed that way but your culprit is this line

or rather, you haven't set any size for this frame instance.
JFrames default to a size of 0,0.

Also this frame instance is being hidden behind your frame which displays the radio buttons.
You also have not set any default close operation. So even when you close the frame instance, the jvm is not terminated.

Heavily recommended reading
http://java.sun.com/docs/books/tutorial/uiswing/components/frame.html
 
Gregg Bolinger
GenRocket Founder
Ranch Hand
Posts: 15302
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello all, i m new to swings........


I know this doesn't help much but I have to tell you that Swing is a Proper Noun. Just a minor pet peeve.

Thanks.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic