What container I can use for this?

Hello, I have this problem I am working with Swing and I want to make something like this: http://img340.imageshack.us/img340/3430/examplefx6.jpg
The properties that I need with this are:
*I can have 1 or 1000 'buttons', inside that container, If I have 1 I don't need scrols but if I have 30 I need the scrols so, the container must have this scrols.
*I will have 2 kind of butons 1 of 1 color and the others of other color. I need to order this buttons by the color, so the container must have a method to order this all time (becouse in run time appear new buttons).
Someone have an example or can help me telling me how can I do this and with what elements?
Thanks very much

The Java Tutorials: [How to Use Various Components|http://java.sun.com/docs/books/tutorial/uiswing/components/componentlist.html]
db

Similar Messages

  • My requirement is to update 3 valuesets daily based on data coming to my staging table. What is the API used for this and how to map any API to our staging table? I am totally new to oracle and apps. Please help. Thanks!

    My requirement is to update 3 valuesets daily based on data coming to my staging table. What is the API used for this and how to map any API to our staging table? I am totally new to oracle and apps. Please help. Thanks!

    Hi,
    You could use FND_FLEX_LOADER_APIS.UP_VALUE_SET_VALUE to upload them from staging table (I suppose you mean value set values...).
    You can find a sample scripts if you google around.
    What do you mean "how to map any API to our staging table" ?
    You should do at least the following mapping (which column(s) in the staging table will provide these information):
    - the 3 value sets name which you're going to update/upload (I suppose these are existing value sets or which have been already created)
    - the value set values and  description
    Try to start with something and if there is any issues the community could then help... but for the time being with the description of the problem you have provided, that's the best I can do...

  • What are the tables used for this Report

    hi all..
    i am a fresher for ABAP. i need the help.
    what r the tables used for this report.
    Reports provide pending order details according to Material wise and customer wise for particular month.
    thanks in advance
    RK.Ashokkumar.
    9994262112.

    hi
    good
    try with these tables,
    MARA
    KNA1
    thanks
    mrutyun^

  • What r the tables used for this report.

    hi all..
    i am a fresher for ABAP. i need the help.
    what r the tables used for this report.
    Reports provide pending order details according to Material wise and customer wise for particular month.
    thanks in advance
    RK.Ashokkumar.

    Hi Ashok,
    this is easy to do.
    Open Two SAP Screen with same user ID.
    Run SQL trace using ST05 transaction.Open ST05 transaction in One and make
    Trace on ,Run the report in another screen.
    Once report run is over.End the trace process and click on display trace in same ST05 transaction.There is a click button on ST05 Transaction screen to start trace
    process,End trace process and Display track process.
    The SQL trace will  give you all the table details which is used in that particular report.
    You have not mentioned about the report name so I have suggested this way.
    regards,nishant
    Please reward if this helps

  • I update my exchange server 2013 cu6 with exchange 2007 and my exchange 2013 db shutdown every 25 minute and recover. You have any hotfix I can use for this solution.

    I update my exchange server 2013 cu6 with exchange 2007 and my exchange 2013 db shutdown every 25 minute and recover. You have any hotfix I can use for this solution.

    Hi,
    From your description, you have deployed Microsoft Exchange Server 2013 and Microsoft Exchange Server 2007 in a co-existence environment. After you upgrade to CU6, databases unexpectedly shut down. In your case, here is a kb for your reference.
    Exchange Server 2013 databases unexpectedly fail over in a co-existence environment with Exchange Server 2007
    http://support2.microsoft.com/kb/2997209
    Hope this can be helpful to you.
    Best regards,
    Amy Wang
    TechNet Community Support

  • What  cable i can use for Thunderbolt port?

    what  cable i can use for Thunderbolt port?

    You can use a mini displayport cable as long as it is connected to a mini displayport peripheral.
    You can use a thunderbolt cable as long as it is connected to a thunderbolt peripheral.
    There are now thunderbolt cables available in the Apple store.

  • What are the algorithem and container to be used for this problem?

    Say I have a class with the following properties:
    groupMonth //String (jan,feb,mar�)
    accumulatedLasyYear //double
    accumulatedThisYear //double
    What will be the best container/algorithm to use for objects from the class above so I can have them sorted by month (I know it�s a string) AND GROUP the months together (and the accumulated as well)
    Example:
    Jan 4 8
    Feb 2 3
    Mar 5 2
    Jan 3 5
    Feb 4 2
    Mar 9 3
    The output should be:
    Jan 7 13 //(4+3, 8+5)
    Feb 6 5
    Mar 14 5
    Thanks for any thought�

    I'd suggest a java.util.Map<String, Set<WhateverClassYouveDefined>>. The keys are the year, the values are Sets containing all objects of that year. Iterate through your list of objects and group them into the right set using the map.
    Then I'd suggest looping through the keys to get each month's worth. Since you know what all the keys will be in advance, and there's only twelve of them, create an array of the twelve month strings. Loop through that array, and for each value grab the corresponding Set from the map.
    Then for each set you get, iterate through its contents, get the values, and add them.
    Then just print the month and the sums of values from the set, and go on to the next month.

  • H.264 What is the best use for this? H.264 Pros & Cons?

    I wanted to know since I am using DV what if any role can H.264 play in my workflow? What are the intended or best uses for this? What are H.264 pros and cons? Will it produce higher quality than DV?
    As always thanks in advance for reading and replying to my post,
    Sebastian

    It will not make DV look better, it is a MPEG4 based compression format for material to be delivered over the web. As such, encoding your material to it it is the last step in the editing process.
    x

  • YouVideo and Audio Downloader(what version I can use) for my Firefox 3.6.28, I'm running OSX 10.5.8

    I cant download youtube videos from my Firefox 3.6.28 version for my older PowerPC G5 Quad. I need to know the version of add-on, "YouVideo and Audio Downloader" that I use. I have never used this add-on before, not on my mac computer. I'm running OSX 10.5.8 and my version of Firefox version 3.6.28 is the only current version I can use. Appreciate any help!
    David Hill

    Go to the '''[https://addons.mozilla.org/en-US/firefox/ Mozilla Add-ons Web Page]''' {web link}
    (There’s a lot of good stuff here) and search for what you want.
    The site will see if your Firefox and system is compatible. for you.

  • Is Flash what I should be using for this simple animation?

    Hi I have a fairly simple question...
    Im working on a project which started with simple drawings of
    a particular animal. One of the drawings ive done involves the
    motion of part of this animal. The next portion of this assignment
    requires me to begin working digitally, and recreating these
    drawings precisely in Autocad.
    The problem is that I need essentially create a storyboard of
    images showing the motion of this animal in detail. So essentially
    im going to need 40+ frames showing this motion. It would be the
    equivalent of creating a flip book animation, but im going to be
    tiling all these frames next to eachother.
    Now as opposed to drawing 40+ separate images I had the idea
    to use Flash to produce these images for me.
    Heres essentially what I want to do:
    - Scan the drawings ive done
    - Reproduce them digitally through Autocad
    - Import these drawings into Flash (either as Autocad files
    or I can convert them to Illustrator files)
    - Basically have two images... 1 at the start of the motion
    and 1 at the end of the motion, and use flash tween's to
    extrapolate the motion in between.
    So ideally I could create 40 frames, with the 1st keyframe
    showing the beginning of the motion, the 40th showing the final
    stage of motion, and each frame in between providing me with the
    separate drawing that I need.
    Any thoughts or advice on how I can go about doing this? I
    havent used Flash in years so im still relatively unskilled with
    it...
    Thanks so much for your help!!

    I agree with Gibbah. Flash doesn't do magic with tweens. Of
    course, you can try. But if you're looking for NATURAL motion, then
    it needs to be drawn naturally-by hand.
    Sure, you can try it in Flash, but at best it will help you
    to tween every 4th drawing or so (so you'll still need 10 key
    drawings), and you'll spend ages tweaking the tweens, since (I
    repeat) Flash doesn't do magic with tweens, nor does any other
    software. You're talking of 4-legged animal movement, which I
    assume includes walking, which is a pretty complicated thing: 4
    legs, each double-jointed, plus the feet, then a body which bends,
    and the head and neck which move up and down. You'll have to
    separate each leg, the body and the head, at the very least, tween
    each of these, then go back and fix where the tweens come out all
    screwy.
    As for scanning, you can scan line artwork (preferably very
    clean lines done with pen or dark pencil) and then vectorize them
    directly in Flash. No need for the Autocad stage.
    To be honest, I think you'll find it faster to do the 40
    drawings individually. Check a good reference book such as the
    famous Eadweard Muybridge (yes, I spelled it correctly) photos of
    animal movements, and then you can rotoscope these (that is, trace
    them). You'll end up with less frustration and a gorgeous animation
    which looks natural, not machine-made. You could do the tracing
    directly in Flash as well, using the onion skin mode to help
    you.

  • What loop should I use for this?

    for (int j=0; j<8; j++) {
                                source.setBackground(EXIT_COLORS[j]);
                                if (j==7)
                                     break;
                                }[/code
    okay, what i'm trying to do here, is display a color object from an array EXIT_COLORS[], which has 8 colors in it. Now I only want to display all of these colors 8 times. right now I can only diplay the last color or the first...I tried double for loops, and it didn't seem to work either...if you have an idea please help                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

    sorry about that...I dont' need a break...I'm just trying different things to see if it'll work...
    see, the problem is, that every time my method runs i want one specific color to be displayed on a button, the next time it is ran, i want the next color in the array to be displayed...until the end of the array is reached, then I don't want any more to be displayed...But I can't figure out how to do this...
    here is my method:
         private void updateTiles() {     
                 // Now draw the tiles accordingly
            for (int r=0; r<size; r++) {
                 for (int c=0; c<size; c++) {
                      JButton aButton = view.getFloorTileButton(r*size + c);
                          if ((aButton.isSelected()) && (mode == EDIT_WALL_MODE)){
                               aButton.setBackground(Color.gray);
                      else if((aButton.isSelected()) && (mode == SELECT_EXITS_MODE)){
                          for (int j=0; j<8; j++){
                                aButton.setBackground(EXIT_COLORS[j]);
                       else if(mode == WAIT_MODE)
                           aButton.setBackground(Color.white);
                 // Set the text for the floor tile if it needs to be set
                     // Set the background color for the floor tile
            // Display the path if necessary (in Part C)
         }

  • What control i can use for Clob datatype in forms?

    Hi,
    Backend side
    I had created a table that having a column namely sql_text which hold the query string and defined as CLOB data type.
    On Form 6i
    Just i created a textitem(long) for the clob datatype field
    but it only hold very limited length of charter, i want to be more. Any other control is there?
    please guid me what should i want to do.
    kanish

    There is limited support for CLOBs in Forms. I guess you could read it in piecemeal with a procedure using the DBMS_LOB package

  • What SONG would you use for this slideshow?

    I'm working on a slideshow that basically chronicles the first year of my son's life for his 1st birthday. I've hit a creative road block and was wondering if anyone had any good ideas for a song that would fit perfectly to go along with this occassion.
    Thanks for your help = )

    John Lennon's "Beautiful Boy"

  • I would like to know what application I should use for this specific job.  I have 6 photos in Iphoto, and I would like to print them out on one piece of paper with the title and key words showing.  Please help.

    My objective is to print photos on on 8 1/2 x 11 sheets of paper (4 per page).  I want to include the photo title and the photo key words.
    I am not sure how to go about doing this.

    In iPhoto, create an album with the images you want to print.
    Once created, open the album and select all the images (type Command + A)
    Go to the menu View and make sure Titles and Keywords are checked.
    Go to the menu File > Print
    Choose Contact Sheet
    In the lower right corner press the customize button
    In the next window that opens, at the bottom of the window change the column slider to "2"
    You should be good to go. If OK, then press Print at the bottom right corner of the window.
    MtD
    Message was edited by: Meg The Dog to fix typo

  • What options we can have for monitoring SharePoint Farm till web part level?

    Dear All,
    I want to monitoring SharePoint Farms till web part level.
    2 Farms - SP 2010 & other SP 2013
    Farms are with NBL  - F5 & clustered database.
    Our client have enterprise licenses.
    Accordingly please suggest what tool I can use for monitoring, administrating, reporting, alerting etc either
    Microsoft's or  any third party. 
    I came to know about System Center will this monitor till web part level.
    Sumeet Singhal

    we are using the SCOM for our SharePoint monitoring and till now satisfied, we are not monitoring the webparts as we have tons of sites collections:
    but there are certain good companies which having the monitoring tools:
    Idera: http://www.idera.com/productssolutions/sharepoint/spdiagnosticmanager/productdetails#
    and this tool claims that they can monitor from end user's prospective. http://www.gsx.com/products/gsx-monitor-analyzer-for-sharepoint/
    Please remember to mark your question as answered &Vote helpful,if this solves/helps your problem. ****************************************************************************************** Thanks -WS MCITP(SharePoint 2010, 2013) Blog: http://wscheema.com/blog

Maybe you are looking for

  • BPC Script logic : WHEN condition on two members of the same dimension

    Hello experts, my particular need is the following one ; I have to write an initialization logic for a planning application but I have to match 2 conditions to perform the initialization : (dimensions are PERIOD / RATIO and few other not interesting

  • Apple loses hundreds of millions of dollars of potential online sales a year and is oblivious - Why?

    Apple loses hundreds of millions of dollars of potential online sales a year and is oblivious how is that? i hear the apple trolls saying?? Because paypal is not a payment option, only credit card (sorry i have used parts of the text in this post to

  • Creating a hyperlink to send text message

    I am creating a website in iweb.  My question is: Is it possible to create a hyper link that enables visitors to my site to send me a text message? Such as: CLICK HERE TO SEND A TEXT MESSAGE FOR A QUICKER RESPONSE The visitor would click and then hav

  • Idoc for change in purchase order document -outbound

    i have a situation, where i need to populate an idoc whenevr a new PO is created or whenevr a existing PO is changed(outbound). we can populate IDOC for a new PO using Message control(creating our own function module) but how can we handle the 2nd si

  • CS6 - The [ and ] keys stop resizing the brush

    I very recently installed CS6.  I have used Photoshop for years (CS5, CS3, CS, ...). Now under CS6 I find that periodically the [ and ] keys will not resize the brush.  I have to restart Photoshop to get them to work again. Anyone else seen this?  Is