How can I make horizonal auto scrolling in JList?

I want the horizontal scrollbar to appear only if one of the rows of the JList is larger than the Jlist.
by the way, the JList is captured in JScrollPane, but I can have only vertical scrollbar.
thanks, Lior.

Your answer is not exactely I want.
But I got hint from your answer.
All I want is "How I can split multilined text into dozen edittext field?"
So I can make this from your sourcecode.
Your answer is so helpful.
Thank you.
var win = new Window ("dialog", "test");
win.orientation = "column";
var charLen=30;
var copytext = [];
var form0 = win.add ("edittext", [0, 0, 150, 200], "", {multiline:true});
form0.height = 100;
var form1 = win.add ("edittext", undefined, "",{readonly:true});
form1.characters = charLen;
var form2 = win.add ("edittext", undefined, "",{readonly:true});
form2.characters = charLen;
var form3 = win.add ("edittext", undefined, "",{readonly:true});
form3.characters = charLen;
form1.active = true;
form0.onChanging = function(){
    form1.text = form0.text.split('\n')[0]
form2.text = form0.text.split('\n')[1]
form3.text = form0.text.split('\n')[2]
win.show();

Similar Messages

  • How can i make it auto line alignment in ScriptUI?

    I want that form recognize new line character. (like '\n')
    So I programmed like this. But it's not working.
    var win =new Window ("dialog", "test");
    win.orientation = "column";
    var form1 = win.add ("edittext", undefined, "");
    form1.onChanging = function(){
      if(form1.text.search("\n") == true){
       form2.active = true;
    var form2 = win.add ("edittext", undefined, "");
    var form3 = win.add ("edittext", undefined, "");
    win.show();
    How can i make it auto line alignment in ScriptUI?
    Is it possible?

    Your answer is not exactely I want.
    But I got hint from your answer.
    All I want is "How I can split multilined text into dozen edittext field?"
    So I can make this from your sourcecode.
    Your answer is so helpful.
    Thank you.
    var win = new Window ("dialog", "test");
    win.orientation = "column";
    var charLen=30;
    var copytext = [];
    var form0 = win.add ("edittext", [0, 0, 150, 200], "", {multiline:true});
    form0.height = 100;
    var form1 = win.add ("edittext", undefined, "",{readonly:true});
    form1.characters = charLen;
    var form2 = win.add ("edittext", undefined, "",{readonly:true});
    form2.characters = charLen;
    var form3 = win.add ("edittext", undefined, "",{readonly:true});
    form3.characters = charLen;
    form1.active = true;
    form0.onChanging = function(){
        form1.text = form0.text.split('\n')[0]
    form2.text = form0.text.split('\n')[1]
    form3.text = form0.text.split('\n')[2]
    win.show();

  • How can I make the Smooth Scrolling option in the Advanced menu apply ONLY to the tab bar?

    So, I'm one of those people who usually have 60+ tabs open at any given time. I'm also on a Lenovo laptop with a trackpoint (that may be relevant later).
    Right now, I have smooth scrolling disabled.
    In previous versions of Firefox, if I sat my cursor on the tab bar and scrolled either up or down, it would scroll across my tab bar at a constant, quick rate, usually taking about two or three seconds to reach the end. This wasn't an animated scroll (I've disabled that animated scroll via about:config in the current Firefox version).
    However, now, it's doing something different. There's acceleration to the scroll. If I just tap the scroll in either direction, it scrolls only a few tabs. However, if I hold the scroll for a second, it instantaneously takes me to the far end of the tab bar, completely skipping at least thirty tabs in between.
    I have tab scroll buttons added by Tab Mix Plus (smooth scrolling is also not enabled in that addon), and the same accelerating behavior occurs there. One or two taps of the button moves the bar a few tabs to the left or right, but several taps in quick succession takes me all the way to the far end of the bar.
    I can restore the old scrolling behavior for the tab bar by turning on smooth scrolling in the Options > Advanced menu, but that turns on smooth scrolling for web pages at the same time. I don't like the web page smooth scrolling, and would rather not have it on.
    Or if there's any other way to make it so that scrolling the tab bar moves the tab bar a fixed amount no matter what, that would be great.

    Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions (Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance).
    *Do NOT click the Reset button on the Safe Mode start window.
    *https://support.mozilla.org/kb/Safe+Mode
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes

  • How can I make my page scroll to a specific anchor on load

    Hi!
    I have built a vertically scrolling page, but don't want my visitors to enter at the top of the page, but in the middle. How do I do this?
    Thank you,
    Charlotte

    Hi Aish,
    Thank you tonnes!
    Do you know of any way to modify the code to make it work together with this preload script: http://creativedroplets.com/add-a-preloader-to-your-muse-web-pages/
    As it is not it just keeps refreshing and refreshing.
    If not I'll just have to skip the preloader, but I would really like to be able using both if possible.
    Thank you!

  • How can I make my mac scroll up and down?

    My mac has not scrolled up or down for some time and Im wondering how I can tell it to scroll?

    Maybe 'natural scrolling' is turned on...
    From your System Preferences select Mouse and then untick Scroll direction: natural.

  • How can I make the page scroll when highlighting

    I can only highlight to the bottom of the screen. Then I have to take that and paste it. Then I have to go back and highlight the rest and take it to be pasted.

    hello missdeezy, when i try this the page is scrolling further automatically when i get towards/beyond the bottom of the page with the mouse pointer - alternatively scrolling with the mousewheel, the arrow-key & the page-up/down-key works during text selection.
    in case this doesn't work for you, you may try to launch firefox in safe mode and see if you can replicate this behaviour there? if not, maybe an addon is interfering...
    [[Troubleshoot extensions, themes and hardware acceleration issues to solve common Firefox problems]]

  • How can I make Thunderbird start auto with windows start-up

    how can I make Thunderbird start auto with windows start-up

    You can by placing a short cut in the windows startup folder, just like any other windows program.
    However if you do you are likely to encounter problems as downloading mail while the anti virus is still loading and the network is busy announcing your machines arrival to the network ( which might be a network of one) and any of a dozen other program are loading is fraught with risk of timeouts and server disconnections as well as error messages that make little sense because they are about something that is still loading.
    So the bottom line is sure you can, but if there are issues take it back out of there as a first step.

  • How can I make it so that my songs don't go on her iPod and her songs ....

    Me and my mother just got iPods for christmas and hers was a U2 ipod and mine was a 30gb ipod. I have downloaded some songs and have imported some cds but my mother doesn't want those songs on her ipod. How can I make it so that my songs don't go on her iPod and her songs don't go on mine.Do i need to create another itunes?

    The computer can tell the difference between your two iPods. When you first plugged each one in, you named them and the computer recognizes each one as a separate disk.
    Now, when you plug in your iPod, and you are looking in iTunes at your iPod contents, you will see four buttons in the bottom right corner of iTunes - the first one is to display iPod options. Click on this, and under the music tab, select "Automatically update selected playlists only". Then, you scroll through your playlists and select only those you want to be transferred to your iPod. Your mother can do the same thing. Now you can each make your own playlists from the same music library, and only those songs you want to go onto your iPod will transfer when you plug it in. You can make the same selections for all the other options too (video, podcats. photos, etc), so that you only have to have what you want on each iPod.
    I have two iPods, a new 5g video iPod and an ancient 1g iPod, and have no problems syncing each of them with different playlists and options.

  • My sister and I share an itunes account so she can click on my email and receive my imessages how can I make sure this stops happening?

    My sister and I share an itunes account so she can click on my email and receive my imessages how can I make sure this stops happening?

    One of you needs to use a separate Apple ID for iCloud, FaceTime & iMessage.
    The Apple ID needs to be a verified email address. Once you have an email address, that can be verified, go here & create the ID:
    https://appleid.apple.com/cgi-bin/WebObjects/MyAppleId.woa/wa/createAppleId
    Then on one of the phones, turn off Contacts, Calendars, etc. for iCloud. You'll be prompted to keep the data or delete it from the phone, then turn off iMessage, FaceTime & delete the iCloud account...Settings>iCloud...scroll down...delete account. Then, setup iCloud using the new Apple ID, turn on iMessage & Facetime.
    This will have no affect on the ID you both share for iTunes content, & you can continue to do so.

  • How can i make my scrollpane in a way that at the opening of a frame it doe

    How can i make my scrollpane in a way that at the opening of a frame it does not scroll down automatically?
    code is below
    import java.awt.*;
    import javax.swing.*;
    import javax.swing.*;
    import java.awt.event.*;
    import java.net.*;
    import javax.swing.JOptionPane.*;
    import java.io.*;
    import javax.swing.colorchooser.*;
    import javax.swing.filechooser.*;
    import javax.accessibility.*;
    import javax.swing.border.*;
    import java.sql.*;
    public class Signup extends JFrame
         JLabel p1,p2,p3,p4,p5,p6,uid,upass,cpass,fname,sname,hint,sl,ed,age,adr,cit,zip;
         JTextField uname,fnamet,snamet,hintt,adrt,adrt1,city,zipcode;
         JPasswordField upassw,cpassw;     
         JComboBox sex,education,agegr;
         Signup()
         Container c=getContentPane();
         c.setLayout(null);
         c.setBackground(Color.white);
         /** JPanel c = new JPanel();
         c.setBackground(Color.white);
         int v = ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS;
         int h = ScrollPaneConstants.HORIZONTAL_SCROLLBAR_AS_NEEDED;
         JScrollPane jsp = new JScrollPane(c, v, h); ***/
    p1=new JLabel("Create Your Icafe!ID",10);
         p2=new JLabel("Personal Information");
         p3=new JLabel("User Address");
         p4=new JLabel("Tell Us About Your Hobbiess (Optional) ");
         p5=new JLabel("Tell us something about what you like. This will help us choose the kind of content to display on           your pages.");
         p6=new JLabel("--------------------------------------------------------------------------------");
    uid=new JLabel("User Id");
         upass=new JLabel("Password");
         cpass=new JLabel("Confirmation Password");
         fname=new JLabel("UserName");
         sname=new JLabel("SurName");
         hint=new JLabel("Hint Question");
    sl=new JLabel("Sex");
         ed=new JLabel("Education");     
         age=new JLabel("Age Group");     
         adr=new JLabel("Address");
    cit=new JLabel("City");
    zip=new JLabel("ZipCode");
         uname=new JTextField(10);
         uname.requestFocus();     
         uname.setToolTipText("UserName");
    upassw=new JPasswordField(10);
         upassw.setToolTipText("Password");
         upassw.setEchoChar('*');
         cpassw=new JPasswordField(10);
         cpassw.setToolTipText("Confirmation Password");
         cpassw.setEchoChar('*');
         fnamet=new JTextField(10);
         fnamet.setToolTipText("FullName");
         snamet=new JTextField(10);
         snamet.setToolTipText("SurName");
         hintt=new JTextField(10);
         hintt.setToolTipText("Hint Question");     
    String[] gender={"[Select one]","Male","Female"};
         sex = new JComboBox(gender);          
    String[] edu={"[Select one]","S.S.C","Inter","Graduate","Post Graduate"};
         education= new JComboBox(edu);     
    String[] ageg={"[Select one]","0 - 15","16 - 35","36 - 70","70 - 100"};
         agegr= new JComboBox(ageg);     
    adrt=new JTextField(15);
         adrt.setToolTipText("Address");
         adrt1=new JTextField(15);
         adrt1.setToolTipText("Address");
         city=new JTextField(15);
         city.setToolTipText("City");
    zipcode=new JTextField(15);
         zipcode.setToolTipText("ZipCode");
         p1.setBounds(200,70,160,30);
         uid.setBounds(350,100,160,30);
         uname.setBounds(400,100,160,30);
         upass.setBounds(335,140,160,30);
         upassw.setBounds(400,140,160,30);
         cpass.setBounds(260,180,160,30);
         cpassw.setBounds(400,180,160,30);
         p2.setBounds(200,220,160,30);
         fname.setBounds(330,260,160,30);
         fnamet.setBounds(400,260,160,30);
         sname.setBounds(335,300,160,30);
         snamet.setBounds(400,300,160,30);
    hint.setBounds(315,340,160,30);     
    hintt.setBounds(400,340,160,30);
         sl.setBounds(370,380,160,30);     
         sex.setBounds(400,380,160,30);
         ed.setBounds(335,420,160,30);     
         education.setBounds(400,420,160,30);
    age.setBounds(330,460,160,30);
    agegr.setBounds(400,460,160,30);
    p3.setBounds(200,500,160,30);
         adr.setBounds(340,540,160,30);
         adrt.setBounds(400,540,160,30);
         adrt1.setBounds(400,580,160,30);
         cit.setBounds(370,620,160,30);
         city.setBounds(400,620,160,30);
    zip.setBounds(590,620,160,30);
    zipcode.setBounds(640,620,160,30);
         Font font = new Font("SansSerif",Font.BOLD, 12);
         setFont(font);
         c.add(p1);
    c.add(uid);
         c.add(uname);     
         c.add(upass);
         c.add(upassw);
    c.add(cpass);
         c.add(cpassw);
    c.add(p2);
    c.add(fname);     
         c.add(fnamet);
    c.add(sname);
    c.add(snamet);
         c.add(hint);
    c.add(hintt);     
    c.add(sl);
    c.add(sex);
    c.add(ed);
         c.add(education);
    c.add(age);
         c.add(agegr);
    c.add(p3);
    c.add(adr);
         c.add(adrt);
         c.add(adrt1);
    c.add(cit);
    c.add(city);
    c.add(zip);
    c.add(zipcode);
         setResizable(false);
         //int a=DO_NOTHING_ON_CLOSE;
         //setDefaultCloseOperation(a);
         show();
         setSize(800,500);
    // Border raisedBorder = new BevelBorder(BevelBorder.RAISED);     
         setContentPane(c);     
    public static void main (String arg[])
         try{
         UIManager.setLookAndFeel("com.sun.java.swing.plaf.windows.WindowsLookAndFeel");
         }catch(Exception s)
         Signup swu=new Signup();

    just try the following:
    jsp.getVerticalScrollbar().setValue(0);after inserting and adding all your components. this will set the vertical scrollbar up to the very first line.
    regards

  • How can I make that the cursor of a table ...

    Hello,
    how can I make that the cursor of a table (on the frontpanel) go to the starting position? I have placed a table that give back the number of the row if I doubleclick a row on the frontpanel, but when I restart the vi the cursor of the table is on this position. If I have many informations in the table and after restarting there are just one or two, I can`t see this information without scrolling to the top of the table. I want that the cursor (that I see) is at the first row. How can I make it?
    thankyou
    Schwede

    Hello,
    Sorry, I forgot to attach it in the previous post.
    Regards,
    Paulo
    Attachments:
    EditPos.vi ‏16 KB

  • How Can I make a slide button1 autoslide another slidebutton2 to false if S.B.2 is True??

    Hi all
    How Can I make this Work! Look at my VI example.
    The VI runs, and the I start to switch the Integrating slide to true. and the random data can be seen in the Peak And Volume indicators.
    Then if I swith the Flow/Temp slide to True (Temp) and the Integrating slide is true, I want the it (The integrating slide) to auto switch to false.
    Now If i switch the The integrating slide to true it must remain true!,
    So If I then swith the Flow/Temp Slide back to false( Flow), Nothing happens with the Integrating slide.
    If I then switch the  Flow/Temp Slide to true( Temp), The integrating slide must reset to off again. and so on...
    Sorry for the long explaination.
    In my Attached Vi, I got it work autoswitching to false, but when The F/T slide is set to Temp, the Integrating slide will not switch to true!!
    Can any body see the problem!
    rgards
     ZAMZAM 
    HFZ
    Attachments:
    AutoSwitch.vi ‏62 KB

    The event handler is intended to make the user interface easier and to use fewer CPU cycles polling front panel controls. What you want can be done without it. See the attached file. For one control it is not too much different. If you had 5-10 controls or their interaction was more complex, the event handler would have a greater advantage. Also the event handler can easily monitor numeric or string inputs, enums, and other controls.
    Lynn
    Attachments:
    AutoSwitch.3.vi ‏42 KB

  • How can I make my Quicktime plugin work again?

    Before installing the Firefox v3.6, my quicktime plugin was working. After I installed v3.6, the quicktime plugin didn't work. I tried to uninstall v3.6 and installed back v3.5, but the quicktime plugin is still not working. How can I make it work again or how to fix this? Thanks.
    Is there a way to undo the installation of Firefox v3.6, meaning to remove any traces of Firefox 3.6 installation, because this problem only came after I installed Firefox 3.6.
    I'm able to play streaming videos from websites (e.g. http://www.singingsuccess.tv/videos/?vid=251) BEFORE I installed v3.6. AFTER installing v3.6, the streaming video now shows a blue Q with a question mark in the center. I tried to uninstall that version and install back v3.5, but the problem still exist.
    Thank you and hoping for your prompt reply. More power.

    You actually have to update the entire QuickTime application to get a new version of the QuickTime plugin that Firefox uses.
    I don't know what you mean by a licensed version of QuickTime. Do you have QuickTime Pro (paid version) or the free version?
    If you are updating the free version, just download it from http://www.apple.com/quicktime/download/ and then install it on top of your current version (no need to uninstall it first).
    If you are updating QuickTime Pro, I copied this from http://discussions.apple.com/thread.jspa?messageID=12301362&#12301362
    '''Re: need new install of quicktime pro Posted: Sep 19, 2010 5:28 PM'''
    '''Download a free version of Quicktime. Open it and choose Edit. Scroll down to Preferences and choose Register. Once you enter your Registration Key, it will automatically update your version to QuickTime Pro (this is what I just did on my PC).'''
    You could also post a new question in the [http://discussions.apple.com/forum.jspa?forumID=943 QuickTime for Windows] forum at discussions.apple.com

  • How can I make a part of the body of my content full width of the screen with a fluid grid layout in CSS? (In dreamweaver program)

    How can I make a part of the body of my content full width of the screen with a fluid grid layout in CSS? (In dreamweaver program)
    and I know it is being over-ridden by
    .gridContainer {
      width: 88.5%;
      max-width: 1232px;
      padding-left: 0.75%;
      padding-right: 0.75%;
      margin: auto;
      clear: none;
      float: none;

    Abdelqader Alnobani wrote:
    How can I make a part of the body of my content full width of the screen with a fluid grid layout in CSS? (In dreamweaver program)
    and I know it is being over-ridden by
    .gridContainer {
      width: 88.5%;
      max-width: 1232px;
      padding-left: 0.75%;
      padding-right: 0.75%;
      margin: auto;
      clear: none;
      float: none;
    Logically a structure something like below should work BUT whether or not it will upset the FG I don't know as I wouldn't ever use it.
    <div class="gridContainer">
    Top Code Section Goes Here
    </div>
    <!-- close gridContainer -->
    <div id="fullWidth">
    Full width section goes here
    </div>
    <!-- close fullWidth -->
    <div class="gridContainer">
    Bottom Code Section Goes Here
    </div>
    <!-- close gridContainer -->

  • How can I make a bullet item with a custom Bullet character such as a check mark ?

    Hi Everyone,
        I'd like to make a list with Bullets, but I can find a bullet character which I am looking for. Especially I'd like to make Bullet characters available in PowerPoint, such as check mark, and others. How can I make a bullet item with a custom Bullet character or picture such as a check mark ?
      Regards
      Cem

    Cem777 wrote:
    Hi Everyone,
        I'd like to make a list with Bullets, but I can find a bullet character which I am looking for. Especially I'd like to make Bullet characters available in PowerPoint, such as check mark, and others. How can I make a bullet item with a custom Bullet character or picture such as a check mark ?
      Regards
      Cem
    Search InDesign help for "change bullet characters" (without quotes,) and use the technique described there with the Zapf Dingbat font as suggested by Peter S.
    You can also use InDesign's glyphs panel (Window > Type & Tables > Glyphs) to scroll through all the character sets in all the fonts that InDesign has access to on your system, to look for check mark characters.
    After you have created a paragraph style that applies the customized check-mark-bullet that you want, every time you apply that paragraph style, the custom bullet appears. So, while it's a few steps to set up the style the first time, from then on it's automatic.
    If you really need a particular bullet that's not in any font you have, you'll need to search for fonts that have check mark characters and buy one or use a free one. Caution: free fonts aren't always created to the same strict standards that commercial fonts from reputable font foundries observe; free fonts sometimes cause problems when printing or exporting to PDF. You can search Google for "fonts with check mark" (without quotes.)
    HTH
    Regards,
    Peter
    Peter Gold
    KnowHow ProServices

Maybe you are looking for

  • Intel and Cisco LWAPP - Sucess at last

    I work for a large healthcare system that has a very large LWAPP deployment. We utilize the network for laptops, 7920 IP phones, and the new 7921 phones. We have HP laptops with Intel wireless cards. We have both the HP 6120 and 6320 laptops with the

  • When i change the value of a combo box using a property node it displays the value not the item label

    I am using a combo box as a select list for text serial commands.  I have items like "engineering", "GUI", and "Scan" for the commands "MDE", "MDN", and MDS respectively which i have input as the corresponding value in the combo box.  so for example

  • Ecess and SEcess Condition not getting

    Hi all, Condition type for Ecess and Secondory Ecess not viewed at development server,i.e. Ecess cond: Jecs, Jec1, Jec2, Jec3.., SEcess:Jhx1, Jhx2...are Standard condition or We have to manualy create this condition. If this is a standard condition t

  • 2nd Gen nano major syncing prob

    hey guys receantly my ipod wasnt syncing as in itunes would say a song has been synced but it wasnt on the ipod. i read an article on the ipod website about changing the drive letter. i did and now it would only sync if i manually put the files on th

  • Double clicking wont open

    greetings, i have an unusual problem in tiger. double clicking a photoshop file, will open photoshop... but not the file that was clicked. Dragging it on the icon on the dock will not open it either. Zapping PRAM, clearing pref files doesnt fix it..