bcsmith8's Profile User Rating: -----

Reputation: 0 Apprentice
Group:
Members
Active Posts:
18 (0.02 per day)
Joined:
20-August 12
Profile Views:
317
Last Active:
User is offline Feb 24 2014 12:28 PM
Currently:
Offline

Previous Fields

Country:
US
OS Preference:
Windows
Favorite Browser:
Internet Explorer
Favorite Processor:
Intel
Favorite Gaming Platform:
Who Cares
Your Car:
Mazda
Dream Kudos:
0
Icon   bcsmith8 has not set their status

Posts I've Made

  1. In Topic: Having problems with an Inventory Program

    Posted 24 Feb 2014

    Here is what I believe you need to do.

    In the Inventory class do the following.

    -Cut line 21 and paste it in the try catch that starts at line 52.
    -Add the user inputted parameters to the ExtendedSoftware object you are creating.

    Here is what your try-catch block should look like after making the changes.

    try{
         ExtendedSoftware sw = new ExtendedSoftware(softwareTitle,softwareItem,softwareType,softwareStock,softwarePrice);
         inv.addSoftware(sw);
    }
    catch(Exception e){
         System.out.println("Inventory is full");
    }
    
    


    This will pass the user values to the ExtendedSoftware object you create.

    View Postbcsmith8, on 24 February 2014 - 01:03 PM, said:

    Here is what I believe you need to do.

    In the Inventory class do the following.

    -Cut line 21 and paste it in the try catch that starts at line 52.
    -Add the user inputted parameters to the ExtendedSoftware object you are creating.

    Here is what your try-catch block should look like after making the changes.

    try{
         ExtendedSoftware sw = new ExtendedSoftware(softwareTitle,softwareItem,softwareType,softwareStock,softwarePrice);
         inv.addSoftware(sw);
    }
    catch(Exception e){
         System.out.println("Inventory is full");
    }
    
    


    This will pass the user values to the ExtendedSoftware object you create.



    After looking at your ExtendedSoftware Constructor, it looks like the order is not the same as what you read in.

    The code should actually be:
    try{
         ExtendedSoftware sw = new ExtendedSoftware(softwareTitle,softwareStock,softwarePrice,softwareItem,softwareType);
         inv.addSoftware(sw);
    }
    catch(Exception e){
         System.out.println("Inventory is full");
    }
    
    

    so it matches the constructor.

    My apologies.
  2. In Topic: Combine table entries with same value

    Posted 24 Feb 2014

    View Postandrewsw, on 24 February 2014 - 12:37 PM, said:

    What have you tried?

    Join tables and queries :Microsoft

    BTW Personally I don't put spaces in database-object or field-names.


    I will keep that in mind for my future naming conventions.

    Below is what I have tried. Shouldn't [Order].[Order Number]=[Order Items].[Order Number] in criteria combine the fields when the value in Order Number is equal? Everything else works correctly except for this. A seperate entry is created regardless of equality between Order Numbers. If this is too ambiguous, let me know and I will attach the database.

    SELECT Order.[Order Date], Order.[Order Time], Sum([Order Items]![Quantity]) AS Expr1, Menu.Price, [Expr1]*[Menu]![Price] AS Expr2
    FROM [Order] INNER JOIN (Menu INNER JOIN [Order Items] ON Menu.[Menu Item Id] = [Order Items].[Menu Item Id]) ON Order.[Order Number] = [Order Items].[Order Number]
    GROUP BY Order.[Order Date], Order.[Order Time], Menu.Price, Order.[Order Number], [Order Items].[Order Number]
    HAVING (([Order].[Order Number]=[Order Items].[Order Number]));
    


    Thanks
  3. In Topic: Beginner GUI Positioning Question

    Posted 9 May 2013

    View Postpbl, on 08 May 2013 - 07:25 PM, said:

    Use Strut instead of RigidArea
    Simply put your actual eastBox in an horizontalBox with a horizontalStrut
    add that combination to the EAST reason

        Box withGap = Box.createHorizontalBox();
        withGap.add(eastBox);
        withGap.add(Box.createHorizontalStrut(20));
        add(withGap, BorderLayout.EAST);
    
    


    Ok I never thought about putting multiple boxes inside one another. Very useful. Thanks!

My Information

Member Title:
New D.I.C Head
Age:
Age Unknown
Birthday:
Birthday Unknown
Gender:
Years Programming:
1

Contact Information

E-mail:
Private

Friends

bcsmith8 hasn't added any friends yet.

Comments

bcsmith8 has no profile comments yet. Why not say hello?