Problem!! may  be simple but i  am  confused

i have a text area whose prop i have set as::
private JTextArea ShowDesc1;
ShowDesc1 = new JTextArea(2,45);
-----rest of code in which i have added text area to a scroll pane
ShowDesc1.setLineWrap(true);
ShowDesc1.setWrapStyleWord(true);
ShowDesc1.setEditable(false);
ShowDesc1.setText(description1);
where description1 is a string
Now when the size of string is bigger the string splits in 2 or more line in textarea (depending on size of String description1) and the line which appear in the text area is the last line of the string.TO view the first line i have to move the upper arrow of scroll pane.can't i do something so that when the JTextArea gets populated the curser is on the 1st line it contains          

Hi Amin,
Write
ShowDesc1.setCaretPosition(0);
after setText.

Similar Messages

  • The answer may be simple but

    Since I got Fireworks 8 last week, I've worked through the
    accompanying 'Getting Started' manual and much of 'Training from
    the Source' by Patti Schulze. While I love the program, I'm
    frustrated by a difficulty that may be simple but is exasperating
    for me.
    When I create an image and try to save it as a .gif, jpg or
    png file for use in Dreamweaver,I find that I repeatedly time and
    time and tiime and time without end, simply lose the image.
    How can I resolve this difficulty?

    In FW 8, if you have a new image with multiple objects, you
    can "save"
    as PNG only, but you can "save as" any FW supported format,
    without all
    the html attributes associated with the Export dialog. With
    many
    formats, you will get the option to "save a copy" so you
    don't flatten
    your original artwork.
    And of course, you can "Export" too.
    That directory location issue is a pain. There is some kind
    of logic
    there, but I can never remember what it is. lol
    Jim Babbage - .:Community MX:. & .:Adobe Community
    Expert:.
    Extending Knowledge, Daily
    http://www.communityMX.com/
    CommunityMX - Free Resources:
    http://www.communitymx.com/free.cfm
    .:Adobe Community Expert for Fireworks:.
    news://forums.macromedia.com/macromedia.fireworks
    news://forums.macromedia.com/macromedia.dreamweaver
    Anthony Bollinger wrote:
    > Two ideas.
    >
    > First, exporting an image is not the same as saving an
    image. You save the
    > image to a PNG to preserve fireworks info, but you
    export to a jpg or gif or
    > other format (including "standard" png).
    >
    > Second, the program does not automatically export to the
    directory your png
    > or source file is in. This has tripped me up plenty
    before. Be sure to
    > check your path carefully. Anytime you experience
    problems, drill down the
    > path from the root of the drive.
    >
    > HTH -- Tony
    >
    > "kjpd84" <[email protected]> wrote in
    message
    > news:e961d8$r0s$[email protected]..
    >>
    >> Since I got Fireworks 8 last week, I've worked
    through the accompanying
    >> 'Getting Started' manual and much of 'Training from
    the Source' by Patti
    >> Schulze. While I love the program, I'm frustrated by
    a difficulty that
    >> may be
    >> simple but is exasperating for me.
    >>
    >> When I create an image and try to save it as a .gif,
    jpg or png file for
    >> use
    >> in Dreamweaver,I find that I repeatedly time and
    time and tiime and time
    >> without end, simply lose the image.
    >>
    >> How can I resolve this difficulty?
    >>
    >
    >

  • This may seem simple, but what is the easiest, most painless way to take an LrPhoto and save it as a jpg of a specific size somewhere in the file system?

    It's not really an export, but if I have to use LrExport to do it, that's fine.

    local settings = {
       -- jpeg settings..
       -- location settings.
    local photos = { catalog:getTargetPhoto() } -- for example
    local session = LrExportSession {
        photosToExport = photos,
        exportSettings = settings,
    session:doExportOnCurrent/NewTask()

  • I'm trying to send (email) photos from iPhoto. Computer says it doesn't recognize my user name or password. I've never had a problem emailing photos.....until now. Any suggestions? I'm sure it's simple but I don't know it!

    I'm trying to send (email) photos from iPhoto. Computer says it doesn't recognize my user name or password. I've never had a problem emailing photos.....until now. Any suggestions? I'm sure it's simple but I don't know it!
    CAN ANYONE HELP??  I ALSO NEED TO KNOW WHICH/WHAT TO PICK FOR MY MAIL CLIENT. I'VE TRIED THREE DIFFERENT THINGS AND NONE OF THEM WORK!

    Mail would be a good choice, unless you are using another email client, like Outlook. There is likely something wrong with the account setup in iPhoto. You may need to delete the account you set up and enter it again if you want to send with iPhoto instead of with Mail.
    Give this a try to see what might be wrong: Drag a photo from iPhoto onto the Mail icon in the Dock. It will create a new message with the photo attached. If you click on the photo in Mail, it should show a popup menu to allow you to set the image size to send.
    Check out some of the links in the More Like This section to the right. There might be some other suggestions.

  • HT4864 Thank you! This may sound lame but are these instructions for the blackberry? I'm receiving iCloud emails without problems on my MacBook Pro and I'd rather not mess w/ settings there.

    Thank you! This may sound lame but are these instructions for my blackberry? I'm receiving iCloud emails without problems on my MacBook Pro and I'd rather not mess w/ settings there. Thanks again!

    You don't need to start a new thread to continue a conversation, you can just tack onto the original one. The settings I referred you to are for the Blackberry, since that's the device which is not receiving mail: anything which is working can be left alone.

  • Hye, i bought my iphone5s in malaysia on early febuary 2014 but on april/may i have problem with my fhone. but now i resides in istanbul turkey. can i get a a service from apple.tr ? how ? thank you

    Hye, i bought my iphone5s in malaysia on early febuary 2014 but on april/may i have problem with my fhone. but now i resides in istanbul turkey. can i get a a service from apple.tr ? how ? thank you

    It can only be serviced in the country where it was originally sold.
    An iPhone sold in an EU member State can be serviced in any other EU member nation. Malaysia is NOT a member of the EU. It can only be serviced in Malaysia.

  • Whenever I try to log in to my Gmail account, the page redirects for a loooong time, then says that it won't load properly, and that the problem may be caused by not enabling cookies, but I have them enabled. Any idea what the problem might really be?

    Whenever I try to log in to my Gmail account, the page redirects for a loooong time, then says that it won't load properly, and that the problem may be caused by not enabling cookies, but I have them enabled. Any idea what the problem might really be?

    I did think about that and if I have to I will do that, however there are about 50 songs. I have closed and reopened iTunes several times and I am sure that I have the latest version. It fails right away but I can click on the cloud download icon and download the song that it failed on ... therefore it is not that song "or any one song" causing the issue. Any ideas?

  • A Simple problem I`m sure BUT ITS DRIViNG ME CRAAAZY!

    Hello,
    I hope someone can help.
    I published a site with the first podcst episode using iweb.It went through onto iTunes bo problem so all`s good... so today I put together the 2nd episode, submit it to itunes as before...up comes the `..please provide the link to the podcast RSS feed ...' etc
    Podcast Feed URL:http://rss.mac.com/jubemeg/iWeb/Bandwagon/podcast/rss.xml is the address I`m given as with the first episode, I press continue and ....Unfortunatly THE FEED HAS ALREADY BEEN SUBMITTED.Course it has! Help!
    I have looked through the tech specs and I cant make head nor tail of it can someone help me in real basic layman language!
    Thank you,
    Jules

    Jules, it's a simple problem with a simple fix. (and it drove me nuts too)
    Publish to .Mac (or your server if it's different)... then PING itunes to let them know to go look for new content on your server (or .Mac). You PING iTunes by cutting and pasting the url addy below into safari and clicking return. You'll get an error message, don't worry, it's supposed to happen. About an hour later, maybe a bit longer, your new episode will be available.
    DONT submit your podcast by selecting the "SUBMIT PODCAST TO ITUNES" menu selection again. That command is for your first submission, not your subsequent ones. Think of your podcast as a book. And each episode is a chapter. When you ping iTunes, they go get the whereabouts of the new chapter and make it available for the world to come and read, hear, or watch.
    the PING url is...
    https://phobos.apple.com/WebObjects/MZFinance.woa/wa/pingPodcast?id=INSERTYOURFE EDIDHERE
    Your feed ID number is in your original email from the itunes folks when they sent you your acceptance email and said that your podcast was now up and running on the ITMS.
    Hope this helps.
    Jim
    20" Imac 1ghz (lmpstd), Mini, G4 Dual 1.8(upgraded), G4 400, Powerbook,12", eMac   Mac OS X (10.4.4)  

  • How do I save to mixdown in mono, 0 db reduction in volume, in 64 bps mp3? Sounds simple, but none of the support staff has been able to do it.

    How do I save to mixdown in mono, 0 db reduction in volume, (Same volume level as in the files-no -3db reduction) in 64 bps mp3? Sounds simple, but none of the support staff has been able to do it.

    Several solutions to this problem.  I believe we may have discussed this over the support e-mail, but I'll share it again here so that it can help others as well.
    First, as I discussed in the e-mail, Audition defaults to support Pan Law which prevents content mixed to the center of a Stereo field from being louder than the same content panned far left or right.  This provides a -3dB drop to center content by default, but you can disable this completely by entering Preferences > Multitrack and setting the Default Panning Mode to Left/Right Cut (Logarithmic)
    Now, when you create a new Multitrack session, there is an option to specify the Master channelization.  Here, you can select Mono, Stereo, or 5.1 and this will be the default channelization mode for a basic mixdown operation regardless of your clip content, though can be overridden when exporting a session mixdown.
    Next, if you just choose the menu item Multitrack > Mixdown Session to New File... it will always default to the Master channelization.  This command does not write to disk, it is a preview or pre-processing step.  If you wish to export your multitrack session mixdown directly to disk, in your desired channelization and file format, please use the command File > Export > Multitrack Mixdown > Entire Session...  You will then have the complete set of output options, including the option to output at any channelization you like and the format you prefer.
    Here, I've disabled the default 5.1 output and selected a Mono mixdown instead.
    I've now changed the file format settings as well to MP3, 64K.
    With most of these configuration details, you should only need to set them once and these will remain the defaults for any subsequent projects, unless modified again.  The Export Multitrack Mixdown dialog will reset the Mixdown options to match the default output, and the MP3 settings may update to reflect the kBps setting nearest your session sample rate.

  • My problem is very simple......firefox wont allow me save my downloads to any other location than my c drive....for example i have gone into options and set sav

    ''locking this thread as duplicate, please continue at [https://support.mozilla.org/en-US/questions/986549 /questions/986549]''
    my problem is very simple......firefox wont allow me save my downloads to any other location than my c drive....for example i have gone into options and set save downloads to my e drive....but still firefox keeps saving them to my c drive....i have 4 internal hard drives in my rig....and have tried saving downloads to them all.......why this is happening i cant understand....i have tried lots of suggestions....and have re-installed firefox multiple times

    hello, there's a general regression in firefox 27 that won't allow files to download directly into a root drive. please try to create a subfolder (like ''E:\Downloads'') and set this as default location for downloads...
    also see [https://bugzilla.mozilla.org/show_bug.cgi?id=958899 bug #958899].

  • Problems with a simple stop watch program

    I would appreciate help sorting out a problem with a simple stop watch program. The problem is that it throws up inappropriate values. For example, the first time I ran it today it showed the best time at 19 seconds before the actual time had reached 2 seconds. I restarted the program and it ran correctly until about the thirtieth time I started it again when it was going okay until the display suddenly changed to something like '-50:31:30:50-'. I don't have screenshot because I had twenty thirteen year olds suddenly yelling at me that it was wrong. I clicked 'Stop' and then 'Start' again and it ran correctly.
    I have posted the whole code (minus the GUI section) because I want you to see that the program is very, very simple. I can't see where it could go wrong. I would appreciate any hints.
    public class StopWatch extends javax.swing.JFrame implements Runnable {
        int startTime, stopTime, totalTime, bestTime;
        private volatile Thread myThread = null;
        /** Creates new form StopWatch */
        public StopWatch() {
         startTime = 0;
         stopTime = 0;
         totalTime = 0;
         bestTime = 0;
         initComponents();
        public void run() {
         Thread thisThread = Thread.currentThread();
         while(myThread == thisThread) {
             try {
              Thread.sleep(100);
              getEnd();
             } catch (InterruptedException e) {}
        public void start() {
         if(myThread == null) {
             myThread = new Thread(this);
             myThread.start();
        public void getStart() {
         Calendar now = Calendar.getInstance();
         startTime = (now.get(Calendar.MINUTE) * 60) + now.get(Calendar.SECOND);
        public void getEnd() {
         Calendar now1 = Calendar.getInstance();
         stopTime = (now1.get(Calendar.MINUTE) * 60) + now1.get(Calendar.SECOND);
         totalTime = stopTime - startTime;
         setLabel();
         if(bestTime < totalTime) bestTime = totalTime;
        public void setLabel() {
         if((totalTime % 60) < 10) {
             jLabel1.setText(""+totalTime/60+ ":0"+(totalTime % 60));
         } else {
             jLabel1.setText(""+totalTime/60 + ":"+(totalTime % 60));
         if((bestTime % 60) < 10) {
             jLabel3.setText(""+bestTime/60+ ":0"+(bestTime % 60));
         } else {
             jLabel3.setText(""+bestTime/60 + ":"+(bestTime % 60));
        private void ButtonClicked(java.awt.event.ActionEvent evt) {                              
         JButton temp = (JButton) evt.getSource();
         if(temp.equals(jButton1)) {
             start();
             getStart();
         if(temp.equals(jButton2)) {
             getEnd();
             myThread = null;
         * @param args the command line arguments
        public static void main(String args[]) {
         java.awt.EventQueue.invokeLater(new Runnable() {
             public void run() {
              new StopWatch().setVisible(true);
        // Variables declaration - do not modify                    
        private javax.swing.JButton jButton1;
        private javax.swing.JButton jButton2;
        private javax.swing.JLabel jLabel1;
        private javax.swing.JLabel jLabel2;
        private javax.swing.JLabel jLabel3;
        private javax.swing.JPanel jPanel1;
        // End of variables declaration                  
    }

    Although I appreciate this information, it still doesn't actually solve the problem. I can't see an error in the logic (or the code). The fact that the formatting works most of the time suggests that the problem does not lie there. As well, I use the same basic code for other time related displays e.g. countdown timers where the user sets a maximum time and the computer stops when zero is reached. I haven't had an error is these programs.
    For me, it is such a simple program and the room for errors seem small. I am guessing that I have misunderstood something about dates, but I obviously don't know.
    Again, thank you for taking the time to look at the problem and post a reply.

  • I have been unable to publish my website due to this message "iweb quit unexpectedly - the problem may have been caused by FTP plug-in" - Iweb seems to register all pages, then crashes before publishing.Tried quite few thread trouble shoots, no luck.Help?

    I have mac book pro 10.5 Leopard
    Have just started using iweb and have small site of about 5 pages, plus blog.  I have yet been able to publish, each time I try iweb crashes and receive following note -
    The application iweb quite unexpectedly.  The problem may have been caused by the FTPKit Plug-in.
    I have tried a few troubleshooting methods recomended on other threads, ie. deleting caches, copying domain and reboots... but no luck.
    Any help very much appreciated.

    Reinstall iWeb from the source you got it from originallhy.  Or, if you're running iWeb 3 download and apply or reapply the iWeb 3.0.4 updater. It included that plugin.
    OT

  • Backup Failed - The Problem may be temporary

    I startet getting the following error message tonight:
    "The backup was not performed because an error occurred while copying files to the backup disk. The problem may be temporary. Try again later to back up. If the problem persists, use Disk Utility to repair your backup disk."
    The Time Machine drive is a 2TB Hitachi, connected via an eSATA 6G PCIe 2.0 Max Power controller card.
    Time Machine has been making successful backups for weeks.
    Steps taken so far:
    Repair disk with disk utility (no repair needed)
    Confirm that Spotlight was not indexing disk.
    Restart computer.
    Here is the log from Time Machine Buddy
    Starting standard backup
    Backing up to: /Volumes/OWC Mercury Elite AL Pro/Backups.backupdb
    No pre-backup thinning needed: 2.40 GB requested (including padding), 1.41 TB available
    Error: (-36) SrcErr:NO Copying /Applications/Vienna Ensemble/Vienna Ensemble Service (64-bit).app/Contents/MacOS/Vienna Ensemble to /Volumes/OWC Mercury Elite AL Pro/Backups.backupdb/Michael Matthews’s Mac Pro/2010-11-25-201135.inProgress/7475F4FC-BCAC-4F42-A860-64715C66E408/Macintosh HD/Applications/Vienna Ensemble/Vienna Ensemble Service (64-bit).app/Contents/MacOS
    Error: (-36) SrcErr:NO Copying /Applications/Vienna Ensemble/Vienna Ensemble Service (64-bit).app/Contents/PkgInfo to /Volumes/OWC Mercury Elite AL Pro/Backups.backupdb/Michael Matthews’s Mac Pro/2010-11-25-201135.inProgress/7475F4FC-BCAC-4F42-A860-64715C66E408/Macintosh HD/Applications/Vienna Ensemble/Vienna Ensemble Service (64-bit).app/Contents
    Error: (-36) SrcErr:NO Copying /Applications/Vienna Ensemble/Vienna Ensemble Service (64-bit).app/Contents/Resources/empty.lproj to /Volumes/OWC Mercury Elite AL Pro/Backups.backupdb/Michael Matthews’s Mac Pro/2010-11-25-201135.inProgress/7475F4FC-BCAC-4F42-A860-64715C66E408/Macintosh HD/Applications/Vienna Ensemble/Vienna Ensemble Service (64-bit).app/Contents/Resources
    Error: (-36) SrcErr:NO Copying /Applications/Vienna Ensemble/Vienna Ensemble Service (64-bit).app/Contents/Resources/qt.conf to /Volumes/OWC Mercury Elite AL Pro/Backups.backupdb/Michael Matthews’s Mac Pro/2010-11-25-201135.inProgress/7475F4FC-BCAC-4F42-A860-64715C66E408/Macintosh HD/Applications/Vienna Ensemble/Vienna Ensemble Service (64-bit).app/Contents/Resources
    Error: (-36) SrcErr:NO Copying /Applications/Vienna Ensemble/Vienna Ensemble Service (64-bit).app/Contents/Resources/viframe.icns to /Volumes/OWC Mercury Elite AL Pro/Backups.backupdb/Michael Matthews’s Mac Pro/2010-11-25-201135.inProgress/7475F4FC-BCAC-4F42-A860-64715C66E408/Macintosh HD/Applications/Vienna Ensemble/Vienna Ensemble Service (64-bit).app/Contents/Resources
    Error: (-36) SrcErr:NO Copying /Applications/Vienna Ensemble/Vienna Ensemble Service (64-bit).app/Contents/Resources/vslensemble_icon.icns to /Volumes/OWC Mercury Elite AL Pro/Backups.backupdb/Michael Matthews’s Mac Pro/2010-11-25-201135.inProgress/7475F4FC-BCAC-4F42-A860-64715C66E408/Macintosh HD/Applications/Vienna Ensemble/Vienna Ensemble Service (64-bit).app/Contents/Resources
    Error: (-36) SrcErr:NO Copying /Applications/Vienna Ensemble/Vienna Ensemble Service.app/Contents/MacOS/Vienna Ensemble to /Volumes/OWC Mercury Elite AL Pro/Backups.backupdb/Michael Matthews’s Mac Pro/2010-11-25-201135.inProgress/7475F4FC-BCAC-4F42-A860-64715C66E408/Macintosh HD/Applications/Vienna Ensemble/Vienna Ensemble Service.app/Contents/MacOS
    Error: (-36) SrcErr:NO Copying /Applications/Vienna Ensemble/Vienna Ensemble Service.app/Contents/PkgInfo to /Volumes/OWC Mercury Elite AL Pro/Backups.backupdb/Michael Matthews’s Mac Pro/2010-11-25-201135.inProgress/7475F4FC-BCAC-4F42-A860-64715C66E408/Macintosh HD/Applications/Vienna Ensemble/Vienna Ensemble Service.app/Contents
    Error: (-36) SrcErr:NO Copying /Applications/Vienna Ensemble/Vienna Ensemble Service.app/Contents/Resources/empty.lproj to /Volumes/OWC Mercury Elite AL Pro/Backups.backupdb/Michael Matthews
    Any help would be appreciated.
    Michael

    michaelmatthews wrote:
    The Time Machine drive is a 2TB Hitachi, connected via an eSATA 6G PCIe 2.0 Max Power controller card.
    Time Machine backups to an external eSata drive are not supported.
    See [Disks that can be used with Time Machine|http://docs.info.apple.com/article.html?path=Mac/10.6/en/15139.html].
    Error: (-36) SrcErr:NO Copying /Applications/Vienna Ensemble/Vienna Ensemble Service (64-bit).app/Contents/MacOS/Vienna Ensemble
    All the errors relate to that app. It may be corrupted, or there may be other problems.
    See #C3 in [Time Machine - Troubleshooting|http://web.me.com/pondini/Time_Machine/Troubleshooting.html] (or use the link in *User Tips* at the top of this forum). There are a couple of things there you haven't tried yet. I'd start by just excluding that app.
    But it sounds like the eSata connection may be the problem.
    Do you have a USB or FireWire disk you can try instead, or connect the drive via USB or FireWire? That may rule some things in or out.

  • My iPhone's screen black, it does not work and I tied to hold press power and home press but it did not work? By the way for seconds I saw iTunes cabal  simple, but unfortunately, I do not have backup for my iPhone in my mac, so how can I restore my iphon

    My iPhone's screen black, it does not work and I tied to hold press power and home press but it did not work? By the way for seconds I saw iTunes cabal  simple, but unfortunately, I do not have backup for my iPhone in my mac, so how can I restore my iphone without loss my date?
    Thanks

    lbryan1987 wrote:
    I dont want the button problem solved i need to know how to restore the phone without using that button or going into settings
    You don't in the condition it's in. You will either have to get the phone replaced by Apple or pay a 3rd party to repair it.
    there seriously should be more than two ways to solve this other wise apple is useless and we will never buy another apple product.
    Seriously? It's physically broken!

  • Can anyone help me?Time Machine couldn't complete the backup to...  An error occurred while copying files. The problem may be temporary. If the problem persists, use Disk Utility to repair your backup disk.  What is the problem?  I've made no changes.

    I recently starting receiving the error message "Time Machine couldn't complete the backup to... An erro occurred while copying files.  The problem may be temporary.  If the problem persists, use Disk Utility to repair your backup disk.  I have had no problems backing up my MacBook Pro 2011 to my Western Digital My Book Live through a Linksys EA4500 router until recently.  I've made no major changes.  I've ran a diagnosis on my back up drive with no problems.  The Time Machine back up starts, but about after about 5 to 10 minutes I get the error message.  I can see the shared drive in Finder.  The light on the drive blinks while it starts the back up.  I can see the shared folders on the networked drive.  The backup process starts but for some reason it just stops.  Can anyone help?

    You can't repair a network volume in Disk Utility.
    Backing up to a third-party NAS with Time Machine is risky, and unacceptably risky if it's your only backup. I know this isn't the answer you want, and I also know that the manufacturer says the device will work with Time Machine, and that it usually seems to work. Except when you try to restore, and find that you can't.
    If you want network backup with Time Machine, use as the destination either an Apple Time Capsule or an external hard drive connected to another Mac or to an 802.11ac AirPort base station. Only the 802.11ac base stations support Time Machine, not any older model.
    If you're determined to keep using the NAS for backup, your only recourse for any problems that result is to the manufacturer (which will blame Apple.)

Maybe you are looking for

  • How can I download music from itunes store at a higher bit rate than 128k?

    I have been able to import music from cd's at bit rates higher than 128kbs by clicking into the preferences item under the "edit" drop down menu. however, I have not been able to locate a similar command for itunes music downloads. is it possible to

  • Indesign CS5 Crashes with Incopy Workflow

    I work for a large publishing company that publishes thousands of titles per year. Several divisions use Indesign, but only our Publishing Division uses the Indesign/Incopy workflow, and they are the only division experiencing widespread crashing in

  • SAP Integ Kit - SNC -SSO

    Hi Ingo and others, I have two situations and need your input I have configured the SNC between BOBJ and SAP by exchange of certificates. I am able to create Universe thru a connection as u201Cuse SSO when refreshing the report on runtimeu201D Or by

  • Firmware Nokia N80ie US Version

    Hello my friend, I am for sure, really new, I just bought couple months ago my first Nokia, I thinks they are great phones. I would like to know if there is a new firmware for the this phone. I actually have the version V.4.0632.0.38. Please provide

  • Suggestions to add a 10gr2 RAC to a 9iR2 RAC configuration.

    Hello, I want to add a new 10gR2 instance (with clusterware and ASM) to a working production RAC 92 installation (2 nodes on RedHat 3). The old RAC is configured with raw devices. For the ASM we plan to use a new configured LUN. Can you point me to a