JSplitPane not displaying on screen

Someone please help me. Stuck on this problem for 3 days now but just cannot see the answer. JSplitPane just does not display on screen. When I call it from within the class xer it appears as a little rectangle of about 2mm by 4 mm insize. When I call it from within actionPerformed I just do not see anything at all. I need to call it from actionPerformed as a final solution. Please give the answer based on it being called from actionPerformed. Thanks.
Peter Loo
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import javax.swing.table.*;
import javax.swing.tree.*;
import java.util.*;
import javax.swing.event.*;
import java.lang.*;
public class xer extends JFrame
JPanel erPanel;
Container contentPane;
public xer()
contentPane = getContentPane();
erPanel = new JPanel();
contentPane.add(erPanel);
// Menu
ErMenu erMenu = new ErMenu(contentPane, erPanel);
setJMenuBar (erMenu.getErMenuBar());
// If I call Define Report here I have small JSplitPane about 2mm by 4 mm size
new DefineReport(contentPane, erPanel);
pack();
setExtendedState(Frame.MAXIMIZED_BOTH);
setDefaultCloseOperation (DISPOSE_ON_CLOSE);
setVisible(true);
public static void main (String args[])
new xer();
* Processing for menu
class ErMenu implements ActionListener
Container contentPane;
JPanel erPanel;
JMenuBar erMenuBar;
JMenu fileMenu;
JMenu reportMenu;
JMenuItem defineMenuItem;
JMenuItem runMenuItem;
DefineReport defineReport;
StringBuffer currentScreen;
* Create menu & menubar
public ErMenu (Container contentPane, JPanel erPanel)
this.contentPane = contentPane;
this.erPanel = erPanel;
// Menu bar
erMenuBar = new JMenuBar ();
// Menu reports
reportMenu = new JMenu (" Report ");
defineMenuItem = new JMenuItem ("Define Report");
defineMenuItem.setActionCommand ("MenuItemDefineReport");
defineMenuItem.addActionListener (this);
reportMenu.add(defineMenuItem);
runMenuItem = new JMenuItem ("Run Report");
runMenuItem.setActionCommand ("MenuItemRunReport");
runMenuItem.addActionListener (this);
reportMenu.add (runMenuItem);
erMenuBar.add (reportMenu);
public JMenuBar getErMenuBar()
return erMenuBar;
public void actionPerformed (ActionEvent e)
String menuaction = e.getActionCommand();
if (menuaction.compareTo ("MenuItemDefineReport") == 0)
// If I call Define Report here I do not get the JSplitPane
defineReport = new DefineReport(this.contentPane, this.erPanel);
* Main processing for Defining a report
class DefineReport
JPanel erPanel;
Container contentPane;
JSplitPane erJSplitPane;
public DefineReport (Container contentPane, JPanel erPanel)
this.erPanel = erPanel;
this.contentPane = contentPane;
// this.contentPane.invalidate();
// this.contentPane.removeAll();
// this.erPanel.invalidate();
// this.erPanel.removeAll();
erJSplitPane = setupErJSplitPane ();
erPanel.add (erJSplitPane);
// contentPane.add(erPanel);
contentPane.setVisible(true);
} // End of constructor DefineReport
public JSplitPane setupErJSplitPane()
JScrollPane listScrollPane;
JScrollPane treeScrollPane;
listScrollPane = new JScrollPane ();
treeScrollPane = new JScrollPane ();
erJSplitPane = new JSplitPane (JSplitPane.HORIZONTAL_SPLIT,
listScrollPane, treeScrollPane);
erJSplitPane.setOneTouchExpandable (true);
erJSplitPane.setDividerLocation (50);
Dimension minSize = new Dimension (50,50);
listScrollPane.setMinimumSize (minSize);
treeScrollPane.setMinimumSize (minSize);
listScrollPane.setBackground(Color.red);
listScrollPane.setForeground(Color.red);
treeScrollPane.setBackground(Color.blue);
treeScrollPane.setForeground(Color.blue);
return erJSplitPane;
} // End of class DefineReport

I have read all the tutorials that I can find and it
seems (at least to me) that I have done everything
necessary. I am really quite new to Java.
Peter LooIts called a learning curve dear, we've all been there

