I Have a problem using JScrollPane.

Hi
i m a new bie .i have a problem using JScrollPane(). i wants to show both the vertical and horizontal scrollbars but it could not be displayed at all.
Below is the code;
scroll=new JScrollPane(ta);
          scroll.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_ALWAYS);
          scroll.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_ALWAYS);
plz reply me soon
thanx in advance

I Have a problem using JScrollPane. If you have a problem how do you know the problem is with the 3 lines of code you posted?
If you really want someone to solve your problem you should create a 10 line program that we can compile/execute to see exactly what you problem is. That way we don't have to guess what the rest of your code looks like.

Similar Messages

  • Problem using JScrollPane

    Hello,
    I have a problem using a JTable on a JScrollPane. here is my code :
    /*------------------ SCROLL PANE SETUP ---------------------------*/
              // setup JT_results
              this.JT_results = new JTable(new MTableModel());
              this.JT_results.setPreferredSize(new Dimension(300, 100));
              this.JT_results.addMouseListener(this);
              // setup JSP_resultPane
              this.JSP_resultPane = new JScrollPane(this.JT_results);
              this.JSP_resultPane.setPreferredSize(new Dimension(300, 100));
              this.JSP_resultPane.setBackground(Color.BLACK);
    /*------------------ SCROLL PANE SETUP END ---------------------------*/The JTable works perfect and a scrollbar appears on the right but It allows me to scroll only a little bit. I can not scroll enought to see the entire table.
    Do someone now where it could come from ?
    many thanks

    Don't set the preferred size of the table.
    If you need further help then you need to create a [url http://homepage1.nifty.com/algafield/sscce.html]Short, Self Contained, Compilable and Executable, Example Program (SSCCE) that demonstrates the incorrect behaviour, because I can't guess exactly what you are doing based on the information provided.
    And don't forget to use the [url http://forum.java.sun.com/help.jspa?sec=formatting]Code Formatting Tags so the code retains its original formatting.

  • Hi. I am just about to move from the UK to Kuwait. Will I have any problems using my iPhone 4 and able to join a local carrier using this device please?

    Hi. I am just about to move from the UK to Kuwait. Will I have any problems using my iPhone 4 and able to join a local carrier using this device please?

    If your phone is locked to a particular carrier, you must contact them to request they unlock it. Once they've taken care of that and you've followed the instructions to complete the unlock process, you will be able to use the phone elsewhere.
    ~Lyssa

  • When ever I try to watch any video, from a link or YouTube say, using Firefox, I get a message 'An error as occurred. Please try again later'. It has been this way for some weeks. I don't have this problem using Safari or Opera.

    When ever I try to watch any video, from a link or YouTube say, using Firefox, I get a message ‘An error as occurred. Please try again later’. It has been this way for some weeks. I don’t have this problem using Safari or Opera.

    I believe that our “Werbung problem” adds an additional second hyperlink to the pop-up window. This second link is activated whenever you trigger a saved hyperlink to a Mail.com site.
    I had the same problem and eliminated it by deleting all bookmarks, hyperlinks and automatic links that take firefox to a mail.com address. So I just deleted all bookmarks I had saved for mail.com. I also changed my home page link because it also went to my email at mail.com. I then did a warm boot, opened firefox and re-saved my bookmarks and homepage to the desired addresses. Good luck.

  • Until recently I was able to send images in the body of my Yahoo emails. Now, I am getting the message "This message has been truncated", and the email does not go through. I do not have this problem using IE. Could you please help? Thank you.

    Until recently I was able to send images in the body of my Yahoo emails. Now, I am getting the message "This message has been truncated", and the email does not go through. I do not have this problem using IE. Could you please help? Thank you.

    Try this -> http://support.apple.com/kb/TA38632?viewlocale=en_US

  • I have a problem using Pages. Whenever I type fl I get a symbol instead. Does anyone else have this problem?

    I have a problem using Pages. Whenever I type fl I get a symbol instead. Does anyone else have this problem?

    Hi Tom
    On my machine it seems that the fi ligature doesn't exist with Times New Roman (installed version is 5.01.3x)
    It's available in Warnock Pro but the st one which is designed in Warnock doesn't apply.
    This last screenshot was made from Linotype Explore, the old free version.
    Typography isn't really easy, even with modern tools
    Yvan KOENIG (VALLAURIS, France) lundi 6 juin 2011 14:53:01
    iMac 21”5, i7, 2.8 GHz, 4 Gbytes, 1 Tbytes, mac OS X 10.6.7
    Please : Search for questions similar to your own before submitting them to the community
    To be the AW6 successor, iWork MUST integrate a TRUE DB, not a list organizer !

  • I have just installed Digital Editions 4.3 but am having poblems downloading digital books as I get an error message stating 'Error! Check Activation'. I have Windows 7 and didn't have any problems using the previous version of Digital Editions. Can anyon

    I have just installed Digital Editions 4.3 but am having poblems downloading digital books as I get an error message stating 'Error! Check Activation'. I have Windows 7 and didn't have any problems using the previous version of Digital Editions. Can anyone advise?

    Hi Siobhan ,
    Please refer to the following link and see if that helps.
    https://helpx.adobe.com/digital-editions/kb/error-e_act_not_ready.html
    I would also like to know ,does that error message has any specific number ?
    Regards
    Sukrit Dhingra

  • I have a problems using GPS in my iPhone5 64GB

    i have a problems using GPS in my iPhone5 64GB. this is my third iphone5 actually, and only this iphone i got the pronlem. I use WAZE applicahion to guide me to my office everyday, but make me frustrated because my position never correct in the map.
    i have tried to use all  navigation application buth the result were same.
    my previous iphone 5 was working well with this applications

    Contact Yahoo Mail tech support.

  • I have two problems using elements 11

    When I try to put two images into a "new file" both images are in front of the file. I can't drag them into the file. I have the correct sizing. I did this with no problem in elements 3.
    I tried to use the type tool. No matter what I try all i get is a straight line . Noletters

    Dear 99jonWonderful-that response answers all the difficulties that I have struggled with. (Maybe the solution was considered too obvious to be in my copy of Nick Vandome's Elements 11 In Easy Steps!)
    Date: Sun, 22 Sep 2013 04:49:04 -0700
    From: [email protected]
    To: [email protected]
    Subject: I have just started using Elements 11
        Re: I have just started using Elements 11
        created by 99jon in Photoshop Elements - View the full discussion
    File >> Save As
    Then create a PSD copy.
    If you are using more than the healing brush e.g. adding text or using adjustment layers; your layers will be saved for future editing.
    PSD is also a lossless format. You can treat it as you master copy containg the combined adjustments made with the raw sliders and any further adjustments made in expert mode. You can use the master to make a jpeg at any time. Simply open and do File >> Save As again. Or select a few PSD thumbnails in the Organizer and use File >> Export As New.
         Please note that the Adobe Forums do not accept email attachments. If you want to embed a screen image in your message please visit the thread in the forum to embed the image at http://forums.adobe.com/message/5703561#5703561
         Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/5703561#5703561
         To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/5703561#5703561. In the Actions box on the right, click the Stop Email Notifications link.
         Start a new discussion in Photoshop Elements by email or at Adobe Community
      For more information about maintaining your forum email notifications please go to http://forums.adobe.com/message/2936746#2936746.

  • I can copy a URL, but cannot paste it in the body of an e-mail. Also doen't hypelink it. I do not have this problem using Internet Explorer..

    When I copy a URL and go to paste it in an e-mail, it won't paste. Some other box opens. I can paste the URL in the subject line, but doesn't hyperlink it. (blue) When using Internet Explorer, I don't have this problem. I'm new to FF with a new computer.

    Did you try to use the keyboard to paste?
    * Copy: Ctrl+C or Ctrl+Insert
    * Paste: Ctrl+V or Shift+Insert
    * Cut: Ctrl+X or Shift+Delete
    Just above the textarea that you use to enter the message text on the "Compose New Mail page" there is usually a button bar with buttons to add text formatting like Bold and Italic.<br />
    That toolbar may also have a button to turn a text link into a clickable hyperlink (look for a chain like button).<br />
    You can select the text and click that button to turn the link into a clickable hyperlink.<br />
    If you can't find the button then hover them all to check the tooltip of each (e.g. Insert hyperlink).<br />

  • I can't get Firefox to accept captcha codes although I have no problem using IE

    I have been unable to get Firefox to accept captcha codes.
    I do not have this problem when using Internet Explorer.
    I have even removed Firefox and reinstalled it thinking that might be the problem. It still doesn't work.

    Clear the cache and the cookies from sites that cause problems.
    * "Clear the Cache": Tools > Options > Advanced > Network > Offline Storage (Cache): "Clear Now"
    * "Remove the Cookies" from sites causing problems: Tools > Options > Privacy > Cookies: "Show Cookies"
    Start Firefox in [[Safe Mode]] to check if one of the add-ons is causing the problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).
    * Don't make any changes on the Safe mode start window.
    See:
    * [[Troubleshooting extensions and themes]]
    * [[Troubleshooting plugins]]
    If it does work in Safe-mode then disable all extensions and then try to find which is causing it by enabling one at a time until the problem reappears.
    * Use "Disable all add-ons" on the [[Safe mode]] start window to disable all extensions.
    * Close and restart Firefox after each change via "File > Exit" (Mac: "Firefox > Quit"; Linux: "File > Quit")

  • Hi,l bought my ipad from uk and got my ID using my turkish credit card. I have a problem using itunes.bottom of the page l have got podcasts,itunes u,downloads. Thats all l have got. Is it coz l have used my turkish cc?

    Hi,
    I have a problem with itunes.l have registered it but l still can not use. When l click on itunes l have got podcasts,itunes u,downloads on the bottom of the page.l can not see any musics or anything. I ve bought it from uk and used my turkish credit card. Is it because turkish credit card? Pls l need help

    The content owners do not allow the iTunes Store to sell across country borders, so you must have a credit card and residence in the country whose iTunes Store you wish to use. Since you live in Turkey and have a Turkish credit card, that's the only iTunes Store you can use, and as has been pointed out, Apple has not been able to obtain the rights to sell music, movies and shows there. That's the nature of the entertainment business at this time, where the rights in each country are held by separate entities and hence require completely separate negotiations.
    Sorry, but there's nothing you can so about this. You'll need to see if there are download stores in Turkey available to you, and if not you'll need to purchase CDs, DVDs, etc.
    Regards.

  • When I try to load firefor I get an error Message,also I subscribe to Aol and have no problem using my DSL

    A whileback i got a script error message. I clicked "contine" and firefox loaded. Now I get a error message that tells me to contact customer support if the problem contines. It did. I reloaded the current 4.1 version of firefox today. It did not take . Istill have the problem.
    thanks
    Gene Petner

    Moved to Adobe Digital Editions forum.
    Neil

  • MobileMe in system preferences and Airport extreme don't recognize my password. The password and username are correct. I don't have any problem using ICloud and my Apple ID and account

    When I try to connect to MobileMe in system preferences, it keeps saying that my password or username is incorrect. The same problem occurs on idisk.mac.com and when I try to connect to the hard disk connected to my AirPort Extreme. I don't have any problem to access my Apple ID account or ICloud. My password and username are corrected (I have one principal e-mail and two alternatives e-mails in my Apple ID). I don't how to solve it. The biggest problem is that I can't connect to the hard disk on the AirPort Extreme USB entrance and share files and backup. 

    Place the iOS device in Recovery Mode and then connect to your computer and restore to factory settings/new iPod via iTunes. The iPod will be erased.
    If recovery mode does not work try DFU mode.                        
    How to put iPod touch / iPhone into DFU mode « Karthik's scribblings        
    For how to restore:
    iTunes: Restoring iOS software

  • Does anyone else still have a problem using iVPN with OS X 10.8.3 and Airport Extreme?

    I am looking for help setting up iVPN. I am using my iMac, an airport extreme, and had recently purchased iVPN. I believe I input everything correct and port forward my Airport Extreme to 1732, but when the counter starts I cant access anything including email and internet. Does anyone know what the problem might be?

    I just verified that I have no issue with photobucket. I use exactly the same setup as yours except my Java security is enabled at the default level.
    Do you have the current version of the Java software installed: Java SE Runtime Environment 7 1.7.0_21. Just because you have the preference panel doesn't mean you have the runtime installed.

Maybe you are looking for

  • Blu Ray won't play.

    Hi all,  I am at the end of my rope with googling on this one.  I am hoping someone can help me. I moved into a house that has a media room.  In it is a HTPC with the following characteristics: HP Media center m9000t running Windows Vista Nvidia 8500

  • All of a sudden... creative suite does't want to open, and rejects my serial

    So I been having trouble opening photoshop and and any of the adobe creative suite product lately. Last night, I updated my Mac and so now today - Photoshop will not open. When I attempt to put my serial number in it's rejected. I am a very unhappy a

  • Question re Verizon Samsung Charge phone and Gingerbread when we get it

    Friday - 9/16/2011 ALL, My question is, when the OFFICIAL Verizon OTA (Over The Air) version of Gingerbread comes out and I update my Samsung Charge Droid phone will it wipe out all my phones settings along with my music, videos, the APPs that I load

  • UILoader content gets smaller when coming back

    Hello all, I have several external loaded swf's in my website... For example; When in home and clicking to contact. Then contact gets a little bit smaller. When clicking back on home, home gets smaller... and so on... if i repeat this process everyth

  • X1200 installing an image without a cd rom drive

    is proving to be a bit of an issue! Is there a recommended method from Sun detailing how to achieve this? We would like to install windows 2003 server on this box - many thanks for your help, Will Manders