Java EE SDK | JavaEE6Tutorial example's "order" example, deploy exception

i'm running on JavaEE6Tutorial example's "order" example, it's directory -> glassfish3\glassfish\docs\javaee-tutorial\examples\persistence\order
when i run this example on Netbeans 7.0.1 in normally way, but this errors occure ;
init:
deps-module-jar:
deps-ear-jar:
deps-jar:
library-inclusion-in-archive:
library-inclusion-in-manifest:
compile:
compile-jsps:
In-place deployment at C:\Program Files (x86)\glassfish3\glassfish\docs\javaee-tutorial\examples\persistence\order\build\web
Initializing...
deploy?DEFAULT=C:\Program Files (x86)\glassfish3\glassfish\docs\javaee-tutorial\examples\persistence\order\build\web&name=order&force=true failed on GlassFish Server 3.x
Error occurred during deployment: Exception while preparing the app : Exception [EclipseLink-28018] (Eclipse Persistence Services - 2.3.0.v20110604-r9504): org.eclipse.persistence.exceptions.EntityManagerSetupException
Exception Description: Predeployment of PersistenceUnit [order] failed.
Internal Exception: Exception [EclipseLink-7333] (Eclipse Persistence Services - 2.3.0.v20110604-r9504): org.eclipse.persistence.exceptions.ValidationException
Exception Description: The reference column name [REVISION] mapped on the element [class order.entity.Part] does not correspond to a valid field on the mapping reference.. Please see server.log for more details.
C:\Program Files (x86)\glassfish3\glassfish\docs\javaee-tutorial\examples\persistence\order\nbproject\build-impl.xml:721:
The module has not been deployed.
     at org.netbeans.modules.j2ee.deployment.devmodules.api.Deployment.deploy(Deployment.java:210)
     at org.netbeans.modules.j2ee.ant.Deploy.execute(Deploy.java:106)
     at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
     at sun.reflect.GeneratedMethodAccessor69.invoke(Unknown Source)
     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
     at java.lang.reflect.Method.invoke(Method.java:597)
     at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
     at org.apache.tools.ant.Task.perform(Task.java:348)
     at org.apache.tools.ant.Target.execute(Target.java:390)
     at org.apache.tools.ant.Target.performTasks(Target.java:411)
     at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
     at org.apache.tools.ant.Project.executeTarget(Project.java:1368)
     at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
     at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
     at org.apache.tools.ant.module.bridge.impl.BridgeImpl.run(BridgeImpl.java:284)
     at org.apache.tools.ant.module.run.TargetExecutor.run(TargetExecutor.java:539)
     at org.netbeans.core.execution.RunClassThread.run(RunClassThread.java:153)
BUILD FAILED (total time: 1 second)
what's the problem and then solution about this issue?

Can you post the server log file?

