Hi i need help with getting my homework for school

im in a nine week class that ends tommorw and need help go\etting my program working properly these are the requirements ofr the assignments:
Modify the Inventory Program by adding a button to the GUI that allows the user to move
to the first item, the previous item, the next item, and the last item in the inventory. If the
first item is displayed and the user clicks on the Previous button, the last item should
display. If the last item is displayed and the user clicks on the Next button, the first item
should display.
· Add a company logo to the GUI using Java graphics classes.
Modify the Inventory Program to include an Add button, a Delete button, and a Modifybutton on the GUI. These buttons should allow the user to perform the corresponding actions on the item name, the number of units in stock, and the price of each unit. An item added to the inventory should have an item number one more than the previous last item. Add a Save button to the GUI that saves the inventory to a C:\data\inventory.dat file. Use exception handling to create the directory and file if necessary. Add a search button to the GUI that allows the user to search for an item in the inventory by the product name. If the product is not found, the GUI should display an appropriate message. If the product is found, the GUI should display that product’s information in the GUI. Post final .class and .java files as an attachment.
this is what i have there are three java files im puttong in here
first is the panel frame
import java.awt.GridLayout;
import java.awt.BorderLayout;
import java.awt.FlowLayout;
import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.JButton;
import javax.swing.JLabel;
import java.awt.GridBagLayout;
import java.awt.GridBagConstraints;
import java.awt.Component;
import javax.swing.SwingConstants;
import javax.swing.Icon;
import javax.swing.JComboBox;
import javax.swing.JTextArea;
import javax.swing.JList;
import java.util.*;
import java.text.NumberFormat;
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
import java.net.URL;
import java.io.*;
import java.util.Scanner;
import javax.swing.JOptionPane;
import java.text.NumberFormat;
public class PanelFrame extends JFrame
     private JPanel buttonJPanel; // panel to hold buttons
     private JButton buttons[]; // array of buttons
     private JLabel label1; // JLabel iventory number
     private JLabel label2; // JLabel product name
     private JLabel label3; // JLabel product price
     private JLabel label4; // JLabel product in stock
     private String p_ProductName; // private variable for the employee name.
     private int p_UnitCount; // private variable for the hours worked.
     private double p_UnitPrice; // private variable for the hourly wage.
     private int p_ItemNumber; // private inventory number
     //create inventory object
     Inventory myInventory = new Inventory ();
// no-argument constructor
public PanelFrame()
super( "Panel Demo" );
//Add items to the inventory within the Invntory
          myInventory.addItem(new productinfo(1,"Html a Begginers Guide",14,29.99));
          myInventory.addItem(new productinfo(2,"Html 4 for Dummies",6,29.99));
          myInventory.addItem(new productinfo(3,"Visio Step by Step",7,24.99));
          myInventory.addItem(new productinfo(4,"APA Publication Manual",14,47.99));
          myInventory.addItem(new productinfo(5,"The Gregg Reference Manual",14,37.56));
setLayout( new FlowLayout() ); // set frame layout
// JLabel constructor with a string argument
          label1 = new JLabel( "Inventory Number:%s: %d\n ",p_ItemNumber );
          label1.setToolTipText( "This is Inventory number" );
          add( label1 ); // add label1 to JFrame
          label2 = new JLabel( "\n\nProduct Name: %s: %s\n", p_ProductName);
          label2.setToolTipText( "This is Product Name" );
          add( label2 ); // add label1 to JFrame
          label3 = new JLabel( "\n\nPrice : %s:$%.2f\n",p_UnitPrice );
          label3.setToolTipText( "This is product Price");
          add( label3 ); // add label1 to JFrame
          label4 = new JLabel( "\n\nQuanity %s: %d\n",p_UnitCount);
          label4.setToolTipText( "This is Quanity in stock: " );
          add( label4 ); // add label1 to JFrame
buttons = new JButton[ 4 ]; // create buttons array
buttonJPanel = new JPanel(); // set up panel
buttonJPanel.setLayout( new GridLayout( 1, buttons.length ) );
          String names[] = { "First", "Previous", "Next", "Last"  };
          JButton buttons[] = new JButton[ names.length ];
          // create and add buttons
          for ( int count = 0; count < buttons.length; count++ )
          buttons[ count ] = new JButton( names[ count ] );
          buttonJPanel.add( buttons[ count ] ); // add button to panel
          } // end for
