Project Work

Hello there,
I'm working on a database with a java front end. can any one tell me how to fill a dropdown box from a database table. For example:
Table :
Desktop
Laptop
Printer
Dropdown box should have:
Desktop
Laptop
Printer
Thanks

Look at :
addItem() from the JCombo class, just create an instance and use the method below in a loop....
public void addItem(Object anObject)Adds an item to the item list. This method works only if the JComboBox uses a mutable data model.
Warning: Focus and keyboard navigation problems may arise if you add duplicate String objects. A workaround is to add new objects instead of String objects and make sure that the toString() method is defined. For example:
comboBox.addItem(makeObj("Item 1"));
comboBox.addItem(makeObj("Item 1"));
private Object makeObj(final String item) {
return new Object() { public String toString() { return item; } };
Parameters:
anObject - the Object to add to the list

Similar Messages

  • Help needed for Project Work

    +People..I am new to this forum and your help is absolutely essential as it for my project work. There are two questions in my project. This is the second one. The first question is at the following thread.
    http://forum.java.sun.com/thread.jspa?threadID=5220057
    Thanks in advance..+*
    This is the Question
    Create a class ToyCollection that stores information about different toys in a toy shop.  The information to be stored about a single toy is,
    -         Toy identification as String
    -         Name of the toy as String
    -         Short description about the toy as a String
    -         Price of the toy as float
    -         Quantity of the toy in hand as short integer.
    This class contains following methods,
    -         Constructor method that assigns user input values to above mentioned variables.
    -         main ( ) method that creates array of 4 objects of ToyCollection class and that takes input for all above details from the user and
    calls method to check validity of Quantity and Price values. If all values are valid then create the objects and display the details
    for all 4 toys.
    -         Method that checks validity of quantity and price. If the quantity is 0 or negative then method should throw user defined
    exception with appropriate message and come out of program. Similarly if the price is 0 or negative then it should throw user defined exception with appropriate message and come out of program.
    -         Method that displays all details about a single toy in the following format, e.g. Here Total price should be calculated.
    Toy Identification                  :  S-1
    Toy Name                            :  Small Scooter
    Toy Description                    :  Ordinary 3 wheeler scooter
    Toy price                              :   650.50
    Quantity in hand                    :   3
    Total price of Toys               :    1951.50
    And i did the following coding
    import java.io.*;
    import java.lang.*;
    public class ToyCollection
         public int toyid;
         public String toyname;
         public String toydetails;
         public float toyprice;
         public int toyquantity;
         public void setToyid(int tid)
              toyid = tid;
         public void setToyname(String tname)
              toyname = tname;
         public void setToydetails(String tdet)     
              toydetails = tdet;
         public void setToyprice(float tpri)
              toyprice = tpri;
         public void setToyquantity(int tquan)
              toyquantity = tquan;
         public int getToyid()
              return toyid;
         public String getToyname()
              return toyname;
         public String getToydetails()     
              return toydetails;
         public float getToyprice()
              return toyprice;
         public int getToyquantity()
              return toyquantity;
         public static void main(String args[])throws Exception
              ToyCollection a=new ToyCollection();
              System.out.println("Enter the Toy id");
              BufferedReader br1=new BufferedReader(new InputStreamReader(System.in));
              int tid=Integer.parseInt(br1.readLine());
              a.setToyid(tid);
              System.out.println("Enter the Toy name");
              BufferedReader br2=new BufferedReader(new InputStreamReader(System.in));
              String tname=br2.readLine();
              a.setToyname(tname);
              System.out.println("Enter the Toy details");
              BufferedReader br3=new BufferedReader(new InputStreamReader(System.in));
              String tdet=br3.readLine();
              a.setToydetails(tdet);
              System.out.println("Enter the Toy price");
              BufferedReader br4=new BufferedReader(new InputStreamReader(System.in));
              float tpri=Float.parseFloat(br4.readLine());
              a.setToyprice(tpri);
              System.out.println("Enter the Toy quantity");
              BufferedReader br5=new BufferedReader(new InputStreamReader(System.in));
              int tquan=Integer.parseInt(br5.readLine());
              a.setToyquantity(tquan);
              System.out.println("The Toy Attributed you entered are displayed below \n" + " ID :" + a.getToyid() + "\n " +" Name :" + a.getToyname() + "\n " + " Details :" + a.getToydetails() + "\n " + " Price :" + a.getToyprice() + "\n " + " Quantity :" + a.getToyquantity());
    I submitted the above coding and this was the response from the evaluator
    *"You need to create array of toys. You are accepting details of toy in a single line and your program ends."*
    Eagerly awaiting your reply at the earliest people.

    DrLaszloJamf , here is the question.
    Create a class ToyCollection that stores information about different toys in a toy shop. The information to be stored about a single toy is,
    - Toy identification as String
    - Name of the toy as String
    - Short description about the toy as a String
    - Price of the toy as float
    - Quantity of the toy in hand as short integer.
    This class contains following methods,
    - Constructor method that assigns user input values to above mentioned variables.
    - main ( ) method that creates array of 4 objects of ToyCollection class and that takes input for all above details from the user and
    calls method to check validity of Quantity and Price values. If all values are valid then create the objects and display the details
    for all 4 toys.
    - Method that checks validity of quantity and price. If the quantity is 0 or negative then method should throw user defined
    exception with appropriate message and come out of program. Similarly if the price is 0 or negative then it should throw user defined exception with appropriate message and come out of program.
    - Method that displays all details about a single toy in the following format, e.g. Here Total price should be calculated.
    Toy Identification : S-1
    Toy Name : Small Scooter
    Toy Description : Ordinary 3 wheeler scooter
    Toy price : 650.50
    Quantity in hand : 3
    Total price of Toys : 1951.50
    What is the java code for the above ?

  • Software Systems Engineer (LV, LV RT, LV FPGA, CVI TestStand, Veristand, C/C++) available for full/part time and remote project work

    I am a software engineer with lots of experience in embedded and test systems. I am a certified TestStand developer, and recently finished a cRIO based embedded system for a medical device company using LV RT and LV FPGA. I have done a lot of TestStand customization and APIs to HIL and other test equipment and created my share of Windows/Linux based C++ applications and libraries.
    I am located in Southeast Michigan and interested in both local and remote project work, as well as full or part time employment.
    I will be at NIWeek 2010 on Wednesday and Thursday. I am holding a session on Simple TCP/IP messaging on Thursday.
    If you would like to meet during NIWeek and/or request my resume please email me at [email protected]

    I saw your posting on the LabView discussion forum concerning your need for a LabView Software Systems Engineer.
    I am a consultant and I am currently available for contract work.
    I have done the things you describe as experience you would like to have.
    I have attached a "Fact Sheet" which describes some of the systems I have built.
    You will notice that I am experienced with developing hardware systems and controls as well as software systems..
    I have over 20 years of experience developing these kinds of systems and have worked with many different kinds of hardware/computer interfaces as well as numerous different software environments.
    If you are interested in discussing this further please call or email me.
    Tom Moser
    ForMost Systems
    North Canton Ohio
    330-470-0404 begin_of_the_skype_highlighting              330-470-0404      end_of_the_skype_highlighting x202
    email:  [email protected]
    Attachments:
    IS 071410a .pdf ‏253 KB

  • Project working with Project Online in Office 365

    Hello,
    My question is related to project working and using Project Online to track projects.
    * Can I use a single "Project Online with Project Pro for Office 365" subscription for tracking and creating reports about all project sites and their tasks in Office 365?
    Meaning, if we have multiple projects designed in Project Pro and then uploaded directly to Office 365, can we gather the task, resource and progress information from these projects (created directly to Office 365) in a Project Online overview? One person
    using Project Online to oversee multiple projects, others uploading their projects and changing task information in Office 365 to a SharePoint site with Project Pro and Office 365 subscriptions.
    We want to have one person with Project Online overseeing the progress and create reports on all projects that have been uploaded to Office 365 (Project Portfolio Management), but not creating new projects. Is this possible with just one Project Online subscription?
    The other users would all have an Office 365 Enterprise 3/4 subscription for accessing Office 365, collaborating and updating their tasks. Project managers would have a Project Pro subscription for creating and uploading projects to Office 365.
    Thank you in advance.

    Helen,
    Your question is slightly confusing, so let me try and say it this way: 
    1) Your PMs (multiple) will use Project Pro, to create and publish plans to Project Online
    2) You will have one user who will 'administer' Project Online and create reports etc.,
    3) You will not have any other users access Project Online
    4) I am not sure about you 'SharePoint' comment--so excluding this.
    The problem is that, Project Pro+Office 365 does not necessarily give you access to Project Online. This combination is more useful when you are using just Project Pro or using project Pro to sync plans with Task lists on SharePoint Site. Plans that are
    uploaded this way will NOT appear in Project Online. So, the person who has the Project Online license will not have any data to report on.
    Having said that, here are few options:
    1) Stick with Project Pro +Office 365. Team Members can access "Task" lists in SharePoint Sites. In this scenario, Reporting will be somewhat complex, because each site is its own, and you might have to customize to be able to report across multiple sites. 
    2) If you want an easier Project Portfolio Management, Project Online is better. However, in this case, your PMs need to get Project Online with
    Project Pro for Office 365 which will allow them to publish plans to Project Online. Then your user with project Online license can generate reports for the portfolio easily. In this scenario, if you want team members to be able to submit timesheets,
    work with documents etc., you might want to look into getting the Project Lite for them (http://blogs.office.com/2014/03/31/project-lite-may-1st/)
    Hope it helps.
    Prasanna Adavi,PMP,MCTS,MCITP,MCT http://thinkepm.blogspot.com

  • Experienced CLA, CTD available for project work.

    Experienced CLA, CTD and CPI available for project work.
    Work model would be remote activity with availability for kick-off and integration onsite travel.
    Clear communicator with excellent presentation and customer facing skills.  Deep experience with large swath of NI technologies and hardware.  Wide capability with peripheral software tools such as sql, Amazon - AWS, bug tools, agile development, SCM, remote connectivity, networking, web service etc.
    Please email for more discussions:  [email protected]
    Michael Weir

    Hi All,
    Just to say I am still available for remote contract opportunities and that I am now also a Certified TestStand Architect.
    Message @ [email protected] for more information..
    Thanks & Regards,
    Shane.

  • Is projection work for Infotype which got subtype?

    Is projection work for Infotype which got subtype?
    I use the following statment but there is nothing show in my report.
    PROVIDE stras FROM p0006 BETWEEN pn-begda AND pn-endda
    WHERE P0006-subty = '1'.
    anyone can help?

    anyone can help?
    I'm quite confuse why projection is not work if I put the where clause for subtype.

  • No audio when i playback a project. All other projects work fine. My setting all seem right. if I solo a track I can listen to it. Unsoloed the Meters aren't even showing anything. Any ides anyone?

    No audio when i playback a project. All other projects work fine. My settings all seem right. if I solo a track I can listen to it. Unsoloed the Meters aren't even showing anything.

    seanyo888 wrote:
    No audio when i playback a project.
    try togling the Ducking menuItem

  • Reverse Costs for Project work item

    Good Day
    How do you reverse the costs for the project work item that has already been approved?
    Regards

    Good Day
    Thank you for your response, the problem has been resolved by reversing the hours captured not the costs. which someone else had authorisation to do which i didnt have.
    Regards

  • Adobe Media Encoder stopped working in this project, works in others

    Adobe Media Encoder just stopped working in my current project (in PPRO CS3). I'd output several MPEG2-DVD and Windows Media Files. Then I went to make one more MPEG2-DVD file, and when I clicked OK in AME, nothing happened. It should open a window to select where I want to put the file, and a few more options. No crash, no freeze, no error messages..and no output.
    None of the AME formats work (WMF, Quicktime, etc). But other exports do work. I made my MPEG2-DVD file using Export to Encore.
    I opened another project I'm working on, and AME does work in that project.
    Back to my current project, and it still doesn't work.
    I've rebooted, and uninstalled-reinstalled PP CS3.
    Anyone fixed this?  Thanks!

    After some more playing, I discovered that the other sequences in this project do still export using AME. So I made a new sequence, copied all the media from the problem sequence into the new one, and it exports OK.  I lose fairly extensive Encore chapter marking, but that's a minor problem. No way to "cut and paste" chapter markers, I don't suppose?
    For curiosity value, if I make a duplicate of the problem sequence, all the media in the duplicate sequence has a red bar (unrendered) except for the parts that have already been rendered, which have a green bar. This is straight transferred DVCam media and shouldn't need rendering.  If I add some new video to the sequence, it gets a red bar too. Bizarre. Oh, and it won't export.
    I tried a few other tricks with the original problem sequence: delete all media, and replace with one new short clip; delete the chapter markers; shorten the work area bar to just a few seconds and try to export "work area only"; turn off tracks; deselect either audio or video in AME... nothing worked to make this sequence export.
    I also tried making a whole new project, and importing this one into it. Nothing changes - the problem sequence still wont' export, a copy of it leaves all media "unrendered..." exact same trouble as the original project. But it was while playing with this new project that I discovered that my other sequences did export, leading me back to the original project. That should have been the first or second thing I checked. Brain-dead Sunday.
    Conclusion: something corrupt in the sequence, but darned if I can figure out what. Not the media. Not the chapter markers. There's code in the sequence itself, and I guess that must be it.
    Enough time wated on this project. Thanks, all!
    Gary

  • How to get garageband projects working again from .aif files?

    My harddrive crashed a few weeks back but i was able to recover the data in it. However, the garageband projects (which is .band files) are now gone and you can only see hundreds of fragments of .aif files which are little parts of the original projects i made. How do i convert all of this .aif files to be a working garageband project again? i really need help here, please

    the best you can do is to create a new project, and drop the AIFF files into its timeline. from there you can arrange, edit, and mix them to try to recreate your original project.

  • Air project works in test but fails when installed.

    I have a little project I'm trying to put together as a stand-alone widget.  It loads some sounds that are set up in sets and saved in a subdirectory of the application directory.  I have a movie clip in the library that appears when the "Config" button is pressed.
    Works great in test mode.  The sounds are loaded and play.  The config screen shows up when the button is pressed.  The components (two sliders) work and their listeners fire.  Wonderful!
    But when I pack it up as an installable AIR file and then actually install it on my poncuter, epic fail.  The sliders don't appear, the config button doesn't call up the configure movieClip and no sounds are played.  The buttons that I placed on the stage at design time appear but don't appear to function.  Nothing I added programmatically appears.
    Is this an Adobe CS3 problem or did I miss something in the security sandbox?  No files are being written to,  I'm getting a directory listing of ./sets and then opening the files in that directory where .isDirectory comes up false.  The files are XML and point to a folder off the ./sets folder and the files in that set.
    I could probably track this but I have no experience debugging an AIR project.  Trace is not working in development.  How do people debug the final?  Output to a dynamic text field?

    Sorry to hear you are having a tough go of it...
    there should be no reasons that your application functions differently debugging than when you install the application so the behavior you are seeing is likely something easy to fix (as opposed to having to re-write a bunch of AS code :D).
    Couple of Questions:
    1.) Are you using CS3 as-is out of the box - or did you manually upgrade your AIR SDK inside Flash Professional to target a later version?
    2.) What version of AIR are you targeting?
    3.) What version of AIR do you have installed on your system?
    4.) What OS are you running on?
    5.) Can you install any AIR applications on your machine and have them run properly? (Bunch of AIR apps here: http://www.adobe.com/go/airmarketplace)
    6.) It sounds like you are likely using CS3 and not the command line tools - but if you are using the command line tools (ADT) to create your AIR package what command line do you use to create it?
    That should help get things rolling...but likely the best course of action is for you to send us your project so we can take a look. You can send your project to cthilgen at adobe.com - please do not send a zip as our mail system will auto-reject it.
    Also, you should be able to get trace output. If you are using CS3 the trace output goes to the output panel. (Windows->Output) If you are using the AIR command line tools (ADL) - debug output is enabled by default (you have to manually pass -nodebug to turn it off).
    Hope this helps.
    Thanks,
    Chris Thilgen
    AIR Engineering

  • How to make sure, on success action 'Open another project' works on both ipad and desktop devices

    If I have a project with a open another project in a new window action set to a button in that project, will only placing the swf and htm files of the newly opened project within the published folder of the parent project be enough for allowing the parent project to be played successfully both in desktop and mobile devices like ipad? To allow this, I presume multiscreen.html file located within the published folder of the parent project is the file to be used. But, since swf files can't be played on mobile devices, do I need to place the multiscreen.html file located within the published folder of the newly opened project into the published folder location of the parent project? The parent project folder location already has multiscreen.html file specific to that project and if the multiscreen.html file of the newly opened project need to be added to the published folder location of the parent project(which also has multiscreen.html file), how do I go about doing this? Can I just rename the mulscreen.html file of the newly opened project to say something different like multiscreen1.html and add this file along with the swf and htm file into the published folder location of the parent project, so that it works for both desktop or mobile devices.

    From what I'm hearing, you're probably wise to have a copy of the file in both locations.  One in the same folder as the SWF, and the other in with the HTML5 files.  What I don't know is exactly where in the HTML5 folders your file would need to be.  It might need to be at the same level as the index.html.  I haven't tested this.
    You should be able to figure out the answer to a lot of your questions just by testing things out on content uploaded to a web server.  At the end of the day, if it works, it works.

  • Labview Programmer needed for project work in Milwaukee Area or over the internet

    We have a project I need to get done before summers end and we have majotiy of the code. My company builds robotic systems which we use for industrial inspections mainly in the petrochemical industry.  These robotic systems work with a ultrasonic systems which we use to take thickness measurements of piping and pressure vessels using ultrasound.   We have the ultrasound equipment and most of the software as said previously, we just need it polished up and some additions made.  Here is a link from NI which is simular to what we do and you can even download the code and have a look at there code: http://zone.ni.com/devzone/cda/epd/p/id/3618 . Our code is a bit more complex but you get the picture. 
    This position is not a full time position as of yet.  We are looking for someone to work with us on a contract basis for now. We need someone experienced with the following; Data aquisition, Data analysis, Experience with RF, USB comunication.  We perfer to hire somebody local but if we cant we can can do this over the internet.  If you are interested, give us a reply with contact info.  Thanks.
    Regards,
    Bill

        Bill,
    We are able to offer you the help you need on
    this.  I work for a LabVIEW/test-system consulting group based here out
    of Salt Lake City...not too far if a quick trip is needed.  Among the
    six of us, four of us are former NI employees and we count with a lot of LabVIEW experience and regularly do
    contract work, local and remote.  This sounds interesting and right up
    our alley as far as experience goes.  I'd refer you to our website for
    further info about different projects that we've done for many
    clients.  www.mooregoodideas.com.
    If this seems workable for
    you, feel free to shoot me a note at [email protected]  I'd be
    curious to know more about what you're after and how we can help you
    out. 
    Thanks,
    Jim

  • Will 3.0 project work in 3.5 FCE?

    just wondering...i have fcehd3.0 on my G5....got a macbook pro with 3.5...if i install 3.5 onto the G5 will i be able to work on a project started on 3.0??
    thanx

    I agree with Tom. If you're in the midst of a big project, and you have the choice, don't upgrade until you're done with your project.
    While rendering time in 3.5 may or may not be faster than in 3.0 it won't be a whole lot faster. Rendering is more dependent on the processor and RAM than it is on the software.
    As for the versioning, 3.5 is fine on both Intel and PPC Macs, it's a universal version. The big deal is that 3.5 has fully keyframeable effects and solved some capturing problems that cropped up in 10.4.9

  • Will Premiere Elements 10 projects work in Premiere Elements 11?

    I'm asking because i have just made 3 video projects of my baby's first 3 years in Premiere Elements 10 on Windows 7. I want to buy a new Windows 8 PC soon. Can i just buy the new Premiere Elements 11 and install that on my new Windows 8 PC and use it to open my projects, or would there be compatibility problems and therfore should i just try and install my normal Premiere Elements 10 on the new Windows 8 PC?
    Thanks for your help.

    Hi erocks
    I'm Paul and i started this thread.
    I thought this information would be helpful for you.
    I have bought a brand new Windows 8 PC. It's 64 bit. My previous computer was Windows 7 x32 bit. I have successfully installed Premiere Elements 10 on my new Windows 8 computer (but needed to install the 64 bit version of the program (same serial works)).
    All my Premiere Elements 10 projects that were made on the Windows 7 pc open up just fine on the new Windows 8 pc, with no issues what so ever.
    I would advise you to install Quicktime too as Premiere Elements needs that to be installed too. Also, i would strongly advise you to install a codec pack too, for the video codecs, or your new computer (& therefore Premiere Elements) could well have problems reading, opening and using certain video file types. If your Windows 8 pc is 64 bit then make sure you install 64 bit video codecs as well as the 32 bit versions. This is because Premiere Elements on a 64 bit system will need to use 64 bit video codecs.
    Here's a link for some codec packs. Make sure you install the 32 bit version, and if you are using a 64 bit system then install the 64 bit video codec pack as well (find it at the bottom of the codec web page).
    http://codecguide.com/download_kl.htm_
    P.s if you installed the extra Premiere Elements content on your old installation then don’t forget to install that too on your new pc. You can download that by logging onto your online adobe account, finding your order, and downloading from there.
    Please let me know if that helped, as im quite interested to know the outcome.

  • Project works when tested but RowConflicts when deployed

    I have a project page with some pretty simple code to open a table and update it. The fields are all open for update and virtual forms configured to participate in a save action. The save works and commits the changes to the database (oracle) when using the creator studio to build/run the project. However, when I deploy the WAR to the Sun Application server using the same driver setup, I get a ROW_UPDATE_CONFLICT error on the rows that have been modified. This is a complete show stopper. What am I missing here?
    javax.servlet.ServletException: Number of conflicts while synchronizing: 3 SyncResolver.UPDATE_ROW_CONFLICT row 2 values changed in database
    root cause
    java.lang.RuntimeException: Number of conflicts while synchronizing: 3 SyncResolver.UPDATE_ROW_CONFLICT row 2 values changed in database

    I got exactly the same thing as you did, except that I am using Tomcat 5.5.17 instead.
    It has wasted me a lot of time.
    Message was edited by:
    Mountainer