Similar Messages

  • Java ME SDk Tools plugins error

    Yesterday I couldn't find Device Selector window in Eclipse. And when I realized that the option of Java ME was dissapeared in "Tools" I went to take a look to the plugins.
    I unistalled both Java ME SDK tools and Java ME SDK Demos. In order to instal them again. But I get the message below in the pugins window:
    Some plugins require plugin org.netbeans.api.mobility to be installed.
    The plugin org.netbeans.api.mobility is requested in version 8.3.1.  The following plugin is affected:       Java ME SDK Tools
    Some plugins require plugin org.netbeans.api.mobility to be installed.
    The plugin org.netbeans.api.mobility is requested in version 8.7.1.  The following plugin is affected:       Java ME SDK Tools
    Some plugins require plugin org.netbeans.modules.j2me.kit to be installed.
    The plugin org.netbeans.modules.j2me.kit is requested in version 1.0.  The following plugin is affected:       Java ME SDK Tools
    Some plugins require plugin org.netbeans.modules.j2me.project to be installed.
    The plugin org.netbeans.modules.j2me.project is requested in version 1.2.  The following plugin is affected:       Java ME SDK Tools
    Some plugins require plugin org.netbeans.modules.mobility.cldcplatform to be installed.
    The plugin org.netbeans.modules.mobility.cldcplatform is requested in version 1.4.  The following plugin is affected:       Java ME SDK Tools
    Some plugins require plugin org.netbeans.modules.mobility.cldcplatform to be installed.
    The plugin org.netbeans.modules.mobility.cldcplatform is requested in version 1.8.1.  The following plugin is affected:       Java ME SDK Tools 
    Some plugins not installed to avoid potential installation problems.
    I followed all the steps last week to get the same developing environment but I don't know what has happened.
    Any help will be very usefull. Thanks

    I had a similar issue after uninstalling the early release of the SDK.  I think it unloads some core components from the IDE.  I don't remember the exact steps to fix it, but it was something like this:
    1. Under Plugins dialog box, Settings tab, check the "NetBeans Distribution" option.
    2. Once the window refreshes, look under Available Plugins
    3. You should see a Java ME option.  Install that.
    After I installed that I went back and followed the steps to install the SDK.  Not sure why it worked, but it did.
    Brent S

  • Alter the "Dynamic Interactive Purchase Order" example

    In the Sample files, there´s a fantastic form called the "Dynamic Interactive Purchase Order". This form worked perfectly for me, but now I need to change something. Instead of the "Quantity" field, I need the user to make a choice out of 4 options. The Unit Price then automatically should change as well, depending on the option the user choose ofcourse.
    For example, the Part.No dropdown lists consists of 4 types of t-shirts: blue, red, white and black. All have a standard description (their colour), and a basic price. Now I want to change the Quantity field into a field with 4 radiobuttons, let´s say the size of the shirt: S, M, L and XL. That particular button should have a description as well. And ofcourse, the unit price should change with it.
    It should look something like this:
    Part No. (dropdown)
    Description
    Size
    Description
    Price
    Blue
    A nice blue t-shirt
    S
    You´re a small person!
    $15
    Red
    Wow, my favorite colour!
    XL
    Isn´t it time to go on a diet?
    $30
    Red
    Wow, my favorite colour!
    M
    Nice size
    $20
    Black
    Back to Black
    M
    Nice size
    $20
    Is there anyone with the knowledge and a few minutes to spare to help me out here? I really don´t see it, and I´m getting pretty frustrated with that

    Are you using Workshop? Is so, workshop does not provide for running plain java
    classes. You can run a web service (.jws) or a web application (.jpf). You can
    edit .java classes in workshop no problem but you need to build and execute them
    from outside workshop. You might try creating a simple .jws. Workshop makes
    that very easy to do.
    "Vaidhy" <[email protected]> wrote:
    >
    I am trying to use the purchase order example. I have used the xsd file
    to create
    all the relevant java classes. I am trying to the get the POHandler.java
    class
    working. I am able to compile the class but I cannot run/debug. All the
    menus
    are greyed out. Any ideas??

  • Service Order Example

    Hello Everybody,
    In the Service Order example, I see that they are using 2 Development components.
    Can someone tell me why are they doing that ?
    Can you explain it to me please?
    Thanks,
    Sneha SIngh.

    Hi Sneha
    you can read more about MVC (model-view-controller) concept here
    <http://help.sap.com/saphelp_nwmobile71/helpdata/EN/0f/ab3a3c9ca75402e10000000a114084/content.htm>
    One can create multiple DCs as per the requirement for your application.
    Explaining the same with a simple eg: suppose I have a Customer scenario with one view for Customer details and other one for Orders. Suppose, I have two resources working in parallel for the same application, then one person can import the model in say DC1 and start his work on Customer View in the same DC. In parallel the other person can define another DC2 with dependency on DC1 and start work on Order View (he will not be importing the model again in DC2)
    Hope this helps
    Best Regards
    Vaidehi

  • How good is the java Ras Sdk in Business objects XI?

    I have programmed some  reports from scratch by using the java ras sdk.
    Somehow I have the feeling that new features of XI like dynamic image location, or
    running totals aren't so well supported as for example through the Crystal report Designer.
    Do others also think that  Business objects is being a bit negligent on this Api?
    Maybe they do not consider the Api as important anymore because most people will be using there web based out of the box jsp components?

    Normally you should run your CR reports in the INfoView. You can start a report either by double clicking on it or by selecting View in the context menu. Still in order to fetch data you have to press the Refresh button in the CR viewer window (in the InfoView).
    In the CMC I assume that you are using the Run now option in the context menu. Please note that this will just schedule your report immediatelly. hen the report is scheduled a new instance is created hich is available in the History of the report. In order to see a report in the CMC select again View in the context menu and you can again fetch data by pressing the Refresh button.
    Regards,
    Stratos

  • Errors when starting Java ME SDK 3 - Windows 7 x64

    Hi,
    I am having trouble running the Java ME SDK 3 on a Windows 7 x64 computer. When trying to run the installed SDK using the shortcut link on my desktop, I receive a number of erros such as
    java.net.ConnectException: Connection refused: connect
         at java.net.PlainSocketImpl.socketConnect(Native Method)
         at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
         at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
         at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
         at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
         at java.net.Socket.connect(Socket.java:525)
         at java.net.Socket.connect(Socket.java:475)
         at java.net.Socket.<init>(Socket.java:372)
         at java.net.Socket.<init>(Socket.java:186)
         at sun.rmi.transport.proxy.RMIDirectSocketFactory.createSocket(RMIDirectSocketFactory.java:22)
         at sun.rmi.transport.proxy.RMIMasterSocketFactory.createSocket(RMIMasterSocketFactory.java:128)
         at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:595)
    Caused: java.rmi.ConnectException: Connection refused to host: localhost; nested exception is:
         java.net.ConnectException: Connection refused: connect
         at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:601)
         at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:198)
         at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:184)
         at sun.rmi.server.UnicastRef.newCall(UnicastRef.java:322)
         at sun.rmi.registry.RegistryImpl_Stub.lookup(Unknown Source)
         at com.sun.jndi.rmi.registry.RegistryContext.lookup(RegistryContext.java:97)
    Caused: javax.naming.ServiceUnavailableException [Root exception is java.rmi.ConnectException: Connection refused to host: localhost; nested exception is:
         java.net.ConnectException: Connection refused: connect]
         at com.sun.jndi.rmi.registry.RegistryContext.lookup(RegistryContext.java:101)
         at com.sun.jndi.toolkit.url.GenericURLContext.lookup(GenericURLContext.java:185)
         at javax.naming.InitialContext.lookup(InitialContext.java:392)
         at javax.management.remote.rmi.RMIConnector.findRMIServerJNDI(RMIConnector.java:1886)
         at javax.management.remote.rmi.RMIConnector.findRMIServer(RMIConnector.java:1856)
         at javax.management.remote.rmi.RMIConnector.connect(RMIConnector.java:257)
    Caused: java.io.IOException: Failed to retrieve RMIServer stub
         at javax.management.remote.rmi.RMIConnector.connect(RMIConnector.java:338)
         at javax.management.remote.JMXConnectorFactory.connect(JMXConnectorFactory.java:248)
         at com.sun.jme.toolkit.remoting.client.rmiimpl.ObjectServerConnectionImpl.connect(Unknown Source)
         at com.sun.jme.toolkit.remoting.client.rmiimpl.ObjectServerConnectionImpl.start(Unknown Source)
         at com.sun.jme.toolkit.remoting.client.rmiimpl.ObjectServerConnectionImpl.lookupMBean(Unknown Source)
         at com.sun.jme.toolkit.remoting.client.rmiimpl.ObjectServerConnectionImpl.findObject(Unknown Source)
         at org.netbeans.modules.javame.common.container.devicemanager.DevicemanagerHelper.openConnection(DevicemanagerHelper.java:53)
         at org.netbeans.modules.javame.common.container.devicemanager.DevicemanagerHelper.getDeviceManager(DevicemanagerHelper.java:86)
         at org.netbeans.modules.javame.platform.jme_sdk.autoinstaller.AutoInstaller.ensureDMStarted(AutoInstaller.java:292)
         at org.netbeans.modules.javame.platform.jme_sdk.autoinstaller.AutoInstaller.restored(AutoInstaller.java:63)
         at org.netbeans.core.startup.NbInstaller.loadCode(NbInstaller.java:421)
         at org.netbeans.core.startup.NbInstaller.load(NbInstaller.java:342)
         at org.netbeans.ModuleManager.enable(ModuleManager.java:906)
         at org.netbeans.core.startup.ModuleList.installNew(ModuleList.java:428)
         at org.netbeans.core.startup.ModuleList.trigger(ModuleList.java:364)
         at org.netbeans.core.startup.ModuleSystem.restore(ModuleSystem.java:276)
         at org.netbeans.core.startup.Main.getModuleSystem(Main.java:165)
         at org.netbeans.core.startup.Main.start(Main.java:312)
         at org.netbeans.core.startup.TopThreadGroup.run(TopThreadGroup.java:110)
    [catch] at java.lang.Thread.run(Thread.java:619)--------------------------------------------------------------------------------------------------
    Does anybody know where this comes from? Is it an incompatibility with Windows 7 x64? I have installed the latest Java SDK for Win64.
    I have another issue consisting in the fact that the Eclipse MJT plug-in is not abel to find any devices in the Java ME SDK 3 folder (see my post in the Eclipse forum [Post in Eclipse MJT forum|http://www.eclipse.org/forums/index.php?t=msg&th=156515&start=0&S=6f25cc6925ad7008453ee93ca55525a2]), does this have anything to do with the problem described above?
    Thanks for your help,
    Markus
    Edited by: acm821 on Oct 28, 2009 2:06 PM

    Edit file "C:\Java_ME_platform_SDK_3.0\bin\java", replace the path of x64 jdk by path of x32 jdk.
    For example, my file contains "C:\Program Files\Java\jdk1.6.0_21" and I change to "C:\Program Files (x86)\Java\jdk1.6.0_21".
    You need have a 32 bits jdk installed. Restart device managar after the change.
    Obs.: This happens because device manager need load a 32 bits DLL. So you need run they with a 32 bits jdk.
    With this method you don't need remove x64 jdk. You can stay with both jdk.

  • Java ME SDK 3.0 does not run sample files, but WTK 2.5.2 does

    Hi guys,
    I have following problem: I am using the Java ME SDK 3.0 and I am trying to run some sample MIDlets. For example this very basic HelloMIDlet which can be found here http://developers.sun.com/mobility/midp/articles/wtoolkit/src/HelloMIDlet.java
    Build runs successfully, but if I try to run it, the emulator appears, but nothing happens. Here is a warning from the logfile:
    Starting emulator in execution mode
    Installing suite from: http://127.0.0.1:3607/HelloMIDlet.jad
    [WARN] [rms     ] javacall_file_open: _wopen failed for: C:\javame-sdk\3.0\work\0\appdb\_delete_notify.dat
    [WARN] [rms     ] javacall_file_open: _wopen failed for: C:\javame-sdk\3.0\work\0\appdb\_ch_suite.raw
    bdj-run:
    cdc-run:
    profiler.check:
    open-profiler:
    run:
    BUILD SUCCESSFUL (total time: 20 seconds)The exact same source code used with the WTK 2.5.2 builds and runs without a problem. Any ideas what the problem is?
    Thanks a lot,
    iobytrap

    1. Start ME SDK
    2. File -> New Project -> MIDP Application
    3. Select Project Name AND(!) check "Create Hello Midlet". Click "Next"
    4. Select Device "DefaultCldcPhone1"; other as Default; Click Finish
    5. Change body of the HelloMidlet.java according to http://developers.sun.com/mobility/midp/articles/wtoolkit/src/HelloMIDlet.java
    //As you described
    6. Click F6 (Run Main Project)
    As a result: "BUILD SUCCESSFUL"; ME SDK open with "Hello,World".
    So, all works. Please provide step by step scenario if you see problem yet. Also tell me please version of java.
    Regards,
    Mikhail.

  • Java ME SDK 3.0 for MacOS: MediaException when capturing

    Dear all,
    I'm currently developing a J2ME media application over MacOS (MacBook Pro, OS version 10.6.2). I've installed the MacOS Java ME SDK 3.0 , but I'm getting a MediaException when running any media capturing application (including the demos).
    The example I was using is the MMAPIDemos example (Video-->Video Capture - Form and Video-->Video Capture - Canvas ). In both examples the emulator returned a;
    javax.microedition.media.MediaException: Player cannot be created for capture://video
    exception. I also tried the same application on different versions of MacOS, with a similar result.
    Suggestions very welcome!
    Thanks in advance for any help!
    iacopo

    This thread is duplicated
    I tried this solution Errors when starting Java ME SDK 3 - Windows 7 x64 and it worked with me.

  • Java 2 SDK problem under Redhat 7.0

    I'm using RedHat Linux 7.0 (kenerl 2.2.16.22, libc-2.1.92.so).
    I downloaded Java 2 SDK v 1.2.2_008 for Linux from sun.java.com, and installed it to /usr/local/jdk1.2.2
    However, I couldn't run any Java command. When I try to compile any java source code, for example:
    /usr/local/jdk1.2.2/bin/javac HelloWorldApp.java
    I always get error message:
    Segmentation fault (core dumped)
    Please give me some idea as soon as possible.
    Thank you for your help!
    Attach: HelloWorldApp.java
    Class HelloWorldApp {
    public static void main(String[] args) [
    System.out.println("Hello World!");
    Tony T.

    update your kernel, redhat 7.0 is full of bad links and missing links

  • Import J2ME source into Java ME SDK 3.0

    Hi,
    Im new to Java ME.
    The internet has lots of J2ME examples for games(but none for Java ME SDK 3.0), and im trying to import these into Java ME SDK 3.0 . I click on new project and select 'Import Wireless Toolkit Project', but it doesn't detect a project. Ive tried this with several popular J2ME samples.
    Anyone know how to do this right, so I can import J2ME projects into Java ME SDK 3.0 completely, with classes, packages and resources intact?
    I tried making a new project, and then copying the files into the relevant directories too. All the classes show up in the SDK, but on running the program no app is displayed in the emulator.

    Don't double post. I've removed the thread you started in the Java Programming forum with the identically same question.
    db

  • [QUESTION] First Steps: Java ME SDK 3.0 AND NOKIA N95

    Hi! this is my first post in the forums. I am a c# .net programmer and this is my first step to start programing mobile phones with Java ME.
    I already downloaded and installed de Java ME SDK 3.0 and try the examples, then i build a sample and generate the jad.
    After upload to my N95 it says that cant install the app because is for the N95 or is not supported....(I was thinking like winforms in .net... build install and run ....hahaha!)
    but i found that every phone has its SDK that i must install to develop app.
    So my question is
    If i have the JME SDK 3.0 installed what i need to build any Nokia or Nokia N95 app. If is possible can you tell me the configuration that i need or maybe the steps to install the SDK from nokia to use in JME., apps, emulators, docs, etc.
    PD: I want to start an app that tells me the location using the internal gps of the N95.
    And sorry for my bad english.
    Thanks!

    check if ME SDK is configured to MIDP 2.1. Also check whether N95 supports MIDP 2.1 or 2.0; if needed, change SDK build settings to MIDP 2.0. // this seem to be rather popular problem
    ...I want to start an app that tells me the location using the internal gps of the N95...Google for +"nokia n95 jsr 179"+ (jsr 179 is location API in Java ME).
    If you plan to target only Nokia device(s), consider getting help at Nokia Java ME forums.

  • No java 2 sdk

    Hi to everyone:
    I'm having problems trying to open a java aplication using the safari browser: "No Java 2 SDK, Standard Edition Version 6 support for APPLET!!"
    Any idea??

    Your only choice is full remote terminal  access. For example, the AlwaysOnPC runs the applets at http://java.sun.com/applets/ just fine.

  • Java 2 SDK compilator for beginners

    Hi to all here.
    I am really sorry to disturb you all,
    I am beginner in Java and I need to download Java 2 SDK compilator in order to compile my homeworks. I went lost in all the reliese EE, SE and so on I saw in Sun homepage.
    Which one is the right one ?
    I have Windows Vista Home edition in my computer.
    Thanks for helping me.
    Flavio

    Download and install a Java SE 6 JDK for your Windows platform which is available here:
    http://java.sun.com/javase/downloads/index.jsp
    If you want some GUI Application you may choose the version containing NetBeans, if you only want the compiler and runtime environment install the first option (JDK 6 Update 4).
    Edited by: mezler on Feb 20, 2008 2:13 PM

  • Focus issue with CardLayout (Java 2 SDK, Standard Edition 1.4.0_01)

    I am having an issue with focus and CardLayout with Java 2 SDK, Standard Edition 1.4.0_01. I have created a small sample application to illustrate my problem. In general, I am trying to create a "Wizard" that the user will enter information and then press a "Next" button to proceed to the next step.
    When the first card is displayed, the focus is on the first text field as expected.
    When I go to the next card by clicking "Next", the focus is not on the text field that has requested it (through the requestFocusInWindow method). The focus is on the "Cancel" button, which is the next component to receive focus after the "Next" button on that panel. I do notice that if I use my mouse to bring focus to the window the text field will gain focus.
    Similarly, when I proceed to the last card, the focus is not on the "Finish" button until the mouse moves over the window.
    Is there something I am doing wrong or is there a bug with focus and CardLayout?
    One other problem I have noticed is that the buttons no longer respond to the "Enter" key press and instead respond to the space bar. Any suggestions as to why this is the case?
    Thanks,
    S.L.
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class CardWindow extends JFrame implements ActionListener {
    public CardWindow() {       
    setTitle("Focus Problems with CardLayout");
    setDefaultCloseOperation(EXIT_ON_CLOSE);
    cards = new JPanel();
    cardLayout = new CardLayout();
    cards.setLayout(cardLayout);
    cards.add(createFirstNamePanel(), "FirstNamePanel");
    cards.add(createLastNamePanel(), "LastNamePanel");
    cards.add(createFullNamePanel(), "FullNamePanel");
    getContentPane().add(cards,BorderLayout.CENTER);
    getContentPane().add(createButtonPanel(), BorderLayout.SOUTH);
    resetButtonPanel();
    pack();
    private JPanel createFirstNamePanel() {
    JPanel panel = new JPanel();
    JLabel lblDescriptionProjectName = new JLabel("Please enter your first name:");
    txtFirstName = new JTextField(20);
    panel.add(lblDescriptionProjectName);
    panel.add(txtFirstName);
    return panel;
    private JPanel createLastNamePanel() {
    JPanel panel = new JPanel();
    JLabel lblDescriptionProjectName = new JLabel("Please enter your last name:");
    txtLastName = new JTextField(20);
    panel.add(lblDescriptionProjectName);
    panel.add(txtLastName);
    return panel;
    private JPanel createFullNamePanel(){
    JPanel panel = new JPanel();
    lblFullName = new JLabel();
    resetTextOnFullNamePanel();
    panel.add(lblFullName);
    return panel;
    private JPanel createButtonPanel() {
    buttonPanel = new JPanel();
    btnPrevious = new JButton("< " + "Back");
    btnPrevious.setMnemonic('B');
    btnPrevious.addActionListener(this);
    btnNext = new JButton("Next" + " >");
    btnNext.setMnemonic('N');
    btnNext.addActionListener(this);
    btnCancel = new JButton("Cancel");
    btnCancel.setMnemonic('C');
    btnCancel.addActionListener(this);
    btnFinish = new JButton("Finish");
    btnFinish.setMnemonic('F');
    btnFinish.addActionListener(this);
    buttonPanel.add(btnPrevious);
    buttonPanel.add(btnNext);
    buttonPanel.add(btnCancel);
    buttonPanel.add(btnFinish);
    return buttonPanel;
    private void resetTextOnFullNamePanel(){
    lblFullName.setText("Your name is: " + getFirstName() + " " + getLastName());
    private void resetButtonPanel(){
    Component c[] = buttonPanel.getComponents();
    for(int i = 0; i < c.length; i++){
    c.setVisible(false);
    switch(iWizardStep){
    case FIRSTNAMEPANEL:
    btnPrevious.setVisible(true);
    btnNext.setVisible(true);
    btnCancel.setVisible(true);
    break;
    case LASTNAMEPANEL:
    btnPrevious.setVisible(true);
    btnNext.setVisible(true);
    btnCancel.setVisible(true);
    break;
    case FULLNAMEPANEL:
    btnFinish.setVisible(true);
    break;
    buttonPanel.validate();
    public void actionPerformed(ActionEvent e) {
    Object object = e.getSource();
    if (object == btnNext) {           
    btnNextPressed();
    } else if (object == btnPrevious) {           
    btnPreviousPressed();
    } else if (object == btnFinish) {
    System.exit(0);
    } else if (object == btnCancel) {
    System.exit(0);
    private void btnNextPressed() {       
    switch (iWizardStep) {
    case FIRSTNAMEPANEL:
    setFirstName(txtFirstName.getText());
    break;
    case LASTNAMEPANEL:
    setLastName(txtLastName.getText());
    resetTextOnFullNamePanel();
    break;
    iWizardStep++;
    resetButtonPanel();
    this.cardLayout.next(this.cards);
    switch (iWizardStep) {             
    case LASTNAMEPANEL:
    txtLastName.requestFocusInWindow();
    break;
    case FULLNAMEPANEL:
    btnFinish.requestFocusInWindow();
    break;
    private void btnPreviousPressed() {
    iWizardStep--;
    resetButtonPanel();
    this.cardLayout.previous(this.cards);
    public void setFirstName(String value) {
    firstName = value;
    public String getFirstName() {
    return firstName;
    public void setLastName(String value) {
    lastName = value;
    public String getLastName() {
    return lastName;
    public static void main (String[] args) {
    CardWindow c = new CardWindow();
    c.show();
    private CardLayout cardLayout;
    private JPanel cards, buttonPanel;
    private JTextField txtLastName, txtFirstName;
    private JLabel lblFullName;
    private JButton btnNext, btnPrevious, btnCancel, btnFinish;
    private String firstName = "";
    private String lastName = "";
    private int iWizardStep = 0;
    private static final int FIRSTNAMEPANEL = 0;
    private static final int LASTNAMEPANEL = 1;
    private static final int FULLNAMEPANEL = 2;

    Manfred,
    Thanks for your reply. I tried requestFocus() and it gives the same results. Also Sun's 1.4.0 API (http://java.sun.com/j2se/1.4/docs/api/) mentions the following with respect to the requestFocus() method in the JComponent class:
    Because the focus behavior of this method is platform-dependent, developers are strongly encouraged to use requestFocusInWindow when possible.
    That is why I used requestFocusInWindow.
    S.L.

  • Java 2 SDK SE 1.4.2 - INSTALL ERROR ...... 1335 ....

    Hello,
    I have tried to install Java 2 SDK SE 1.4.2 but get the following error during install:
    Error 1335. The cabinet file 'Data1.cab' required for this installation is corrupt and cannot be used. The file is 42.7MB and is not something I want to re-download in a hurry.
    Is there a work-around for this error. Have had a look but have found no other occurances of this problem.
    Thanks in advance for your help.
    Jon

    Well, I'm not sure what to say. I've had problems much like that, except for Java 2 SDK 1.2.*. I got rid of my problems (which sometimes included "clean" installation but then broken parts, such as javac.exe) by updating and trying again. It wasn't very much fun, especially back in my dialup days.
    - CD

Maybe you are looking for

  • Excise

    hi friends,                i have created a normal po with tax code vb. maintained condition records for bed, ecs,secs.when i am capturing excise invoice, it is not showing secs. it is showing bed as bed in po+ irs 16.00, and it is showing ecs. so ca

  • ZBA in EBS - Trading partner issue

    Hi SAP gurus Can anyone help me with how you folks set up populating the trading partner field for ZBA postings in EBS? I read in a lot of places & here are the pointers I already have.  - We can fill the trading partner field in GL master data assum

  • I Am Trying to Install Oracle WebLogic under Snow Leopard

    Hello, I am trying to install a Generic version of Oracle WebLogic App Server on my MacBook running Snow Leopard. The installation process asks for JDK selection either a bundled JDK or a local JDK and one as to specify the location of the JDK. I hav

  • Sharepoint new form but view old form

    Dear all, I'm with sharepoint 2010 without infopath. I had a form called newForm.asp for my time sheet. I created a new form in a files called mytimesheet.aspx. Then I copy/paste all the code from mytimesheet.aspx to newform.aspx. Everything I did is

  • Automatic XML output generation

    i am trying to generate automatic xml output for a report. report dsnt take any parameters. i have written a xml definition <report name="XML Report date spec GRFS03" DTDVersion="1.0"> <layout> <section name="main"> <groupLeft name="G_LOC_CODE" > <gr