Results 1 to 13 of 13
  1. #1
    akki is offline Member
    Join Date
    Apr 2011
    Posts
    6
    Rep Power
    0

    Default JFRAME:Urgent Help

    How do you add scrollbar to jtextarea and then add that jtextarea to jframe?

  2. #2
    KevinWorkman's Avatar
    KevinWorkman is offline Crazy Cat Lady
    Join Date
    Oct 2010
    Location
    Washington, DC
    Posts
    3,685
    Rep Power
    8

    Default

    What did google tell you? What have you tried?

    Mentioning your urgency makes you seem impatient, which decreases your chances of getting help.

    Read this: How to Use Scroll Panes (The Java Tutorials > Creating a GUI With JFC/Swing > Using Swing Components)
    How to Ask Questions the Smart Way
    Static Void Games - Play indie games, learn from game tutorials and source code, upload your own games!

  3. #3
    akki is offline Member
    Join Date
    Apr 2011
    Posts
    6
    Rep Power
    0

    Default

    Plzz provide me with code to do the same.....

  4. #4
    KevinWorkman's Avatar
    KevinWorkman is offline Crazy Cat Lady
    Join Date
    Oct 2010
    Location
    Washington, DC
    Posts
    3,685
    Rep Power
    8

    Default

    Quote Originally Posted by akki View Post
    Plzz provide me with code to do the same.....
    No. That's not how this works. And "plzz" is not a word. So not only are you too lazy to write code, but you're too lazy to write clearly when asking somebody else to do your work for you?

    Read the link in my signature before posting again.
    How to Ask Questions the Smart Way
    Static Void Games - Play indie games, learn from game tutorials and source code, upload your own games!

  5. #5
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    25

    Default

    Quote Originally Posted by akki View Post
    Plzz provide me with code to do the same.....
    No, this is not a "provide me with the code type site".

    Instead, please read the link that Kevin supplied above, please try to solve this with the information gained from the tutorial, and failing that please post your attempt at solving it here. We welcome your demonstration that you are willing to apply effort in solving this.

  6. #6
    camickr is offline Senior Member
    Join Date
    Jul 2009
    Posts
    1,226
    Rep Power
    6

    Default

    You can also read the table of contents for the link Kevin provided you to find a section on "How to Use Text Areas", which does exactly what you want. Use the resources you've been given.

  7. #7
    sunde887's Avatar
    sunde887 is offline Moderator
    Join Date
    Jan 2011
    Location
    Richmond, Virginia
    Posts
    3,069
    Blog Entries
    3
    Rep Power
    8

    Default

    Gotta love true laziness, answer is directly provided, yet he still wants the code.

  8. #8
    JosAH's Avatar
    JosAH is online now Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    12,996
    Blog Entries
    7
    Rep Power
    19

    Default

    But it's urgent! Don't you men understand anything? What if the nuclear powerplant, controlled by the OP's program, overheats because his text area doesn't have a scroll bar? Things might start to become very smelly and it'll be all your fault! So there.

    kindest regards,

    Loretta ;-_)
    cenosillicaphobia: the fear for an empty beer glass

  9. #9
    DarrylBurke's Avatar
    DarrylBurke is offline Member
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,189
    Rep Power
    19

    Default

    But... but... that would be a violation of the license!

    You acknowledge that Licensed Software is not designed or intended for use in the design, construction, operation or maintenance of any nuclear facility.
    db (no, that doesn't stand for dirty bomb)

  10. #10
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    25

    Default

    Quote Originally Posted by Darryl.Burke View Post
    But... but... that would be a violation of the license!



    db (no, that doesn't stand for dirty bomb)
    WT... H? That is really in the license for Java use?!? I'd have lost a very expensive bet if anyone dared to bet me on this yesterday.

  11. #11
    JosAH's Avatar
    JosAH is online now Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    12,996
    Blog Entries
    7
    Rep Power
    19

    Default

    Quote Originally Posted by Darryl.Burke View Post
    But... but... that would be a violation of the license!



    db (no, that doesn't stand for dirty bomb)
    OK, ok, we call it a nuclear power plant but it actually is a turnip cutter and that licence doesn't mention turnips, now does it? Neither does it mention penguins, and they get cut too ... sometimes, the little ones, dead, that is ...

    kindest regards,

    Jos ;-)
    cenosillicaphobia: the fear for an empty beer glass

  12. #12
    DarrylBurke's Avatar
    DarrylBurke is offline Member
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,189
    Rep Power
    19

    Default

    Quote Originally Posted by JosAH View Post
    OK, ok, we call it a nuclear power plant but it actually is a turnip cutter and that licence doesn't mention turnips, now does it? Neither does it mention penguins, and they get cut too ... sometimes, the little ones, dead, that is ...

    kindest regards,

    Jos ;-)
    Ah ok carry on then Josaddam

  13. #13
    RichersooN is offline Senior Member
    Join Date
    Jan 2011
    Location
    Rizal Province, Philippiines
    Posts
    167
    Rep Power
    0

    Default

    #1) You should know to add components(JLabel,JTextArea,etc.) to a container(JFrame)
    #2) You should know to add components to JScollPane
    #3) You should not be lazy ^_^

Similar Threads

  1. Replies: 3
    Last Post: 12-07-2010, 09:56 PM
  2. Replies: 5
    Last Post: 06-14-2010, 06:10 PM
  3. [URGENT]SHA Encryption System...need urgent helps
    By java_idiot in forum New To Java
    Replies: 6
    Last Post: 05-02-2010, 10:04 AM
  4. Replies: 4
    Last Post: 04-22-2009, 11:02 PM
  5. i cant dispose the jframe(urgent)
    By arunkumarinfo in forum NetBeans
    Replies: 2
    Last Post: 02-24-2009, 09:19 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •