Trouble with CardLayout and actionPerformed; null exception thrown

Hello. I'm writing my first GUI, and I am using the CardLayout class to do so. I have two panels, and a button on each that "should" navigate to the other. However, when the button is pushed on the first card, I get this exception:
Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
     at emerensi_BMI.actionPerformed(emerensi_BMI.java:149)
There are many lines after that, but I figured I would start with the first??
Here is the code associated with that line:
public void actionPerformed(ActionEvent e){
     if (e.getSource() == btnReCalculate){
          ((CardLayout)cardPanel.getLayout()).show(cardPanel, "one");
     } else if (e.getSource() == btnCalculate){
          ((CardLayout)cardPanel.getLayout()).show(cardPanel, "two");The last line is the actual line referenced. I am wondering if the "two" is what is null? Here is the code that it's associated with:
String one = new String();
String two = new String();
JPanel cardPanel = new JPanel();
cardPanel.setLayout(new CardLayout());
cardPanel.add(one, Page1);
cardPanel.add(two, Page2);
contentPane.add(cardPanel, BorderLayout.CENTER);If I understand it correctly, the string in the (string, container) is supposed to reference its container, right?
I'm not sure if this will make a difference, but also when the "calculate" button is pressed, I have it so that there will be calculations done with text that is entered on the first page, and the second page will display these calculations. Here is the code for that:
} else if (e.getSource() == btnCalculate){
          ((CardLayout)cardPanel.getLayout()).show(cardPanel, "two");
     String feet = txtFeet.getText();
     String inches =     txtInches.getText();
     String pounds =     txtPounds.getText();
     float f = Float.valueOf(feet);
     float i = Float.valueOf(inches);
     float p = Float.valueOf(pounds);
     float height = (f * 12 + i);
     float math = (p * 703) / (height * height);
     String BMI = String.valueOf(math);
     lblBMI.setText(BMI);
     if (math <= 18.5){
          lblHealthEval.setText("Underweight");
     } else if (math <= 24.9){
          lblHealthEval.setText("Normal");
     } else if (math <= 29.9){
          lblHealthEval.setText("Overweight");
     } else if (30 <= math){
          lblHealthEval.setText("Obese");
     } // end else ifI have labels defined for the second panel that should get the set strings. But since the null exception is thrown right before it regarding the card layout stuff, this probably isn't an issue (yet).
Sorry if this is verbose; just wanted to be thorough. Thanks for any and all help...

Well... I took out as much code as I could. Here's my simplified program:
import java.awt.*;
import javax.swing.*;
import java.awt.event.*;
@SuppressWarnings("serial")
public class emerensi_BMI extends JFrame implements ActionListener{
     JLabel lblHeading1;
     JLabel lblHeading2;
     JButton btnCalculate;
     JButton btnReCalculate;
     JPanel Page1;
     JPanel Page2;
     String one;
     String two;
     JPanel cardPanel;
public static void main(String args[]){
          new emerensi_BMI();
     public emerensi_BMI(){
          super("Body Mass Index Calculator");
          setupGUI();
          registerListeners();
     } // end constructor
     public void setupGUI(){
          Container contentPane = getContentPane();
          JPanel pnlHeading1 = new JPanel();
          lblHeading1 = new JLabel("Page 1");
          pnlHeading1.setLayout(new FlowLayout());
          pnlHeading1.add(lblHeading1);
          // north panel for page1
          JPanel pnlCalculate = new JPanel();
          btnCalculate = new JButton("Calculate");
          pnlCalculate.setLayout(new FlowLayout());
          pnlCalculate.add(btnCalculate);
          // south panel for page1
          JPanel Page1 = new JPanel();
          Page1.setLayout(new BorderLayout());
          Page1.add(pnlHeading1, BorderLayout.NORTH);
          Page1.add(pnlCalculate, BorderLayout.SOUTH);
          // page1 panel
          JPanel pnlHeading2 = new JPanel();
          lblHeading2 = new JLabel("Page 2");
          pnlHeading2.setLayout(new FlowLayout());
          pnlHeading2.add(lblHeading2);
          // north panel for page2
          JPanel pnlReCalculate = new JPanel();
          btnReCalculate = new JButton("<-- Recalculate with different data");
          pnlReCalculate.setLayout(new FlowLayout());
          pnlReCalculate.add(btnReCalculate);
          // south panel for page2
          JPanel Page2 = new JPanel();
          Page2.setLayout(new BorderLayout());
          Page2.add(pnlHeading2, BorderLayout.NORTH);
          Page2.add(pnlReCalculate, BorderLayout.SOUTH);
          // page2 panel
          String one = new String();
          String two = new String();
          JPanel cardPanel = new JPanel();
          cardPanel.setLayout(new CardLayout());
          cardPanel.add(Page1, one);
          cardPanel.add(Page2, two);
          contentPane.add(cardPanel, BorderLayout.CENTER);
          // card panel with page1 and page2
          this.setSize(500, 350);
          this.setVisible(true);
          this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
     public void itemStateChanged(ItemEvent evt) {
             CardLayout cl = (CardLayout)(cardPanel.getLayout());
             cl.show(cardPanel, (String)evt.getItem());
     public void registerListeners() {
          btnCalculate.addActionListener(this);
          btnReCalculate.addActionListener(this);
          // registered actions
     public void actionPerformed(ActionEvent e){
          if (e.getSource() == btnReCalculate){
               ((CardLayout)cardPanel.getLayout()).show(Page1, one);
          } else if (e.getSource() == btnCalculate){
               ((CardLayout)cardPanel.getLayout()).show(Page2, two);
          } // end else if else if
          // handling action events
     public void textValueChanged(TextEvent e) {
          // TODO Auto-generated method stub
}// end main

Similar Messages

  • I am having all kinds of trouble with itunes and updating my ipad. when I open up itunes, it seems to just sit there, never going to itunes store. when I connect my ipad, I check update and it starts, but then I get this message:backup can't be saved on

    I am having all kinds of trouble with itunes and updating my ipad. I open itunes up but it doesn't do anything except open to a blank screen. I try to access the itunes store but it won't go there. When I connect my ipad, and try to update it, it starts and then I get a message that says backup cannot be saved on this computer. I have tried everything suggested to no avail. This is the 2nd or 3rd time I have had problems with itunes. Sometimes I even get a message that I am not connected to the internet.
    I have uninstalled and re-installed. Any help?

    You might not have enough space left on your hardrive.

  • I downloaded Firefox 4.0 and it says to re-install the toolbar but I have not been successful in doing so. Can I go back to the older version? I had no trouble with that and I do not like this new version at all.

    I downloaded Firefox 4.0 and it says to re-install the toolbar but I have not been successful in doing so. I went to the forums and tried all the suggested fixes but none worked. Can I go back to the older version? I had no trouble with that and I do not like this new version at all. I tried a system restore twice and it did not fix the problem.

    I would imagine it's the MyWay Searchbar which is classified by most anti-malware scanners as adware, or even worse as spyware. I say that because I see "SmileyCentral" in your list of plugins and that's an add-on for that particular toolbar. You can disable that via Tools | Add-ons | Plugins.
    There are a number of toolbars which won't work with Firefox 4 anymore due to the enhanced protection mechanisms in the browser.
    Mozilla recommends that you only install add-ons from its own security site @ https://addons.mozilla.org/en-US/firefox/?browse=featured Generally speaking, those have all been tested and approved. The exceptions are those currently under review which are marked with a yellow banner to warn users that they haven't passed Mozilla's labs yet.

  • Just bought a new iPhone and am having trouble with iTunes and App Store. I can log in to Cloud, iTunes, and app store but once I try to download, it says "Youe apple id has been disabled". I've reset my password three times and have no issue on my Pad.

    Just bought a new iPhone and am having trouble with iTunes and App Store. I can log in to Cloud, iTunes, and app store but once I try to download, it says "Youe apple id has been disabled". I've reset my password three times and have no issue on my Pad.

    Hi FuzzyDunlopIsMe,
    Welcome to the Support Communities!
    It's possible that resetting your password multiple times has triggered this security.  Click on the link below for assistance with your Apple ID Account:
    Apple ID: Contacting Apple for help with Apple ID account security
    http://support.apple.com/kb/HT5699
    Here is some additional information regarding your Apple ID:
    Apple ID: 'This Apple ID has been disabled for security reasons' alert appears
    http://support.apple.com/kb/ts2446
    Frequently asked questions about Apple ID
    http://support.apple.com/kb/HT5622
    Click on My Apple ID to access and edit your account.
    Cheers,
    - Judy

  • Trouble with Mail and Maverick

    Trouble with Maverick and Mail - contacts (groups) will not load into address bar in mail.

    Check that the mac's preferences for icloud is still connected to the proper account.  Be sure photo stream is turned on. 
    You haven't described what "trouble" your mail account has.

  • Several of us have a iPhone 6s and are having trouble with hearing and speaking at the same time when using the phone. ? The speakers seem to be too far apart? Are others having this issue? Solutions?

    Several of us have a iPhone 6plus and are having trouble with hearing and speaking at the same time when using the phone. ? The speakers seem to be too far apart? Are others having this issue? Solutions?

    Not having the problem, don't personally know anyone who is.

  • Trouble with export and import

    I am having trouble with export and import
    here is what I did...
    exp "'/ as sysdba'" PARFILE=parfile.txt
    PAFILE
    TABLES=user1.Table1
    file=Table1_1006.dmp
    LOG=Table1_1006.log
    query="where to_char(processeddate,'YYYYMMDDHHMISS') between to_char(to_timestamp('1911-01-01 00:00:00','YYYY-MM-DD HH24:MI:SS'),'YYYYMMDDHHMISS') and to_char(to_timestamp('2011-10-06 16:46:26','YYYY-MM-DD HH24:MI:SS'),'YYYYMMDDHHMISS')"here is my log from export
    set and AL16UTF16 NCHAR character set
    About to export specified tables via Conventional Path ...
    Current user changed to user1
    . . exporting table               Table1   16019049 rows exported
    EXP-00091: Exporting questionable statistics.
    EXP-00091: Exporting questionable statistics.
    EXP-00091: Exporting questionable statistics.
    EXP-00091: Exporting questionable statistics.
    EXP-00091: Exporting questionable statistics.
    EXP-00091: Exporting questionable statistics.
    EXP-00091: Exporting questionable statistics.
    EXP-00091: Exporting questionable statistics.
    Export terminated successfully with warnings.Then I started importing
    /database2/rdbm15> imp "'/ as sysdba'" file=Table1_1006.dmp fromuser=user1 touser=user1 tables=Table1 log=imp_Table1_1006.log
    Import: Release 10.2.0.5.0 - Production on Thu Oct 6 19:57:01 2011
    Copyright (c) 1982, 2007, Oracle.  All rights reserved.
    Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.5.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    Export file created by EXPORT:V10.02.01 via conventional path
    import done in US7ASCII character set and AL16UTF16 NCHAR character set
    . importing user1's objects into user1
    IMP-00015: following statement failed because the object already exists:
    "CREATE TABLE "Table1" ("APPROVALTRACEID" VARCHAR2(64), "REQUESTOR"
    "EID" VARCHAR2(9), "EID" VARCHAR2(9), "FIRSTNAME" VARCHAR2(32), "LASTNAME" V"
    "ARCHAR2(32), "MIDDLEINITIAL" VARCHAR2(8), "TIER" VARCHAR2(3), "JOBTITLE" VA"
    "RCHAR2(64), "JOBCODE" VARCHAR2(10), "EMPLOYEETYPE" VARCHAR2(2), "CONTRACTOR"
    "TYPE" VARCHAR2(2), "EMPLOYEESTATUS" VARCHAR2(2), "COSTCENTER" VARCHAR2(10),"
    " "COSTCENTERDESCRIPTION" VARCHAR2(50), "CONTRACTENDINGDATE" VARCHAR2(8), "A"
    "CCOUNTSTATUS" VARCHAR2(2), "LOGINID" VARCHAR2(70), "APPLICATIONGROUP" VARCH"
    "AR2(50), "APPLICATIONNAME" VARCHAR2(50), "APPLICATIONID" VARCHAR2(12), "LEV"
    "EL1" VARCHAR2(512), "LEVEL2" VARCHAR2(512), "LEVEL3" VARCHAR2(512), "LEVEL4"
    "" VARCHAR2(512), "LEVEL5" VARCHAR2(512), "PROFILECODE" VARCHAR2(50), "PROCE"
    "SSEDDATE" DATE, "APPROVERMANAGEREID" VARCHAR2(9), "APPROVERMANAGERDELEGATEE"
    "ID" VARCHAR2(9), "APPROVERT4MANAGEREEID" VARCHAR2(9), "APPROVERT4MANAGERDEL"
    "EGATEEID" VARCHAR2(9), "APPROVERAPPOWNEREID" VARCHAR2(9), "APPROVERAPPOWNER"
    "DELEGATEEID" VARCHAR2(9), "PERFORMEREID" VARCHAR2(9), "NATIONALID" VARCHAR2"
    "(30), "COUNTRYCODE" VARCHAR2(9), "PASSPORTID" VARCHAR2(20), "DATEOFBIRTH" V"
    "ARCHAR2(15), "CITYOFBIRTH" VARCHAR2(15), "VENDORNAME" VARCHAR2(50), "VENDOR"
    "MANAGERNAME" VARCHAR2(50), "VENDORMANAGERID" VARCHAR2(9), "VENDORADDRESS1" "
    "VARCHAR2(100), "VENDORADDRESS2" VARCHAR2(100), "VENDORSTATEPROVINCE" VARCHA"
    "R2(15), "VENDORCOUNTRYCODE" VARCHAR2(9), "VENDORZIPPOSTALCODE" VARCHAR2(9))"
    "  PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 STORAGE(INITIAL 4076863488 "
    "NEXT 1048576 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT)            "
    "                   LOGGING NOCOMPRESS"
    Import terminated successfully with warnings.but I did not get rows to database2
    [server1]database2
    /database2/rdbm15> sqlplus / as sysdba
    SQL*Plus: Release 10.2.0.5.0 - Production on Thu Oct 6 19:59:17 2011
    Copyright (c) 1982, 2010, Oracle.  All Rights Reserved.
    Connected to:
    Oracle Database 10g Enterprise Edition Release 10.2.0.5.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    SQL> select count(*) from user1.Table1;
      COUNT(*)
             0
    SQL> exit
    SQL> select * from v$version;
    BANNER
    Oracle Database 10g Enterprise Edition Release 10.2.0.5.0 - 64bi
    PL/SQL Release 10.2.0.5.0 - Production
    CORE    10.2.0.5.0      Production
    TNS for HPUX: Version 10.2.0.5.0 - Production
    NLSRTL Version 10.2.0.5.0 - ProductionEdited by: user3636719 on Oct 6, 2011 5:23 PM

    user3636719 wrote:
    Thanks for the reply...
    Old EXP IMP doesnt have capability to append the row, since you're using 10g use datapump instead. use option TABLE_EXISTS_ACTION=APPENDso my import should be like this
    imp "'/ as sysdba'" file=Table1_1006.dmp fromuser=user1 touser=user1 tables=Table1 log=imp_Table1_1006.log TABLE_EXISTS_ACTION=APPEND
    Did you look up the command line syntax and control options for imp?
    You should make it a habit that whenever anyone - especially a stranger on the web - gives you a bit of code or references a command or init parm or any some such, the VERY FIRST thin you should ALWAYS do is look it up for yourself and see exactly where and how it is used and what it means. That is how you grow beyond having to be spoon fed every little thing and become more self-sufficient.
    If you had, you would have seen that there is no TABLE_EXISTS_ACTION option for imp and seen that it is an option for impdp. And realized that exp and imp are NOT the same thing as expdp and impdp.
    =================================================
    Learning how to look things up in the documentation is time well spent investing in your career. To that end, you should drop everything else you are doing and do the following:
    Go to tahiti.oracle.com.
    Drill down to your product and version.
    <b><i><u>BOOKMARK THAT LOCATION</u></i></b>
    Spend a few minutes just getting familiar with what is available here. Take special note of the "books" and "search" tabs. Under the "books" tab you will find the complete documentation library.
    Spend a few minutes just getting familiar with what <b><i><u>kind</u></i></b> of documentation is available there by simply browsing the titles under the "Books" tab.
    Open the Reference Manual and spend a few minutes looking through the table of contents to get familiar with what <b><i><u>kind</u></i></b> of information is available there.
    Do the same with the SQL Reference Manual.
    Do the same with the Utilities manual.
    You don't have to read the above in depth. They are <b><i><u>reference</b></i></u> manuals. Just get familiar with <b><i><u>what</b></i></u> is there to <b><i><u>be</b></i></u> referenced. Ninety percent of the questions asked on this forum can be answered in less than 5 minutes by simply searching one of the above manuals.
    Then set yourself a plan to dig deeper.
    - Read a chapter a day from the Concepts Manual.
    - Take a look in your alert log. One of the first things listed at startup is the initialization parms with non-default values. Read up on each one of them (listed in your alert log) in the Reference Manual.
    - Take a look at your listener.ora, tnsnames.ora, and sqlnet.ora files. Go to the Network Administrators manual and read up on everything you see in those files.
    - When you have finished reading the Concepts Manual, do it again.
    Give a man a fish and he eats for a day. Teach a man to fish and he eats for a lifetime.
    =================================

  • TO ALL THOSE HAVING TROUBLE WITH ICHAT AND AIM ON MACBOOKS

    I've had a lot of trouble with AIM and iChat on my new Macbook, but I believe I've figured out the answers to all the problems I and others have encountered.
    Firstly, for those who's AIM continually crashes and displays the message "The application AIM unexpectedly shut down," my answer to your problem is too many sent messages. Watch the bar in the bottom left of your chat window, when it reaches red, your application will probably shut down.
    Secondly, for those experiencing difficulties with iChat, it's most likely a problem with communitcation between your wireless router and your computer. Try these steps:
    1. From the Apple menu, choose System Preferences.
    2. From the View, choose Sharing.
    3. Click the Firewall tab.
    4. Click New.
    5. From the Port Name pop-up menu, choose Other.
    If you have a Macbook, you'll probably have a TCP Port Number Bar and a UDP Port Number Bar. Try these steps:
    1. In the TCP Port Number(s) Bar, type: 5190, 5298
    2. In the UDP Port Number(s) Bar, type: 1024-5219, 5221, 5223-65535
    3. In the Description Bar, type: iChat AV
    4. Click OK
    5. Click Start above the window with your firewall settings, and make sure the box next to iChat AV is checked
    6. Relaunch iChat
    Good Luck! I hope this solves some of the problems that people have been encountering.

    Rob
    My Linksys is the WAG54G, which might be different from your WRT54G. Currently, UPnP is disabled and the Router ports are a bit of a mystery, because they're forwarded to an IP address that's outside of the current DHCP Address Range! Once I got it working, I was reluctant to change it even though it looked anomalous.
    The Firewall is on, with the iChat ports open that I listed in the previous post.
    My two regular buddies are my sons, who both use Trillian Pro on a Windows machine. Works pretty well despite occasional freezes or garbled sound.
    Hope you get sorted soon.
    Dave

  • I am having trouble with safari and most apps shutting down when I'm in the middle of stuff what do I need to do to resolve this?

    I am havering trouble with safari and apps shutting down on me all the time what can I do to resolve this problem. Thanks :-)

    Make sure you have enough free space on your iPad. With iOS 7 it is recommended that you have 15-20% of the storage space on the device free.  For a 16 GB device that is 2.4-3.2 GB free. For a 32 GB device that is 4.8-6.4 GB free. For a 64 GB device that is 9.6-12.8 GB free.
    Also try a reset. Press and hold the Home and Sleep buttons simultaneously until the Apple logo appears. Let go of the buttons and let the device restart. See if that fixes your problem.

  • I'm Having trouble with OWA and Certs after the Rollup 7 for SP3 installation. any idea? update 2961522-

    Hi, everyone.
    I'm Having trouble with OWA and Certs after the Rollup 7 for SP3 installation. any idea? update 2961522-
    after running get-OWAVirtualDirectory or test-OWAConnectivity i'm getting a message that says "OWA it's Orphan, No Metadata information can be found."
    I only have the OWA users impacted.- anywhere users, and ActiveSync are working well.-
    Thanks,
    Fabian Alberto Campo
    MCT-MCSA 2012-MCITP365-MCTS
    Fabián A. Campo H. Consultor tecnico @ IXO Ltda. MCT MCP MCTS MCSA HP-APS Cra. 67 No. 167 – 61 of 303 Bogotá, Colombia

    Hi Fabian,
    Is there any error code when user access their mailbox on OWA. Please confirm if there is no results returned in EMS when you run Get-OWAVirtualDirectory cmdlet. Also check whether there is any Event Logs related to OWA in Exchange.
    In IIS manager, make sure the OWA virtual directory is listed in the Default Web Site. In EMC, we can navigate to Server Configuration > Client Access, select server and turn to Outlook Web App tab. Then we can click Reset Virtual Directory in the right
    Actions pane to reset OWA virtual directory.
    Additionally, please restart IIS service by running iisreset /noforce from a Command Prompt window.
    Regards,
    Winnie Liang
    TechNet Community Support

  • Trouble with edit and develop after november 2013 release?

    Hi,
    I can not use edit and develop after release November 2013.
    I am a user from Sweden and wonder if it only hit European data center?
    The language has also changed from Swedish to English in the modules.
    I can not access the following in Site Settings:
    Admin users
    Mobile support
    Secure Domain redirect
    Beta features
    Does anyone have the same problem?
    Regards André

    Hi Florin
    There is no errors in the browser. I tested Chrome, Safari, Firefox.
    I sent a video to your colleague Silviu Ghimposanu (Adobe Business Catalyst Support)
    He can give you more information. I submit tickets. Ticketsnr 60092, 60085
    Maybe you can solve this together.
    Regards André
    20 nov 2013 kl. 12.17 skrev Florin Carlig:
    Re: Trouble with edit and develop after november 2013 release?
    created by Florin Carlig in Business Catalyst - View the full discussion
    Hi Andre,
    Can you please record a quick video with the errors you might have in your browser, in the browser's console?
    Here's what I want (a video I did in Chrome): http://screencasteu.worldsecuresystems.com/Florin/2013-11-20_1306.swf
    You can use Jing to record this kind of videos: http://www.techsmith.com/jing.html
    Thanks and regards,
    Florin
    Please note that the Adobe Forums do not accept email attachments. If you want to embed a screen image in your message please visit the thread in the forum to embed the image at http://forums.adobe.com/message/5857868#5857868
    Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: Re: Trouble with edit and develop after november 2013 release?
    To unsubscribe from this thread, please visit the message page at Re: Trouble with edit and develop after november 2013 release?. In the Actions box on the right, click the Stop Email Notifications link.
    Start a new discussion in Business Catalyst at Adobe Community
    For more information about maintaining your forum email notifications please go to http://forums.adobe.com/thread/416458?tstart=0.

  • I have an iPhone and just goy I pad but no computer I'm trying to synch them together but having trouble with iCloud and I can't seem to subscribe for iTunes match from either devise

    I have an iPhone and just goy I pad but no computer I'm trying to synch them together but having trouble with iCloud and I can't seem to subscribe for iTunes match from either devise

    You first have to subscribe to iTunes Match through iTunes on your computer and have your music library in iTunes uploaded/matched before you can enable it on your iOS devices (see http://www.apple.com/itunes/itunes-match/).  Without a computer you won't be able to use iTunes Match.

  • Have trouble with CMP and relationships

    Hello and Thank you for your time.
    I'm having a bit of trouble using entity beans and CMP, I'm probably doing some thing wrong. The main problem I am having is with a many to many relationship. Let's say I have the following code:
    ClassA.java
    @Entity
    public class ClassA implements Serializable {
    <other variables>
    private Collection<Class1> class1Collection;
    <other methods>
    @ManyToMany(cascade=CascadeType.ALL, mappedBy = "classACollection")
    public Collection<Class1> getClass1Collection() {
    return class1Collection;
    public void setClass1Collection(Collection<Class1> class1Collection) {
    this.class1Collection = class1Collection;
    Class1.java
    @Entity
    public class Class1 implements Serializable {
    <other variables>
    private Collection<ClassA> classACollection;
    <other methods>
    @ManyToMany
    public Collection<ClassA> getClassACollection() {
    return class1Collection;
    public void setClassACollection(Collection<ClassA> classACollection) {
    this.class1Collection = class1Collection;
    In the 'other variables' each table has a @Id field and setters and getters for the Id.
    This code half works. If I set the collection in ClassA with a Collection of Class1 objects this is populated in to the database and the getClass1Collection method for this also works. If I then try to use the getClassACollection method from a Class1 object the entity manager throws a relationship not complete exception (or some thing to that effect). it is also the case that if I create a list of ClassA objects and place it in to the Class1 objects variable, this does not populate in to the database.
    Some thing similar also happens with OneToMany and ManyToOne relationship (only one side of the relationship seems to be part of the relationship)
    What am I doing wrong?
    Edited by: tehBoris on Mar 26, 2010 1:18 PM

    Yes, that's as it should be, but I think the problem is the default for adding the auto page numbers. The default on the top of the dialog box that appears when you choose Auto Page Numbers from the menu says:
    Show in Document.
    That seems to be the default.  Page numbers in sections won't work with that default. To get it to work, you have to select:
    Show in Current Section.
    I think I'm right on this, but I'm not sure. I'll have to practice some more. Perhaps this is a default that should be changed in the next version, but I don't know.
    Tom

  • Having trouble with itunes and windows 8

    anyone else having trouble with windows 8 and itunes?  My computer doesn't seem to recognize my shuffle.

    A simple search would have answered such a silly question.

  • Trouble with itunes and time machine

    i am having trouble with my iphone and thought it may have been itunes, so i went into time machine and tried to replace my current version of itunes with the last one. Everything went fine until i got right to the end of replacing it. it said i didnt have the authorization to do that...or something along those lines... now i cant even open itunes, ill click on it and it just bounces once and thats it. can anyone help me!?

    I haven't been able to back up to my FreeAgent external hard drive
    The TM disk is your backup destination and I assume it is the Seagate FreeAgent disk. The source is your Mac.
    Wireless. I have a Seagate FreeAgent external hard drive plugged in by USB to the mac.
    You say it is connected via USB, yet your are saying backups are done wirelessly.
    From Terminal, can you post the output of tmutil destinationinfo (remove any personal information as you see fit)?

Maybe you are looking for

  • Possible to see at a glance who has/has not viewed pdf via the 'Tracker'?

    We are working on setting up procedures for Browser-based reviews. We were hoping we'd be able to see at-a-glance who had/had not viewed or sent back comments, and the date they sent them in the Tracker, but it seems to be just a list of who it was s

  • Windows 8.1 driver for hp pavilion dv61215ee

    dears . i'd like to change my operating system to windows 8.1 but i'don't find any driver support my notebook hp pavilion dv6 1215ee pls help me to solve this problem . thanks in advance maha

  • ORA-06521: PL/SQL: Error mapping function

    Hi folks, I am trying to run gather_table_stats for a particular table but am getting the below error. Any ideas? SQL> execute DBMS_STATS.gather_table_stats( ownname=>'DBO',tabname=>'CD_JOURNAL_CHANGE_REG',method_opt=>'FOR ALL INDEXED COLUMNS',cascad

  • Recording to Mac from Cable Box through fire wire port

    I used AVCVideoCap to capture a .m2t video from the firewire port in my cable box. Using VLCs export wizard, I converted the audio to .mp4 and the video codec to h.264. Playing the converted file in VLC sounds and looks just as good as the original,

  • 5320 Bugged after failed update...

    As said...my phone is bugged after a failed update and its only showing "mode mode nokia" on the screen. Any solution to this?