JOptionPane partial display

From the following code the frame, it's title and one button display. The rest becomes visible if I minimise the DOS prompt panel.
I suspect an environment/installation problem but have no idea of where/how to check that out.
I have JRE1.4.2_03
J2SDK1.4.1_02
and am using JCreator Pro.
<code>
import javax.swing.*;
public class Learning4 {
     public static void main(String[] args) {
     Object[] options = {"Go ahead", "Cancel", "Re-enter"};
     int result = 0;
     try {
     result = JOptionPane.showOptionDialog(
          null,
          "checks complete! go ahead, cancel or re-enter?",
          "Confirmation",
          JOptionPane.DEFAULT_OPTION,
          JOptionPane.QUESTION_MESSAGE,
          null,
          options,
          options[0]);
     catch (Exception ex) {
          System.out.println (ex);
     System.exit(0);
</code>

Hi Heyers
Is it possible to resize the window ?
Can you try with Xming for exemple? What is the result then?

Similar Messages

  • Picture files only partially display after being published

    Recently .jpg and .png pictures I have created only partially display after being published.  I've tested it using Paint, Publisher and Gimp with mixed results. The pictures display correctly when I view them locally on my pc.
    Here are the test pictures I made in each program:
    http://www.bgchamber.net/images/GimpTest.jpg
    http://www.bgchamber.net/images/PublisherTest.jpg
    http://www.bgchamber.net/images/PaintTest.jpg
    The only pictures that fully display are those that were taken from a camera, but after I resized one in paint, it also didn't display properly. My question really is, is this an issue with Microsoft Expression Web or with the server hosting the files?

    Publisher is NOT a photo editing program. Neither is Word. Nor is Paint.
    You need a real, and simple, photo editing program. Paint.NET is a good, free one. I find GIMP cumbersome (but it's batch processing is handy). And your graphics aren't being created and saved properly. For example, the events.html page has graphics on it
    that total well over 3 MegaBytes! Pity the poor soul with a wireless connection. The graphics on the events.html page are largely illegible, and as such serve no real purpose (and make the site look bad).
    Let's take an example...on the home page gallery is a graphic for the 2015 Chamber Scholarship. It's displayed at 525 x 340 pixels, yet the image sitting on the server (and which must be downloaded by the visitor) is 1275 x 825 pixels. So you have an unnecessarily
    large graphic taking space on the server, having to download to the visitor's computer at full size, and then be shrunk by the browser to only 17% of the original area. That file should be created and saved in a proper graphics program at the final size you
    plan to use (and in this case, use PNG format). The larger file takes at least 5 times the storage space on the server as a properly sized file (and takes 5 times as long to download and upload).
    I've superimposed the display size on top of the full size and shrunk them down to display here in the forum. See below.
    All the graphics that I have checked on your site have the same problem, and if your site has been up a long time and you haven't cleaned out the old files on the server, you may have run out of server space, which would corrupt the new files.
    Smaller files will also upload faster and more reliably. Plus--browsers stink at resizing graphics. Do that in a proper graphics program to get the best quality.
    Use JPG for photos, GIF for hard-edge graphics with few colors and no gradations/shading, and PGN for hard-edge graphics with full color and gradations/shading. And make sure you are saving the images in the proper version of the format (RGB for web).
    A horse walks into a bar. The bartender asks "Why the long face?"
    "Because I was born into servitude and when I die my hooves will be used to make glue."
    It was at this point that the bartender realized he would not be getting a tip.

  • JOptionPane.showConfirmDialog() displays weird msg

    I use showConfirmDialog() to request whether or not the program should continue when SUBMIT button is pressed. The first time the button is pressed there are 2 messages displayed in the dialog box: a fake one followed by the real one. This behaviour is not observed if the button is pressed a second time.
    This is only noticeable if I connect to the server where it runs using X windows. The same code run on either a LINUX PC or connecting to server using telnet doesn't show this behaviour.
    Partial code
    public void actionPerformed(ActionEvent ae) {
    String msg = new String("Do you really want to submit this list?");
    String dtitle = new String("Pls. choose one :)");
    int msgType = JOptionPane.QUESTION_MESSAGE;
    int optionType = JOptionPane.YES_NO_OPTION;
    if (ae.getSource() instanceof JButton && ae.getActionCommand().equals("SUBMIT")) {
    jbtn.setBackground(Color.red);
    // Confirm dialog
    int r = JOptionPane.showConfirmDialog((Component)this,msg,dtitle,optionType,msgType,null);
    Thks

    Hi m8, thanks got that working......sometimes you just cant see whats stareing you in the face!!
    Just one more thing...i have used your code to display the confirmdialog...but is there any way i
    can set the default focus to the textfield when the JOptionPane is made?
    Thanks again

  • Partial display of large Alert message - SAP CRM 2007.

    Hi,
    I am using SAP CRM 2007.
    I created a simple alert with 150 char message in IC which will be triggered on confirmation of an account.
    The alert gets displayed on the IC agent screen but he can only see partial message of the alert.
    Only the message that can come in the first line gets displayed. There is no option to scroll to see the remaining message.
    Please suggest how can user see the complete alert message. Can the alert text area be controlled by some customization?
    Regards,
    Akanksha

    Hi Antonio.
    I'm wondering if/how you resolved this issue.  I am currently facing the same problem on an upgrade to EHP1 for CRM 7.
    Thanks,
    //Eric
    Edited by: Eric Roholt on Sep 9, 2011 9:03 PM

  • Partial display of OUI - Sun OS 10

    Hi all!
    I've got a problem with the OUI and the Display settings when trying to install Oracle 10.2.0.1 on Sun OS 10. The screen of OUI shows only partially, and the x-window is super-wide.
    I've gone through alle the requirement tests successfully and the xclock utility shows perfectly when loging in with oracle user. I might add that I'm using Cygwin X as a console to log on to my server.
    When starting runInstaller I get all passes on the installer requirements. Though I get an warning stating; " Warning: Cannot convert string "-monotype-arial-regular-r-normal---140---p--iso8859-15" to type FontStruct".
    Then the window with the screen of OUI opens but only shows partially. The normal background is replaced with a dark grey one.
    Does anyone know how to correctly configure Xorg or is this a problem relating to Cygwin?
    Thanks!
    "Heyers"

    Hi Heyers
    Is it possible to resize the window ?
    Can you try with Xming for exemple? What is the result then?

  • Strange display behavior - partial display of text

    I scanned this forum and couldn't find this one anywhere -- My 15" Titanium Powerbook screen just went crazy after installing the latest security update.
    By crazy, I mean that major portions of the menu bar aren't there now (but the screen isn't black, the text is just partially missing. If I open system preferences the same thing happens -- some of the text is just missing.
    I ran repair permissions and check disk from the install cd. Had lots of permissions errors but that didn't fix this problem. Sound like software versus hardware?
    Any ideas before I reinstall the OS?
    15" TiBook   Mac OS X (10.3.9)  

    Joyful,Welcome to Apple Discussions, Things I would try (and I did see something similar on my mother's iBook the other day):
    Reset the PRAM (hold Apple, Option, P and R keys during start-up. Once you've heard the fifth startup chime in a row let go and allow the machine to boot as normal.
    Check that the Zoom option in System Preferences > Universal Access isn't enabled (I can't remember the keystrokes off the top of my head but you wouldn't be the first to hit them by accident.)
    Try toggling the display resolution System Prefs > Displays
    Delete the file com.apple.finder.plist
    regards
    mrtotes

  • Problem with data in Adobe Forms - partially displayed(first pade only)

    Hi all .
    I only start work  with Adobe Forms so I need your help .
    My form includes   table with lot of data .
    My problems are:
    1.only the first page with data is displayed and I don't see the rest  of data .
           What I need to define  for get all my data printed ?
    2. How can I print total at end of  table ?
                 Regards Helena .

    select the subform where your table body present , there you choose the pallete object inside you need to set.
    if you still have doubts see these blogs
    Adobe Forms Using:  Nested Table, Text Module & providing the functionality of Page Total & Grand Total
    Displaying Internal Table in Adobe Form

  • JFrame With Two JTables Accessing Database;  Last Table Partial Display

    I have an application that calls a JFrame in a database application. The JFrame contains a number of panels, two of which are dedicated to JTables.
    The first JTable,upon completion of a resultset, displays master records for the application. Immediately upon completion, the second JTable should be displaying details related to the selected master (on first retrieval, the second Jtable should reflect details related to the first displayed record in the first JTable).
    The first JTable displays correctly. The second only displays one record, even though thru inserted System.out.println statements, I can track the number of rows that should be there.
    The first JTable fills and then calls a function filldetl(). This is the code:
    +
    private void filldetl() {
    try
    details.setRowCount(0);
    Statement t = conn.createStatement();
    ResultSet dt; // for look up
    dt = t.executeQuery("select sku,skuqty,skuunit,value," +
    "skucurrency,skuorigin,htc from rcvrdtl " +
    "WHERE invoiceno = '" + +invno< </em>
    "' ORDER BY invoiceno;");
    dd = dt.getMetaData();
    *int< </strong>columnct = dd.getColumnCount();
    System.+out+.println("Columns found = " + String.+valueOf+(columnct));
    // Set up variable dbrowcount to find number of rows in resultset.
    int dbrowcount = 0;
    while *true*==dt.next()) {
    dbrowcount++;
    rowx = *new< </strong>Vector(columnct);
    datax = new Vector();
    for *int< </strong>x = 1; x <= columnct; x++) {
    rowx.addElement(dt.getObject(x));
    datax.addElement(rowx);
    int rowNumx = dt.getRow();
    System.+out+.println("Rows Found = " + String.+valueOf+(dbrowcount));
    System.+out+.println("Located At Row " + String.+valueOf+(rowNumx));
    for *int< </strong>x = 0; x < datax.size(); x++) {
    details.addRow((Vector)datax.elementAt(x));
    jTable1.revalidate();
    jTable1.setRowSelectionInterval(0,0);
    catch (Exception et) {
    System.+out+.println(et.getMessage());
    et.printStackTrace();
    +
    Can anyone tell me why I am only getting one record displayed in the second JTable, even though there are more? the variable dbrowcount keeps track of how many detail records there should be. And I have verified the counts by checking records in the database.
    What am I doing wrong?
    Any help appreciated....
    Thanks
    VazCro

    This is the code as it should be. I don't know why it was trashed:
         private void filldetl() {
              try {
                   details.setRowCount(0);
                   Statement t = conn.createStatement();
                   ResultSet dt; // for look up
                   dt = t.executeQuery("select sku,skuqty,skuunit,value," +
                             "skucurrency,skuorigin,htc from rcvrdtl " +
                        "WHERE invoiceno = '" + invno +
                        "' ORDER BY invoiceno;");     
                   dd = dt.getMetaData();
                   int columnct = dd.getColumnCount();
                   System.out.println("Columns found = " + String.valueOf(columnct));
                   // Set up variable dbrowcount to find number of rows in resultset.
                   int dbrowcount = 0;
                   while (true==dt.next()) {
                        dbrowcount++;                
                        rowx = new Vector(columnct);
                        datax = new Vector();
                        for (int x = 1; x <= columnct; x++) {
                             rowx.addElement(dt.getObject(x));
                        datax.addElement(rowx);
                   int rowNumx = dt.getRow();
                   System.out.println("Rows Found = " + String.valueOf(dbrowcount));
                   System.out.println("Located At Row " + String.valueOf(rowNumx));
                   for (int x = 0; x < datax.size(); x++) {
                        details.addRow((Vector)datax.elementAt(x));
              jTable1.revalidate();
                   jTable1.setRowSelectionInterval(0,0);
              catch (Exception et) {
                   System.out.println(et.getMessage());
                   et.printStackTrace();
    I am calculating how many records were found for the second JTable and going thru the routines to load the second JTable. However, only one record appears.
    Thanks for your help.
    VazCro

  • Partial Display of own website with Firefox, but ok with I.E.

    Hello,
    I have a website that has always displayed well in Firefox and IE.
    I have recently gone on the internet at home, but find that in Firefox, my website only shows four of the navigation buttons (there are twelve or so). The site loads perfectly on other pc's...what is missing on my Firefox please?

    Can you attach a screenshot?
    *http://en.wikipedia.org/wiki/Screenshot
    Use a compressed image type like PNG or JPG to save the screenshot and make sure that you do not exceed the maximum file size (1 MB).
    Clear the cache and the cookies from sites that cause problems.
    "Clear the Cache":
    * Tools > Options > Advanced > Network > Offline Storage (Cache): "Clear Now"
    "Remove Cookies" from sites causing problems:
    * Tools > Options > Privacy > Cookies: "Show Cookies"
    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
    *Don't make any changes on the Safe mode start window.
    *https://support.mozilla.com/kb/Safe+Mode
    *http://kb.mozillazine.org/Websites_look_wrong

  • Photos from iPhoto are only partially displayed

    Trying to create a slideshow of photos from an Album in iPhoto '08. No need for other layout elements, just want the photos. When I drag a photo from the iPhoto Album into Keynote, it appears as a new slide (using light table view) as expected. But only part of the photo appears. If I go into the individual slide I can select the photo and use the corner handles to resize it to be smaller than the slide. But there are 236 photos I need to put into this show! How can I get Keynote to put each whole photo on the slide? I don't care if they aren't the same shape as the slide and there is empty space left, I just want the whole photo! I tried going into Preferences and checking "Reduced placed images to fit on slides" but that doesn't make any difference. It IS checked and the photos still don't fit. All photos are JPG's.

    There's a bug in iMovie 6 that applies a red tint when importing BMP images — those with the .bmp extension. It occurs only when importing with the Ken Burns checkbox turned ON.
    Save the BMP image as a JPEG before importing to iMovie and all should be fine.
    iPhoto lets you Export the photo to another copy that uses the JPEG format.
    Karl

  • Display JOptionPane dialob box is displayed in the corners of the screen

    Hi,
    Iam using JOptionPane to display warning messages and error messages in the application.When i started testing my application in Win 98 and Windows XP the JOptionPane Dialog box is displayed in the bottom corners of the screen.is it possible to display the JOptionPane window in a particular position by setting the cordinates?
    Anyone has any idea?
    Pls Reply,
    Ravi

    If you use the "show" methods to display one of the default dialogs, providing a component should center the dialog on that component if it is visible.
    If you are constructing a JOptionPane, you can use setLocationRelativeTo to center the dialog on a component or your app.
    Or if you really want to play with raw numbers, use setLocation

  • Using JOptionPane to exit program & Using toString method

    Hello,
    In my program I have to use a toString method below
    public String toString(Hw1NCBEmployee[] e)
            String returnMe = String.format(getStoreName() + "\n" + getStoreAddress() + "\n" + getCityState() +  "\nYou have " + getEmpCount() + "employee(s)");
            return returnMe;
    }Now, at first, when I initially tested my code, it was working just fine, printing out the right way
    Point is -- now that Im practically finished with my program, and am going back and running it - calling the toString method gives me the address rather than the information . . . Can anyone help me with this issue??
    Also, Im using JOptionPane to display everything, but -- at first, it worked fine, then (around the same time I started having the above problem) it stopped exiting the do-while loop:
    while(go)
                 int option = JOptionPane.showConfirmDialog(null, "Do you want to enter employee information?", "Welcome!", JOptionPane.YES_NO_OPTION);
                     if(option == JOptionPane.NO_OPTION)
                        go = false;  //exit loop
            

    ncjb wrote:
    well, for the toString - I have to print out the info inside the array -- am I right in thinking that the only way to do this is to pass in the array ??If the array is part of the class then there is no need to pass it as a parameter. If it is being passed in from outside the class then I have to question your design. Why should class X being formatting data that is not a representation of itself?
    and i have 2 other files that go with this program . . . I just want to know if there is a way to make sure that when the user presses the NO option, it will exit the loop -- the piece of code you see if apart of an entire method (not long) -- do you want me to include this??You read that link I provided REAL quick!

  • Some Language fonts no longer display correctly

    I have a few language fonts, specifically Russian and Church Slavonic, which I have been using for years without any problem. They still partially display correctly, but there are some characters which display a different character now. For instance, in the Church Slavonic font, there are many characters with diacritical markings, where those accents etc. are typed after the character and backed up over the character. They are not displaying correctly anymore. Plain Russian fonts as well have certain characters that aren't even recognized now. I am using PopChar Pro, and though they display correctly in its list, when I click on them, the wrong character is display in the text. Does this have something to do with Unicode? I use these fonts mostly in MS Word and Finale.
    Thanks for any help on this topic.
    Sima

    Yes, it is true that these fonts do not display
    correctly in Finale.
    Last I checked Finale could not do Unicode, so it may be another problem. If it can do Unicode, you should be able to use Lucida Grande and the Russian keyboard layout. If not, you should be able to use a font with CY after the name with the Russian keyboard. You might want to ask in the Finale forums:
    http://forum.makemusic.com/
    Is there any sort of application
    that can fix old fonts to be Unicode compatible?
    It would be very complex I think and require an expensive font editing program like FontLab.
    On another note, are you aware of whether Unicode
    includes Church Slavonic (I suppose it would be in
    the same category as Old Slavonic)?
    Yes, it does. Just look at the Cyrillic block in Character Palette. Or here:
    http://www.unicode.org/charts/PDF/U0400.pdf
    However you won't find all glyph variations -- that will depend on the font. For an example of Slavonic Unicode you can see the last item on this page:
    http://homepage.mac.com/thgewecke/lp.html

  • Facebook is not displaying correctly on my browser anymore: Safari v.5.1.7., Mac OSX v. 10.6.8. neewd helpre

    I have an iMac (Intel mid 2011)  21.5",  Facebook used to work OK. After updating Safari to Ver. 5.1.7. (6534.57.2), Facebook is not displaying correctly, I get a white unformated screen and a partial display of the information shows on the left side of screen (10%). I'm using OSX Ver. 10.6.8..  Facebook works OK on my iPhone and others PCs.
    I can't seem to find any information about how fix this problem. Is it a Safary problem?, or a Facebook issue?, or is it a glitch of OSX, maybe acombination of all these.
    Does anybody out there has the knowledge or the information to fix this problem?
    I need to fix this problem ASAP. I haven had any problems or issues with my iMac before . I'm new to MAC PCs and the reason I switched from Windows to Mac, was the stability of the SYS and reliability of the hardware. (no need to say that it is a superior OS and its QUALITY stuff.)
    A response would be appreciated, Thank you: C.E.O.

    I found the solution to my problem: I installed the Super facebook App. AKA (Social fixer)

  • IBM Rational Team Concert Project Plans not displaying correctly on Firefox 7

    Rational Team Concert (RTC) is a project management tool from IBM. Since installing Firefox V7.0 on 9/27/11, several columns of data are completely or partially displaying blank. If I go back to Internet Explorer the data appears properly (but IE is too slow to use). Also my peers who are still using Firefox 6.0.2 are not having any problems. I have restarted Firefox 7 without add-ons and also restarted with a new profile as suggested in V7.0 troubleshooting tips but have the same results
    RTC is licensed from IBM but runs on a local server.

    I think RTC only officially supports Firefox 3.6, but I may have found the wrong system requirements page... here are some random thoughts.
    (1)
    Do you know whether RTC uses anything other than ordinary HTML/CSS/JavaScript to construct pages, such as a Java applet or an add-on? You can check for any blocked add-ons here:
    orange Firefox button ''or'' Tools menu > Add-ons
    On the left click Extensions, then scroll through the active ones down to any grayed-out ones.
    (2)
    Are the blank columns usually filled in dynamically after the page loads (i.e., using AJAX techniques)?
    You could check for script errors. These don't usually allow you to solve the problem for yourself, but might give rise to some ideas for workarounds.
    To open Firefox's error console, press Ctrl+Shift+j and click the Clear button. Then reload the page and check for errors (you can use the Error button to filter out all the other noise, such as style warnings). Anything notable?
    (3)
    To see whether this problem is caused by the HTML5 parser, you can turn that off. Please save any unfinished work first.
    (i) In a new tab, type or paste '''about:config''' in the address bar and press Enter. Click the button promising to be careful.
    (ii) In the filter box, type or paste '''html5''' and pause while the list is filtered
    (iii) Double-click '''html5.parser.enable''' to toggle it to false (it should turn bold).
    Then return to the problem page and reload. Does that make any difference?

Maybe you are looking for

  • Business Catalyst Email Set-Up

    Hello all, I apologize in advance as I am new to setting this sort of thing up but I just launch my very first Muse site and am running into the issue of getting my clients emails set-up properly. For instance, where do I go about setting up the new

  • Attempting to open bookmarks, hangs Safari

    Strange issue. Safari runs fine until I attempt to open the bookmarks. Safari will sit with spinning ball until I force quit. I can add new bookmarks. When I found the bookmarks folder, I can launch to all of the sites by double clicking the entry. I

  • Upon clicking Firefox icon-Firefox page does not open

    Without any apparent reason, upon clicking Firefox icons, Firefox does not open. Appears the sign asking to wait on the screen, and the graphics for the icon being "pressed" but the page does not appear. Thanks!

  • Transaction Monitor u2013 Services Processes into BI

    Hello Experts, I'm wondering if it is possible to get tickets information from Solution Manager and have some statistics in BI. For instance the average time of ticket resolution, number of tickets per team/person/month, etc, etc At this moment Iu201

  • Event ID 1053 source GroupPolicy error code 1722

    Hi, I have one DC in my domain. It comes some errors every day The event ID is 1053. source: GroupPolicy The processing of Group Policy failed. Windows could not resolve the user name. This could be caused by one of more of the following: a) Name Res