• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

help with textarea insertion

 
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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

 
Bartender
Posts: 11497
19
Android Google Web Toolkit Mac Eclipse IDE Ubuntu Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Whats the problem you are facing with your existing code?
 
Maneesh Godbole
Bartender
Posts: 11497
19
Android Google Web Toolkit Mac Eclipse IDE Ubuntu Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Bartender
Posts: 11497
19
Android Google Web Toolkit Mac Eclipse IDE Ubuntu Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 15304
6
Mac OS X IntelliJ IDE Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
My honeysuckle is blooming this year! Now to fertilize this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic