Syntax error in my code and I can't figure out the problem

When I try to compile a program, I get this message:
Syntax error on token "(", "Identifier" expected
This is the part of the code that is giving me trouble:
JTextPane textPane = createTextPane();
          JScrollPane paneScrollPane = new JScrollPane(textPane);
          paneScrollPane.setVerticalScrollBarPolicy(
                              JScrollPane.VERTICAL_SCROLLBAR_ALWAYS);
          paneScrollPane.setPreferredSize(new Dimension(250, 155));
          paneScrollPane.setMinimumSize(new Dimension(10, 10));Can you see what's wrong?
Thanks

The code's syntax is perfectly fine. The compiler is not falgging an error message in this part of your code. One silly thing you can do:
Try out this silly change...I don't think it will make any difference but still.
paneScrollPane.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_ALWAYS);That is, put it all in a single line.
If it is already in a single line then you can be sure that the problem is being flagged from elsewhere in your code and this portion.
Vijay :-)

Similar Messages

  • Thimble won't show any details on my "broken" code - I can't figure out the problem.

    I am trying to add a line for the background image. I followed the thimble example and have tried numerous links, all resulting in a red exclamation mark. I'm not sure what the problem is and nothing happens when I click the exclamation mark.
    I also can't save any of my progress because of the error.

    Thanks for trying to help guys!
    I'm totally new at this so as far as I'm aware, I can't actually get a link because it won't save my progress because of the error? So unless its something else causing the error that won't let me save?

  • How do I delete my iCloud off my phone when my email was hacked and I can't figure out the password?

    My email was hacked recently and I have been trying to reset it for awhile. Theres no way to delete the account or reset my phone without the password. I also dont remeber what year I put in for my birthday.

    Call Apple and ask for Account Security.

  • I recieved an Adobe Master Collection License number from my school (Stevens Institute of Technology) and I can't figure out how to use it in order to get the product. I've created a username and that's as far as I've gotten.

    I recieved an Adobe Master Collection License number from my school (Stevens Institute of Technology) and I can't figure out how to use it in order to get the product. I've created a username and that's as far as I've gotten. I need to download the product and I can't figure out where to begin.

    Ask someone at your school... Do you have a Cloud redemption code, or a CS6 serial number?
    If Cloud, Redemption Code http://helpx.adobe.com/x-productkb/global/redemption-code-help.html and
    http://www.adobe.com/products/creativecloud/faq.html
    http://helpx.adobe.com/creative-cloud/help/install-apps.html to install or uninstall
    http://forums.adobe.com/community/download_install_setup/creative_cloud_faq
    What it is http://helpx.adobe.com/creative-cloud/help/creative-cloud-desktop.html
    Cloud Getting Started https://helpx.adobe.com/creative-cloud.html
    If CS6, download at Other downloads and enter your serial number when prompted
    Again... your 1st resource is your school

  • . I am new to IPods. I have a Classic 160GB and I can't figure out how to load my music videos to it. I have had no problem loading my music CD's but no go with the music videos I have. Please HELP. Thanks maxsdad

    Hello:
    I am new to IPods. I have a Classic 160GB and I can't figure out how to load Music Videos to iTunes or the IPod. I have had no problem loading my CD's to iTunes and to the IPod, but no go on the Music Videos.
    Please Help
    maxsdad

    B-Rock:
    Ok. Here's the results. I tried all the music videos I wanted to put onto the IPod and the results were:
    I was able to get good results with 2 full length music videos and 2 video singles(only 2 videos on each disk). For a total of 4 videos.
    I was able to encode 5 full length music videos, but the results were distorted (video and audio).
    I was unable to copy 2 full length videos due to error failures. 1 was a "No Title Found" error, the other was a "NAVDAT" error.
    I guess my next question is: Do you know of any other program(s) that I might try, to see if I can get good results with the videos that didn't work with Handbrake?
    Thanks again for all your help.
    maxsdad

  • I have a Verizon IPhone 4 and i can't figure out how to get my ringtones from an app to my iTunes account, it doesn't have a tab for Ringtones! I have tried unplugging it and checking if would show up but it didn't, how do you enable the ringtone folder?

    I have a verizon IPhone and i can't figure out how to get my ringtones from the app to iTunes, my account doesn't have a ringtone section in the liRingtone Folder?brary, how do you enable the ringtone folder?

    Edit > Preferences.  Select the check box for Ringtones, this will add them to the listing in iTunes. 
    Not sure that really answers your question though.

  • I can't seem to sync my contact on my ipad.  the contact list is a book type and I can't figure out how to use it

    I can't seem to sync my contact on my ipad.  the contact list is a book type and I can't figure out how to use it

    Look at Chapter 13 of the iPad iOS4.3 User Guide

  • My lifetime calls is glitched at 4,924,000,000 and I can not figure out how to reset this PLEASE HELP URGENTLY I don't know how to resolve this

    My IPhones total life time calls is at 4,924,000,00 and I can't figure out if this is a glitch because I know that I have DEFIANTLY not called for that long I don't know if this will be resolved but someone PLEASE HELP

    Glad it helped!
    For what it's worth, I suspect you'd have to restore the phone as new to resolve the issue. If it were mine, I'd probably elect to live with the weirdness rather than go through the fuss of a restore.
    Best of luck.

  • My podcast isn't updating and I can't figure out why, please help?

    Hi everyone,
    I'm at my wits end and I can't figure out what's wrong with my podcast in regards to iTunes.
    We have a website we update that originally iTunes was pointed at (http://www.whydaddydrinks.net/?feed=rss2) and then iTunes started having issues with not updating. Recently we tried changing the feed of the podcast to the RSS feed for our podcast hosting account at Podbean (http://whydaddydrinks.podbean.com/feed/) and it's running into the same issue.
    I've checked FeedValidator for both feeds and they're fine (http://feedvalidator.org/check.cgi?url=http%3A%2F%2Fwww.whydaddydrinks.net%2F%3F feed%3Drss2 and http://feedvalidator.org/check.cgi?url=http%3A%2F%2Fwhydaddydrinks.podbean.com%2 Ffeed%2F). I've clicked the links to the .mp3 files and they play off the web, so, in theory, there shouldn't be any issue as far as I know; Episode 13 shows up in iTunes but dosn't appear to be connected to the file and Season 2 Episode 1 doesn't show up at all.
    Can any of you offer any suggestions as to what the heck is going on?

    Your Store page is at https://itunes.apple.com/gb/podcast/your-book-is-why-daddy-drinks/id515363310?mt =2
    This is using the feed at http://www.whydaddydrinks.net/?feed=rss2 so the other feed URL you posted is irrelevant.
    This feed has episodes up to 13 which contain playable media, and these all show in the Store and when subscribing. However the URL for the media file for episode 13 is
    http://media40.podbean.com/pb/89ea6f327345e33833ff09885e48b8a1/50e904db/data2/bl ogs48/462271/uploads/YBIWDD_Episode13.mp3
    and there is no file at this address. The previous episode downloads OK.
    This feed contains two later episodes but neither has an 'enclosure' tag containing the URL of a media file and so the episodes don't show in iTunes. You are using WordPress to make your feed, and this problem arises a lot - it presumably means that you have failed to do something you need to do in WordPress to get the media file into the feed, but I can't advise on specifics of WordPress.
    The other feed has one of these two episodes, and there the latest episode does have an 'enclosure' tag and the episode appears when subscribing manually; however as I say this feed is not in use by the Store.
    So you need to do with the original feed whatever it was you did with the new feed to get the episode into the Store, and you need to chase the missing media file for episode 13.
    If you want to move the Store to using the Podbean feed you need to follow the procedure outlined here:
    http://www.wilmut.webspace.virginmedia.com/notes/podcast.html#move
    Note that the title in the Podbean feed is 'whydaddydrinks' which many not be what you want.

  • I'm staying at my house in Peru, South America. From my PC laptop I can see my neighbor's wifi service network, but I also have my mini iPad and I can not figure out why I can't get any wifi connection from my area. Is there a setting I need to do?

    I'm staying at my house in Peru, South America. From my PC laptop I can see my neighbor's wifi service network, but I also have my mini iPad and I can not figure out why I can't get any wifi connection from my area. Is there a setting I need to do?

    Yes, I did try to go on my settings>wifi and was waiting for any wifi signals to pick up, but nothing shows up. But on my PC I get a whole list of networks to choose from. Regarding my neighbor, I already have her password that is why I was able to get it on my PC, the problem is that the mini Ipad is not picking any signal neither can it locate me when I go to maps.

  • I just upgraded to mountain lion and I can't figure out how to use messages...  it wants me to use AIM or something like it, but I can't change the user...

    I just upgraded to mountain lion and I can't figure out how to use messages...  it wants me to use AIM or something like it, but I can't change the user... How do I do this??

    See this Thread

  • HT1711 I recently deleted iTunes off my computer by accident, when I reinstalled it I got the new version and I can't figure out how to get my music to store on my iTunes to transfer from my iPhone to iTunes.

    I recently deleted iTunes off my computer by accident, when I reinstalled it I got the new version and I can't figure out how to get my music to store on my iTunes to transfer from my iPhone to my iTunes.  I goal is to get my iPod filled with the music that I have stored on my iPhone and figured the only way to do so is to use iTunes as my transfer hub.  Any suggestions?

    Wow you're kind of a iTunes bully.  Dude the reason I am asking for advice and help is I am completely computer ********.  If I knew the answer I wouldn't be asking.  Anyways.  Question to anyone else. 
    If I have no music on my iTunes at all and no music on my computer, hard drive or any other version of storage yet there is a playlist on my iPhone. While my iPhone is plugged into my PC and my iTunes is up, is there a way to swap my playlist from my iPhone to my iTunes?  Directly?  Without downloading some new media source or backing up my old media source from my history.  The reason everything was deleted (iTunes and media source) was due to the size of everything and space it was requiring.  I am simply trying to get 233 songs from A to B. 
    I have tried magic but it is not working.   
    <Edited By Host>

  • My Macbook Pro 2014 ran out of battery while mid-slideshow. Now the slideshow won't skip through photos and I can't figure out why? Macbook Pro 2014 13-inch Intel i5 8GB RAM 128GB flash, iPhoto library is on external HDD

    Macbook Pro 2014
    13-inch
    Intel i5
    8GB RAM
    128GB flash SSD,
    Integrated Graphics
    iPhoto library is on external HDD
    I was in a slideshow, with around 1,911 photos in it. About halfway through, my Macbook ran out of battery. Now when I restarted and charged the Macbook and reopened iPhoto, the slideshow won't advance through photos, and I can't figure out any reason why it would do this.
    I thought it may be corrupted, so I deleted and reinstalled iPhoto library, iPhoto itself, and disconnected and reconnected my external HDD.
    This didn't work, the photos still won't advance.
    I don't know any reason why this would be happening, and there is ample space on my internal drive.
    I'm happy to provide more information if needed!
    Many Thanks,
    James

    Make a few tests, James, to narrow down the problem and find out, if the slideshow is corrupted, your iPhoto Library, or settings in your account.
    To test, if only your slideshow has a problem, create a new slideshow, just for testing. Just use "File > New Slideshow" and add a few photos. Does this slideshow play correctly?
    If the test slideshow does not play either, create a new iPhoto Library. Use the File menu in iPhoto: File > Switch to library > Create New. Import a few photos and create a slideshow.  Does it play?
    If even a new library does not solve the problem, test in a different user account (see this document:  Isolating an issue by using another user account - Apple Support):   
    This process involves creating a new user account, logging in to it, and testing for the issue.
    Create a new standard or admin user account in Users & Groups preferences.
    Use these instructions for OS X Mavericks.
    See these instructions for OS X Mountain Lion.
    See this video, or these instructions for OS X Lion.
    Optional: If you have any specific files you wish to test with, copy (don't move) those items to the /Users/Shared folder in the Finder.
    Log out of your current user account by choosing Log Out from the Apple () menu.
    Log in with the new account you created.
    Attempt to reproduce the issue you were seeing in your regular user account.
    After you have completed testing, log out of the test account by choosing Log Out from the Apple () menu.
    Log in as your regular account.
    After you have completed all testing with the test user account, you may want to delete it. You can delete an account in the Users & Groups pane of System Preferences.
    Note: Prior to deleting a test account, make sure you are completely done with it. If you have files in the Guest User you wish to keep, you should copy them to the /Users/Shared folder .
    If you should find, that slideshows only play in a new user account, post back.

  • How do I re-download podcasts? My external hard drive failed and I can't figure out how to download them again in the updated iTunes.

    How do I re-download podcasts? My external hard drive failed and I can't figure out how to download them again in the updated iTunes.

    The Time Capsule drive is a network drive. You have to mount it on the desktop before you will be able to drag/drop files onto the disk. More tips are in this thread:
    https://discussions.apple.com/message/17312017#17312017
    .....and then delete them from the Mac to free up space?
    The Time Capsule was designed for your backups.
    If you move a file to the Time Capsule drive and delete the file from your Mac.....you have no backup. 
    Your only copy of the file will be on the Time Capsule drive. I would only do this with files that I could afford to lose.
    All drives fail. When.....not if....the Time Capsule drive has a problem, you will lose your data.

  • Hi, my macbook screen goes black at random points when I am using it. I know it is still running as music continues to play and I can vaguely make out the content of what is on the screen. Sometimes the screen will flicker between black and normal. Can I

    Hi,
    my macbook screen goes black at random points when I am using it. I know it is still running as music continues to play and I can vaguely make out the content of what is on the screen. Sometimes the screen will flicker between black and normal. Can I fix this?

    Emily..
    Could be the graphics card, run the Apple Hardware Test
    If the hardware test doesn't reveal any problems, use Lion Recovery.

Maybe you are looking for

  • Calling a report from HTML

    Hi All , I am trying to call a report from Static view.Now , I know we can call a page or dashboard from the statis view by writing th HTML content. Can we also call a report from the Static View . I tried using : <a href="/Analytics/saw.dll?Path=/sh

  • OS 10.4.6 won't restart or shut down

    I installed 10.4.6 on my powerbook g4 that was running 10.3.9 without a problem. Big mistake. I repaired permissions, then custom installed 10.4.6 skipping the foreign language fonts and printer drivers I don't need. Installation was successful. Set

  • IWeb & .mpg movies HELPPPPPP!!!!

    We are creating an iWeb site. I've got nearly everything working. I'm from an IBM/MS world but loving Apple until the last two days. Have spent nearly 10 hours trying to figure out how to do this, including reading most posts and product help pages.

  • Media manager in Desktop manager not working

    Hi for some reason my Media Manager is not highlighted so I can't select it in my Blackberry Desktop Manager. Any ideas? Cheers Solved! Go to Solution.

  • Pause instance of movie clip on stage?

    I've got instances of movie clips that appear in sequence along the main timeline and would like to be able to make it so that the user can pause and resume at their leisure. Is there a way to accomplish this short of making the instances separate SW