Drop down list(JComboBox) - Bottom border is not visible for the first time

Drop down list(Combo-box) JComboBox - Bottom border is not visible for the first time i click on the arrow to drop the list down.
I am using jdk1.3.1_02.
Did any one face this issue.
Please let me know.
Thanks,
Sridhar.

I must be a little confused regarding your question.
You can simply change your code frame.setSize(200, 200); to frame.setSize(400, 400);When you say you are unable to see the border are you specifically talking about the border of the frame or the border of the combo box?
Lance

Similar Messages

  • JComboBox - Bottom border is not visible for the first time

    JComboBox - Bottom border is not visible for the first time i click on the arrow to drop the list down.
    This happens because the list when dropped down goes out of the frame.
    If have the increased the size of the Frame then i am able to see it,but i dont want to do this.
    I am using jdk1.3.1_02.
    Any Help would be great.
    Please find the code below.
    Thanks,
    Sridhar.
    //file: Lister.java
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class Lister {
        public static void main(String[] args) {
            JFrame frame = new JFrame("Lister v1.0");
            // create a combo box
            String [] items = { "uno", "due", "tre", "quattro", "cinque",
            "sei", "sette", "otto", "nove", "deici",
            "undici", "dodici" };
            JComboBox comboBox = new JComboBox(items);
            comboBox.setEditable(true);
            // put the controls the content pane
            Container c = frame.getContentPane( );
            JPanel comboPanel = new JPanel( );
            comboPanel.add(comboBox);
            c.add(comboPanel, BorderLayout.NORTH);
            c.setBackground(Color.white);
            comboBox.setBackground(Color.white);
            comboPanel.setBackground(Color.white);
            frame.setBackground(Color.white);
            frame.setResizable(false);
            frame.setSize(200, 200);
            frame.setDefaultCloseOperation( JFrame.EXIT_ON_CLOSE );
            frame.setVisible(true);
    }

    Hello,
    try this:JPanel comboPanel = new JPanel(new BorderLayout());Regards,
    Tim

  • New Mac Mini. Can not boot for the first time.

    Hello Mac to all the mini community. I recently buy a mac mini and it is not able to boot for the first time.
    The only progress is the apple logo, the grey screen and the loading circle.
    I was able to boot in safe mode by holding the power button and plug the power cord and i saw the following message:
    'Unable to find driver for this platform: \ACPS\.\n'0/sourcecache/.....
    debugger called <panic>
    can't perform kext scan: no kext summary
    OSD process name correspondling to current threat: unknown
    MAC OS Version:
    Not yet set
    Kernel Version:
    Orvin Kernetl Version 11.0.1....
    So can you please provide any feedback on how to reslove the issue?
    Thanks in advance

    A new Mac should already have OS X installed on it and boot right up .....?
    Mac Pro & Mac mini Fast Start: The new user's guide to the Mac
    You should be able to open the box, plug in the power cord, your Display, Keyboard and Mouse, push the power button and start using it.
    If not, then you need to return it or exchange it for one that works properly.

  • Page does not load for the first time

    Hi,
    When I enter the URL to load the page, it does not work, i.e I get page not found message. But when I refresh(F5) the page gets loaded. This is just not for the login page but all my report and form pages and this happens only for the first time I try to access in the day. I couldnt understand why it happens? Can someone help me to understand the problem I am facing?
    Thanks

    What does the appache log says?
    Your appache server home > Apache > Apache > logs > access_log.current_date
    Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://www.opal-consulting.de/training
    http://apex.oracle.com/pls/otn/f?p=31517:1
    -------------------------------------------------------------------

  • Pr Pro CC 2014 not startup (for the first time)

    Premiere CC 2014 wil not startup on my iMac. (for the first time)
    It shows:
    " Adobe Premiere Pro coult not find any capable video play modules. Please update your video display drivers and startup"
    My iMac:
    O.S. 10.9.5
    3,5 GHz i7
    32 GB 1600 MHz DDR3
    Video:
    NVIDIA Geforce GTX 780 m 4096 MB
    I foud a CUDA driver:
    version 6.5.18
    What to do?

    Hi,
    Please go this location on your computer:
    Click on Go on the top- Go to folder- Type ~/library then go to application folder- rename the adobe folder to old adobe
    go back to ~/library then go to preferences and rename the adobe folder to old adobe
    go to documents and rename the adobe folder to old adobe.
    After doing this you will loosed your synced settings and customized keyboard short cuts and effects if any.
    Thank You
    Arjun

  • Buttons are not displayed for the first time when drawImage method is used

    Hi
    In my swing window 2 buttons are there and when clicking these buttons, it should display an image . The two buttons are displayed at the first time and I can click on it . While clicking a button , the corresponding image is also got displayed. [ I am using drawImage() function for it] But what the problem is, then the two buttons are not displayed and it will be displayed again when the mouse moves along the position of these two buttons. And this problem occurs only at the first time..When they are on the window on a second time, they won't vanish when the image is displayed when clicking it. Is this the problem with paint() method?. I am using start() method also.
    Please help me!
    Thank You

    Hi
    This is not my exact program, that has a large no: of code. So I am putting here a sample one. One thing I would like to point out is that , I can see the buttons at the time of loading the applet and suddenly it vanishes and the image is drawn. Then if I move the mouse along the position of these buttons , they got displayed.
    import java.awt.*;
    import javax.swing.*;
    /*<applet code = MyClass width = 500 height = 500>
    </applet>
    public class MyClass extends JApplet
    Image img;
    JButton b1,b2;
    Container cp;
    Canvas1 cv;
    class Canvas1 extends JPanel
    public void paint(Graphics g)
    super.paint(g);
    g.setColor(Color.black);
    g.fillRect(0,0,500,500);
    img = getImage(getCodeBase(),"image1.jpeg");
    g.drawImage(img,20,20,this);
    public void start()
    cv = new Canvas1();
    cv.setBounds(0,0,500,500);
    cp.add(cv);
    public void init()
    setLayout(null);
    cp = getContentPane();
    b1 = new JButton("Button1");
    b1.setBounds(1,1,100,30);
    cp.add(b1);
    b2 = new JButton("Button2");
    b2.setBounds(200,1,100,30);
    cp.add(b2);
    It would be very helpful to me if you could fix the problem.
    Thank You.

  • I Chat will not start for the first time on my Macbook Pro after Migration

    Hi hope someone can help as this problem has stumped me. I cannot get ICHAT to even start having migrated all applications via Migration Assistant from a Macbook to a Macbook Pro. Everything else seems to work fine except when I run ICHAT and follow setup I get to a final screen which locks without showing a DONE button to complete the setup process! I have reloaded OS X, downloaded the OS X Combo OSand tried that, deleted the app and started again just in case but to no avail. Can anyone help? The application worked fine on the old Macbook but not on this machine.

    Hi,
    Welcome to the    Discussions
    Please tells us which version of iChat was moved to the new computer ?
    What OS is the new computer at otherwise ?
    I would guess you will have to do th Hard way
    http://discussions.apple.com/thread.jspa?threadID=1486891&tstart=0
    and include the Support folders in any Reinstall
    Please note the Post time I add to my post as it may be some time before I post again.
    10:58 PM Wednesday; September 2, 2009
    Please, if posting Logs, do not post any Log info after the line "Binary Images for iChat"

  • How to set a default value for a drop down list box and then apply cascading based on the default value in Infopath 2010.

    Hello Everyone
    I have two drop downs. Both are coming from look up fields from two lists. i want to set a default value(first list item) for the first drop down list box and then apply cascading based on the default value for the next drop down list box. I found one article(http://www.bizsupportonline.net/infopath2010/display-first-item-drop-down-list-box-infopath-2010.htm)
    where in i can set a default value but i can't apply cascading based on that default value. Any suggestions would be highly appreciated.
    Thanks
    Ramanjulu Naidu N

    Hey Ramanjulu,
    Take a look at the below article which I believe will answer your question.
    http://basquang.wordpress.com/2010/03/29/cascading-drop-down-list-in-sharepoint-2010-using-infopath-2010/
    Daniel Christian (MCTS)

  • My Mail app opens unprompted everytime i reboot or awake my macbook pro from sleep.  This was not an issue until i shut down my laptop for the first time in a while 2 days ago.  ANy ideas how to stop this?

    I recently shut down my MacBook Pro for the first time in a long time.  SInce then, everytime i reboot or awake my laptop from sleep, the Mail app opens unprompted causing my computer to slow down incredibly, and some apps to freeze.  I have no idea how to stop this or why it even started doing this.  Any ideas on how to get it to stop? Thanks!

    I have this problem too with my Macbook Air. Mail opens automatically every time my laptop sleeps. I actually just asked about this in my own thread. However, it is not causing my apps to freeze.

  • Multiple select list not retaining the value for the first time

    Hi,
    I have a 3 select list depends on each other. select_list1 -- > select_list2 --> multiselect3. I have use denes example to create them.
    For the first time when I select values from 1,2,3 and runs a report based on it, it works fine but *does not retain the selected value in multiselect3.
    for the second time submit the process, it retails value in multiselect3. Please tell me if you came across this issue before
    Here is the code.
    function get_select_list_xml_VL(pThis,pSelect,pSelect1,pSelect2){
    var l_Return = null;
    var l_Select = html_GetElement(pSelect);
    var l_Select1 = html_GetElement(pSelect1);
    var l_Select2 = html_GetElement(pSelect2);
    var get = new htmldb_Get(null,html_GetElement('pFlowId').value,
    'APPLICATION_PROCESS=Cascading_Select_List_VL',0);
    get.add('F660_CASCADING_TEST',l_Select1.value + '_' + pThis.value + '_' + l_Select2.value);
    alert(l_Select1.value + '_' + pThis.value + '_' + l_Select2.value);
    // alert(document.getElementById("F660_CASCADING_TEST").value);
    gReturn = get.get('XML');
    if(gReturn && l_Select ){
    var l_Count = gReturn.getElementsByTagName("option").length;
    l_Select.length = 0;
    for(var i=0;i<l_Count;i++){
    var l_Opt_Xml = gReturn.getElementsByTagName("option");
    appendToSelect(l_Select, l_Opt_Xml.getAttribute('value'),
    l_Opt_Xml.firstChild.nodeValue)
    get = null;
    function appendToSelect(pSelect, pValue, pContent) {
    var l_Opt = document.createElement("option");
    l_Opt.value = pValue;
    if(document.all){
    pSelect.options.add(l_Opt);
    l_Opt.innerText = pContent;
    }else{
    l_Opt.appendChild(document.createTextNode(pContent));
    pSelect.appendChild(l_Opt);

    Please ask any question if you dont understand about the problem.
    Thanks

  • After syncing a replacement iPad for the first time, my apps have a "waiting " on the screen I can access them but not on opening screen

    After syncing a replacement iPad for the first time, my apps now have a"waiting" message . I can still access from settings but not on the opening app page

    Try this  - Reset the iPad by holding down on the Sleep and Home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider - let go of the buttons. (This is equivalent to rebooting your computer.)
    Check your settings. The iPads have a small switch on the right edge. It can be used as a rotation lock to keep the screen from automatically reorienting itself as you move around, but you need to have the tablet’s settings configured properly. That same switch, right above the volume buttons, can also be set to function instead as a mute button to silence certain types of audio.
    If the switch is set to work as a mute button, you can change its purpose to “screen-rotation lock” by tapping the Settings icon on the home screen. On the Settings screen, tap General on the left side, and on the right side of the screen flick down to “Use Side Switch to.” Tap to select Lock Rotation or Mute to set the button’s function. Even if you set the side switch for your preferred use, you can still mute the Mini or lock the screen. Just double-click the Home button, and when the panel of apps appears along the bottom edge of the screen, flick the row from left to right with your finger. Tap the icon on the far left side of the row to either lock the iPad’s screen or mute the iPad’s alerts, notifications and sound effects. Music, podcasts and video are not muted unless you turn the volume all the way down.
    iPhone: Can't hear through the receiver or speakers
    http://support.apple.com/kb/ts1630http://support.apple.com/kb/ts1630
    http://www.atreks.com/app-no-sound-on-ipad-4-%E2%80%93-what-to-do/http://www.atreks.com/app-no-sound-on-ipad-4-%E2%80%93-what-to-do/
    To solve some sound problems, just follow these simple steps
    1. Go to Settings
    2. Tap on General
    3. Tap on Reset
    4. Tap on Reset All Settings
    You may need to delete the game app and redownload (you won't be charged).
     Cheers, Tom

  • I've lost a load of notes, but dont know why or how to get them back. I cant find the folder that is in my Yahoo account that people have suggested might be the location for the messages.  I recently signed into iCloud for the first time.

    I've lost a load of notes, but dont know why or how to get them back. I cant find the folder that is in my Yahoo account that people have suggested might be the location for the messages.  I recently signed into iCloud for the first time.  Any idea how to get the notes back?   I really dont want to lose them.

    It should keep asking for the password, because it's trying to check for purchases... As soon as you login, it will see you have pending downloads and create the downloads section on the left below Purchases under the Store section. Then it will start the music downloads there, as they will be listed one below the other.
    You could just try to check your account balance or view your account and that will trigger a password request too. You can just click on that and say that now iTunes keeps asking for the password and ask him to help you with that. Trick would be to interrupt him so that he carries on with another task after, so he doesn't notice the download. Or you carry on with email or browsing which you were "busy" with when iTunes interrupted you for the password (stupid iTunes)

  • How do I sign in to my iTunes for the first time? Everytime I try it says I have not used iTunes before, and to review my account information.

    How do I sign in to my iTunes for the first time? Everytime I try it says I have not used iTunes before, and to review my account information.

    It sounds like you are trying to create a new icloud account, not just logging into an existing account.  When you type in your Apple ID and get that error, it's because you are trying to create an account using the same ID that is already being used in another account.
    Go to Settings>iCloud and scroll to the bottom of the screen.  If you are logged in, press the Delete button, then try logging in with the existing ID.
    As for pics, the most secure way is to connect ipod to PC with USB and look at the Photos tab for your device in iTunes.  Using Photo Stream is another way, but it doesn't always work, depending on conditions.

  • I am using garage band for the first time.  I dragged and dropped a song from itunes into the program and I want to extend the length of the song by repeating the first 28 measures.  I can't figure it out.  Please help

    I am using garage band for the first time.  I dragged and dropped a song from itunes into the program and I want to extend the length of the song by repeating the first 28 measures.  I can't figure it out.  Please help.  I have spent several hours trying to figure it out on my own but have not been successful.  It seems like an easy task.  Can anyone help?

    dewin1or wrote:
    I want to extend the length of the song by repeating the first 28 measures.
    split the region at the 28th measure
    http://www.bulletsandbones.com/GB/GBFAQ.html#split
    (Let the page FULLY load. The link to your answer is at the top of your screen)
    then select only the first region and option-drag it to the end of the song

  • HT4623 In syncing my Iphone 5 for the first time, Facetime disappeared.  Although it shows up under apps in the settings menu, the application itself does not seem to be there.  What happened?  How can I fix this?

    In syncing my Iphone 5 for the first time, Facetime disappeared.  Although it shows up under apps in the settings menu, the application itself does not seem to be there.  What happened?  How can I fix this?

    There has never been a facetime app on the iphone.
    As the manual says, you access from contacts.  Pick a contact and scroll down to the facetime button

Maybe you are looking for