// setup the logo for the GUI ...image needs to be in same directory as source code
          URL url = this.getClass().getResource("book103.gif");
          Image img = Toolkit.getDefaultToolkit().getImage(url);
          // scale the image so that it'll fit in the GUI
          Image scaledImage = img.getScaledInstance(100, 100, Image.SCALE_AREA_AVERAGING);
          // create a JLabel with the image as the label's Icon
          Icon logoIcon = new ImageIcon(scaledImage);
          JLabel companyLogoLabel = new JLabel(logoIcon);
          companyLogoLabel.setBorder(BorderFactory.createEmptyBorder(3,3,3,3));
          // add the logo to the GUI
          getContentPane().add(companyLogoLabel, BorderLayout.WEST);
add( buttonJPanel, BorderLayout.SOUTH ); // add panel to JFrame
} // end PanelFrame constructor
} // end class PanelFrame

this is the original part again with the code tag added
import java.awt.GridLayout;
import java.awt.BorderLayout;
import java.awt.FlowLayout;
import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.JButton;
import javax.swing.JLabel;
import java.awt.GridBagLayout;
import java.awt.GridBagConstraints;
import java.awt.Component;
import javax.swing.SwingConstants;
import javax.swing.Icon;
import javax.swing.JComboBox;
import javax.swing.JTextArea;
import javax.swing.JList;
import java.util.;
import java.text.NumberFormat;
import javax.swing.;
import java.awt.;
import java.awt.event.;
import java.net.URL;
import java.io.*;
import java.util.Scanner;
import javax.swing.JOptionPane;
import java.text.NumberFormat;
public class PanelFrame extends JFrame
private JPanel buttonJPanel; // panel to hold buttons
private JButton buttons[]; // array of buttons
private JLabel label1; // JLabel iventory number
private JLabel label2; // JLabel product name
private JLabel label3; // JLabel product price
private JLabel label4; // JLabel product in stock
private String p_ProductName; // private variable for the employee name.
private int p_UnitCount; // private variable for the hours worked.
private double p_UnitPrice; // private variable for the hourly wage.
private int p_ItemNumber; // private inventory number
//create inventory object
Inventory myInventory = new Inventory ();
// no-argument constructor
public PanelFrame()
super( "Panel Demo" );
//Add items to the inventory within the Invntory
myInventory.addItem(new productinfo(1,"Html a Begginers Guide",14,29.99));
myInventory.addItem(new productinfo(2,"Html 4 for Dummies",6,29.99));
myInventory.addItem(new productinfo(3,"Visio Step by Step",7,24.99));
myInventory.addItem(new productinfo(4,"APA Publication Manual",14,47.99));
myInventory.addItem(new productinfo(5,"The Gregg Reference Manual",14,37.56));
setLayout( new FlowLayout() ); // set frame layout
// JLabel constructor with a string argument
label1 = new JLabel( "Inventory Number:%s: %d\n ",p_ItemNumber );
label1.setToolTipText( "This is Inventory number" );
add( label1 ); // add label1 to JFrame
label2 = new JLabel( "\n\nProduct Name: %s: %s\n", p_ProductName);
label2.setToolTipText( "This is Product Name" );
add( label2 ); // add label1 to JFrame
label3 = new JLabel( "\n\nPrice : %s:$%.2f\n",p_UnitPrice );
label3.setToolTipText( "This is product Price");
add( label3 ); // add label1 to JFrame
label4 = new JLabel( "\n\nQuanity %s: %d\n",p_UnitCount);
label4.setToolTipText( "This is Quanity in stock: " );
add( label4 ); // add label1 to JFrame
buttons = new JButton[ 4 ]; // create buttons array
buttonJPanel = new JPanel(); // set up panel
buttonJPanel.setLayout( new GridLayout( 1, buttons.length ) );
String names[] = { "First", "Previous", "Next", "Last" };
JButton buttons[] = new JButton[ names.length ];
// create and add buttons
for ( int count = 0; count < buttons.length; count++ )
buttons[ count ] = new JButton( names[ count ] );
buttonJPanel.add( buttons[ count ] ); // add button to panel
} // end for
// setup the logo for the GUI ...image needs to be in same directory as source code
URL url = this.getClass().getResource("book103.gif");
Image img = Toolkit.getDefaultToolkit().getImage(url);
// scale the image so that it'll fit in the GUI
Image scaledImage = img.getScaledInstance(100, 100, Image.SCALE_AREA_AVERAGING);
// create a JLabel with the image as the label's Icon
Icon logoIcon = new ImageIcon(scaledImage);
JLabel companyLogoLabel = new JLabel(logoIcon);
companyLogoLabel.setBorder(BorderFactory.createEmptyBorder(3,3,3,3));
// add the logo to the GUI
getContentPane().add(companyLogoLabel, BorderLayout.WEST);
add( buttonJPanel, BorderLayout.SOUTH ); // add panel to JFrame
} // end PanelFrame constructor
} // end class PanelFrame

