JButton easy question (i think)

in swing what is the name of a button that can also be a list. It is usually used in toolbar, such as the one in internet exlporer. You can chosse between a click on the button or a click on a little arrow that makes a menu appear.
(example : the "back" button of I.E.)
do you see what i mean ?
how to do one like that, in swing ?
thank you.
Sylvain.

...and if you click on the JComboBox, from the link I gave you above you will be taken to the Swing tutorial on "How to Use ComboBoxes", including ideas on how to customize the JComboBox. Maybe it will do what you want, maybe it won't, but since you replied to my first message only 5 minutes after I posted it, you obviously didn't take the time to read the tutorial to see what it could do for you.
The Swing tutorial is a great place to find information, use it.

Similar Messages

  • Quick Easy Question- I think...

    If you have 15 expressions, concatenated by Boolean OR's, how many of the expressions must be true for the entire thing to be true? My friend and I are arguing whether the answer is...
    a. at least 1
    b. all of them
    c. cannot be determined
    Thank you so much for your input. We are studying for an exam, trying to finish the practice questions. I appreciate any input and your time!! :-)

    Hi,
    Programming languages are created by humans, and therefore it is usually pretty easy to answer such questions. Think about the human language..
    Do you have a car or a house or a space ship?
    Any one who owns a car or a house would answer yes, even if they didn't own a space ship. That is, the whole expression evaluates to true if one of the statements is true.
    /Kaj

  • Very easy question, i think

    What's the best way to know if a certain row exist in a table given the primary key?
    The first i can think of it is as follow:
    ResultSet rs=statement.executeQuery("SELECT primary_key FROM tableX
    where primary_key=The_primary_key_i_look_for")
    boolean found=false;
    while (rs.next()) found=true
    return found
    Is there any other (efficient) way to do it?
    I use MS SQL Server 2000.
    Thanks

    Not much more efficent
    ResultSet rs=statement.executeQuery("SELECT primary_key FROM tableX
    where primary_key=The_primary_key_i_look_for")
    return rs.next();

  • Easy Questions, will think of others later

    Some deciding factors for me getting a nano:
    1. Will the camera connector work with the nano?
    2. Are there any speakers coming out soon that will play the ipod and charge it at the same time?
    3. Can the nano connect to the computer over USB 1.1?
    4. Can I charge nano over a firewire wall outlet adapter (I realize Apple says everything abot USB 2.0, but still wondering)?
    5. Come back, I'm gonna think of more quwations orobably tomorrow

    1. Will the camera connector work with the nano?
    No.
    3. Can the nano connect to the computer over USB 1.1?
    As long as it is a high-powered port.
    4. Can I charge nano over a firewire wall outlet adapter (I realize Apple says everything abot USB 2.0, but still wondering)?
    Yes. you can charge your nano if you have a firewire dock cable, but you cannot use it to communicate between the computer and iPod Nano.

  • A really easy question...I think.

    Hi everyone,
    I have turned the internet inside-out looking for a simple
    tutorial on this and so far I think they have all taken me kind of
    a long way around. Basically what I want is text/photos/buttons/
    inside the
    box that are
    "scrollable" without having to scroll left or right. My Flash
    document is 800x533px. I've tried doing the whole ScrollPane thing
    going through about 5 tutorials with different methods but it says
    I have to do New Symbol/Movie Clip and the so-called "stage" that
    you construct the movie on doesn't allow you to change dimentions
    as far as I know. I can only change the dimensions of the main
    Stage and the ScrollPane. I feel like this is a simple task so any
    help would be greatly appreciated. I apologize if this is a stupid
    question. Thanks everyone.
    ~Bryan

    kodemonki wrote:
    > Ok, I think this is a really easy question, but I've
    been looking for a while
    > online, in these forums, my site's code, and in my WACK
    book.
    >
    > How do you set a request time out for a specific page so
    that it can run for
    > an hour or so? I'm using 4.5 so I can't use cfsetting,
    but I'm pretty sure
    > I've seen this before.
    >
    > Please help, thanks!
    >
    I have not been able to dig this out, but I have a vague
    memory of there
    being an URL parameter you could pass to a page to allow it
    to run longer.

  • Easy Question: Illegal Start of Expression

    This is a ridiculously easy question... but I am having trouble with it...
    Anyway, here is the line of code that is giving me trouble:
    jButtons = {{jButton1, jButton5, jButton9, jButton13},
    {jButton2, jButton6, jButton10, jButton14},
    {jButton3, jButton7, jButton11, jButton15},
    {jButton4, jButton8, jButton12, jButton16}};
            That's it. jButton1 through jButton16 are all jButton objects (for a GUI). jButtons is an array (4 by 4) of jButton. All are global variables, the buttons are all initilized (in fact, that was the problem I had before, and why I need to put this here: otherwise I get a null pointer exception).
    Surprisingly, such a simple line of code causes TONS of errors to occur. To save space, {...} * 2 means that the exception occurs twice in a row, errors are separated by comma's.
    { Illegal Start of Expression, {Not a statement, ; required} * 2} * 4, Empty statement
    A similar statement (int[] test = {{1,2,3},{4,5,6}};) works perfectly fine.
    Please help, doing this will reduce the size of my code to about a third of the size of the code. And then I can laugh in the faces of those people who say that I write long, and in-efficient code! MWHAHAHAHAHAHA!!
    However, I will keep at it, and Murphy's Law states I will find a solution 10 seconds after posting. If I do, I will edit this post, and tell you guys the answer ;)
    [Edit]In case you are wondering... all my other code is correct. Here is the adjacent 3 methods:
    private void jButton16ActionPerformed(java.awt.event.ActionEvent evt) {
        ButtonClick(3,3);
        // Variables declaration - do not modify
        private javax.swing.JButton jButton1;
        private javax.swing.JButton jButton10;
        private javax.swing.JButton jButton11;
        private javax.swing.JButton jButton12;
        private javax.swing.JButton jButton13;
        private javax.swing.JButton jButton14;
        private javax.swing.JButton jButton15;
        private javax.swing.JButton jButton16;
        private javax.swing.JButton jButton17;
        private javax.swing.JButton jButton2;
        private javax.swing.JButton jButton3;
        private javax.swing.JButton jButton4;
        private javax.swing.JButton jButton5;
        private javax.swing.JButton jButton6;
        private javax.swing.JButton jButton7;
        private javax.swing.JButton jButton8;
        private javax.swing.JButton jButton9;
        private javax.swing.JLabel jLabel1;
        // End of variables declaration
         * @param args the command line arguments
        public static void main(String args[])
            jButtons = {{jButton1, jButton5, jButton9, jButton13},
    {jButton2, jButton6, jButton10, jButton14},
    {jButton3, jButton7, jButton11, jButton15},
    {jButton4, jButton8, jButton12, jButton16}};
            int[][] test = {{1,2,3},{4,5,6}};
            java.awt.EventQueue.invokeLater(new Runnable() {
                public void run() {
                    new GameWindow().setVisible(true);               
        String[] row1 = {"1", "5", "9", "13"};
        String[] row2 = {"2", "6", "10", "14"};
        String[] row3 = {"3", "7", "11", "15"};
        String[] row4 = {"4", "8", "12", ""};
        String[][] labels = {row1, row2, row3, row4};
        int blankX = 3;
        int blankY = 3;
        static javax.swing.JButton[][] jButtons;
        private void DisableAll()
            for (int looperX = 0; looperX < 4; looperX++)
                for (int looperY = 0; looperY < 4; looperY++)
                    jButtons[looperX][looperY].setEnabled(false); 
        Edited by: circularSquare on Oct 13, 2008 5:49 PM
    Edited by: circularSquare on Oct 13, 2008 5:52 PM

    You can only initialise an array like that when you declare it at the same time. Otherwise you have to do as suggested above.
    int[] numbers = {1,2,3,4}; //ok
    int[] numbers;
    numbers = {1,2,3,4}; // not ok

  • Easy question for the MODS

    Unlike more difficult questions like CRC problems, ps problems, etc, this is rather an easy question.
    The KT4V manual (page 3-8) lists the onboard NIC as a "boot device" option.  This "feature" is available in Bios 1.1, 1.2 but not available in Bios 1.4 and later.  
    Any reason why this feature was mutilated and not available anymore in the later bioses?
    Are there two different bioses for KT4V and KT4V-L?  If yes where can one find the bios for KT4V-L?
    I know this feature is not very popular with the majority of users, and I'm not trying to bust anyone's balls for removing un-popular features, but the "boot from NIC"  was one of the features/reasons why I got this mb, and I would rather use a much newer bios than 1.2 (for known reasons).
    Also, while on this topic, boot-from-usb (especially thumb drives) feature would also be greatly appreciated - I think it is also listed in the manual.
    TIA

    Hi,
    Quote
    Please suggest him to update the BIOS Ver1.9 which can support Boot from LAN and boot from USB devices.
    AMI BIOS can boot from the devices which support BIOS Boot specifications (BBS, you can refer to the attached file for the information).
    Email me, so I can send you the BIOS PDF.

  • Easy Questions . . .Please Answer

    Ok so i have the new Airport Express 802.11n jobbie and i have just managed to set it up with my BT homehub
    the green light is on and its working (i think)
    Ok so the reasons i bought it was.
    1) love the wireless printing idea
    2) love the wireless music idea
    3) to plug an Ethernet Voip phone into (the home hub is in another room)
    4) i got it for £52.95
    ok so i have connected it in client mode (i think) where all the computers (theres is 3 of them in our house) connect to the homehub and so does the airport.
    What i want to know is how do i stop the other 2 computers using the airtunes and the wireless printing features. Basically i want the airport to myself for my home office which it was bought for and don't want everyone else stealing the features.
    Thanks!

    +What i want to know is how do i stop the other 2 computers using the airtunes and the wireless printing features.+
    Easy Questions....But not easy answers
    Since you have configured the AirPort Express in the home office as a client on the network, it's going to be visible and accessible from any other devices on the network. There's no way to change this or prevent access to the office AirPort Express.
    If...you configure the office AirPort Express to "create a wireless network", and set it up with a different wireless network name and password, you could create a "private" network for yourself.
    Here, I am assuming that the stereo is connected to the office AirPort Express, is that correct?
    The downside to this approach is that you would not have internet access on this network.
    If...you connected the AirPort Express to the HomeHub using an ethernet connection, you might be able to access the internet from your "private" network. I say might because I don't know enough about the HomeHub to know whether this would be allowed. I think you should assume that it can't to keep expectations at a realistic level.

  • Easy question - how to increase number of recent files in menu?

    This is for CS5 if it matters.
    I'm an infrequent Illustrator user (at best) but I have what I hope is an easy question: I want to increase number of recent files showing in the menu.
    I can't find a preferece to set such as in PS and almost every other application on the face of the earth. I've tried to reset the preferences file (start Illustrator with ctrl-alt-shift held down) but I'm stuck at 4 files, which I assume is the anemic default option.
    Is there an easy way to do this that Adobe has hidded somewhere? As expected, it can't be found in the help, I can't find it on the forums, or even on the net, but I do know it can be done because I can see other installs showing lots of files in the list.
    thanks for any help.

    This might be because of a new feature that you can turn off for each object, and alltogether. When you create a new document at the bottom, make sure 'Align New Objects to Pixel Grid' is unchecked.  After you have created a new file, you can still go into the 'TRANSFORM' palette (SHIFT+8), use the little right top menu, and make sure 'Align New Objects to Pixel Grid' is unchecked. And if you want to get fancy with each object; you can select an object, and look at the 'TRANSFORM' palette at the bottom is a place to uncheck the 'Align to Pixel Grid' at your disposall.
    Before I found this, it ruined my week.
    http://www.kenwells.com

  • Easy question I'm sure. imac hard full (500gb) mostly from iphoto. no capacity left. what are my options? I've thought of an external drive of 1tb and then a 2nd external drive of 3tb to back up both???? please help.

    easy question I'm sure. imac hard full (500gb) mostly from iphoto. no capacity left. what are my options? I've thought of an external drive of 1tb and then a 2nd external drive of 3tb to back up both???? please help.

    Those are the options - more space is more space.
    Moving the iPhoto Library is simple:
    Make sure the drive is formatted Mac OS Extended (Journaled)
    1. Quit iPhoto
    2. Copy the iPhoto Library from your Pictures Folder to the External Disk.
    3. Hold down the option (or alt) key while launching iPhoto. From the resulting menu select 'Choose Library' and navigate to the new location. From that point on this will be the default location of your library.
    4. Test the library and when you're sure all is well, trash the one on your internal HD to free up space.
    Regards
    TD

  • Question: I think I made mistakes using several different id apple. How can I cancel all of them except the one I would like to maintain ?

    Question: I think I made mistakes using several different id apple. How can I cancel all of them except the one I would like to maintain ?

    From Here   http://support.apple.com/kb/HE37
    I have multiple Apple IDs. Is there a way for me to merge them into a single Apple ID?
    Apple IDs cannot be merged. You should use your preferred Apple ID from now on, but you can still access your purchased items such as music, movies, or software using your other Apple IDs.

  • Easy question about Reformatting

    Hello all,
    I am trying to reformat my HD after I have deleted Windows XP off of a partition. The reason for this is an upgrade to Vista and a larger allotment of HD space. My question is:
    I am using Backup v3.1.1. (v369) and I have FULL backup files of my Home folder, and my Music folder (as backup for my backup) for all my iTunes libraries. These are located on a portable HD. Are these the correct files to have backed up in order to have my MAC the way it was before I started the process? If so, then once the reformatting is complete, how do I get it all back onto my MAC permanently? Will all my apps and tweaks work as before?
    I am sure this is a simple question, however, I have never had to do this with a MAC, and I want to make sure I have all bases covered before I begin this. Any other comments or advice would be greatly appreciated.
    Thanks All!

    You call this an easy question ???
    Just messin with ya
    Your home folder is the most important folder containing your music, documents, preferences etc. but a lot is also stored in the system folder and library folder outside your home folder, if you want to be ensured of an exact copy of your current system the best way to go at this is to clone your system partition.
    The app i use for this is carbonCopyCloner
    http://www.bombich.com/software/ccc.html
    To add to this.. i've heard there is software for the mac that allows you to make adjustments to the size of your partitions without having to format the drive, i don't know the names of these products but i do know that it's very risky to use them, if you decide to use an app like that make sure you have proper backups of everything just in case it goes wrong.
    Message was edited by: Pr0digy V.

  • Easy question array

    Hello experts,
    i have an easy question. I need to store data in a 1D array so that the first data is written in the place of index 1 the second in index 2 aso.  I've tried it but somehow either i only had the last data in all indexes or only the last data in the last index. I am posting you a vi. I know where i should change it but i need a small idea oder change in the vi.
    Thank u for your help.

    Attachments:
    array_shift.vi ‏7 KB

    Please save your VI in ver 8.2 and then paste it on the forum so that i may help in making it into what you want. Without seeing the VI i am guessing that you have elements or 1-D arrays that you want to append into a single array.
    Its simple whether its the elements that you want to build into 1-d array or arrays that you want to make into a single array. Just use the build array function. Connect the input wires to the element and you'll have your 1-D array, provided you havent unchecked Concatenate Inputs in which case you will have a higher order array instead.
    Anyways kindly paste it in changed format so that i may help.
    Regards
    Asad Tirmizi
    Design Engineer
    Institute of Avionics and Aeronautics
    " Its never too late to be, what u want to be"
    Using LabVIEW 8.2

  • I have what is hopefully a quick and easy question. I kno...

    I have what is hopefully a quick and easy question. I know almost nothing about this stuff so go easy on me . All I need to do is find out if my DHCP is enabled. I'm having problems with my Xbox 360 and one of the possible problems is this DHCP thing. However I have no idea how to find the settings for my router on my computer. If it helps I have a Wirless model BEFW11S4. Thanks in advance for any help.

    You need to access your router to check if the DHCP is on.  To access the router open your browser and type in http://192.168.1.1 into the address field and hit enter.  That should open the routers log on screen and by default the user is left blank (some routers it is admin) and the password is abmin.  If you changed your routers password as you should for security reasons then use that password.  That will bring you to your routers user interface and on the main set up page should be your DHCP.
    Richard Aichner (Ikester)

  • Profit center field in Material MD - Easy question

    Hi Experts,
    I have an easy question..
    The material master data screen have a  tab 'General Plan', and there is  the field 'Profit Center'.  
    a) Is this field is filled, which is the impact in the system? 
    b) is this value (profit center) used in other area or calculation?
    c) What happend if this field is empty? 
    Thank you in advance!

    Hi,
    The path told in above reply is correct but making profit centre mandatory for only two plants is not possible.
    You can make it mandatory for specified Material Type or you can make it mandatory while doing selected Transaction Like MM01 or MM02 etc
    Regards,
    Amol

Maybe you are looking for

  • Number of Points used in FFT calcuation​s using Spectral Measuremen​ts

    Hi folks, I'm a pretty new user of labview (Ver 7.1) and I am trying to perform spectral analysis of power systems to ensure that they comply with stated standards. I'm using PXI-1002 system with PXI-6025E DAQ cards. I am able to get the analogue dat

  • Webdynpro :: Syntax error :: WDDOINIT method

    Hi Can anybody help me with an explanation for the same code used in two different programs one showing error. The code  which shows  is correct  is as  below ( The code is written in method WDDOINIT). Data : v_Element type ref to If_Wd_Context_Eleme

  • SNC Configuration Guide

    Hi, Can anyone send me the link for SAP SNC Config guide. Thanks, AD

  • How to save data in oracle9i in binary form and how to retrieve it

    Hello, Kindly tell me how can i save my data in binary form(UTF8) in oracle9i through developer6i Forms and how to retrieve it. Kindly tell me step by step procedure. Regards, Shahzaib

  • Why is my iphone 4s not receiving some calls

    my iphone 4s, purchased a few weeks ago, will not accept calls from a few people, cell and landline. a business i work with reported hearing a sound like a fax machine when they called. i use this phone for work, and clearly cannot have this be an is