Removing scrollbar from AWT List

Hi,
I have an instance of List on my screen. I noticed when I have more than one item on the list, it shows automatically a vertical and horizontal scrollbars.
I have to disable scrollbars, but cannot find out if it is possible with AWT List or should I opt for a different Component than List.
Could anyone give me a hand?
Thank you,
Caren

List is what you want. Use this constructor...List(int, boolean). First argument is number of items to display in the list, second is if List is mulitle selection list. So for a normal list with 5 items do this:
List myList = new List5, false);
This should stop a scrollbar being put in (unless you add more than 5 items). If this doesn't work it's proably your layout manager set up.
Hope this helps

Similar Messages

  • Impact of selecting "Removing Query from Selection List" in 2 channels.

    HI All ,
    I have customized a query in one channel (My Agreements and Contract Documents query in Master Agreements List channel) and have removed the standard query from the channel by checking the  "Remove Query from Selection List" and introduced my custom query in that query group .
    But  it resulted in break in chain for  "Master Agreements" link in "Contracts To Do List" channel as the link was pointing to standard  "My Agreements and Contract Documents" query and is displaying "The query can not be executed. Contact your system administrator" when ever I click on that.
    Any pointers on how to overcome above scenario wud be gr8!
    Regards,
    Uday

    Hi Uday,
    In order for To Do List channel to work, the query definition should be in the Master Agreement List query group. Do you still want the standard query in the To Do List? If so, you would have to leave it on the Query Group as To Do list is pointing to it. May be change the display name of the query so you can differentiate between the 2 queries. The other option is change the To Do channel to point to the custom query.
    Regards,
    Vikram

  • My laptop crashed and it was an authorized computer for my iPhone.  How do I remove this from my list of computers?

    My laptop crashed and it was an authorized computer for my iPhone.  When I downloaded iTunes to my new laptop and authorized it, I see that my old laptop is included in the count of authorized computers.  How do I remove this from my list of computers?

    You do not, nor do you need to until you reach the limit of 5. Then you can deauthorize all.

  • Automatic Removal  materila from error list

    Hi
    When i do confirmation and if some material which needs to be backflushed  is not available in stock, then that confirmation goes in error.
    Is there is any program which when run in background will remove material from error list(COGI) when that particular material is available in stock.

    Mayuresh,
    when you run "CORUAFWP", foreground, hope you have not activated the "Simulation" check box, if you have, then please remove the Check Box and process.
    In fore ground if you are running, the output report would contain 2 sections,
    First "Overview of Material Documents"
    Second " Overview of Failed Material documents".
    If you dont get any material documents in the first section, it means that the error still exists. In your sandbox or Test system, I would suggest you to first intentionally create a COGI error record by removing the stock, and then check whether COGI record is available or not. If available you can create the stock and then try running "CORUAFWP" program. You would now find a material document in the First section of the output report as explained by me.
    Please dont expect COGI error records like Posting Period Problem or Storage Location not maintained problem to get posted through  "CORUAFWP" , these records have to be processed manually after correcting the dates or inputting the storage location in COGI transaction.
    "CORUAFWP" Program would be helpful in automatically clearing error records of Less stock or Record Lock Problem.
    Hope this helps....
    Regards,
    Prasobh

  • Scrollbars and awt.List

    Hello,
    I'm a first year student form the Netherlands in software design. And as of this semester I'm getting Java (finally a new language to learn!). Everything has gone very smoothly, I was hoping of more of a challenge trying to learn it, but it goes very easily (maybe I shouldn't have programmed in C++ for 3 years :P).
    Though now I'm having a slight problem with my code. v _ v '
    My project has to be competly in awt widget's, and I thought I'd do something more than required (it would seem that my teachers expect me to ^ _ ^).
    In this list I'm required to use a fixed width font to "simulate" 2 panels (almost similar to the TableList in Swing) with a pipe ( | ) character as a line. It means that I need to cut off words that cross the boundry.
    The above (and the rest of the assignment) works perfectly (and I've done the actual required part in less than 30 minutes), but now I've come to want to add tool tips to all the elements.
    I've made a tooltip class (it works btw), but I need to get the item in the list my mouse is hovering over.
    I believe a row is 20 pixels high (or something like that), so I divide the y value (of the local mouse position) by 20 and use the integer part as the index.
    And here comes the problem.
    When the list scrolls then the method I described above won't work anymore.
    I think that my method is (atleast) similar as to what other programs do, save that it adds the scroll info as well.
    Now here's my real problem. I can't (or don't know how) to get the scrollbar info from the list. I know there's a handy function is Swing, but I'm only allowed to use awt.
    I've also read that the scrollbars are part of the peer's (native to the OS) so I can't access them.
    So my true question is, what (if any) event should I listen to, to get scroll movements (not mouse wheel scrolling)?
    And if there isn't any way to listen to the events, then do you have any idea how to tackle this problem?
    Thank you for your time,
    MLeoDaalder

    Showing me your misbehaving output is not helpful.
    I have successfully implemented what you are attempting, using Swing which I understand you cannot use but it should work the same way using AWT.
    My main class extends JFrame (you would extend Frame) and implements MouseMotionListener. The mouseMoved(MouseEvent evt) method in the main class updates the tool tip, based on the evt.getX() and evt.getY().
    I have a class (call it LCanvas) that extends JPanel (you would extend Panel) . The class adds a MouseMotionListener and has a paint(Graphics g) method that records the borders of each line that gets painted by g.drawString(String s, int x, int y). (Some of the painted lines may be outside of the displayed area.)
    When I construct LCanvas, I pass it the JFrame (you would use Frame) of the main class. So my contructor looks like:
    public LCanvas(JFrame f) {
    addMouseMotionListener((MouseMotionListener) f);
    Back in main(String [ ] args), I set up my scrollable window as:
    MainClass f = new MainClass();
    LCanvas lc = new LCanvas(f);
    JScrollPane sp = new JScrollPane(lc);
    content_pane.add(sp);
    I don't know how you are trying to implement this but you should be able to compare it to my implementation that works and, since you are such a clever guy, figure out what's going wrong.

  • How to remove SANE from the list of scanners that are shared in Preferences

    So I installed SANE for an old scanner, which is now replaced by a new Canon that is supported by native OSX and canon drivers. I therefore uninstalled SANE, the prefpane and all occurrences in the /Library and so on, however it is still being listed as an option in the scanners that can be shared i.e. in System Preferences>Sharing>Scanner sharing.
    How do I go about removing this, any hints?
    I also have this suspicion that this is the root of major issues I have accessing the scanner on my system some times, since I get "scanner communication errors" quite frequently, which are in turn resolved my plugging my scanner off and back on again...I did reinstall the software and drivers that came with the scanner to no avail.
    Thanks

    Hey, I used wonder as well where the information was stored regarding the scanner sharing and I think I found a solution. Here's what I found. Download an application that can edit .plist files, such as Martin Bresink's "Prefedit" or "PlistEdit Pro".
    Go to this location: ~/Library/Preferences/ByHost and find the file "com.apple.ImageCaptureExtension2.[xxxxxxxxxxxx].plist" where X's stands for your specific Ethernet/Airport Mac address.
    Edit the file using the application mentioned and remove your scanner/device (SANE) from the Devices list (remove the device number, ie. 0 or 1 or 2, etc). Save the file. If unable to save, change permissions to own the file, save it, and reset the permissions.
    That removed the shared scanner from my list of scanners in the sharing preference.
    Hope it works.

  • How to remove value from pop list in iProcurement Page

    I need to remove a value from POP list. How can I do this? Can I do this using Perosnalization?
    While creating requisition in the approvers page there are two buttons one is Approvers and another is Add_Attachments.
    When I click Add_Attachments button it will open another page there I need enter description and select category from the pop list and define attachment.
    In the category list I need to remove one value. How do i do this.Personalization links not available in this page.
    Please help guys...
    Thanks Advance
    Kumar

    Kumar,
    First you need to find out the data source for the category pop list. Based on that we can suggest how to achieve that requirement as there are many different ways of specifying the data source for a pop list.
    --Shiv                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • MSS 60.1.20: My Staff - Reporting: Trying to remove reports from tree list

    I am trying to remove (or I should say HIDE rather than remove) several of the SAP provided reports from the selection tree in the <b>MSS business package 60.1.20</b>. I checked the par file, and it appears that it relies on a function module, <b>HRWPC_RPT_FCODES_READ</b> which in turn calls <b>RH_MWB_FCODES_READ</b>, to build the tree structure based on function codes with scenario MSS0. I checked the IMG, and did not see any way of "hiding" these report/function codes through configuration. I assume I can delete the entries, but I do not want to do that. I would like to hide them. I noticed in the function module, that it refers to a hidden SAP structure <b>HRUSMWBFCH</b> that will exclude codes from the report tree.
    <b>Can anyone tell me how I should be hiding reports from the report tree?</b>

    I think I may have found the answer. In the IMG, you can go to Personnel Management -> Manager's Desktop -> Enhancement of Function Codes -> Define Structure of Function codes -> Change Arrangement of Function Codes.
    From here enter the scenario, higher level function code, and level number in the table. Be sure to check the box "function code hidden" to hide the item from the list.
    I had done this before, but the change did not appear within the portal. I had to actually refresh my browser cache by logging off and back on to the portal in order to see the changes.

  • Removing Items from Populated List-Box

    I have a drop down box populate a list box. (change: ListBox1.addItem(xfa.event.newText)) But I can add more then one of the same selection so how do I remove them from the ListBox. Upon click? somehow? I don't konw the lingo.

    There is a selectedIndex property that will give you back the index of the 1st item that is selected.
    Paul

  • HT201272 Removing apps from purchased list

    How do I remove apps from my app purchased list on my iphone?

    How do you remove 1) products from the "purchased" list; and 2) "the device" whether iPhone or iPad. 
    I just had to restore my iPad because the latest security update didn't install correctly; and all the old apps that I purchased re-appeared.
    STOP, for cryin-out-loud!

  • Removing name from contact list

    There is a group to which I send a general e mail a few times a month.  I have these contacts listed under a group name, so when I type in the group name under "To" all the names appear.  There is one person who  no longer wants to  receive the group notices, and I have completely removed her name and contact information from my address book, but when I type the group name in my "To" box her name still appears.  She has  a "hotmail" account, as do several other members of my group.  Is there anything else I can do, short of trying to remember to delete her name every time I send an e mail to this group?  

    When you get hold of one of those first line reps on the phone, it depends very much on just who happened to answer the call.  Some of them are very good.  Others not so much.  The only reason I found out about the memory for the To: line is that another poster had asked about it and I contacted Plaxo about it.  There was an exchange of emails and they explained how the thing works.
    Do you see "Forget" to the right of the first 3 o 4 names when that list comes up?  I had no idea what that was for.  It is the automated sorting software that the mail program uses to determine what addresses you use most often when typing in a given letter/word combination into the To: field.  It then ranks them in that order.  If you want it to change you click on Forget and it should remove it from the spot in the list.  At least that's what was explained to me.  But when I first asked them about it they tried to tell me it was something to do with my browser, which it is not.  So I sent them  a screen shot of it and then they said "oh wait----yeah------that thingy", and then gave me the correct information.
    They don't all know all the features of the mail  program or address book.

  • Removing Computers From Shared List?

    Here is the problem. In our work area we have three OS X 10.4 clients running as servers for projects, these computers have file sharing turned on. We just replaced many of our older G4 towers running Tiger with new Intel iMacs running Leopard. I only want to allow the remaining G4's to access the shared computers and remove them from showing up on the new iMacs in the Shared list within finder. Should I use ACLs for this, if so does anyone have an example, and if not then what is the solution? I can't believe Apple didn't think how annoying it is to have unwanted computers showing up in your finder, as it is we have dozens already listed.
    I do have access to all of the computer's IP addresses and MAC addresses if I can use those in an UNIX solution for ALLOW or DENY.

    You could disable Bonjour on the file sharing computers. That will stop them from advertising their file sharing services, and thus they won't show up in the Finder sidebar of the Leopard iMacs.
    You will still be able to access the file sharing services by direct connections through the "go" menu on any Mac. You will also need to manually configure any network printing associated with those Macs.
    To disable Bonjour, open Terminal and enter (on one line):
    $ sudo launchctl unload -w /System/Library/LaunchDaemons/ com.apple.mDNSResponder.plist
    To re-enable Bonjour:
    $ sudo launchctl load -w /System/Library/LaunchDaemons/ com.apple.mDNSResponder.plist

  • Unable to remove PAN from Bluetooth List

    I created a PAN (personal area network) using BT to my rMBP.  It works fine.  The problem is that I cannot remove the BT entry on the iPhone.  I can click on the name and then choose "Forget Device", it goes back to the list of devices and it is still there.  I have tried rebooting etc. but it won't go away.  Even if I have choosen "forget device" and then go to the rMBP and choose connect...it will.  On the rMBP the device can easily be deleted and readded at will.
    Is there a bug that is preventing this device from being removed or is there a trick to do it?

    Well, it is possible to re-inherit permissions from parent however, in our case, there is a valid business reason for breaking inheritance and while it is technically possible, that's not an option for us. 
    All we want to do is to remove inactive users from permissions list to reduce the number of unique permissions to avoid performance issues. However, we cannot do that due to the reason discussed above.

  • Friend remove me from contact list . Can he still ...

    If my friend remove or maybe block me from his contact list, if i send him a message can he still be able to see my message ?.
    Solved!
    Go to Solution.

    If they removed you from their contacts whether they receive your message or not depends on their privacy settings: They can set up to allow IMs from everyone or from contacts only.
    Follow the latest Skype Community News
    ↓ Did my reply answer your question? Accept it as a solution to help others, Thanks. ↓

  • Need to remove movie from video list

    Hi, I imported a movie into my iTUnes 6 video list and I want to remove it. I put it up there as a test and I even deleted the file but the thumbnail is still up there on teh screen with my other videos. THis isnt a major deal but jsut kind of annoying.
    I tried right-clicking and going up to the menu but i saw nothing abotu removing. Cut was grayed out so it wasnt an option. Is there a setting i need to change to give me manual control or something?
    Thanks.

    I'm having the same problem. I had some old Rocketboom.com videos on my hard drive that I didn't know I had. When I updated to iTunes 6.0 it added these videos to my iTunes library. The problem is that the files had a read-only attribute set. Windows/XP OS. Since the files have read-only permission, iTunes won't allow me to delete the files. So I deleted the videos manually from the OS, unfortunately iTunes still won't let me delete the video from iTunes, even though the videos no longer exist. UGH! iTunes does ask me if I want to "browse" and find the file. I tried pointing the library to a file that was deleteable, but iTunes still thinks the file is protected and won't let me delete the file. I'm stumped. I can't think of way to delete all these files from my iTunes video library. We may have to wait for the next update. I hope it's not too long in coming.

Maybe you are looking for

  • How do I move multiple emails from Inbox to a specific folder?

    I have left a lot of emails in my Inbox that should have been moved to specific folders. How do I move them in bulk to their specific folders other than moving each one individually. I have highlighted the messages concerned by searching and then sel

  • No Music On Apple TV's AirPlay

    My music will not play with AirPlay from my Apple TV when using my iPhone but my videos will, to get the music to play I have to reset the Apple TV and then it will play for a day or two... All my software is up to date on all devices.

  • Group by a fraction of time

    Hi, I have had a query that return the average of a value group by a date by hours. It works fine, but now I want to return the average by 15 minutes, or 2 hours; is it possible? That is my query, it group by hour: SELECT TRUNC(COL_DATE, 'HH24'), AVG

  • How to Hide Variants in Browser

    Hi,   I have a Query with 3 variables , say A,B and C. Both A and B are mandatory while C is optional. I have created 2 variants , variant x and y. variant x with variable values as: A with value 0 (show) B with value 1 (show) C with value 2 (hide) v

  • IMAQ USB Close leaves the camera open

    Hi, I hope somebody can help me with that one. I have a DirectShow compliant USB camera, that I got to work with the IMAQ USB VIs. I can acquire images, enumerate the devices and get the options dialog. However calling the IMAQ USB Close VI does seem