Maybe you are looking for

  • Spry Wonderlust Content Slide show

    Can someone clarify if it is possible  to change the text of the slide/panel buttons/links numbered 1-4 on the Wonderlust content slide show. Any  knowledge and help is appreciated. Many thanks. reference link: http://labs.adobe.com/technologies/spry

  • Help reqd - Data declaration

    Hi, I have a problem here. I am analyzing an existing program. This is an active prg in Production. In that I see usage of an internal table called 'itab1'. On double clicking on it (to find it's data declaration) it takes no-where. It asks if I woul

  • Install EPMA in Arabic language

    My client want to see the Oracle EPMA screen in arabic language. Is it possible to view both English and Arabic view if i install and configure in Arabic language. Please reply if any one used this language feature in EPMA 11.1.2.2 version

  • Wacom pen issue stroke

    I got a pen issue with my wacom intuos 2. When I draw in photoshop CS4 or flash CS4 the stroke wiggles as if I was trembling while drawing which is not the case I tried to change the settings of the tablet & the pen. Also tried to play with screw ins

  • Want location bar to remember only addresses typed

    I am using the latest version of Firefox, and I want to be able to configure Firefox's location bar to only drop down addresses that I type in. I had been delaying upgrading Firefox on my laptop because I had this issue with my PC. Unfortunately, the