Meaningless Drivel is fun!*
The moose likes Swing / AWT / SWT and the fly likes help with textarea insertion Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "help with textarea insertion" Watch "help with textarea insertion" New topic
Author

help with textarea insertion

neha gautam
Ranch Hand

Joined: Mar 31, 2009
Posts: 32
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

Joined: Jul 26, 2007
Posts: 10268
    
    8

Whats the problem you are facing with your existing code?


[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10268
    
    8

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

Joined: Mar 31, 2009
Posts: 32
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

Joined: Jul 26, 2007
Posts: 10268
    
    8

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

Joined: Jul 11, 2001
Posts: 15299
    
    6

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.


GenRocket - Experts at Building Test Data
 
Consider Paul's rocket mass heater.
 
subject: help with textarea insertion