I am a new in jbuilder 4, a simple question, please help me.

I want to combine the scroll bar with textarea. I mean that If the content in textarea is very large, I can scroll bar to see it.
I write the code like this:
JTextArea jTextArea1 = new JTextArea();
JScrollBar jScrollBar1 = new JScrollBar(jTextArea1); But the error message is :"Frame1.java": Error #: 300 : constructor JScrollBar(javax.swing.JTextArea) not found in class javax.swing.JScrollBar at line 21, column 32
The following is the full code:
public class Frame1 extends JFrame {
  JPanel contentPane;
  BorderLayout borderLayout1 = new BorderLayout();
  JTabbedPane jTabbedPane1 = new JTabbedPane();
  JPanel jPanel1 = new JPanel();
  JPanel jPanel2 = new JPanel();
  JPanel jPanel3 = new JPanel();
  BorderLayout borderLayout2 = new BorderLayout();
  JTextArea jTextArea1 = new JTextArea();
  JScrollBar jScrollBar1 = new JScrollBar();
  JPanel jPanel4 = new JPanel();
  JButton jButton1 = new JButton();
  BorderLayout borderLayout3 = new BorderLayout();
  JTextArea jTextArea2 = new JTextArea();
  JScrollBar jScrollBar2 = new JScrollBar();
  JPanel jPanel5 = new JPanel();
  JButton jButton2 = new JButton();
  /**Construct the frame*/
  public Frame1() {
    enableEvents(AWTEvent.WINDOW_EVENT_MASK);
    try {
      jbInit();
    catch(Exception e) {
      e.printStackTrace();
  /**Component initialization*/
  private void jbInit() throws Exception  {
    //setIconImage(Toolkit.getDefaultToolkit().createImage(Frame1.class.getResource("[Your Icon]")));
    contentPane = (JPanel) this.getContentPane();
    contentPane.setLayout(borderLayout1);
    this.setSize(new Dimension(513, 399));
    this.setTitle("File Integrity Check Tool");
    jPanel1.setLayout(borderLayout2);
    jButton1.setToolTipText("");
    jButton1.setText("Register Files");
    jButton1.addActionListener(new java.awt.event.ActionListener() {
      public void actionPerformed(ActionEvent e) {
        jButton1_actionPerformed(e);
    jPanel2.setLayout(borderLayout3);
    jButton2.setText("Check Files");
    jButton2.addActionListener(new java.awt.event.ActionListener() {
      public void actionPerformed(ActionEvent e) {
        jButton2_actionPerformed(e);
    jTextArea1.setEditable(false);
    jTextArea1.setMaximumSize(new Dimension(513, 399));
    jTextArea2.setEditable(false);
    contentPane.add(jTabbedPane1, BorderLayout.CENTER);
    jTabbedPane1.add(jPanel1, "Register Checkfile");
    jPanel1.add(jTextArea1, BorderLayout.CENTER);
    jPanel1.add(jScrollBar1, BorderLayout.EAST);
    jPanel1.add(jPanel4, BorderLayout.SOUTH);
    jPanel4.add(jButton1, null);
    jTabbedPane1.add(jPanel2, "Check Files");
    jPanel2.add(jTextArea2, BorderLayout.CENTER);
    jPanel2.add(jScrollBar2, BorderLayout.EAST);
    jPanel2.add(jPanel5, BorderLayout.SOUTH);
    jPanel5.add(jButton2, null);
    jTabbedPane1.add(jPanel3, "Help");
  /**Overridden so we can exit when window is closed*/
  protected void processWindowEvent(WindowEvent e) {
    super.processWindowEvent(e);
    if (e.getID() == WindowEvent.WINDOW_CLOSING) {
      System.exit(0);
  }

yes, I done like this:
package untitled1;
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
public class Frame1 extends JFrame {
  JPanel contentPane;
  BorderLayout borderLayout1 = new BorderLayout();
  JTabbedPane jTabbedPane1 = new JTabbedPane();
  JPanel jPanel1 = new JPanel();
  BorderLayout borderLayout2 = new BorderLayout();
  JTextArea jTextArea1 = new JTextArea();
  JScrollPane jScrollPane1 = new JScrollPane( jTextArea1);
  JPanel jPanel2 = new JPanel();
  JButton jButton1 = new JButton();
  /**Construct the frame*/
  public Frame1() {
    enableEvents(AWTEvent.WINDOW_EVENT_MASK);
    try {
      jbInit();
    catch(Exception e) {
      e.printStackTrace();
  /**Component initialization*/
  private void jbInit() throws Exception  {
    //setIconImage(Toolkit.getDefaultToolkit().createImage(Frame1.class.getResource("[Your Icon]")));
    contentPane = (JPanel) this.getContentPane();
    contentPane.setLayout(borderLayout1);
    this.setSize(new Dimension(400, 300));
    this.setTitle("Frame Title");
    jPanel1.setLayout(borderLayout2);
    jTextArea1.setText("jTextArea1");
    jButton1.setText("jButton1");
    contentPane.add(jTabbedPane1, BorderLayout.CENTER);
    jTabbedPane1.add(jPanel1, "jPanel1");
    jPanel1.add(jTextArea1, BorderLayout.CENTER);
    jPanel1.add(jPanel2, BorderLayout.SOUTH);
    jPanel2.add(jButton1, null);
    jPanel1.add(jScrollPane1, BorderLayout.EAST);
  /**Overridden so we can exit when window is closed*/
  protected void processWindowEvent(WindowEvent e) {
    super.processWindowEvent(e);
    if (e.getID() == WindowEvent.WINDOW_CLOSING) {
      System.exit(0);
}But it is still not show the scroll bar on the right of textarea.
what is the problem.

Similar Messages

  • New user - Bionic 16 GB activation questions - please help

    Sorry to be clueless, but this is my first smartphone and only my 3rd cell in 10 years.
    Studying the info online and with the booklet enclosed in the box,  I'm fairly certain that I'm supposed to insert the SIM card, then the battery, and lastly charge the phone.
    What is NOT addressed is : do I activate the phone first, or only after it is fully charged?? It's a new line on an existing plan.
    Never had a SIM card before, and always had it activated in store before, but got this one from verizon online store.
    Having been phoneless for 2 weeks (long dramatic story) I would really like to do this properly.
    Thanks for any help.
    Dawn

    Thank you, Ann154!
    So - put in the SIM, put in the battery, attach back cover, fully charge the phone, turn it on and it will begin to activate.
    Then, once the phone is powered up, I do everything else following the on-screen prompts on the new phone?
    Looking at the paperwork again , it also looks like the very first thing  I have to do is call to activate the SIM card?  One paper in the box shows as call 877-807-4646 from any phone and follow prompts..... or is it better to call customer service/ tech support?
    I feel like these are silly questions, but with the first phone I signed on with (Droid Charge),  I spent all day on the phone with 2 techs and an in-store person after trying to activate the card and  the phone at home. Phone kept saying the SIM card was unreadable, they swapped the SIM card out and finally decided it was the phone so I sent it back and they somehow managed to cancel everything and not send the replacement phone, so I called the guy back I signed up with in the beginning and started all over. This is why I'm nervous verging on paranoid!!

  • My iPhone 4S was replaced yesterday due to my handset being faulty. Before I gave the faulty one back I made sure all pictures were in photo stream! All 1006 were however when I got home and set up my new handset, there's only 146. Please help??

    I received my new iPhone 4S today due to the last one being faulty. I had 1006 pictures in my photo stream however on setting my new phone up I only have 146 :( please help?

    Had this problem before. sometimes it's the network. downloading all the photos take time.If you r so sure 1006 pics are in the photo stream, then no need to worry. It'll come. Give it time. Good things take time! <wink*>

  • HT1277 I cannot open the new email icon for 10.6.8 and the latest secrtoy update. My old "Stamp" icon email won't let me in either indicating that the new OS version doesn't work. Please help

    I cannot open the new email icon for 10.6.8 including the latest security update. My old "Stamp" icon email won't let me in either indicating that the new OS version doesn't work. Please help. I have spend over 4 hours installing and reinstalling updates, etc. and I don't know where to go from here.....

    Mac OS X v10.6: Mail.app won’t open, or "You can't use this version of Mail…" alert after installing Security Update 2012-004:
    http://support.apple.com/kb/TS4424?viewlocale=en_US&locale=en_US
    Fellow user Grant Bennet-Alder offers this solution:
    Some users have reported this problem if the Mail Application has been moved out of the top-level /Applications folder, or duplicated in another location.
    When the Security Update is done, the old version of Mail is disabled.
    The solution has been to:
    1) make certain Mail is in the /Applications folder
    2) There is no other copy anywhere else.
    3) Once steps 1 and 2 have been done, Manually download and re-apply the Security Update (2012-004) by hand.
    Security Update 2012-004 (Snow Leopard)
    If the Mail.app has been LOST, it can be re-installed by applying the 10.6.8 version 1.1 combo update. But this update is quite large and it is usually not necessary:
    Mac OS X 10.6.8 Update Combo v1.1

  • Hello, I have a big batterylife problem with my brand new iPod touch 4Gen 8GB white. Please help...

    Hello, I have a big batterylife problem with my brand new iPod touch 4Gen 8GB white. Please help?

    What battery life are you getting?  Is it short when you are using the iPod? When it is sleeping?

  • How to Open a New window from a List region Link, Please help

    I am trying to get a new full window( Not popup window) open from a list region link. The list region entry is an Image. I get the new page open, but it is not in new window, it is in the same window.
    I know I have to give the target = "_blank" somewhere. But In List region, I dont know where to add this.
    Please help
    George

    Yes, you are right Arun. That is more elegant way of
    doing it. Keep it up. thankx..
    Btw, why do you hate javascripts? Can you imagine the
    internet world without javascript (or ant scripting
    language)?yep i agree... but i try my best to avoid scripts.. as i had been workin around some japanese technologies... and there are three major mobile market players there... who has their own content type and all those devices never support javascript..
    more over i donno that... in all 3 yrs i have never used that ;-))

  • My updates are failing.  Adobe application manager may be damaged.  I have downloaded and installed a new copy and the problem persists.   Please help.

    I am trying to update Photoshop CS6 in order to read my camera's RAW files.  It is a camera that is supported by Adobe Photoshop CS6.  However, when I try to get the Adobe Application Manager to update the software, it fails to do so.  (The spinning wheel tells me it is checking for updates and then quits, saying that "Update Failed - Updates could not be applied.  Adobe Application Manager may be damaged.  Download and install a new copy of Adobe Application Manager.")
    I have tried to reinstall the Adobe Application Manager 8.0, which gives me the following error message "We've encountered the following issues.  Installer failed to initialize.  Please download Adobe Support Advisor to detect the problem."  However, when I go to the link provided to download the Adobe Support Advisor, this piece of software NO LONGER EXISTS. "
    The Adobe Support Advisor has been discontinued
    The Adobe Support Advisor tool was used to analyze installer log and system information associated with installation errors. The tool has been replaced with improved installation support mechanisms. Please visit Adobe Support section for Knowledge base articles around Installation."
    So, I have gone to the forums and took the recommended step to update my software manually - getting the update Photoshop_CS6_13_0_6upd-2.dmg.  However, this update also fails stating that my Adobe Application Manager may be damages.  Download and install a new copy of Adobe Application Manager.  Which puts me right back where I started.  
    I have also taken the step of completely reinstalling Photoshop CS6.  This did not solve the problems outlined above.  
    Please help!

    reset your preferences:
    dreamweaver:  http://helpx.adobe.com/dreamweaver/kb/restore-preferences-dreamweaver-cs4-cs5.html
    flash:  http://helpx.adobe.com/flash/kb/re-create-preferences-flash-professional.html
    indesign:  https://forums.adobe.com/thread/526990
    lightroom:  http://www.lightroomforums.net/showthread.php?14226-Resetting-%28or-Trashing-%29-the-Light room-Preferences-file
    photoshop:  https://forums.adobe.com/thread/375776
    if that fails, uninstall ps, clean (Use the CC Cleaner Tool to solve installation problems | CC, CS3-CS6) and reinstall.  then use the manual updates.

  • My iPod nano g7 isn't showing up on iTunes although i plug it in. it shows on the computer but not on iTunes. also it won't sync , accept new songs and doesn't  put on podcasts. it is new, i got it for christmas. PLEASE HELP

    my iPod nano g7 isn't showing up on iTunes although i plug it in. it shows on the computer but not on iTunes. also it won't sync , accept new songs and doesn't  put on podcasts. it is new, i got it for christmas. PLEASE HELP

    Hi avmary11,
    If your are having issues with your iPod not being recognized by iTunes (but it is being recognized by the computer), you may find the following article helpful:
    iPod: Appears in Windows but not in iTunes
    http://support.apple.com/kb/ts1363
    Regards,
    - Brenden

  • HT4623 I changed my itunes email but my iphone is still my old email, and it prompts me to enter password but it doesnt work. How can I get my new itunes email on my iphone4? Please help.

    I changed my itunes email the other day. I need to know how to change my email on my iphone 4 so I can install apps and stuff. How do I change my itunes email on my phone to the same as my computer. Please help bc it prompts me to enter my password but it is my old email and now it wont work. What do I do?

    Hi Friend,
    Go to: Settings>>iTunes Store and App Store, click in your old email and finalize the section. Here, sign in your new email with new password.

  • How do I change my apple id from an old one that does not exist anymore to the new one I use....Please help me I can't update any downloads for my apps.

    How do I change my apple ID from an old one that doesnot exist anymore to a new old? When I purchased my macbook I had a mac.com email address but now have a me.com one. My computer is linked to the mac one. I cant update my apps....some one please help.

    Well when I first purchased I had an mac address, which I have not used for a long time I started a me address about 18months ago. and up untill I updated my iPhone I have been able to use my mac.com now I cant and dont know what to do because it tells me to verify my apple ID. I put in the password etc and doesnot take me anywhere as I cant access the emails.

  • HOW TO - Create new from clipboard and process multiple files - please help

    Need help - have new version of photoshop on trial only ATM...
    Want to know - HOW TO:
    1. Create new from clipbaord
    2. Process multiple files
    Please help.

    For clipboard copy, I start with File > New and the size will be set to what's in the clipboard. Then once the new file is opened, Edit > Paste will place the clipboard contents as a layer in the new document.
    You must remember to use the command Layer > Flatten Image of you want to save as jpeg or any other file format that doesn't support layers.
    For processing multiple files,
    File > Automate > Batch or
    File > Scripts > Image Processor...
    Check the User guide or google information for those commands if you have specific needs.
    Gene

  • ON WINDOWS 8 LAPTOP: Firefox CANNOT play any video on Yahoo News, seriously, this is so freaking sad, Please help...., it just can't play. Please HELP.

    To many people, this might sound like a Joke when i say Firefox can't play any video on Yahoo News on any Windows 8 Laptop Touchcreen, but trust me, I have tried everything; re-downloading Java, Flash-player, Adobe...etc, I even called Microsoft Support and my Computer company but they all said this is Firefox drama they should be able to fix the issue. Please help. I have three Computers and all can't play any video on Yahoo News, (Youtube is playing great, no issues). Please help.

    Is this the problem where it shows the loading icon (circling, circling) but never starts playing? Other users have reported that as well.
    This is some standard guidance that addresses the most common issues with the Flash player plugin. I'm sure you've seen some of it before, but just in case:
    (1) Make sure all recorders/downloaders that interact with Flash media are as up-to-date as possible, or disable them.
    (2) Disable hardware graphics acceleration in Firefox and in Flash
    (A) In Firefox, un-check the box here and restart:
    orange Firefox button (or Tools menu) > Options > Advanced > General > "Use hardware acceleration when available"
    (B) In Flash, see this support article from Adobe: http://helpx.adobe.com/flash-player/kb/video-playback-issues.html#main_Solve_video_playback_issues
    (3) Disable protected mode (Windows Vista/7/8)
    See this support article from Adobe under the heading "Last Resort": [http://forums.adobe.com/message/4468493#TemporaryWorkaround Adobe Forums: How do I troubleshoot Flash Player's protected mode for Firefox?]
    Since you mentioned touch, does it matter whether you interact with the player using the mouse or your finger?

  • What to do when my iPhone is asking for password of old apple I.D. when I don't have it and have created a new applie i.d.  Can anyone please help me on this issue?

    Can anyone please help me on this issue "What to do when my iPhone is asking for password of old apple I.D. when I don't have it and have created a new applie i.d."??

    Sir, Thank you very much for your prompt response.  I have already done this.  But the problem is still persisting.  Actually, I want to upgrade my WhattsApp application and as soon as I click the upgrade button in App Store, it asks for the password of previous apple i.d., which I don't have as I have bought this phone from somebody.  There is no option for log out or log in.  It there any other way out to upgrade the WhatsApp ????

  • I just purchased a MacBook Pro Retina. Checked my OSX and it is version 10.8.1... trying to find a way to upgrade to a higher version. In the app store it doesnt show the update nor downloading the new Mountain Lion OXS doesnt work. Please help

    I just purchased a MacBook Pro Retina. Checked my OSX and it is version 10.8.1... trying to find a way to upgrade to a higher version. In the app store it doesnt show the update nor downloading the new Mountain Lion OXS doesnt work. Please help

    hienn,
    Not yet. There was an upgrade page to 10.8.2 for the late 2012 models but it's down now. I have to assume that Apple pulled it because of some bugs. I would look for something next week, more likely than not. In the meantime, the OP should be good with 10.8.1 until the update shows up again.
    Clinton

  • C7180 printer refusing NEW yellow ink, message freezing screen. Please help!

    Have Photosmart C7180 All-in-One. Have replaced yellow ink twice, (returning to store thinking the lot was bad), but the machine won't accept it.  At the same time I replaced two other colors with no problem. This is just in the yellow.  Message shown is - "The following ink cartridge appears to be missing or damaged." I know it is not missing and don't believe it is damaged because of the two changes. This message has frozen my screen and I can't copy, print, fax or anything. I am desperate to get this problem fixed as I need the machine for business.  I put the just about empty cartridge back in to print something quickly and it worked but that cartridge is empty now. I do have the correct replacement ink cartridge.  Please help! Thank you.

    Hi
    I'm having the same problem with my L7680 I've been looking through this form and it seems there are a lot of people with similar all in ones having the same problem cleanig, new ink twice resets etc don't seem to help.

Maybe you are looking for

  • Checkbox in tabular form - help needed

    I'm trying to build a tabular form, with a checkbox for a field that can have value 'Y' or 'N'. Adding the checkbox is no problem, with the htmldb_item.checkbox API. However, processing it is. On this forum I found a way to process the checkboxes, by

  • Can I move 2TB internal HD from old mac to new mac and still access files

    I just upgraded to a new Mac Pro, we have an old G5 Ma Pro thats getting retired. In the old G5 we have an internal 2TB WD drive with all of our customer art files. Can I simply pull the HD from the G5 and stick it in the new Intel machine and have a

  • Question about wide-screen monitor on Solaris x86

    I have Solaris x86, version 10/2009 installed. It works fine with any wide-screen monitor I plug in. But when I use this 3rd party CAD/CAM software, any round circle is being displayed as an oval shape. I believe that's because on the wide-screen mon

  • Can�t manage to select a row in a t:dataTable

    I use a tomahawk dataTable to list a collection of objects called �dmex� in dmexTable.jsp When I select one row to edit details in the next page �dmexDetails.jsp� I systematically get the last entries of my table. In debug mode I could find out that

  • Looking for a First gen user manual

    WHere can I find a first gen iPad user manual