Similar Messages

  • I need help with getting an update for my 1st generation ipod shuffle.

    I am trying to install iTunes and iPod software on my computer but the iPod cd is apparently not compatible with my version of windows. I need to download an update but I cannot get any support because my 1st generation iPod shuffle is not one of the selections available for support. Does anyone know how I can download the update I need?

    Neil, I installed itunes but that hasn't helped the issue I am having with my 1st generation iPod. I have searched and searched but there is nothing that allows me to update my iPod, download to my iPod, all I see is iPhone or iPad, neither of which I happen to own, so I am still at square one with my problem. I can't get any Apple support because my iPod is not one of the choices, no mention of the 1st generation. It's as if it no longer exists and there is no support available. I tried plugging it into my usb port, hoping that something would pop up on the screen and give me guidance, but alas, that failed as well. I feel like this whole thing is an exercise in futility.  Thanks for your attempt to assist me.

  • HT4199 I need help with getting my printer to print, PLEASE.

    I need help with getting my printer to print, Please.

    What have you done so far?
    I suggest you connect it via a usb  cable first.  Once you get the printer working, move to wifi.  You will have to use an existing printer usb cable or purchase a cable.  Be sure to get the correct cable.  Ask for help.
    The warrenty indicates there is phone support.  Give HP a call.
    Warranty
    One-year limited hardware warranty; 24-hour, 7 days a week phone support
    Robert

  • I think I need help with driver (software) settings for D110a

    I think I need help with driver (software) settings for D110a all-in-one
    Product: D110a all-in-one
    OS: Windows XP Professional
    Error messages: None
    Changes before problem appeared: None--new installation
    The quality of photo images (mostly JPG files) in printouts is awful even though the files display beautifully on the PC screen. I am using
    IrfanView software for displaying/printing. As far as I can tell, IrfanView is not the problem.
    When I print the same images on a Deskjet 5150 attached to a different PC also running XP Pro and IrfanView, the quality of the printouts is at
    least acceptable, Some would probably say good or very good.
    It's dificult to explain in words the problem with the printouts. A picture of really pretty vegetables (squashes, tomatoes, watermelon, etc) comes
    out much too red. Moreover, the red, which appears shaded on the screen, seems to be all one shade in the D110a printouts.
    Something similar happens to a view of a huge tree in full leaf. On screen, there are subtle variations in the "greenness" of the leaves. In the
    printout, all green is the same shade. In the same printout, the trunk of the tree is all a single shade of grey. It isn;t even obvious that the
    trunk is a round, solid object.
    I liken the effect to audio that disappears entirely when you lower the volume and gets clipped into square waves in even moderately loud passages.
    I don't know whether the D110a driver software permits adjusting the parameters that appear to be set incorrectly, and if adjustments are possible,
    how I would identify which parameters to adjust, how I would access them, or how I would adjust them. I'm hoping that someone can help. Thanks.
    I forgot to mention that I have used the diagnostic application and it tells me that there are no problems.
    e-mail me at [email protected]

    brazzmonkey wrote:
    Hi everyone,
    I noticed the following message when network starts on my gateway
    Warning: This functionality is deprecated.
    Please refer to /etc/rc.conf on how to define a single wired
    connection, or use a utility such as netcfg.
    Then I realized the way network settings should be written in rc.conf has changed. But I can't figure out how this should be done.
    Currently, my set up is the following (old way):
    INTERFACES=(eth0 eth1)
    eth0="dhcp"
    eth1="eth1 192.168.0.10 netmask 255.255.255.0 broadcast 192.168.0.255"
    ROUTES=(!gateway)
    eth0 is on DHCP because the IP is dynamically assigned my ISP.
    eth1 has a fix IP because it's on the LAN side.
    No problem to use DHCP on eth0 with the new settings.
    But for eth1, I don't know what I am supposed to write for gateway.
    Wiki isn't clear on that one either, and it looks like many articles still refer to the old way.
    Any guidance appreciated, thanks.
    brazzmonkey,
    you can't define 2 interfaces the old way (even though I saw some tricky workaround somewhere in the forums).
    Use, f.e., netcfg:
    Comment your old lines.
    In /etc/rc.conf insert:
    NETWORKS=(Eth0-dhcp Eth1-static)
    DAEMONS=(..... !network @net-profiles ....)
    In /etc/network.d create 2 files:
    First one is named  Eth0-dhcp.
    Contents:
    CONNECTION="ethernet"
    DESCRIPTION="Whatever text"
    INTERFACE=eth0
    HOSTNAME="your hostname"
    IP="dhcp"
    DHCP_TIMEOUT=15
    Second one is named Eth1-static.
    Contents:
    CONNECTION='ethernet'
    DESCRIPTION='whatver'
    INTERFACE='eth1'
    HOSTNAME='hname'
    IP='static'
    ADDR='192.168.0.10'
    GATEWAY='192.168.0.1' # your gateway IP
    DNS=('192.168.0.1') # your DNS server
    The names Eth0-dhcp and Eth1-static are not magic. They just must be the same in rc.conf and in /etc/network.d.
    Hope it helps.
    mektub
    PS: netcfg must be installed.
    Last edited by Mektub (2011-07-20 14:07:05)

  • Need help with a activation code for Adobe Acrobat X Standard for my PC,, Don't have older version serial numbers,  threw programs away,  only have Adobe Acrobat X Standard,  need a code to unlock program?

    Need help with a activation code for Adobe Acrobat X Standard for my PC, Don't have older Version of Adobe Acrobat 9, 8 or 7. 

    You don't need to install the older version, you only need the serial number from your original purchase. If you don't have them to hand, did you register? If so, they should be in your Adobe account. If not you really need to contact Adobe, though it isn't clear they will be able to do anything without some proof of purchase etc.

  • I need help with downgradeing my ios for my ipod touch 4th gen

    i need help with downgradeing my ios for my ipod touch 4th gen

    As has alwys been the case, you cannot go back.
    Sorry

  • [solved]Need help with a bash script for MOC conky artwork.

    I need some help with a bash script for displaying artwork from MOC.
    Music folders have a file called 'front.jpg' in them, so I need to pull the current directory from MOCP and then display the 'front.jpg' file in conky.
    mocp -Q %file
    gives me the current file playing, but I need the directory (perhaps some way to use only everything after the last  '/'?)
    A point in the right direction would be appreciated.
    thanks, d
    Last edited by dgz (2013-08-29 21:24:28)

    Xyne wrote:
    You should also quote the variables and output in double quotes to make the code robust, e.g.
    filename="$(mocp -Q %file)"
    dirname="${filename%/*}"
    cp "$dirname"/front.jpg ~/backup/art.jpg
    Without the quotes, whitespace will break the code. Even if you don't expect whitespace in any of the paths, it's still good coding practice to include the quotes imo.
    thanks for the tip.
    here it is, anyhow:
    #!/bin/bash
    filename=$(mocp -Q %file)
    dirname=${filename%/*}
    cp ${dirname}/front.jpg ~/backup/art.jpg
    then in conky:
    $alignr${execi 30 ~/bin/artc}${image ~/backup/art.jpg -s 100x100 -p -3,60}
    thanks for the help.
    Last edited by dgz (2013-08-29 21:26:32)

  • Need help with "get info" dialog box

    Hi Everyone!
    I need some help with trying to figure out what some of the options are in the "Get Info" dialog box. I've searched the iTunes help and these forums, but can't find anything.
    So, in the options tab,
    1. What does "Part of compilation" Y/N, do for me?
    2. Same for "Remember Position"
    3. And finally, "Gapless album"
    Thanks, Vince.

    1. when you import a compilation album (like an 80's compilation or something), itunes will import it as
    song 1, artist 1, 80's greatest hits
    song 2, artist 2, 80's greatest hits etc
    Click part of a compliation means that, it means that it would keep them altogether rather than having lots of songs everywhere
    2. If you start playing a song, then stop, part way through, when you next come to the song, itunes will remember where you left off
    3. Albums like jean michel jarre, classical, mike oldfield, etc, have many songs which merge into each other. Having gapless album ticked will ensure that, when playing the album, there are no gaps between songs

  • Need help with output type EDI for ERS

    All,
    I want to be able to run and ERS settlement and have the invoices created sent via EDI/XML to the supplier.   I have several questions on the set up.
    1)  I have output type ERS6 which is defined as ERS EDI.  I assume because it does not start with Z* this is SAP standard, so I shouldn't have to modify any of this.
    2)  I've added my supplier to this output type. 
    3)  I assume I need to create a partner profile for this supplier?  If so can someone tell me the message type to use?
    Is there any set up I'm missing in this process?   I've executed ERS but do not get an idoc and I'm fairly certain it's because I haven't done the partner profile set-up.
    Thanks for your help.
    Sandra

    Hi,
    You don't have to modify thise setup unless you have any customized requirement.
    You are missing partner profile setup.Carry out the setup and run MRRL tcode to create the idocs
    Enter the following values using tcode WE20.
    Field                                       Value
    Message type                         GSVERF
    Partner type                             LI (vendor)
    Partner function                        LF (vendor)
    Port                                         SUBSYSTEM ( Port to your middleware)
    Output mode                            such as Collect IDocs
    Basic type                                GSVERF01
    Application                                 MR
    Output type                                ERS6 or the type you have defined
    Regards,
    Karuna

  • I need help with proper DNS setup for 10.5.8 Server

    I'm administering a 10.5.8 server that I sold and setup about a year ago. I'm experiencing issues with getting iCal server to be happy. All of the clients are running 10.5.8, but I'm running 10.6.1. I've heard from others that connecting iCal in 10.6 to a 10.5 iCal Server should be no problem.
    I'm beginning to think that I have DNS issues. Probably because I'm not and never have been 100% certain how to set it up completely correctly. I used to be able to get Kerberos tickets, but now I can't. With the new "Ticket Viewer" in 10.6, it asks for two bits of information. First is "Identity" where I'm guessing I should put [email protected] and then password. When I do this I get an alert dialog that says "Kerberos Error -- cannot resolve network address for KDC in realm example.com"
    The server is a Mac Pro tower with two Ethernet ports. En2 is connected directly to the Internet and has a static IP with a domain name assigned to it. We'll call it "example.com" for the purposes of the discussion. The En1 is connected to the network switch and has a static LAN IP of 192.168.1.250. All clients inside and outside are able to reach the server via domain name for WWW & AFP, no problem.
    nslookup on the static IP address returns "example.com" and nslookup on "example.com" returns the correct static IP address. Open Directory is running and happy including Kerberos. The LDAP search base is "dc=example,dc=com". The LDAP search base is a concept I haven't quite grasped, so I'm just going to assume it's correct.
    The domain name is hosted outside by a service provider that forwards all "example.com" requests to the server with the exception of mail.
    In DNS, I have three "sections" that look like this:
    Name Type Value
    1.168.192.in-addr.arpa. Reverse Zone -
    192.168.1.250 Reverse Mapping example.com.
    000.000.00.in-addr.arpa. Reverse Zone -
    000.000.000.000 Reverse Mapping example.com.
    com. Primary Zone -
    mail.example.com. Alias mail.our-email-isp.com.
    example.com. Machine Multiple values
    www.example.com. Machine Multiple values
    NOTE: the zeros aren't actually zeros, they are the static IP assigned to the server/domain
    When I select the top element "1.168.192.in-addr.arpa." down below "Allows zone transfer" is NOT checked. Nameservers shows the zone as "1.168.192.in-addr.arpa." and the Nameserver Hostname as "ns.example.com."
    When I select the next line down "192.168.1.250", Resolve 192.168.1.250 to: example.com.
    When I select the "000.000.00.in-addr.arpa." element, it has the same settings -- nameservers "000.000.00.in-addr.arpa." and "ns.example.com."
    When I select the next line down (our static IP), Resolve 000.000.000.000 to: example.com.
    When I select "com." the admin email is populated with a valid email address, Allows zone transfer is NOT checked. In nameservers, Zone is "com." and Nameserver Hostname is "example.com." The mail exchangers are mail2.our-email-isp.com. priority 10 and mail.our-email-isp.com. and priority 20.
    When I select the machine "example.com." it shows both the real-world static IP and the 192.168.1.250, same with "www.example.com.".
    Am I doing something wrong with this setup? Should "com." be the primary zone or should that be "example.com." ???
    I've been thinking about getting rid of the DNS entry for the 192.168.1.250 address altogether, but will the clients in the office suffer performance issues??? I do not think that the client workstations are configured to get DNS from the server anyway. Should the "www.example.com." record be a Machine record or should it be an alias record?
    Any help you have to offer is greatly appreciated! Thanks!
    In the meantime, I'm going to look around and see if I can understand "Allows zone transfer" and LDAP Search base a bit better.

    Okay, I found a lovely article at the following address which I think helps me to clarify what I'm doing wrong. Despite that, I'd still like to have any feedback you have to offer.
    http://www.makemacwork.com/configure-internal-dns-1.htm
    Also, when editing DNS entries, Server Admin likes to set the nameserver to "ns." -- whatever your domain is. Should I be overriding that and if so, replace it with what?

  • Need help with Photoshop and "Licensing for this product has stopped working" message. Adobe fix isn't working.

    I am still using CS3. A while back I received an error: "Licensing for this product has stopped working" for my CS3 programs. I used the recovery program suggested by Adobe and was able to get Illustrator, Flash and Dreamweaver to work, but I still can't open Photoshop or In Design. I went back to the Adobe site and did every other trick they suggested to fix the error, but nothing has worked.
    I then tried to uninstall photoshop from my CS3 suite (so I could reinstall) but got a JavaScript Alert: "Critical errors were found in set up. Please see set up log for file details." Seeing as I am not the best with the behind the scenes technical stuff, I have no idea what this means or where the set up log even is. Any help anyone can provide?
    I have had CS3 installed on my computer for over a year. I started having problems about 4 months ago.

    I am having similar problem.  Can't open any of CS3 programs after trying to download Dreamweaver Trial, which wouldn't work because "couldn't remove DLM extention" error message.  So now I can not run Illustrator, Photoshop, or even Adobe Reader.  These are properly licensed for about a year. I get "License for product has stopped working".  Have 2 pending cases open with Adobe support (one for Dreamweaver trial, one for license problem) since 8/3 with NO ANSWERS - It says answers within 1-3 business days.  Was on phone support hold today for over 3 hours before line went dead with no help.  What is up with adobe support?  Can anyone help?

  • Need help with date range searches for Table Sources in SES

    Hi all,
    I need help, please. I am trying to satisfy a Level 1 client requirement for the ability to search for records in crawled table sources by a date and/or date range. I have performed the following steps, and did not get accurate results from Advanced searching for date. Please help me understand what I am doing wrong, and/or if there is a way to define a date search attribute without creating a LOV for a date column. (My tables have 500,00 rows.)
    I am using SES 10.1.8.3 on Windows 32.
    My Oracle 10g Spatial Table is called REPORTS and this table has the following columns:
    TRACKNUM Varchar2
    TITLE Varchar2
    SUMMARY CLOB
    SYMBOLCODE Varchar2
    Timestamp Date
    OBSDATE Date
    GEOM SDO_GEOMETRY
    I set up the REPORTS table source in SES, using TRACKNUM as the Primary Key (unique and not null), and SUMMARY as the CONTENT Column. In the Table Column Mappings I defined TITLE as String and TITLE.
    Under Global Settings > Search Attributes I defined a new Search Attribute (type Date) called DATE OCCURRED (DD-MON-YY).
    Went back to REPORTS source previously defined and added a new Table Column Mapping - mapping OBSDATE to the newly defined DATE OCCURRED (DD-MON-YY) search attribute.
    I then modified the Schedule for the REPORTS source Crawler Policy to “Process All Documents”.
    Schedule crawls and indexes entire REPORTS table.
    In SES Advanced Search page, I enter my search keyword, select Specific Source Group as REPORTS, select All Match, and used the pick list to select the DATE OCCURRED (DD-MON-YY) Attribute Name, operator of Greater than equal, and entered the Value 01-JAN-07. Then the second attribute name of DATE_OCCURRED (DD-MON-YY), less than equals, 10-JAN-07.
    Search results gave me 38,000 documents, and the first 25 I looked at had dates NOT within the 01-JAN-07 / 10-JAN-07 range. (e.g. OBSDATE= 10-MAR-07, 22-SEP-07, 02-FEB-08, etc.)
    And, none of the results I opened had ANY dates within the SUMMARY CLOB…in case that’s what was being found in the search.
    Can someone help me figure out how to allow my client to search for specific dated records in a db table using a single column for the date? This is a major requirement and they are anxiously awaiting my solution.
    Thanks very much, in advance….

    raford,
    Thanks very much for your reply. However, from what I've read in the SES Admin Document is that (I think) the date format DD/MM/YYYY pertains only to searches on "file system" sources (e.g. Word, Excel, Powerpoint, PDF, etc.). We have 3 file system sources among our 25 total sources. The remaining 22 sources are all TABLE or DATABASE sources. The DBA here has done a great job getting the data standardized using the typical/default Oracle DATE type format in our TABLE sources (DD-MON-YY). Our tables have anywhere from 1500 rows to 2 million rows.
    I tested your theory that the dates we are entering are being changed to Strings behind the scenes and on the Advanced Page, searched for results using OBSDATE equals 01/02/2007 in an attempt to find data that I know for certain to be in the mapped OBSDATE table column as 01-FEB-07. My result set contained data that had an OBSDATE of 03-MAR-07 and none containing 01-FEB-07.
    Here is the big issue...in order for my client to fulfill his primary mission, one of the top 5 requirements is that he/she be able to find specific table rows that are contain a specific date or range of dates.
    thanks very much!

  • Need help with getting variable from static

    Hello,
    What I am building is an application that prompts for username/password before it shows the main screen. Once they have successfully logged in, I need to assign the username that they used, in order to use it for a button event if the make any updates.
    Here is the code that I have tried to use.
    public String username;
    ///This set's the public variable username
    public void setUserName(String UserName){
    username = UserName;
    /////////////////Here is where they login, and assign the name to setUsername
    public static void main(String args[]) throws SQLException {
    java.awt.EventQueue.invokeLater(new Runnable() {
    public void run() {
    JFrame frame = new JFrame();
    JTextField userName = new JTextField();
    JTextField passWord = new JTextField();
    Object[] options = {"OK","CANCEL"};
    Object[] msg = {"UserName:", userName, "Password:", passWord};
    final JOptionPane op = new JOptionPane(msg, JOptionPane.PLAIN_MESSAGE, JOptionPane.OK_CANCEL_OPTION){};
    JDialog dialog = op.createDialog(frame, "Please Login");
    dialog.show();
    int result = JOptionPane.OK_OPTION;
    try {
    result = ((Integer)op.getValue()).intValue();
    }catch(Exception uninitializedValue){}
    if(result == JOptionPane.OK_OPTION) {
    String userID = userName.getText();
    String passID = passWord.getText();
    Main myMain = new Main();
    myMain.setUserName(userID);
    if(!userID.equals("") && !passID.equals("")) {
    new Main().setVisible(true);
    }else {
    // user cancelled
    ////here is the button event that also will need the username
    private void selButtonActionPerformed(java.awt.event.ActionEvent evt) {
    Connection conn = null;
    Statement stmt3 = null;
    Statement stmt4 = null;
    ResultSet rset3 = null;
    ResultSet rset4 = null;
    String usernum = null;
    String xemu = null;
    String loc = null;
    String ustat = null;
    String manager = null;
    String dept = null;
    String Add = "Add";
    String Update = "Update";
    String groupID = "9999";
    Vector columnNames = new Vector();
    Vector data = new Vector();
    String Manager_info[] = {"managerindex", "managers", "managername"};
    String Account_info[] = {"acctypeindex", "acctype", "acctypedesc"};
    String Group_info[] = {"groupnum", "groups", "groupcode"};
    String System_info[] = {"systemindex", "systems", "systemname"};
    String Dept_info[] = {"departindex", "departments", "departname"};
    String Xemu_info[] = {"xemuindex", "xemulator", "xemudesc"};
    String Location_info[] = {"locindex", "location", "locdesc"};
    String Ustatus_info[] = {"ustatusindex", "userstatus", "ustatusdesc"};
    Date myDate = new Date();
    SimpleDateFormat formatter = new SimpleDateFormat("dd-MMM-yy");
    String today = formatter.format(myDate);
    System.out.println(username);
    I am trying to set the public username variable to what the person enters, however since I am creating a seperate instance of it, I don't believe it will work. Any help would be very much appreciated.
    Thanks.
    Josh

    I am developing in Netbeans. If I try to remove the static keyword from main(), netbeans canno't find a main to run. I have created the User class.
    Here is the main again to show what I have done.
    public static void main(String args[]) throws SQLException {
    java.awt.EventQueue.invokeLater(new Runnable() {
    public void run() {
    User user = new User();
    JFrame frame = new JFrame();
    JTextField userName = new JTextField();
    JTextField passWord = new JTextField();
    Object[] options = {"OK","CANCEL"};
    Object[] msg = {"UserName:", userName, "Password:", passWord};
    final JOptionPane op = new JOptionPane(msg, JOptionPane.PLAIN_MESSAGE, JOptionPane.OK_CANCEL_OPTION){};
    JDialog dialog = op.createDialog(frame, "Please Login");
    dialog.show();
    int result = JOptionPane.OK_OPTION;
    try {
    result = ((Integer)op.getValue()).intValue();
    }catch(Exception uninitializedValue){}
    if(result == JOptionPane.OK_OPTION) {
    String userID = userName.getText();
    String passID = passWord.getText();
    user.setName(userID);
    user.setPassword(passID);
    if(!userID.equals("") && !passID.equals("")) {
    //Auth.setUserName(userID);
    //Auth.setPassword(passID);
    new Main().setVisible(true);
    }else {
    // user cancelled
    This set's the variables
    Here is the beginning of the evt that I am using to try and get the data.
    private void selButtonActionPerformed(java.awt.event.ActionEvent evt) {                                         
    Connection conn = null;
    Statement stmt3 = null;
    Statement stmt4 = null;
    ResultSet rset3 = null;
    ResultSet rset4 = null;
    String usernum = null;
    String xemu = null;
    String loc = null;
    String ustat = null;
    String manager = null;
    String dept = null;
    String Add = "Add";
    String Update = "Update";
    String groupID = "9999";
    Vector columnNames = new Vector();
    Vector data = new Vector();
    User user = new User();
    String User = user.getName();
    System.out.println(User);
    String Manager_info[] = {"managerindex", "managers", "managername"};
    String Account_info[] = {"acctypeindex", "acctype", "acctypedesc"};
    String Group_info[] = {"groupnum", "groups", "groupcode"};
    String System_info[] = {"systemindex", "systems", "systemname"};
    String Dept_info[] = {"departindex", "departments", "departname"};
    String Xemu_info[] = {"xemuindex", "xemulator", "xemudesc"};
    String Location_info[] = {"locindex", "location", "locdesc"};
    String Ustatus_info[] = {"ustatusindex", "userstatus", "ustatusdesc"};
    Date myDate = new Date();
    SimpleDateFormat formatter = new SimpleDateFormat("dd-MMM-yy");
    String today = formatter.format(myDate);
    String [] str = {
    "EmpID", "Account", "System", "Type", "Status", "UserID", "Group"
    This gives me a null on the println, how can I get the data that was entered in main()?
    Thanks,
    Josh

  • SCCM Driver Injection : What am I missing? Need help with getting drivers installing correctly in my environment.

    Everyone,
    I'm not new to using SCCM, but i'm VERY new to setting up and managing it.  I have just laid it down for the school district that I manage, and i'm loving it.  Imaging is going great, all but one thing now...drivers installing.
    Let me tell you what I've been doing, so hopefully a kind soul out there can tell me where my logic of the driver "injection" process is lacking and might can fill in some gaps. 
    I downloaded all drivers pertaining to the 7-8 series of computers we have in our environment currently, and imported them based on a criteria such as this:
    x86.LenovoEdge71.Desktop
    x86.DellOpti755.Desktop
    so forth and so on
    I created packages based on the same exact naming scheme.  I update my distribution point at the end of the import, and all the drivers/packages/categories are in place.  When I go to Monitoring/Distribution Status/Content Status, all of my packages
    show up , but under targeted it says 0.
    My thoughts from reading online, is I upload all these drivers and during my task sequence where it says it's "applying device drivers" it's set to "install only the best matched compatible drivers" and "consider drivers from all
    categories".  I also checked "do unattended installation of unsigned drivers no versions of Windows where this is allowed".
    so correct me if my thinking is incorrect, it should search through all series of the computers we have in our environment and grab the best drivers from the overall database.  Is this not right?
    The reason I ask this, is we have a few hundred HP 6000 Pro desktops.  WHen I image them, it comes up with 2 unknown devices.  OF these, I can manually point them at the folder from which I uploaded the drivers for this series/category and it installs
    100% successfully...MANUALLY.  What's the reasoning behind this?
    I can't help but think there's something missing in my process / logic and I need to be set straight. 
    Can someone out there tell me what i'm doing wrong?  We're planning a district-wide re-imaging before summer's over, and the clock's ticking...but the drivers being installed are all that's keeping us from starting our migrations.
    Any help on this is GREATLY appreciated, thank you very much!

    You have setup everything correct, but for your desired result you need to use "Apply Driver Package" Task rather than "Auto Apply Drivers".
    Auto Apply drivers will install the best matched/compatible drivers for only the PNP devices.For more info on this:http://technet.microsoft.com/en-us/library/bb680990.aspx
    Whereas "Apply Driver Package" would install all drivers you have in the package and hence you don't see the unknown drivers in device manager. For more info on this: http://technet.microsoft.com/en-us/library/bb680403.aspx
    If you have multiple models, create this task for each model individually and then associate with a WMI query condition under Options tab to check the manufacturer/model
    Example: Select * from Win32_ComputerSystem where Manufacturer = "HP" and Model Like "6000%"
    Regards,
    Manohar Pusala

  • Need help with getting images to look smooth (without the bitmap squares) around the edges. When I transfer the image from pictures, it sets itself into the InDesign layout, but with square edges. I need to find out how to get it to look smooth?

    Need to find out how to get my images transferred into an InDesign layout without the rough edges, as with a bit map image, but to appear with smooth edges in the layout. I can notice it more when I enlarge the file (pic). How can I get it to appear smooth in the finished layout. Another thing too that I noticed; it seems to have effected the other photos in the layout. They seem to be
    pixelated too after I import the illustration (hand drawn artwork...)? Any assistance with this issue will be greatly appreciated. Thanks in advance.

    No Clipboard, no copy & paste, as you would not get the full information of the image.
    When you paste you can't get the image info from the Links panel, but you can get resolution and color info either via the Preflight panel or by exporting to PDF and checking the image in Acrobat.
    Here I've pasted a 300ppi image, scaled it, and made a Preflight rule that catches any image under 1200ppi. The panel gives me the effective resolution of the pasted image as 556ppi. There are other workflow reasons not to paste—you loose the ability to easily edit the original and large file sizes—but pasting wouldn't cause a loss in effective resolution or change in color mode.

Maybe you are looking for