Similar Messages

  • Acrobat Pro XI v.11.0.06 - PDF created by Microstation Print Organizer - Windows 7 -  Printing shaded squares on top of shaded building and not displayed on screen, only displays on paper when printing

    I have attached an image of the sheet to show the areas that are shaded. The building is supposed to be shaded, however the two squares within are not. These squares are not in the file converted to pdf and do not display on screen when viewing the pdf. Also there are several sheets in the set with shaded buildings and only two of the buildings have this issue. Any help with this would be greatly appreciated.

    I'm seeing this same problem happen on multiple platforms here in the office. Every time this happens, the screen view does not show these shapes. I have been seeing the same problem except linework will be missing in one of these square shapes as well. Please give feedback if anyone knows what causes this problem. One thing to note -  these squares are the size and placement of a selection box within acrobat.  For example, if i use the selection tool and click near where the problem printed out, the shaded area that gets selected is in the exact same spot and is the exact size.@

  • I connect my Macbook 13" to my thunderbolt to display on my HD television but it keeps asking for a KeyChain password for "user-hp". My key keychain password is nothing but it does not want to accept and not display my screen to the Television. Suggestion

    I connect my Macbook 13" to my thunderbolt to display on my HD television but it keeps asking for a KeyChain password for "user-hp". My key keychain password is nothing but it does not want to accept and not display my screen to the Television. Suggestion

    Apple support article:
    Mail Keeps Asking for Password
    Maybe this will help. If you monitor the "More Like This" box (top right), other threads appear. Opening them usually displays other threads.
    https://discussions.apple.com/message/20549403#20549403

  • HT201263 IPad starts but will not display home screen.

    IPad starts by will not display home screen.  Seems to be suspended but will not respond.

    Reset iPad
    Hold down the Sleep/Wake button and the Home button at the same time for at least ten seconds, until the Apple logo appears
    Note: Data will not be affected.

  • Some JPG images, stored in DB, do not display on screen/image item.

    Hi friends,
    I have a form to save and retrieve images (JPG, GIF, TIF) to and from DB, using WEBUTIL_FILE_TRANSFER.CLIENT_TO_DB and CLIENT_IMAGE.WRITE_IMAGE_FILE respectively.
    It’s working fine, but with few JPG images, it stores in DB but do not display on screen/image item.
    Secondly, if I try to retrieve and write this JPG to OS (using CLIENT_IMAGE.WRITE_IMAGE_FILE), it prompts error “FRM-47101: Cannot write image file”.
    Environment:
    Forms [32 Bit] Version 10.1.2.0.2
    OS XP Pro 2002 SP3
    Oracle DB 11g Enterprise Edition Rel. 11.1.0.7.0 - 64bit
    Any help will be highly appreciated.

    Hi,
    I have done a workaround here, which worked for me.
    My requirement is to direct save images in DB. So my system was just saving images without knowing if picture would display on form or not later.
    I created a (non-DB) image item on form and added a code (CLIENT_IMAGE.READ_IMAGE_FILE) to place image in this image item, if it successfully display image then save image directly in DB using code (WEBUTIL_FILE_TRANSFER.CLIENT_TO_DB).
    Note: - If CLIENT_IMAGE.READ_IMAGE_FILE fails it raises exception and it means image has invalid format/internal data header and system does not save image in DB.
    Now I have a kind of a filter to stop saving pictures which do not display later on form. :)
    Edited by: user12173428 on 29/09/2011 16:38

  • Z97 PC MATE - Second GPU will not display / black screen

    Using Z97 PC MATE with 2 nvidia cards (GeForce GTX970 and GeForce GETX750ti). My goal is to use the 750ti for dual display with the 970 reserved for compute in a 3D software package (houdini simulations). If both cards are installed on the mobo and one monitor is plugged into the 750ti, it will not display, not even the BIOS screen. Also there is no audio, there is normally a chime when the OS lock screen is reached and that never plays.
    The 750ti is plugged into the PCEe 2.0 slot, the 970 the 3.0 slot. Both cards can display in their respective buses by themselves if only one card is installed. If both are installed, the 970 will output a display as expected.  I have also tried an older quadro card in the 2.0 slot and it also defaulted to the 970 in the 3.0 slot. With one display plugged into the 970, and one in the 750ti I have gotten an image to display on the 750ti. But never with only one monitor plugged into the 750 attempting to use that card as the main display.
    I have used m flash to update the bios to 4.6, but I never used the disc which came with the mobo to update. I thought maybe there is a GPU display priority in the BIOS but I'm not seeing it. I see there is a way to prioritize UEFI and legacy, and Gen1, 2 or 3, but don't know how that should be set up for this (if that is the problem). I would think if that were the case though the audio at the lock screen would still play, but I don't know.
    My current nvidia driver version is 342.22, I am using Ubuntu 14.04 as linux OS operates better with the software I am using. I have also posted to the Ubuntu forums about this, but thought I would post here because the BIOS screen doesn't display which makes me think it could be hardware related. Although all of the hardware is detected properly and appears to be functioning as expected.
    This issue was reproduced with and without the HDD connected. 
    Hardware:
    i7 4790k
    EVGA GTX970 and EVGA GTX750ti
    Z97 PC MATE
    32gb PNY DDR3-1866 240-pin DIMM
    Antec Truepower Classic 750w gold certified
    PNY Optima 480gb SSD  - PNY SSD7SC480GOPT-RB
    Hitachi 2TB ultrastar HDD
    I am not sure at this point how to continue troubleshooting this issue, or if this is not possible for this mobo and I just didn't recognize that. One test I was considering is putting the 970 in my old computer (MSI 970FX-GD70) and seeing if the results are the same. Will post any additional required information.
    thanks! 

    Did you install your graphic driver when both vgas are on? Let the driver detect both vga then you can just switch cable and display well. Use the latest 344.65 driver. As for the 3D package, you need to make sure the software support or can change the settings that which vga to compute.
    But there's one thing I need to make sure first, does your vga work with only one vga on pcie 2.0 slot? Just wanna be sure it's not faulty slot...

  • Throw new OAExecption not displaying on Screen

    Hi OAF Gurus,
    I am facing a very strange problem.
    I have a code in AM, that has a try and catch block , in the catch block I throw new OAexcption, this is displayed in the jdev log , but this exception message don’t not come on screen
    code
    public void applyTransaction()
    OADBTransaction oadbTxn = this.getOADBTransaction();
    try
    oadbTxn.commit();
    catch(Exception e)
    throw new OAException(e.getMessage(),OAException.ERROR);
    is there any profile option / diagnostics level to be set for this exception to come on screen .
    or this is any environment settings ?
    Thanks
    Chaitanya

    This problem, I have faced in intial versions of Jdev, Jdev before CU2 for 11.5.10, sometimes, even after recompiling and then re-starting local jdev server, the server took last versions of class file, the problem always solved if we delete myclasses in jdev.
    I remember a few threads where the standard advise was to restart jdev, clear myclasses along with a bunch of other steps. Just misleading :) Even I never had this issue.
    --Shiv                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Videos not displaying full screen

    I downloaded SD videos from Itunes on my Ipad2 and they will not load full screen. Their is no option to touch to make go full screen or turning the device sideways does not move the movie either. How do I get the movie to play full screen?

    Hi,
    Are you playing videos ? Some videos may have black bands around. Now using this to test:
      http://www.whatismyscreenresolution.com/
    Just clik the link, what is the result ? Is it similar to this ? (If can't click, copy it then paste to browser URL/address space).
    Regards.
    BH
    **Click the KUDOS thumb up on the left to say 'Thanks'**
    Make it easier for other people to find solutions by marking a Reply 'Accept as Solution' if it solves your problem.

  • Mail app not displaying any screens - Missing after reinstall

    I've had my MBP for a few months and just decided to try to use the Mail app but it won't display any screens or "windows" no matter what I choose in the menu bar. It's showing up as though it's running in the icon bar at the bottom and the menu bar at the top but there's just no application window to work in.
    I ended up deleting the app and trying to reinstall it from the disks that came with the laptop but once I did that now I can't get the app to even show up in the Applications folder or in Finder.
    Any thoughts would be appreciated.

    If you have installed from disc with a version of OSX earlier than you currently have, then you must first download the Combo Update for the version you want to be running, and apply that over the existing OSX.  That will increment Mail to the matching version.  Keep me posted, as there may be other issues.
    Ernie

  • Mac not displaying External screen as HD

    MacBook Pro not properly displaying HD resolution of 1440x900 on External monitor.
    MacBookPro2,2:
    Intel Core 2 Duo
    2.16 GHz
    OS X 10.6.8
    PC External Monitor:
    19" widescreen
    1440x900
    DVi and VGA inputs
    Mac connected by VGA cable and Mac adapter. Have been using this system set-up for 2+ years without an issue.
    Downloaded RED Camera software (R3D) to view the camera's raw files (https://www.red.com/downloads/), after install, Mac suddenly not displaying proper high resolution on External monitor. After some searching it appeared to be an issue for others, as suggested, I deleted all traces of the software, but after hard shut down and restart(s), Mac still doesn't output the correct resolution. I know it's the Mac's issue because the External display keeps displaying a message that the computer isn't sending the right resolution out.
    In System Preferences > Display Preferences, the VGA Display (the External monitor) lists a slew of resolution options, and the closest resolution to 1440x900 it lists is 1400x1050, 60 Hz, unfortunately this is a stretched aspect ratio on the External monitor, all the other resolutions are too low, are stretched or the frequency cannot be displayed.
    Called Apple helpline, and the technician couldn't solve the problem.
    Not comfortable with using Terminal commands.
    Some have suggested using SwitchResX to create a custom resolution and force the Mac to take it, unfortunately I cannot figure out what technical specifications to enter in the custom resolution cells.
    Please help! Thanks!

    Been doing some research on this TV. In HDMI, according to the manual on p18, it will only do normal or widescreen settings. Widescreen attempts to simulate 16:9. This introduces overscan with image clipping and artifacts on this TV model. A PITA that many are reporting. I believe, that if any HDMI testing is done, it is with Windows 7 PCs, and the internal firmware on the TV is calibrated to that. The other possibility is that the EDID signal sent upstream from the HDMI port isn't being interpreted correctly by the HD4000 or OS X.
    If you venture into your Advanced Video Settings from your Picture menu, do you have an underscan setting there, or is overscan/underscan tuning available from the OS X display preferences for this HDMI connection? I saw an insignia post from 2010 where the HDMI video issues were resolved by setting underscan, but it doesn't describe any more detail. This was on a 2010 Mac mini with OS X 10.6.4. No mention what graphics adapter was used. The same post indicated that the same HDMI video feed was ok, when that mini was booted into Windows 7. A far cry from your new mini with the HD4000, but just maybe about that underscan...
    If you purchased this TV less than two years ago, you are still under factory warranty, unless acquired under special sales terms, that modified that warranty.
    There are four HDMI ports. Same results on all of them?
    Don't have this TV here, so can't offer any hands on solution knowledge, if any exists.
    Good luck.

  • My macbook pro does not display full screen

    my macbook pro wont display full screen in any appp. it has a one inch margin  black on both sides

    Hi there joemoto,
    You may need to adjust your display resolution. Take a look at the article below for more information.
    OS X Mountain Lion: Adjust your display resolution
    http://support.apple.com/kb/PH11462
    -Griff W.

  • Form is displayed while printed, but not displayed on screen (print preview)

    Dear all,
    We use an Adobe Form to visualise our invoices ... When we print an invoice directly to the printer, everything looks ok and all forms are displayed correctly ... But when we try to watch the same invoice on screen (print preview), we do not see the subform ...
    The property "presence" of the specified subform is "visible", so this is probably not the problem ?
    Does anyone have an idea what the problem could be ?
    Thanks in advance !
    Greetz,
    Kurt.

    Hi,
    please insure your local machine issue.
    use a "CC Cleaner" S/W to your local machine , and then check again .
    Regards
    Puneet

  • Movies in itune will not display Full screen on macbook?

    My itune movies always played full screen when I selected full screen option.
    For some reason- today it does not.
    When I select the Full screen option - the display goes into Full screen mode, but the video image is small- in the center of the screen. (?)
    I'm not sure what has happened. I have not changed any settings. I did install some updates.
    Please help.

    I'm having just the reverse effect. I want to see my iTunes movies in the smaller size. It automatically opens in full screen and when I choose the arrows to make it smaller, it stops playing. Let me know if you get any info.
    Barry

  • Workflow: call transaction CJ20N not displaying customized screen

    Experts,
    My workflow needs to call transaction CJ20N. so that the user can accept a customized field on the project display. When I called the transaction, I did not see the customized fields on the display. I need to call transaction CJ20N that will display all the fields that have been customized on the screen display. I am not using SET PARAMETER before I make the call as it was unclear to me what the SET PARAMETER is used for.
    Any clue would be appreciated.
    thank you
    david Dittmer

    Hello Modak,
    I agrree that a parameter ID will not solve this issue. To test I built a stand alone ABAP program with the following code:
    data: bdcdata_wa typr bdcdata,
    bdcdata_tab type table of bdcdata.
    clear bdcdata_wa,
    bdcdata_wa-program = 'SAPLCNPB_M'.
    bdcdata_wa-dynpro = '1000'.
    bdcdata_wa-dynbegin = 'X'.
    append bdcdata_wa to bdcdata_tab.
    bdcdata_wa-fnam = 'PSP'.
    bdcdata_wa-fval = 'P.2009.00002'.
    append bdcdata_wa to bdcdata_tab.
    Call transaction 'CJ20N' using bdcdata_tab.
    This call works  just fine in a stand alone ABAP but will not work in a workflow method....any suggestions or clues
    Thank you

  • Windows 7 not Displaying my screen

    I have an MBP 13 inch mid 2012 and am trying to connect my windows 7 partition to an acer P1201. It sees the device and my mouse can leave my main screen but nothing is displayed on the video projector. I should also say that it works perfectly on my mac os x 10.7 partition. I am connecting with a VGA cable.
    Something else : when I reboot windows 7 with the projector on, I can see the windows logo on the projector.
    If anybody has any idea what I should do ?

    Seems they found a solution following the link in this page : https://discussions.apple.com/message/2869920#2869920
    But I can not access it.

Maybe you are looking for