Easy question for all you ActionScript wizzkids!

I have created the following Actionscript to control a 'Next
Question' button. The idea is that it will choose a random frame to
link to in the current scene (Part2).
nextQ_btn.onRelease = function (){
gotoAndStop("Part2", n);
n = Math.random()*1+3;
At the moment, when I click the 'Next Question' button,
nothing happens. What's up with my script? My programming knowledge
is very limited and this is just about all that it can manage!
The button works when I take out the n variable and put in a
frame number manually.

monkee,
There appear to be two issues with your code:
1. you're calling n before you have defined it
2. you need to generate a random whole number and the random
number generator will have decimals
The solution is
1. call for n after you define it
2. use a rounding action to make the random number a whole
number
So:
nextQ_btn.onRelease = function (){
// generate a rounded random number between 0 and 4
n = Math.round(Math.random() * 4);
trace (n)
// go to the random number +1, making the range 1-5
gotoAndStop(n+1);
As you may already know, the trace action helps solve these
types of issues by letting you know the value of n if it is
defined... when you test movie, the results of the trace statement
show n has a value in the output window. In your original code, it
would show undefined.
Hope this helps. One other thing you may face is figuring out
a way not to ask the same question twice. You probably will want to
use an array of eligible questions before long.

Similar Messages

  • Got a question for all you peeps dos anyone know about i phones i have a i phone 3gs which i got unlocked i did a master reset or summin and just had a pic of apple so i plugged it in i tunes downloaded and it now says no service at the top of phone and i

    got a question for all you peeps
    dos anyone know about i phones i have a i phone 3gs which i got unlocked i did a master reset or summin and just had a pic of apple so i plugged it in i tunes downloaded and it now says no service at the top of phone and i tunes says invalid sim i put the correct sim in it used to be locked too and still says same pls any one with ideas?

    hi sorry what happoned is that ages ago i brought a i phone 3gs on 02 network i went to a sml phone shop and payed for them to unlock it. it has been fine till yesterday when i went to reset it from the phone it then turned off and came back on just just an image of a apple for about an hour so i connected to i tunes and it said downloading software after another hr it had finished but then i tunes said in had to insert a sim so i had to un plug the phone from laptop while i did this i put my orange sim in and the i phone said where do i live and had to connect to a internet connection but all the time saying no service where the signal bar is and then says activating i phone it took a few min and said couldnt finish it bec of the signal and to connect it to i tunes to do it so i connected it to itunes and i tunes just keeps saying invalid sim so i took my orange sim out and put a 02 sim in and is still saying invalid sim on itunes?

  • Question for all you vets of iweb

    i am wondering- with all the probs with iweb which yes, most are fixable, albeit with a lot of hassle and/or html knowledge, why would you not use one of the other programs listed elsewhere on the forums--like rapidweaver, softpress, etc?
    it seems that they are all multi-os/browser compatible and the designs/templates look as good and easy to use as iweb. Or is this not correct?
    Just wondering if any of you use them and why you choose Iweb instead?
    thx
    jim

    I graduated from university with a degree in graphic design and while i feel that you don't always need to be 'artistic' to succeed in this area... it does help.
    There will be those who work in design who can't draw and do better than those who can. With skills in writing you may find yourself gravitating towards the 'copy writing side of design and advertising. It's is an important skill to have, as, along side the creative element you also need to be able to put words on paper to make those scribbles 'work'
    I personally work in illustration, T shirt design and print... i welcome all areas of design and art equally... but really gte off on doing what makes me happy...I've experienced the 'corporate' side of design.. and it opened my eyes up to what i want from my life... as for me, i live and love the thing..
    IMHO... you can't take tests to work out where you will fit in best.. what career with suit you.. you have to try new things, meld and mould your way into tight spaces.. hard times and even tighter deadlines... as ultimately... working in design is never predictable..
    Have fun, start sketching and don't worry about what anyone else thinks
    Stu
    Powermac G5 2.5 Mac OS X (10.4.2) 460gb HD 3gb RAM
    Powermac G5 2.5 Mac OS X (10.4.2) 460gb HD 3gb RAM

  • Okay quick easy question for all who have successfully uploaded videos

    hi, this is my first post in the Apple forums!
    my quick question:
    I have Quicktime Pro, and am currently exporting a video to the iPod
    but it is taking an unusually long time...
    is this normal (and by long I mean I'm @ 16% and it has been 5 minutes)
    do I just need to be more patient?
    thanks
    ^_^

    don't say that...
    I successfully uploaded videos to my iPod I just was not doing it right
    my question has been answered already so STOP BRINGING IT UP AGAIN
    also, look... many people just got their iPods today and are kinda anxious to see the video capibilities work on them, so If you do not have anything constructive to say (by calling us n00bs), then I suggest you don't say anything at all
    iPod video, Dell modded Windows XP Windows XP > your macs

  • SOME SIMPLE QUESTIONS FOR ALL OF YOU

    hi,
    I have some questions for all of you.
    1. Oracle uses cgi (even asp!!! I've seen an asp page somewhere on an Oracle's site but this moment I don't remember where perhaps it is asp->cgi). Why ?
    Oracle doesn't support their techologies
    (Pl/SQL, Jsevlets,XML) ?
    2. Oracle says that has just released a
    new product for mobiles called "Portal2Go".
    I tried to install this product on NT with OAS 4.8.1.
    I had many problems during the installation and after many tries finally I did it(thanks God). but the problems continue...
    many Jsp errors (from the "tested" supplied apps). My question is:
    a. This product is in an early stage (many installation errors.. just a baby) and I think is stable for Sun Solaris but not on NT.
    b. You Oracle "experts" (i.e. oracle staff, NOT YOU guys) tell me ONE advantage to use you product (I'm an oracle developer for 6 years now):
    You say that I can PORT my existing app in any device and Web (through XML). This is a joke. Mobiles,PalmPCs,Web etc. have different requirements (content,display etc).The scope is different.. so this is absolutely FALSE (to use a boolean).
    This release is user unfrienlty. Why.. tell me WHY to pay for a product and for extra hardware (read the product technical reqs!!) to do the SAME THINK
    I do NOW with existing sources.
    I've developed an app for my company's employees using existing version of DB (8.0.5),pure pl/sql and a WAP GATEWAY.NOTHING LESS NOTHING MORE.
    please answer. Any comment welcomed...
    maybe I'm wrong maybe I'm not.
    PS.WHERE THE WAP GATEWAY/SERVER IS. I searced the cd and..nothing :-) ?
    thanks
    thanasis j.a.
    B.A. in Informatics
    M.Sc. in IS

    Portal-to-Go is a wireless portal server, the first version was released November 1999.
    The problems you describe that mobiles, Palm devices, etc all have different characteristics is one of the key reasons for Portal-to-Go. It allows any service to be displayed on any device by generating content in an appropriate format for specific devices. This way you can take into consideration the size of the screen, the display characteristics, etc.
    It is 'stable' on Solaris and NT, though it is true that the installation procedure of the CD is for Solaris only. The product is not currently available on OTN, so the installer restrictions should have been explained to you when you obtained the CD.
    Why Portal-to-Go? Here's three reasons:
    1. Inherent problems of the User Interface for a wireless device, so we provide a way personalise the UI to improve navigation and allow commonly used parameters to be saved as stored preferences through the portal.
    2. Differences in the characteristics between wireless devices make it hard to support all type without re-creating content and applications for each specific case. With Portal-to-Go, the same service can be accessed from any device.
    3. Lack of content available for WAP and other wireless devices. We have tools to quickly create wireless services from existing Web sites as well as an application platform for creating new Java or database applications for wireless devices.
    You are correct that the product does not have a WAP gateway.
    I'm not sure where you are located, but feel free to contact me offline. I can answer any specific questions, or get you contact with a local Oracle representative.
    At the moment, if anyone wants to obtain a copy of Portal-to-Go, you should contact your local Oracle representatives.
    Paul

  • Okay. Question for all those IT wirzards (

    Okay. Question for all those IT wirzards (& iTunes) experts out there. Anyone know why a playlist (Purchased) keeps dropping off my playlists in iTunes??l This has happened at least 15-20 times to me in the past couipe of years. Fofrtunately for me, I saved these songs to an external hard drive, so retrieval won't be so painful. Guess I just want to know how to avoid this going forward.

    Just that one playlist goes missing and no other content? No idea. But it is clear you ought to have a backup so you can restore the database should it happen again.
    tt2

  • HI i am user for InDesincc TrialVersion now. i have serious question for all guys in here. at first i installed Indesigncc as korean language but now i need to indesigncc english language installation. and then now i cant translate and changing korean lan

    Daniel SterchiHI i am user for InDesincc TrialVersion now. i have serious question for all guys in here. at first i installed Indesigncc as korean language but now i need to indesigncc english language installation. and then now i cant translate and changing korean language interface to english language interface at indesigncc download. so i wonder How i can do that?...i am very seriuos for now....i want indesigncc version for Eng.Language interface. but now i cant do that .i dont konw how i can presented kor. interfacing transite to eng. interface..
    forumnotifierHI i am user for InDesincc TrialVersion now. i have serious question for all guys in here. at first i installed Indesigncc as korean language but now i need to indesigncc english language installation. and then now i cant translate and changing korean language interface to english language interface at indesigncc download. so i wonder How i can do that?...i am very seriuos for now....i want indesigncc version for Eng.Language interface. but now i cant do that .i dont konw how i can presented kor. interfacing transite to eng. interface..

    First of all, uninstall it with the uninstaller.
    Then:
    Install the ENGLISH version.
    Change the language in the CC app to Korean.
    Install the Korean version. (DON't uninstall the English version)
    Change back the langauge in the CC app to English.
    When your OS is running in English, InDesign will run in English with Korean functionality added, if your OS is running in Korean it will take the Korean User Interface, so let your OS run in English.
    Every installer language will add needed plugins for the work with that language. E.g. If I install Hebrew, I get RTL functionality in German version, only if I would change the OS language it would change the language of InDesign, InDesign takes always as UI language the language of the OS if available, if not (in your case you have uninstalled English before), it takes any version which is available in the order of languages specified in the OS.
    If you need to run your program in a different language than the OS but you have installed it in the language of the OS it becomes more difficult. You would have to use some system tools which are able to force a program to open with a different language. Most of those tools are freeware.

  • Is LION OS working well for all you?

    Is LION OS working  well for all you? never thought it could be such a problem, it's the fisrt time it happens to me with an Apple product!. problems with safari, aperture, iphoto, opening/closing windows, right now is so close in performance to all windows versions than Apple high quality products at the level that all we have been expected with the release of Lion. Really dissappointed, and just hope that Apple tech suppor team solves this situation with a new sofware update.

    For most yes, For me definitely yes. I upgraded over SL, used it for a week  or more. Then updated my daughter's i5 MBP. that went well and she is happy. Then I updated my wife's MB Air. now THAT should tell you the confidence I have built in Lion. !!!

  • Question for all programmers who use Xcode

    Hi,
    What style of indenting do you use?
    1)<pre>
    int myFunc(int num){
    //some code
    }</pre>
    2)<pre>
    int myFunc(int num)
    //some code
    }</pre>
    I uses style 2, but I cannot get Xcode 2.4 to properly indent nested braces. Here is an example:
    <pre>
    class Test
    public:
    Test()
    int x = 0;
    while(x < 10)
    { <font color="2200cc"><------- should be moved to the left</font></pre>
    Can anyone get that to indent properly in Xcode?

    So, for instance, the
    character sequence 'f' can be used to insert a for
    loop in your code. It's amazing how fast it is to
    write code with that feature.
    Textmate has that. Make sure you have the proper language selected at the bottom of the file window. If you have "C" selected, all you have to do is type "for", then hit the tab key and you'll get a "for" loop. And you can even tab from bit to bit to fill in the parameters you want. I've poked around with adding my own completions, too. It's a little non-obvious to me, but it might not be to someone else.
    Also, Xcode has something similar, just look at "Insert Text Macro" in the "Edit" menu. You can assign key bindings to any of those. So, for example, I bound "option"-"f" to the "for" loop. If you haven't already discovered it, there's an easy way to move from parameter to parameter, just use the "control"-"/" key combo.
    Also, just tonight, I discovered the free Completion Dictionary plugin. It's really easy to define your own text macros. One thing I found puzzling was the key binding to expand the macro. Completion Dictionary comes with a key bindings file, but I couldn't make it work, so I just added a key binding to the "Expand Macro" submenu. Works a charm.
    Finally, as to your original question, about the indenting. Did you want the "{" to line up directly below the "while"? If so, Textmate does that for me:
    <pre class="command">class Test
    public:
    Test()
    int x=0;
    while (x<10)
    // something.
    }</pre>But that's a language I never use (Java or C++?), so I'm not real sure about that.
    Finally, I should put in a word for BBEdit. It's what I actually use most of the time for work, since I work on a web site all day long and I've been using it forever. It has a slick feature where you can build various kinds of macros using Perl or other scripting languages, which is great for creating really complex (or tedious) bits of code. But it doesn't have the same kind of autocompletion as Textmate or Xcode does.
    charlie

  • For all you old Mac Users

    Remember INITS? Small wonderful applications that you could install and just do about anything with. Though I am a obvious now a OS. X user I need a INIT type application.
    I am looking for a good, old fashioned Monitor/Display Utility, to simply adgust my Contrast, Levels & Balances.
    I have tried the typical ColorSync Utility and the Display/System Preferences Panel and they are... useless[at least for this cause].
    Does anybody know of a OS X Utility INIT that can achieved this?

    On question, where would you keep files that are not current but not old if you get me. For example, a folder of short, funny movie clips that is added to rarely, but is added to?
    The only difference is that I keep my raw footage, for fear of needing it in the future.
    I keep all raw footage, i.e. I keep the original tapes.
    The finished movies end up on a DVD (also a kind of backup), the TS files are kept on the external in its Movie Folder for instant playback as required, as are those snippets, free title sequences (clouds, waves etc), and bits and pieces one receives from friends and relatives. These all have an alias in the Movies Folder on the internal drive so Front Row can find them. Similar setup with the iTunes library.
    My Documents Folder is also backed up regularly on to DVDs, but otherwise just kept up to date as part of the regular cloning.
    Not (yet) having a digital camera, my 9000 or so scanned negatives and slides (200 dpi TIFF files, each around 8MB) are sorted in folders by year, each of which is backed up on DVDs, and the entire 'Archive' is backed up on the external drive on two different partitions. Yes, I know, that is like keeping the only two copies of your will in the same safe, but for me that will have to do!
    As for fragmentation, that really is not a problem with OS X. Perhaps one could, every year or two, delete the internal drive and clone back from the clone, if you see what I mean. But even via firewire it takes half a day to copy up to 200GB, and life is short enough already!

  • Possible solution for all you that have skipping songs, & scratchy sound

    Hi All,
    After upgrading to 7.02, I was extremely annoyed with the performance. But here's what I found and did. In a nutshell, you uninstall the new version and install a 6.05 version or earlier. I'll include some links to what I found and hopefully it'll help. Here's the first link and it describes what you need to do. Scroll down to the post by marlowe5 posted 10-08-2006, 8:06 A.M. and I also included the exact wording from the post below the link.
    http://www.oldapps.com/forum/archive/index.php/t-228.html
    This is the exact wording:
    Thanks for the advise in this post... after installing iTunes 7, and then 7.01, my computer was running really slow, iTunes was skiping and garbling and acting terribly... so I really needed to go back to 6.05.
    For all of you that need to do the same it's pretty easy:
    I downloaded the 6.05 install file from from oldapps, uninstalled 7.01 and then re-installed 6.05. When I ran iTunes it did give me the error message that the library file was created in a new version and couldn't open, but I then deleted the 'itunes library.itl' file (in My Music > iTunes folder) and then replaced it with the backup that was automatically created when I installed 7.01 (in My Music > iTunes > Previous iTunes Libraries). iTunes then started up fine with all my music and playlists. And all the skipping and CPU bogging is better now.
    Library file note:
    With the library file, when you update iTunes it also updates the library file, which won't work with older versions. So you need to replace this file or create a new one. I would recommend copying/backing up the new library file to a different location to be safe instead of just deleting it. You'll see above where to find the new library file and prior ones. When I made these changes I did two things to be safe, 1) I moved the new "iTunes library.itl" to a backup location instead of deleting it 2) I moved my most recent old library file from(My Music > iTunes > Previous iTunes Libraries) to (My Music > iTunes folder)and renamed it to "iTunes library.itl". It was previously "iTunes library 2006-1-18.itl." Before renaming it, iTunes didn't find the library so renaming it worked. Your file name will most likely have a different date so don't look for the exact file I mentioned. Plus it's probably a good idea to make a copy or back up this library file too.
    If you don't have any previous library files, you may need to create a new one. I don't have the info but I believe the link to the post should have that info.
    After reading through the post and other info, the only thing that it appears might be lost are playlists that have been created since the upgrade. I don't believe any music should be lost but that's why it's safer to backup the new library just in case. I did not lose any music.
    Also, here's a link to where I found old versions of iTunes:
    http://www.filehippo.com/download_itunes/?1249
    Hopefully this helps and good luck. I'm back to normal now.
    Dell Dimension 4550   Windows XP  
    Dell Dimension 4550   Windows XP  
    Dell Dimension 4550   Windows XP  

    Soccerteen,
    Make sure you try all the other remedies mentioned in other posts. If this didn't work for you then try below. I consider it a last ditch effort since it's going back to a previous version, which unfortunately works much better than 7.0x for me.
    Remove & backup your current library file to a different file/location to be safe. Once you do that, uninstall 7.02, and then install 6.05 or any 6 version. Once 6.0x is installed and you've opened it, you'll need to create a new library file. If you've removed the library file from (My Music > iTunes folder)it should load up with a blank slate. What you to do from this point is create a new library file. Read the oldapps link, the post from "Admin" dated 9-30-2006 5:30 PM should help. Most likely all of your music will be under one main file but you might have to add individual folders one at a time depending on how much music you have. Since I didn't have to go this route, I'm not sure if it's the best route but after reading multiple post, this was the most common suggestion. Worst case scenario, you can always reload 7.02 an reinsert the backup library file, which will put you back where you started.
    Hope that works for you and good luck!

  • Easy question for the MODS

    Unlike more difficult questions like CRC problems, ps problems, etc, this is rather an easy question.
    The KT4V manual (page 3-8) lists the onboard NIC as a "boot device" option.  This "feature" is available in Bios 1.1, 1.2 but not available in Bios 1.4 and later.  
    Any reason why this feature was mutilated and not available anymore in the later bioses?
    Are there two different bioses for KT4V and KT4V-L?  If yes where can one find the bios for KT4V-L?
    I know this feature is not very popular with the majority of users, and I'm not trying to bust anyone's balls for removing un-popular features, but the "boot from NIC"  was one of the features/reasons why I got this mb, and I would rather use a much newer bios than 1.2 (for known reasons).
    Also, while on this topic, boot-from-usb (especially thumb drives) feature would also be greatly appreciated - I think it is also listed in the manual.
    TIA

    Hi,
    Quote
    Please suggest him to update the BIOS Ver1.9 which can support Boot from LAN and boot from USB devices.
    AMI BIOS can boot from the devices which support BIOS Boot specifications (BBS, you can refer to the attached file for the information).
    Email me, so I can send you the BIOS PDF.

  • Thanks for all you early adopters-seriously

    Sincere thanks for all of you who jumped in and started using it. I am sure that it is a better computer because of all the feedback that the company has received. I have been reading the posts and am looking forward to getting the next edition/revision.
    As one poster wrote, the advantage you have over me is that you have the computer to use now, and I am waiting. It will be a much used and appreciated tool when I get one. The funds are not available for me to get one yet but am looking at the beginning of the year.
    The only ones I have seen are in stores. I wish I knew how loud the fans get when they come on as I have not heard them.
    Some have described them as really loud. Any input here?
    It looks like most of the main issues that I have read about have been resolved. The latest seems to be the dependability of the SuperDrive, but they may just be that percentage of products that are problematic out of the box.
    I get the impression that these things are selling like hot cakes, so the numbers out there vs. the posts are probably staggering.
    Thanks again, and I hope everyone gets their computer working the way they expect it to.

    Hey, you're welcome! Hahaha
    Well I've had mine for over 3 months now and I've zero problems with it. To answer some of your questions:
    - the fans do not get horrendously loud as some people have stated. The only time I've heard them on is when I'm playing games (call of duty 2, halo, tiger woods), encoding a dvd, watching large videos on iTunes; so pretty much cpu intensive tasks. They don't come on with usual surfing, chatting, emailing, word processing.
    - yeah, i've read the posts about the superdrives too. But I haven't had any problems with mine. I've ripped about 10-15 music cd's from my collection and burned many dvd's with it without a problem.
    Enjoy your macbook when you get it!

  • 2 questions for all the iTunes PROS out there

    I currently have the latest itunes software. I have recently formatted my pc, and need to add all my songs back into the itunes library. I have over 7000 songs all in the general folder
    "Music". I do to File->Add folder to library->Then select that folder. It works for a bit scanning though files asks me to convert some, then it just crashes..... It would take me soooo long to do this folder by folder, does any1 know what is going on?
    Since i have formatted my pc, when i plug my ipod in it says that it has been synced up to another itunes would i like to delete it all, any way around this? Or maybe can i somehow sync my ipod to my itunes, thus fixing the problem in my first question?
    Thx soo much for any help
    Myles

    "Since i have formatted my pc, when i plug my ipod in it says that it has been synced up to another itunes would i like to delete it all, any way around this?"
    When your iPod is set to update automatically you just need take care when connecting back to your computer and an empty iTunes. When you get the message that your iPod is linked to a different library and asking if you want to link to this one and replace all your songs etc, press "Cancel". Pressing "Erase and Sync" will irretrievably remove all songs from your iPod. Your iPod should appear in the iTunes source list from where you can change the update setting to manual and continue to use your iPod without the risk of accidentally erasing it. Check the "manually manage music and videos" box in Summary then press the Apply button: Managing content manually on iPod
    You can also use a keyboard command to prevent your iPod auto-syncing with iTunes. While connecting the iPod to the computer on Windows with iTunes 7 installed hold down the Control and Alt keys (or Shift + Ctrl keys in older versions). This will stop the iPod from auto-syncing with iTunes and the iPod will appear in the source list. Wait until you are sure the iPod has mounted, and that it will not auto sync and then you can let the keys go. This may take between 20 to 30 seconds depending on your computer: iTunes 7 Keyboard Shortcuts for Windows
    "Or maybe can i somehow sync my ipod to my itunes, thus fixing the problem in my first question?"
    If you have any iTMS purchases the transfer of purchased content from the iPod to authorised computers has been introduced with iTunes 7. A paragraph on it has been added to this article: Transfer iTunes Store purchases using iPod
    The transfer of non iTMS content such as songs imported from CD is designed by default to be one way from iTunes to iPod. However there is a manual method of accessing the iPod's hard drive and copying songs back to iTunes on Windows. The procedure is a bit involved but if you're interested it's posted in this thread: MacMuse - iPod to iTunes
    If you prefer something more automated then there are a number of third party utilities that you can use to retrieve the music files and playlists from your iPod. This is just a selection, you'll find that they have varying degrees of functionality and some will transfer movies, videos and photos as well. Have a look at the web pages and documentation, they are generally quite straightforward. You can also read reviews of some of them here: Wired News - Rescue Your Stranded Tunes
    YamiPod Mac and Windows Versions
    iGadget Windows Only
    iPod Access Mac and Windows Versions
    PodUtil Mac and Windows Versions
    iPodCopy Mac and Windows Versions
    PodPlayer Windows Only
    CopyPod Windows Only
    Whichever of these retrieval methods you choose, keep your iPod in manual mode until you have reloaded your iTunes and you are happy with your playlists etc then it will be safe to return it auto-sync again.

  • Challenge for all you great programmers out there...i need help!

    Okay, my name is Tom. I am attending a small private
    college where the computer program is very small. There are
    no Java professors or any professors with any experience.
    The library has only 3 beginner books on Java as well. So,
    for my extremely ambitious Internal Internship Project I
    need some help. I have taken a beginner course and am very
    apt to learning, so this shouldn't be over my head. Now to
    the project:
    GUI
    I have envisioned a utility automation program. Basically,
    There is 1 main pane in the GUI. I have already designed it
    but am open to suggestions. It consists of the important
    parts: The utilty buttons (on the left), the textArea (in
    the middle), and checkboxes (on the right). When opening
    the program, the textArea will simply display instructions
    on how to use the program. There will be as many buttons as
    utilities there are (for now i am experimenting with
    defrag), and the checkboxes will be aligned with the
    utility buttons but to the right of the textArea.
    Function
    When each utility button is clicked, a description of the
    utility comes up in the textArea. If you decide to use it
    then check the appropriate checkbox to the right of the
    textArea. Once you choose all the utilities that you want
    to do, then you hit the start button.
    Execution
    This will automate all of the programs so you can leave and
    come back.
    Things needed
    I need to know how to import text files to the textArea,
    how to program the textAreas to come up, and one final
    thing for now. I will have to somehow set the parameters to
    those applications automatically (Ex: "what drive to
    defrag"). So, my first thought would be create a popup
    window that asks for all of the parameters needed for each
    utility, define those values as variables, and then when
    the utilities ask for them in the automation feed them the
    variables.
    I have put about 25 hours into making the GUI, and
    designing the structure. I need a ton of help if I want to
    get this done. I am using Netbeans for convenience but I'm
    not sure i know how to insert custom code.
    Any help the ANYONE can give me would be extremely
    appreciated.
    Thanks to all, and have a great day.
    Tom

    Here is my code for my GUI
    * JFMainMenu.java
    * Created on February 10, 2008, 10:16 PM
    package internshipproject;
    * @author admin
    public class JFMainMenu extends javax.swing.JFrame {
    /** Creates new form JFMainMenu */
    public JFMainMenu() {
    initComponents();
    /** This method is called from within the constructor to
    * initialize the form.
    * WARNING: Do NOT modify this code. The content of this method is
    * always regenerated by the Form Editor.
    // <editor-fold defaultstate="collapsed" desc="Generated Code">
    private void initComponents() {
    jPanel1 = new javax.swing.JPanel();
    JBTomPic = new javax.swing.JButton();
    jScrollPane1 = new javax.swing.JScrollPane();
    jTextPane1 = new javax.swing.JTextPane();
    jScrollPane2 = new javax.swing.JScrollPane();
    jTextPane2 = new javax.swing.JTextPane();
    jScrollPane3 = new javax.swing.JScrollPane();
    JTPHeader = new javax.swing.JTextPane();
    jSeparator1 = new javax.swing.JSeparator();
    jLabel1 = new javax.swing.JLabel();
    jLabel2 = new javax.swing.JLabel();
    jLabel3 = new javax.swing.JLabel();
    jButton1 = new javax.swing.JButton();
    jButton2 = new javax.swing.JButton();
    jButton3 = new javax.swing.JButton();
    jCheckBox1 = new javax.swing.JCheckBox();
    jCheckBox2 = new javax.swing.JCheckBox();
    jCheckBox3 = new javax.swing.JCheckBox();
    jButton4 = new javax.swing.JButton();
    jButton5 = new javax.swing.JButton();
    jTextField1 = new javax.swing.JTextField();
    setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
    setResizable(false);
    jPanel1.setBackground(new java.awt.Color(0, 0, 0));
    JBTomPic.setBackground(new java.awt.Color(0, 0, 0));
    JBTomPic.setIcon(new javax.swing.ImageIcon("C:\\Documents and Settings\\All Users\\Documents\\My Pictures\\Sample Pictures\\TomBorder.jpg")); // NOI18N
    JBTomPic.setActionCommand("AboutMe\n");
    JBTomPic.setBorderPainted(false);
    JBTomPic.setContentAreaFilled(false);
    JBTomPic.addActionListener(new java.awt.event.ActionListener() {
    public void actionPerformed(java.awt.event.ActionEvent evt) {
    JBTomPicActionPerformed(evt);
    jTextPane1.setBackground(new java.awt.Color(0, 0, 0));
    jTextPane1.setBorder(null);
    jTextPane1.setEditable(false);
    jTextPane1.setFont(new java.awt.Font("Comic Sans MS", 3, 40));
    jTextPane1.setForeground(new java.awt.Color(255, 255, 255));
    jTextPane1.setText(" Just start it up, then go to lunch!");
    jTextPane1.setCaretColor(new java.awt.Color(0, 51, 51));
    jScrollPane1.setViewportView(jTextPane1);
    jTextPane2.setBackground(new java.awt.Color(0, 0, 0));
    jTextPane2.setBorder(null);
    jTextPane2.setEditable(false);
    jTextPane2.setFont(new java.awt.Font("Comic Sans MS", 3, 26));
    jTextPane2.setForeground(new java.awt.Color(255, 255, 255));
    jTextPane2.setText(" An amazing program that automates your computer maintainance applications!");
    jScrollPane2.setViewportView(jTextPane2);
    JTPHeader.setBackground(new java.awt.Color(0, 0, 0));
    JTPHeader.setBorder(null);
    JTPHeader.setEditable(false);
    JTPHeader.setFont(new java.awt.Font("Comic Sans MS", 3, 20));
    JTPHeader.setForeground(new java.awt.Color(255, 255, 255));
    JTPHeader.setText(" Welcome to Tom's PC Fix");
    jScrollPane3.setViewportView(JTPHeader);
    jLabel1.setBackground(new java.awt.Color(51, 51, 0));
    jLabel1.setFont(new java.awt.Font("Tahoma", 1, 20));
    jLabel1.setForeground(new java.awt.Color(255, 255, 255));
    jLabel1.setText("Choose Your maintainance:");
    jLabel2.setBackground(new java.awt.Color(51, 51, 0));
    jLabel2.setFont(new java.awt.Font("Tahoma", 1, 20));
    jLabel2.setForeground(new java.awt.Color(255, 255, 255));
    jLabel2.setText("Check to add to automation:");
    jLabel3.setBackground(new java.awt.Color(51, 51, 0));
    jLabel3.setFont(new java.awt.Font("Tahoma", 1, 20));
    jLabel3.setForeground(new java.awt.Color(255, 255, 255));
    jLabel3.setText("Description:");
    jButton1.setBackground(new java.awt.Color(255, 255, 255));
    jButton1.setFont(new java.awt.Font("Comic Sans MS", 1, 15));
    jButton1.setForeground(new java.awt.Color(51, 0, 51));
    jButton1.setText("Spybot");
    jButton1.setBorderPainted(false);
    jButton1.setFocusPainted(false);
    jButton1.addActionListener(new java.awt.event.ActionListener() {
    public void actionPerformed(java.awt.event.ActionEvent evt) {
    jButton1ActionPerformed(evt);
    jButton2.setBackground(new java.awt.Color(255, 255, 255));
    jButton2.setFont(new java.awt.Font("Comic Sans MS", 1, 15));
    jButton2.setForeground(new java.awt.Color(51, 0, 51));
    jButton2.setText("Disk Cleanup");
    jButton2.setBorderPainted(false);
    jButton2.setFocusPainted(false);
    jButton3.setBackground(new java.awt.Color(255, 255, 255));
    jButton3.setFont(new java.awt.Font("Comic Sans MS", 1, 15));
    jButton3.setForeground(new java.awt.Color(51, 0, 51));
    jButton3.setText("Deframentation");
    jButton3.setBorderPainted(false);
    jButton3.setFocusPainted(false);
    jCheckBox1.setBackground(new java.awt.Color(255, 255, 255));
    jCheckBox1.setFont(new java.awt.Font("Comic Sans MS", 1, 12));
    jCheckBox2.setBackground(new java.awt.Color(255, 255, 255));
    jCheckBox2.setFont(new java.awt.Font("Comic Sans MS", 1, 12));
    jCheckBox3.setBackground(new java.awt.Color(255, 255, 255));
    jCheckBox3.setFont(new java.awt.Font("Comic Sans MS", 1, 12));
    jButton4.setBackground(new java.awt.Color(255, 255, 255));
    jButton4.setFont(new java.awt.Font("Comic Sans MS", 1, 20));
    jButton4.setText("Start");
    jButton5.setBackground(new java.awt.Color(255, 255, 255));
    jButton5.setFont(new java.awt.Font("Comic Sans MS", 1, 15));
    jButton5.setText("Exit");
    jTextField1.setEditable(false);
    jTextField1.setText("fcghjdcfhgj");
    jTextField1.addActionListener(new java.awt.event.ActionListener() {
    public void actionPerformed(java.awt.event.ActionEvent evt) {
    jTextField1ActionPerformed(evt);
    org.jdesktop.layout.GroupLayout jPanel1Layout = new org.jdesktop.layout.GroupLayout(jPanel1);
    jPanel1.setLayout(jPanel1Layout);
    jPanel1Layout.setHorizontalGroup(
    jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
    .add(jPanel1Layout.createSequentialGroup()
    .add(jScrollPane2, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 323, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
    .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
    .add(JBTomPic, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 186, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
    .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
    .add(jScrollPane1, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 320, Short.MAX_VALUE))
    .add(jScrollPane3, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 841, Short.MAX_VALUE)
    .add(org.jdesktop.layout.GroupLayout.TRAILING, jSeparator1, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 841, Short.MAX_VALUE)
    .add(jPanel1Layout.createSequentialGroup()
    .addContainerGap()
    .add(jLabel1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 277, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
    .add(71, 71, 71)
    .add(jLabel3)
    .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED, 66, Short.MAX_VALUE)
    .add(jLabel2)
    .addContainerGap())
    .add(org.jdesktop.layout.GroupLayout.TRAILING, jPanel1Layout.createSequentialGroup()
    .add(jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
    .add(jPanel1Layout.createSequentialGroup()
    .add(30, 30, 30)
    .add(jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING, false)
    .add(jButton3, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
    .add(jButton2, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
    .add(jButton1, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
    .add(133, 133, 133)
    .add(jTextField1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 339, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
    .add(jPanel1Layout.createSequentialGroup()
    .add(349, 349, 349)
    .add(jButton4, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 143, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)))
    .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED, 113, Short.MAX_VALUE)
    .add(jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
    .add(jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING)
    .add(jCheckBox1)
    .add(jCheckBox3)
    .add(jCheckBox2))
    .add(jButton5))
    .add(21, 21, 21))
    jPanel1Layout.setVerticalGroup(
    jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
    .add(org.jdesktop.layout.GroupLayout.TRAILING, jPanel1Layout.createSequentialGroup()
    .add(jScrollPane3, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
    .add(7, 7, 7)
    .add(jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
    .add(jScrollPane2, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 183, Short.MAX_VALUE)
    .add(jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING, false)
    .add(jScrollPane1)
    .add(JBTomPic, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 183, Short.MAX_VALUE)))
    .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
    .add(jSeparator1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 10, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
    .add(18, 18, 18)
    .add(jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
    .add(jLabel1)
    .add(jLabel2)
    .add(jLabel3))
    .add(86, 86, 86)
    .add(jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
    .add(jPanel1Layout.createSequentialGroup()
    .add(jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
    .add(jButton1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 44, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
    .add(jCheckBox1))
    .add(62, 62, 62)
    .add(jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
    .add(jCheckBox2)
    .add(jButton2, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 44, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
    .add(67, 67, 67)
    .add(jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
    .add(jCheckBox3)
    .add(jButton3, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 44, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)))
    .add(jTextField1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 318, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
    .add(53, 53, 53)
    .add(jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
    .add(jButton4, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 41, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
    .add(jButton5, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 36, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
    .add(58, 58, 58))
    org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(getContentPane());
    getContentPane().setLayout(layout);
    layout.setHorizontalGroup(
    layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
    .add(org.jdesktop.layout.GroupLayout.TRAILING, jPanel1, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
    layout.setVerticalGroup(
    layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
    .add(jPanel1, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
    pack();
    }// </editor-fold>
    private void JBTomPicActionPerformed(java.awt.event.ActionEvent evt) {                                        
    // TODO add your handling code here:
    private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {                                        
    // TODO add your handling code here:
    private void jTextField1ActionPerformed(java.awt.event.ActionEvent evt) {                                           
    // TODO add your handling code here:
    * @param args the command line arguments
    public static void main(String args[]) {
    java.awt.EventQueue.invokeLater(new Runnable() {
    public void run() {
    new JFMainMenu().setVisible(true);
    // Variables declaration - do not modify
    private javax.swing.JButton JBTomPic;
    private javax.swing.JTextPane JTPHeader;
    private javax.swing.JButton jButton1;
    private javax.swing.JButton jButton2;
    private javax.swing.JButton jButton3;
    private javax.swing.JButton jButton4;
    private javax.swing.JButton jButton5;
    private javax.swing.JCheckBox jCheckBox1;
    private javax.swing.JCheckBox jCheckBox2;
    private javax.swing.JCheckBox jCheckBox3;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JLabel jLabel3;
    private javax.swing.JPanel jPanel1;
    private javax.swing.JScrollPane jScrollPane1;
    private javax.swing.JScrollPane jScrollPane2;
    private javax.swing.JScrollPane jScrollPane3;
    private javax.swing.JSeparator jSeparator1;
    private javax.swing.JTextField jTextField1;
    private javax.swing.JTextPane jTextPane1;
    private javax.swing.JTextPane jTextPane2;
    // End of variables declaration
    }

Maybe you are looking for

  • Download of Oracle 8i Database Problem

    Everytime I download the database from the developer area, it appears to go great. However, neither Winzip or PKunzip can work the file. They always encounter errors that are not fixable. This happens 100% of the time. It is frustrating considering t

  • Why do I get "Storage almost full" warnings with multiple Gb free?

    I have a 32Gb iPad Mini (running latest OS updates and all current apps), and keep getting "Storage Almost Full" warnings, even when I have 3, 4 or 5Gb free space (according to desktop sync)?

  • Photoshop CS6 Extended upgrade from Photoshop CS5 Extended

    I am running the Teacher/Student edition of Photoshop CS5 and plan to up grade to Photoshop CS6 Extended non- eacher/Student edition.  Will the be any complications with this upgrad. 

  • How to manually transfer movie or music on iPad to computer

    Hi, If I buy a movie or music on my iPad, how do I manually transfer the movie or music to my computer? It seems I'm forced to sync, which results in me losing the purchased items on my iPad and then all the items on my computer are synced to my iPad

  • Installing Photoshop CS5 on another computer

    Do I need to deinstall on the lap top that I have CS5 on and then reinstall on the new computer?  I downloaded from the web site.  I do have the serial number but I don't know if I can have this on multiple units in my home or if I needed to remove i