Question... Important...

Okay.. here goes.. I have a 694T Pro MB.  It's was working great until a few months ago.  It started to where it didn't want to start up correctly I had to turn the power switch off on off on to get it to start back up.  The D-LED lights would be GRRR then next start up RGRR.  I posted on this board and someone recommended resetting CMOS.  I did this after formatting my HD.  It fixes it... but, if I try to change anything in CMOS is starts having the same problem again.  Right now if my computer doesn't shut down correctly on boot up it doesn't scan my drives like it normally did and I would like to fix it, but don't know how to change it without it starting to act up again.  If anyone has any ideas I would love to hear them.
Amanda

G'day Dabofloven
It does sound like a Bios problem but we'll need to know what some of the important components are to see if there is any conflict or such.
If you go: start/ programs /accessories /system tools /
system information, It will bring up the info that may help,esp graphic card,(under conp'onents /display)
         Drives, (under Conp' /storage)
         Problem devices (under conp')
Not sure what else.... :(
Some of the others around here will have more ideas on this and hopefully comment on this thread
Good luck Lonfa

Similar Messages

  • Follow up question. importing audio

    Hello,
    thanks to all that responded to my question about importing audio from itunes to FCP5. I finally got it onto my timeline, but before I did that I burned it to a cd, and used that to import it to FCP. Probably more steps than necessary, but I finally was able to get into the timeline that way. THE PROBLEM HOWEVER, is that the audio sounds scratchy, or slightly staticy (wierd word) I burned it in 48kHz and 16 bit AIFF,as you all recommended, but it still sounds crappy. Anymore suggestions?? Could disc space be the problem?
    I have a huge project going and only about 10 gigs of space
    THANKS,
    Jen

    When you buy a song, or a CD, you bought the right to listen to that song to your hearts content. Make as many copies as you want, but only for YOU. Your song. Play it at a party..fine.
    But put marry that song with video, and you have entered new territory. To do that you need to buy additional rights. Just like you'd need to buy rights if you play music at a wedding, or play music for people to listen to when they are on HOLD at your business.
    Adding it to family video is "technically" illegal. Will the FBI hunt you down...well, after the government went after a lady for owing $1.16 in taxes by siezing her house, I wouldn't be surprised.

  • Newbie Question: Importing (from PC) and Organizing Photos in iPhoto

    Hi everyone,
    I am currently a PC user and am contemplating buying an iMac, and I'm trying to determine if iPhoto will meet my needs for photo importing and organization.
    I currently have around 20-30 gigs of digital photos and am using Windows Photo Gallery (for Windows Vista) to view/organize/import them.
    The directories are organized by the photo date taken in the format "yyyy-mm-dd" .
    Some of these directories are appended with an event name if applicable, i.e. "2011-12-25_Christmas Party" while others will only have the date, i.e. "2011-12-20"
    My photos are named according to date/time taken so that a file listing will display the photos in chronologic order. Again, some of these will be appended with an event name or other descriptive label. So, many photos will look like this: "yyyy-mm-dd_hh-mm-ss" while others will look like this: "yyyy-mm-dd_hh-mm-ss_event name"
    A possible complicating factor in all of this is that some of the photos were taken with a camera where the time/date was not set properly, or with cameras whose date/times were set for a different time zone. I adjusted this within Windows Photo Gallery, but I am not sure if it permanently changed the date/time in the photo file's properties... I've seen some evidence that it may not have. I did make sure that the file name was named according to the correct date/time in every case, however.
    Now, here are my questions about using iPhoto:
    1) When I initially import my photos into iPhoto, will iPhoto recognize (or is there a way to make it recognize) each separate directory as a separate event based on the directory in which it is found?
    2) If I copy photos into iPhoto library, will it respect and preserve my directory structure wherein photos are separated by date taken? If not, then is it practical to still use iPhoto without copying the files into its library (by keeping them organized as subdirectories in a directory elsewhere and having iPhoto setup to automatically display photos in that directory)?
    3) If I use iPhoto to import pictures from a digital camera, can I control how it sorts those pictures into directories by making it name the directories in yyyy-mm-dd format? This is what Windows does and I find that format very convenient for organizing and viewing photo files, especially those that I have not yet tagged.
    4) Again, if I use iPhoto to import pictures from a digital camera, can I control the naming convention so that photos are named according to date&time taken (i.e. yyyy-mm-dd_hh-mm-ss ), or at least according to just date taken (i.e. yyyy-mm-dd) as well as appended with event names?
    5) Will I be able to edit photo properties, such as date taken, within iPhoto if I discover that a photo is incorrectly organized?
    Thanks in advance,
    JB

    Here's the thing: You've put a lot of time developing a system of managing files. iPhoto is all about Photos. So, frankly. forget your current system and use iPhoto. it has more powerful and more varied tools for managing your snaps.
    There's a conceptual leap to be made with apps like iPhoto. The illustration I use is as follows: In my iTunes Library I have a file called 'Let_it_Be_The_Beatles.mp3'. So what is that, exactly? It's not the song. The Beatles never wrote an mp3. They wrote a tune and lyrics. They recorded it and a copy of that recording is stored in the mp3 file. So the file is just a container for the recording. That container is designed in a specific way attuned to the characteristics and requirements of the data. Hence, mp3.
    Similarly, that Jpeg is not your photo, it's a container designed to hold that kind of data. iPhoto is all about the data and not about the container. So, regardless of where you choose to store the file, iPhoto will manage the photo, edit the photo, add metadata to the Photo but never touch the file. If you choose to export - unless you specifically choose to export the original - iPhoto will export the Photo into a new container - a new file containing the photo.
    All of your queries are about files and filenames and file storage. They're all pretty much moot if you use iPhoto. If you use iPhoto it becomes the "go-to" app for all your photos. Everything you need to do with the photos can be done via iPhoto or with iPhoto.
    When I initially import my photos into iPhoto, will iPhoto recognize (or is there a way to make it recognize) each separate directory as a separate event based on the directory in which it is found?
    Yes, but...  Events are organisation for those who can't really be bothered. They are automatic - based entirely on Date and Time the camera records the photos as taken. You can move photos between Events, you can Merge Events, you can Rename them and sort them in various ways except one: You cannot manually sort in an Event as Events are all automated.
    Albums are a much more varied and powerful organising tool.
    2) If I copy photos into iPhoto library, will it respect and preserve my directory structure wherein photos are separated by date taken?
    Well forget about "directories", you're talking Events, Album and Folders now. But yes, you can define Events (or Albums) based on date. However, given that iPhoto can sort on date, can search on date and date ranges and can generate Smart Albums based on date (say, All the Photos from 2010, only the photos from June 2010 or just the photos fron June 10, 2010, or even the photos from May 12 2009 to July 11 2010) how the fies are organised on the disk is of little concern. You never access them via the HD anyway.
    If not, then is it practical to still use iPhoto without copying the files into its library (by keeping them organized as subdirectories in a directory elsewhere and having iPhoto setup to automatically display photos in that directory)?
    Yes you can do this. It's called a Referenced Library. I don't recommend it - especially for a new Mac user - and it adds nothing except complexity to the process. It has no extra capability. It's just dumb file storage. For more on this:
    https://discussions.apple.com/thread/3062728?tstart=0
    3) If I use iPhoto to import pictures from a digital camera, can I control how it sorts those pictures into directories by making it name the directories in yyyy-mm-dd format?
    No.
    This is what Windows does and I find that format very convenient for organizing and viewing photo files, especially those that I have not yet tagged.
    There are various tools in iPhoto that will allow you to find photos that you have not yet tagged or organised.
    Again, if I use iPhoto to import pictures from a digital camera, can I control the naming convention so that photos are named according to date&time taken (i.e. yyyy-mm-dd_hh-mm-ss ), or at least according to just date taken (i.e. yyyy-mm-dd) as well as appended with event names?
    You can add titles to photos, yes. But as the date and time of the photo are already in the Exif, using those in the name of the photo is a bit redundant.
    Will I be able to edit photo properties, such as date taken, within iPhoto if I discover that a photo is incorrectly organized?
    Yes.
    It's a bit to take in I know, and I always suggest to people that the best thing is to create a library on their Mac, import a couple of hndred pics and explore what it does (and doesn't), and see if it works for you.
    iPhoto uses a lot of virtualisation. Photos are stored in the Library. (Events are just one of two possible views of the Library). Albums reference photos in the Library. So a shot can be in any number of albums and use no extra disk space. Keywording is also very powerful. Here’s a stock answer I use for folks when wondering what iPhoto can do:
    I use Events simply as big buckets of Photos: Spring 08, July - Nov 06 are typical Events in my Library. I use keywords and Smart Albums extensively. I title the pics broadly.
    I keyword on a
    Who
    What
    Where basis (The When is in the photos's Exif metadata). I also rate the pics on a 1 - 5 star basis.
    Using this system I can find pretty much find any pic in my 40k library in a couple of seconds.
    So, for example, I have a batch of pics titled 'Seattle 08' and a  typical keywording might include: John, Anne, Landscape, mountain, trees, snow. With a rating included it's so very easy to find the best pics we took at Mount Rainier.
    File -> New Smart Album
    set it to 'All"
    title contains Seattle
    keyword is mountain
    keyword is snow
    rating is 5 stars
    Or, want a chronological album of John from birth to today?
    New Smart Album
    Keyword is John
    Set the View options to Sort By Date Ascending
    Want only the best pics?
    add Rating is greater than 4 stars
    The best thing about this system is that it's dynamic. If I add 50 more pics of John  to the Library tomorrow, as I keyword and rate them they are added to the Smart Album.
    In the end, organisation is about finding the pics. The point is to make locating that pic or batch of pics findable fast. This system works for me.
    Finally, all of this can be exported from iPhoto should you decide to migrate to a different app or different OS in a year or two.
    Regards
    TD

  • Noob question-- importing HD footage?

    So, I have a question about editing HD footage--on iMovie on in general--that YOU probably already know, it's just been awhile for me. I've edited footage on non-linear programs in the past, but it's been QUITE a few years (we're talking like Premier, Media 100... never really used iMovie).
    Basically, I have some footage that was shot of a friend's wedding that he was hoping I could pull from my former film student experience to help edit.
    Problem is, the footage he gave me-- Quicktime files burned onto DVDs-- was just converted from the native AVCHD footage (from MTS files), into HD.
    As I understand it, whatever family member shot the footage must have just copied it on-site from the camera's memory card to a computer/laptop HD (instead of just importing all the footage from the chip) to save time/space, and then was converted when it became apparent that the MTS files couldn't be edited.
    As a default, I went to iMovie-- again, a program I'm not familiar with-- and "Import HD Project," but none of the files are selectable (I CAN import them as "Movies" though). From my Googling, I see a lot of talk about iMovie NOT being able to use HD footage, so I figured it was worth asking.
    Basically, the options I'm faced with are:
    1) Get the original MTS footage, reconvert it to something other than HD (apparently HD was chosen simply because the end result was a lot better/less pixellated than MOV or MPG files), and edit from that,
    2) Ask him to borrow the camera that this was originally shot on, try to put the MTS footage BACK onto the memory card, and reimport it properly this time.
    Anyway, I'd really appreciate any input you can give. I'd been meaning to do this for him for a few weeks now, but now that I've seen what a hassle it is, I'm really starting to have second thoughts...

    phasmatrope wrote:
    .....I went to iMovie.....and "Import HD Project," but none of the files are selectable (I CAN import them as "Movies" though).
    The option in iMovie's menu File>Import>iMovie HD Project relates purely to importing older iMovie projects, that is, from versions iMovie HD 6 and earlier - these have an entirely different structure to versions '08, '09 and the latest iMovie '11.
    So, for the wedding video, don't attempt to use that option - use File>Import>Movies. You indicated that this option worked for you, so go for it!
    Forget all that you may have read about iMovie not handling High Definition video. As Tom said "You heard wrong". I've created countless HD projects in both iMovie '09 and '11 with no problems whatsoever regarding quality. The final quality is excellent, whether using the Large (960 x 540) or Full (1920 x 1080) import setting. But, bear in mind that I import 1080i AVCHD clips (.MTS files) directly from my camcorder (or from an archive), whereas you will be importing converted clips of possibly inferior quality. The best format to convert to is Apple Intermediate Codec (AIC), the very format that iMovie generates when ingesting AVCHD clips. In non technical language, AIC expands (decompresses) the video into full frames to enable efficient editing within iMovie.
    The best solution is to follow Tom's advice and use ClipWrap to transcode the .MTS files (assuming they are still available). Otherwise, as I mentioned, simply import what you have using File>Import>Movies. Hopefully, the quality in the final product will be acceptable to all parties!
    John

  • BIG QUESTION(import)

    I have here a program in the tutorial that throws DAOException but if im going to fix import it says that no imports found.
    my question is where will i get that "import".?
    it sounds like javabean is missing some file.
    what will i do?
    more power

    I have here a program in the tutorial that throws DAOExceptionCould you give us the link to the tutorial?
    you'll neeed to create java class called Row
    that defines the fields name and city,
    together with getter and setter methods
    class Row
        private String name;
        private String city;
        public String getName()
            return this.name;
        public void setName( String name )
            this.name = name;
        public String getCity()
            return this.city;
        public void setCity( String city )
            this.city = city;
    as well as a DAOException class for DAO exceptions.
    class DAOException
            extends Exception
        public DAOException()
        public DAOException( String message )
            super( message );
        public DAOException( String message, Throwable cause )
            super( message, cause );
        public DAOException( Throwable cause )
            super( cause );
    }Is it a big problem for you?

  • Interview question (important)

    Suppose you are over 10 years experienced Oracle dev. You have MS degree and solid resume and references.
    You are applying for Sr. Oracle developer position and coming for interview. You are filling an application and were asking to take a test.
    Looking in the list you see 5-6 sections.
    First section is calculus like calculate without calculator and haw many percent is 1/8 .
    The first question in the next section is “Who is the vice president of the United State”
    There are some geographical questions… but no any Oracle or SQL word.
    That is your reaction?
    It is not for fun, It is really important :}

    Bolev wrote:
    Suppose you are over 10 years experienced Oracle dev. You have MS degree and solid resume and references.
    You are applying for Sr. Oracle developer position and coming for interview. You are filling an application and were asking to take a test.
    Looking in the list you see 5-6 sections.
    First section is calculus like calculate without calculator and haw many percent is 1/8 .
    The first question in the next section is “Who is the vice president of the United State”
    There are some geographical questions… but no any Oracle or SQL word.
    That is your reaction?
    It is not for fun, It is really important :}I suppose it depends on the whole recruitment process. Maybe they want to weed out a few people before wasting someone's time with candidates. Their DBA (or whoever) may be a very busy person, or they may have to get in someone externally to do the assessment.
    If they are prepared to hire someone as a "Sr. Oracle developer" without an assessment of their Oracle knowledge, then that is their risk. Maybe they will rely on references, or just Google you and see what comes up.
    But remember the recruitment process is two-way. If you don't respect the value of their recruitment mechanism, you may presume that the people who end up working there are not the pick of the crop.

  • GIFT question import - word wrap

    I've created an excel macro spreadsheet to export all of my questions to the GIFT text format.  Some of the answers are single sentence, maybe 100 characters max, some are single words, etc.
    The problem is when I import the question file, the answer text fields are not adjusting height to accommodate the text length. Is there a way to have Captivate 7 handle word wrapping question text without having to manually adjust the height of each answer text field?

    Did you get an answer to this question? I have the same question.

  • Newbie question - import jpeg convert to objects

    I have a manuscript in pen and ink.  It uses two cartoon characters and contains bubble text and drawings.  I had the content scanned and converted to a pdf file.  This was then converted to jpeg files, one for each page.  I want to edit these files in Illustrator by creating objects from the images on the page.  I have not been able to see how to do this.  First, is there a way to do this?  Second, if you could point me in the right direction it would be really helpful.    

    try Live Trace. and then try each
    preset. you will see this when you import a raster image I believe.
    You can then expand to seperate all objects.
    Curt

  • Newbie question : import statements

    So, i'm a complete java newbie trying to make his first swing application, a basic calc. I download NetBeans 6.5, install it, and begin to code. I quickly learn about the Matisse GUI editor, find it very easy to use, and in a couple hours, the work is done and runs very fine.
    But looking at my code, I realize I have forgotten all import statements (like import javax.swing, import java.awt.event ....), nevertheless the application runs fine. I suppose then that the Netbeans compiler automatically corrects my mistakes, but I want to do it right.
    So, I write the import statements explicitly in my code and I get a warning message : "import unused". After that, I find out about the "fix import" tool in Netbeans, use it and all my import statements disappear. I guess i'm missing something here.
    I thought import of swing classes were mandatory to write a swing application. I have NO import statement in my code, even if I'm using jFrames, jButtons, event handlers and the program works fine, why ?
    Would I be able to compile this importless code in another environment (let's say Eclipse or even javac) ?
    I'm using JDK 1.6 and Netbeans 6.5 with Windows XP.
    TIA

    glawen wrote:
    Ok, thanks for the answers, and sorry for my misinterpretation of BigDaddyLoveHandles's first post. I understand now, the import statements are useful only if you don't want to write full class names, and the generated code uses full class names so no import needed.Please also understand BigDaddyLoveHandles's latest post. If you learn to code Swing with NetBeans' Matisse, then you will be learning Matisse, not Swing. When it comes time to try to tweak or upgrade your program, you will be lost. Better is to learn Swing from the ground up by going through the Sun Swing tutorials. Though having said that, if you are very new to the language, better still is to learn the fundamentals of Java first before embarking in the murky waters of GUI programming. Best of luck to you in your endeavors.

  • NewBee question - Import statements

    Hi,
    I am new to Bea workshop.
    Can someone help me out in how to add my own Import statements in Java classes
    created in workshop.
    Thanks and Regards,
    Nikita

    Hi Nikita,
    Welcome to Workshop!
    The JWS classes used in Workshop are essentially Java classes with the
    additional capability to understand the JWS metatags in the comments.
    Hence you can use the import statements in the same manner as you use in a
    normal Java class.
    Please do let us know if you have any further queries.
    Regards,
    Anurag
    Workshop Support
    "Nitika" <[email protected]> wrote in message
    news:[email protected]..
    >
    Hi,
    I am new to Bea workshop.
    Can someone help me out in how to add my own Import statements inJava classes
    created in workshop.
    Thanks and Regards,
    Nikita

  • Log & Transfer Question - Import Settings

    Is there any way to save my import settings in Log & Transfer (FCP7)? Every clip I import goes back to the default of 4 audio channels...and I don't want all four channels. Aside from manually changing the audio setting for each clip in the batch, is there a way to save a my audio setting for the entire batch of clips?
    Thanks.

    while you may not be able to save a setting, you can apply a change to all clips in the L&T bin.
    In the bin, highlight the clips you want to have the same settings then, in the viewer window in Log & Transfer, select the settings tab, make the changes to the audio then apply to all.
    x

  • Unusual eMail Question: import raw message content...

    I get over 100 email alerts each week that are important to my business that contain about 12 data points that pertain to certain event activity. The up-side is these messages are in the exact same format and content so there is little variation, in fact, you could assume they have fields that are reference-able. I'm interested in using some sort of tool such as FileMaker or Crystal Reports where I can point to the email folder where the *.emlx files exist and have that tool import all of the files then allow me to parse them and report on these 12 fields.
    Is this something that someone here has done and if so, what tips can you give me to help me short-circuit the process. I'm not much of a programmer so please keep it as simple as possible.
    Thanks in advance...
    -- JimN

    JimN wrote:
    There doesn't appear to be a resolution to this even though I'm marking it as answered, I can't seem to find a solution.
    There are at least 3 or 4 dozen solutions. However, you've asked for a solution that doesn't require programming. I'm afraid your only solution left is to hire a programmer.

  • Question - Importing Flash Project into After Effects, Possible?

    Hi,
    Is there a way to open a Flash file (FLA) in After Effect?, cause I saw you can open an AEP that was converted to XFL in Flash... I want to be able to open my Flash project in After Effects, same way I can import a PSD as a composition, is there a way to do that?

    No, not possible. The principles are too different and it would require too many resources just to develop a conversion method. If you look closely, you will notice that even XFL is somewhat limited because of that. You can, however, still import SWF files once you are done with your work in Flash or render an image sequence from there.
    Mylenium

  • N00b question - imported footage at wrong size

    i have a simple test i'm trying to do involving time remapping. i created a new composition at
    1920x1080 as that is the format of the footage. i imported the footage and dropped it into the
    composition. when i do so, the image is not filling the screen. my view is set to 100%, as is
    the scale value under the layer's transform parameter.
    when i look in the project window, the window in which my elements are gathered and imported,
    and select my footage, it shows a thumbnail at the top of this window and has various bits of
    info next to it:
    filename
    used 1 time
    640 x 360 (1.00)
    4260, 23.976 fps
    Apple Intermediate Codec
    the thing that catches my eye is the line about 640 x 360 (1.00). it represents one third values
    for 1920 x 1080 and i find that if i scale the clip in the composition window, the value i have to
    give it to fill the window is 300%. if i look at the footage with the quicktime player, it shows the
    clip as 1920 x 1080.
    what am i missing? did i forget something in the project and composition setup?
    thanks,
    BabaG

    BabaG1 wrote:
    i have a simple test i'm trying to do involving time remapping. i created a new composition at
    1920x1080 as that is the format of the footage. i imported the footage and dropped it into the
    composition. when i do so, the image is not filling the screen. my view is set to 100%, as is
    the scale value under the layer's transform parameter.
    when i look in the project window, the window in which my elements are gathered and imported,
    and select my footage, it shows a thumbnail at the top of this window and has various bits of
    info next to it:
    filename
    used 1 time
    640 x 360 (1.00)
    4260, 23.976 fps
    Apple Intermediate Codec
    the thing that catches my eye is the line about 640 x 360 (1.00). it represents one third values
    for 1920 x 1080 and i find that if i scale the clip in the composition window, the value i have to
    give it to fill the window is 300%. if i look at the footage with the quicktime player, it shows the
    clip as 1920 x 1080.
    what am i missing? did i forget something in the project and composition setup?
    thanks,
    BabaG
    Are you absolutely SURE that your footage is 1920x1080.... It seems to me that if the footage come up short in the 1980x1080 AAAND the AE interpreter says 640x360 - perhaps you have forgot to enable the correct size in i.e. compressor which defaults to an odd value and miserably FAILS to recognize the ACTUAL footage...
    Double Check

  • Quick question - importing VCards

    This is a pretty simple one, I'm trying to export 400+ vcards from my address book on an iMac to my Nokia E61i. I've paired the two together via Bluetooth, but can't figure out the rest. Can anyone help?
    Thanks,
    K

    Ok....
    so I figured out how to change all the folders on my PC to the format I want, then re-burn the DVD with the folders. Not to difficult.
    anything else I need to be concerned with since I am not restoring a iPhoto DVD/backup? These are just straight files in folders.
    Thanks,
    Jason

  • Tutorial code summarizing recent questions

    I'm woke up early and can't sleep so I'll try and do something that will hopefully help some Java newbies.
    This is a Java testing application. It provides user's with various java related questions. It can be run as either an applet or an application. If it is run as an applet, then the applet will need to be signed if is to access any local resources on the user's machine.
    This program addresses some recently asked questions on the forum such as:
    1) Can methods be placed in a constructor
    2) How do you do without extending a Frame in a GUI app
    3) Java GUI applications are difficult
    4) Applets are a lot more complicated than regular GUI applications
    5) When should final variable be used
    6) Java homework problem - help needed
    7) Help with regular expressions
    8) IDE recomendation (I started with notepad then moved to JCreator)

    /* File: QuestionGUI.java
    package com.company.javatester.gui;
    import com.company.javatester.data.QuestionDAO;
    import com.company.javatester.model.Question;
    import javax.swing.*;
    import javax.swing.border.TitledBorder;
    import java.awt.event.*;
    import java.awt.*;
    * The question interface.  Would be better to have some sort of
    * Question controller to separate the business logic
    public class QuestionGUI {
       /** Title used for dialogs */
       private static final String title = "Java Tester 2k6";
       /** Data access object for retrieving questions */
       private final QuestionDAO questionDAO;
       /** Component used for GUI. Note that composition is used instead of inheritance */
       private JPanel contentPane;
       /** Label which displays question for user */
       private JLabel questionLabel;
       /** Area which the user will enter anser into */
       private JTextArea answerInput;
       /** The current question */
       private Question question;
       /** The number of questions the user has answered */
       private int questionCount = 0;
       /** The id for the first question. */
       private int firstQuestionID = 0;
        * Construct a question graphical interface with the given Question DAO.
        * @param questionDAO  the data access object for retrieving questions
       public QuestionGUI(QuestionDAO questionDAO) {
          this.questionDAO = questionDAO;
          // Note that methods called in the constructor can't be overrided
          // either directly or indirectly
          initComponent();
          // Start a new test
          startTest();
        * Initialize the component.  This method can't call any methods that
        * can be overriden since it is called by the constructor.
       private void initComponent() {
          // Initialize the component that will contain all the other components
          // for the question GUI
          contentPane = new JPanel(new BorderLayout(4, 4));
          // Initialize the question label
          questionLabel = new JLabel();
          questionLabel.setBorder(new TitledBorder("Question"));
          questionLabel.setVerticalAlignment(SwingConstants.TOP);
          questionLabel.setPreferredSize(new Dimension(300, 90));
          // Initialize the input area for capturing the user's answer
          answerInput = new JTextArea();
          answerInput.setPreferredSize(new Dimension(300, 100));
          // Initialize the button for starting the test
          JButton startButton = new JButton("start");
          startButton.addActionListener(new StartTestListener());
          // Initialize button for submitting answer
          JButton submitButton = new JButton("next");
          submitButton.addActionListener(new SubmitQuestionListener());
          // Add all the components to the question gui component
          JPanel buttonPanel = new JPanel(new GridLayout(1, 2, 4, 4));
          buttonPanel.add(startButton);
          buttonPanel.add(submitButton);
          contentPane.add(questionLabel, BorderLayout.NORTH);
          contentPane.add(new JScrollPane(answerInput), BorderLayout.CENTER);
          contentPane.add(buttonPanel, BorderLayout.SOUTH);
        * Start a new test.  This method can't call any methods that
        * can be overriden since it is called by the constructor.
       private void startTest() {
          questionCount = 0;
          // Note: Data access calls be done on separate thread if doing
          // extensive I/O to increase GUI responsiveness
          Question firstQuestion = questionDAO.getRandomQuestion();
          firstQuestionID = firstQuestion.getID();
          // Set the first question for the test.
          setQuestion(firstQuestion);
        * Set the current question.  If <tt>null</tt> then the test is over.  This
        * method can't call any methods that can be overriden since it is INDIRECTLY
        * called by the constructor.
        * @param question  the question to set as the current question
       private void setQuestion(Question question) {
          if ((questionCount > 0) && (question.getID() == firstQuestionID)) {// The test is over
             int choice = JOptionPane.showConfirmDialog(
                contentPane, "Done.\n\nDo you want to start over?",
                title, JOptionPane.YES_NO_OPTION, JOptionPane.INFORMATION_MESSAGE
             if (choice == JOptionPane.YES_OPTION) {
                startTest();
          } else { // set the current question
             this.question = question;
             questionCount++;
             questionLabel.setText("<html>" + questionCount + ") " + question.getText() + "</html>");
             answerInput.setText("");
          // set focus to the answer area as convenience to user
          answerInput.requestFocusInWindow();
        * Get the component of this GUI
        * @return  the component of this GUI
       public JComponent getComponent() {return contentPane;}
        * Listener for button to start test.  It's been argued that this
        * should be a static class
       private class StartTestListener implements ActionListener {
          /** Start the test */
          public void actionPerformed(ActionEvent e) {
             startTest();
        * Listener for button to submit question anser.  It's been argued that this
        * should be a static class
       private class SubmitQuestionListener implements ActionListener {
          /** Validate user's answer */
          public void actionPerformed(ActionEvent e) {
             if (question == null) { // No question to validate answer against
                return;
             // Check if the user's answer is "correct"
             if (answerInput.getText().matches(question.getAnswer())) { // Correct
                JOptionPane.showMessageDialog(
                   contentPane, "Correct!!!", title, JOptionPane.INFORMATION_MESSAGE
                setQuestion(questionDAO.getNextQuestion(question.getID()));
             } else { // Incorrect
                JOptionPane.showMessageDialog(
                   contentPane, "Try again", title, JOptionPane.WARNING_MESSAGE
    }

Maybe you are looking for

  • How does one add YouTube to Apple TV?

    As of the latest TV software update, YouTube is no longer showing up on the home screen, apparently replaced by Vimeo (which I like, but which has a very limited video selection). Is there any way to get YouTube back on the TV home screen?

  • How do i write this in sql ? (another headcracker challenging  report)

    hi guys!, I need to create / generate a report. I intend to do all this with pure SQL alone. Been cracking my head for days but to no avail. Hope you gurus here will straightened me out. Here it goes. i Have a table TABLE USAGE_REPORT Date DATE -- ev

  • HT1918 What I have to do to unblock my payment method?

    Hi, It seems there was a problem with my previous transaction (most probably insufficient funds - but i had deposited money on my card after the situation) and now I need to unblock my payment method. The same method is not accepted. If I enter an al

  • Is it possible that a particular row of IWDTable set to non editable?

    Hi All, Is it possible that a particular row of IWDTable set to non editable on the basis of a field value ?? Plz help.

  • Logic 10.0.3 Crashing Every Time I Press Play

    Logic continually crahses when I press play on this one song that I'm working on. I brought it to the Apple store and they couldn't seem to figure out what was wrong with it. This is very frustrating as it worked previously (though it did system over