I want to learn how to use ActionScript

Where Am I With Flash?
I have adobe Flash CS3 Professional.
I have looked at the tutorials from the 'getting started'
section of the Video Workshop DVD and understood them.
I can do simple things like shape tweening, adding butons
ect...
I would like to be able to start adding script to my projects
(ActionScript 3)
I have almoast never programed before and certanly never
programed with ActionScript
I have an ambition to become a good ActionScript Programer so
I can add interactive flash into websitess
What Do I Want?
To start with, I need to know how everything is set up within
ActionScript 3 (what are variables and constants? How do you
constuct an If statment? What imported events do what? ect...)
I want to learn the above from a book (so I do not have to be
at my computer to learn). It would be nice if the book came with a
tutorial disk but this is not essential.
I have looked at the book from the following URL -
http://www.amazon.co.uk/Flash-ActionScript-Dummies-Doug-Sahlin/dp/0764508318/ref=pd_bbs_6? ie=UTF8&s=books&qid=1204548401&sr=8-6
However, I'm not sure if this book is for programing in
ActionScipt version 3 or another version (or for that matter
weather the fact that it is for version 1,2 or 3 matters at all).
One More Thing
Also I would like to know some usefull websites that could
help me besides the video workshop (which I have looked at).
Thank You
Ziggy

Hi Ziggy,
I suggest you take a look at "Learning ActionScript 3.0: A
Beginner's
Guide", by Rich Shupe and Zevan Rosser.
It will give you great foundation and can help you build your
skills
from ground up.
I have just barely read a few pages, so I'm basing myself on
reviews
from friends who are beginning into AS3.
Furthermore, once you've got a good grasp on the basics, I
think one of
the most important part will be improving your skills on
object oriented
programming. There's no better way for that than learning it
with your
favorite language (and AS3 is perfect for that).
I strongly suggest at that point, that you acquire Colin
Moock's
"Essential Actionscript 3" from O'Reilly's. It's a difficult
book but
don't get discouraged, and keep on reading and re-reading the
chapters
and studying the examples until you finally get it.
It will help get your feet into OOP, necessary if you are
serious in
AS3, and I can guarantee you although you might feel
disturbed for not
understanding everything right away, it is only because it
covers the
topics very thoroughly, and you'll end up understanding many
important
concepts by re-reading it over the months/years of your
practice.
That book is a bible (like all previous from the author)...
once you get
to an intermediate level, you'll most likely rarely read any
other
(except for very specific topics it doesn't cover), and you
will often
refer to the AS help to know all of the classes and functions
you'll
come to need, since you'll be fully able to understand them.
Good luck!

Similar Messages

  • Want to learn how to use "serializable"

    Hello, everyone!
    I have never used "serializable" function of Java before. After reading API specification of java.sun.com and some tutorials of java.sun.com dealing with "serializable", I become more puzzled. I just want to know how to use the basic function of "serializable". Can anyone introduce me some basic tutorials or samples?
    Thanks in advance,
    George

    The function of serializable is to be able to serialize an object to a stream. Operations include writing an object to file, or to a network socket connection.
    That object can then be reconstructed from that file (or the reciever on the other end of a network socket can reconstruct the object.)
    Example
    MyClass object = new MyClass() //MyClass implements Serializable
    FileOutputStream fos = new FileOutputStream("C:\test.file"); //create a fileoutputstream to write to a file
    ObjectOutputStream out = new ObjectOutpuStream(fos); //an object outputstream to wrap the fileoutputstream
    out.writeObject(object); //write the object to the fileReading the object is like this
    FileInputStream fis = new FileInputStream("C:\test.file"); // create a fileinputstream to read from a file
    ObjectInputStream in = new ObjectInputStream(fis) // an ObjectinputStream to wrap the FileInputStream
    MyClass object = (MyClass)in.readObject();Exception catch blocks are not included but you do have to catch IOException for reading and writing, plus a few other exceptions for reading. Consult the API for details.

  • Want to learn how to use the imac.  is there tutorials or something that can start me off?

    is there places that can help me to learn how to use the imac to the best of its ability?

    This has tutorials  http://www.apple.com/findouthow/mac/

  • I want to learn how to use the existing stationary in Mail and add my own stationary.

    I use the stationary in my Mail program often.  I would like to learn more about using it, changing it, making my own stationary to use in Mail - and also to allow PC users to receive it.

    Here's a thread that will possibly help:
    https://discussions.apple.com/message/18175872#18175872
    Mail templates use HTML, so those receiving your e-mail should able to view the stationery. It doesn’t matter if they’re on a PC or Mac.

  • I want to learn how to use the creative soft synth

    please somebody throw me a bone....i need to start from the BEGINING here!
    where can i find a beginers guide telling me everything i need to know ...step by step ....how to configure and use the creative built in SOFT SYNTH....is there a control panel or something ?

    Try this work-flow:
    In Editor, go to the expert tab.
    Open picture B, the one you wish to select something from to add to another picture.
    Use one of the selection tools, e.g. selection brush, lasso tool, to select the object. You will see an outline ("marching ants") surrounding  the selection once it is complete
    Go to Edit menu>copy to copy the selection to the clipboard
    Open picture A, then go to Edit>paste
    Use the move tool to position object from picture B.
    In the layers palette you should see picture A as the background layer, and object B on a separate layer.

  • Does anyone know if apple's one-to-one program would be a good way to learn how to use logic pro or am I better off going to school to learn audio engineering or something?

    Of course going to school would be a good option, but I want to know if one-to-one is also a good way to learn how to use logic pro. Has anyone been through the one-to-one program for logic pro and can say that they learned how to use logic pro well because of it?

    For sure, one to one training, if given by a tutor who is capable, will hand you the means to build up self-confidence  and will therefore let you operate the hard/software in an intelligent manner, instead of going for the trial and error method which has its pro's and con's too. Once you've passed this beginners phase you will make your own decisions intelligently and then you will also start to get experience and learn even from your mistakes. Something like that in theory and the rest is up to you!
    Have a nice day

  • Where do I go to learn how to use Terminal?

    I need to learn how to use Terminal. I learn best via video tutorials. Wondering if Apple has anything that will help?

    Thanks to you both TeenTitan and leroydouglas.
    As a web designer I decided to make the leap to HTML5 recently and have been collecting TONS of wonderful links to help me get up and running. HTML5 is a monumental leap compared to the transition I had to make from HTML 3.2 to 4 and then from 4 to XHTML 1.0. I was greatly encouraged to find the WebDev community embracing HTML5 Boilerplate and thought life would actually be simpler even when I heard Divya Manian encourage developers to be sure to use Paul Irish's Build Script which comes with HTML5 Boilerplate. As I watched his video, I realize as a Mac user that while there may be an alternative way to work with the Build Script I may not know how to do it properly so I'd best make peace at long last with Terminal. I don't want to run the script on a site and wonder if I didn't use Build Script properly.
    If interested you can learn about HTML5 Boilerplate here.
    Here is the YouTube video I mentioned about the demo for Build Script and its use in Terminal.
    I will definitely bookmark all your links and review them soon.

  • HT4783 I'm trying to learn how to use Airdrop between my wife's Mac and mine. We both have it, but this article did not help us learn HOW to share files.  Yippeee that we can...but HOW?

    My wife and I are trying to learn how to use Air Drop.  The "tutorial" showed us where it is.  It came up.  I saw hers (Mac).  She saw mine (Mac). But where to go after that is, apparently, in the cloud somewhere.  The description says we can share files...which is nice...but nothing tells us HOW to share those files. 
    Thanks for your help out there...
    Dennis

    1. Open a new Finder window or use one that's already open
    2. Click on Airdrop, press Shift+Command+R, or find "Airdrop" in the "Go" menu
    3. Drag your file to the icon of the person you want to send the file to (if you have mountain lion, you can use the share button).
    4. The other person has to click "save"
    5. The file will send and appear in the receiver's downloads folder
    In Mountain Lion, a new feature was added: the share button. It's a button with a picture of a box and an arrow jumping out of it. Click on it and the third (and last) option is "Airdrop" and clicking on it will allow you to send files over Airdrop without opening it in Finder.

  • Learn how to use Powershell with AD, Exchange and Excel

    Hi.
    I want to learn how to script in Powershell to make my life easier at work.
    Now, I'm creating Distribution Lists with cmdlets, and other simple moves, but I'd like understand and use scripts with Excel to make it easier in AD and Exchange.
    Can anyone help me find out where I can learn Powershell with those tools? I've searched google and youtube, and bought books, but I'd like to learn especially about AD and Exchange through Excel.
    I also have another question, I'm trying to collect the telephonenumbers in one OU in AD, and found this cmdlet:
    Get-AdUser -Filter * -Properties OfficePhone | FT OfficePhone,UserPrincipalName
    I lined ut the OU path before -Filter, and used * -Properties Telephones Mobile to find the phonenumber in Properties-Telephones-Mobile in Active Directory. But I'm obviously doing something wrong.
    Could anyone please help me? 

    Hi Wezcomp,
    first of all, you can use Get-Help to learn how to use Cmdlets, by asking them what it is they do:
    Get-Help Get-ADUser -Detailed
    By Adding the -Detailed Parameter, it will explain each Parameter of Get-ADUser and what it does. Then it will show you examples on how to use the cmdlet. Very useful tool,
    Get-Help, learning to use it fully ought to be your first step, as this unlocks your access all other aspects of PowerShell. With that tool in hand, you could theoretically do the rest fully autodidactically (would be frustrating though, since you'd
    like to be able to do something specific right now. Don't worry, we'll gladly help anyone truly trying to learn.).
    There are lots of tutorials out there that can be useful in a general way (I added my own here). But regarding Excel:
    As Fausto said, CSVs are the simple most way to do this. I'd advice against delving too deep into Excel manipulation right now (lots of frustration, little immediate rewards), Csv is your friend. Notable Commands:
    Import-Csv
    Export-Csv
    For example, if you want to create a csv list with user data in it, using your previous example, you can do this:
    Get-ADUser -Filter "*" -Properties OfficePhone | Export-Csv "C:\example\users.csv" -NoTypeInformation
    By the way: FT (Format-Table) is a treacherous command: It displays objects to the console, but it is a dead end where data is concerned! Only use it when you want to check something quick on the console (like whether you got the right data), before
    continuing on without using a Format command.
    Cheers,
    Fred
    There's no place like 127.0.0.1

  • Hi. I wanted to know how to use my macbook retina to the best of its potential.

    This is what the system is currently showing:
    EtreCheck version: 1.9.12 (48)
    Report generated 21 June 2014 18:32:04 GMT-3
    Hardware Information:
      MacBook Pro (Retina, 15-inch, Late 2013) (Verified)
      MacBook Pro - model: MacBookPro11,3
      1 2.3 GHz Intel Core i7 CPU: 4 cores
      16 GB RAM
    Video Information:
      Intel Iris Pro - VRAM: (null)
      NVIDIA GeForce GT 750M - VRAM: 2048 MB
      Color LCD 2880 x 1800
    System Software:
      OS X 10.9.3 (13D65) - Uptime: 3 days 9:47:47
    Disk Information:
      APPLE SSD SM0512F disk0 : (500.28 GB)
      EFI (disk0s1) <not mounted>: 209.7 MB
      Macintosh HD (disk0s2) / [Startup]: 499.42 GB (266.59 GB free)
      Recovery HD (disk0s3) <not mounted>: 650 MB
    USB Information:
      Apple Internal Memory Card Reader
      Apple Inc. iPhone
      Apple Inc. BRCM20702 Hub
      Apple Inc. Bluetooth USB Host Controller
      Apple Inc. Apple Internal Keyboard / Trackpad
    Thunderbolt Information:
      Apple Inc. thunderbolt_bus
    Gatekeeper:
      Anywhere
    Kernel Extensions:
      [not loaded] net.kromtech.kext.AVKauth (2.3.6 - SDK 10.8) Support
      [not loaded] net.kromtech.kext.Firewall (2.3.6 - SDK 10.8) Support
    Launch Daemons:
      [loaded] com.adobe.fpsaud.plist Support
      [loaded] com.adobe.SwitchBoard.plist Support
      [loaded] com.tunnelbear.mac.tbeard.plist Support
      [running] com.zeobit.MacKeeper.AntiVirus.plist Support
      [running] com.zeobit.MacKeeper.plugin.AntiTheft.daemon.plist Support
    Launch Agents:
      [not loaded] com.adobe.AAM.Updater-1.0.plist Support
      [running] com.kodak.BonjourAgent.plist Support
    User Launch Agents:
      [loaded] com.adobe.AAM.Updater-1.0.plist Support
      [loaded] com.adobe.ARM.[...].plist Support
      [loaded] com.google.keystone.agent.plist Support
      [loaded] com.kodak.KODAK AiO Annual Opt.plist Support
      [loaded] com.kodak.KODAK AiO Firmware Updater.plist Support
      [loaded] com.kodak.KODAK AiO Software Updater.plist Support
      [running] com.kodak.StatisticCollection.plist Support
      [running] com.spotify.webhelper.plist Support
      [running] com.zeobit.MacKeeper.Helper.plist Support
    User Login Items:
      iTunesHelper
      Music Manager
      Spotify
      Google Chrome
    Internet Plug-ins:
      FlashPlayer-10.6: Version: 13.0.0.214 - SDK 10.6 Support
      QuickTime Plugin: Version: 7.7.3
      AdobePDFViewerNPAPI: Version: 10.1.10 Support
      AdobePDFViewer: Version: 10.1.10 Support
      Flash Player: Version: 13.0.0.214 - SDK 10.6 Outdated! Update
      Default Browser: Version: 537 - SDK 10.9
      Silverlight: Version: 5.1.20913.0 - SDK 10.6 Support
      JavaAppletPlugin: Version: 14.9.0 - SDK 10.7 Check version
    Safari Extensions:
      Searchme: Version: 1.3
      Amazon Shopping Assistant: Version: 1.1
      Slick Savings: Version: 2.0
      Ebay Shopping Assistant: Version: 1.1
    Audio Plug-ins:
      BluetoothAudioPlugIn: Version: 1.0 - SDK 10.9
      AirPlay: Version: 2.0 - SDK 10.9
      AppleAVBAudio: Version: 203.2 - SDK 10.9
      iSightAudio: Version: 7.7.3 - SDK 10.9
    iTunes Plug-ins:
      Quartz Composer Visualizer: Version: 1.4 - SDK 10.9
    User Internet Plug-ins:
      npsf_uni: Version: sf 3.3.2.1 Support
    3rd Party Preference Panes:
      Flash Player  Support
    Time Machine:
      Skip System Files: NO
      Auto backup: YES
      Volumes being backed up:
      Macintosh HD: Disk size: 465.12 GB Disk used: 216.84 GB
      Destinations:
      ZU UK 2013-14 [Local] (Last used)
      Total size: 931.51 GB
      Total number of backups: 8
      Oldest backup: 2014-03-16 03:19:04 +0000
      Last backup: 2014-06-07 16:39:22 +0000
      Size of backup disk: Adequate
      Backup size 931.51 GB > (Disk used 216.84 GB X 3)
      Time Machine details may not be accurate.
      All volumes being backed up may not be listed.
    Top Processes by CPU:
          2% WindowServer
          2% fontd
          1% Google Chrome
          0% mds_stores
          0% com.apple.WebKit.Networking
    Top Processes by Memory:
      262 MB WindowServer
      147 MB softwareupdated
      147 MB Google Chrome
      131 MB com.apple.MediaLibraryService
      131 MB iTunes
    Virtual Memory Information:
      9.41 GB Free RAM
      3.67 GB Active RAM
      447 MB Inactive RAM
      1.58 GB Wired RAM
      78.53 GB Page-ins
      0 B Page-outs

    Follow these instructions to uninstall MacKeeper. They have been tested with the most recent version of MacKeeper. Earlier versions than the one released in 2012 require more extensive work to uninstall all its components. Never install such junk on a Mac.
    If you actually used MacKeeper to alter your system, e.g. "remove excess binaries" or such, you will need to reinstall OS X as well as all your additional software. Uninstalling MacKeeper is insufficient to reverse the corruption it is capable of - once again, that is if you used it.
    If you merely installed MacKeeper but did not use it to perform any particular action, the following instructions will suffice.
    If you used MacKeeper to encrypt any files or folders, use MacKeeper to un-encrypt them first.
    Quit the MacKeeper app if it is running.
    Open your Applications folder: Using the Finder's Go menu, select Applications.
    Drag the MacKeeper icon from your Applications folder (not the Dock) to the Trash.
    You will be asked to authenticate (twice):
    You do not need to provide a reason for uninstalling it:
    Just click the Uninstall MacKeeper button. You will be asked to authenticate again.
    After it uninstalls you may empty the Trash and restart your Mac. All that will remain is an inert log file that does nothing but occupy space on your hard disk.
    May I suggest that you review the following setting in System Preferences?
    Although you may easily override that setting, it will serve to protect you from inadvertently installing garbage. The overwhelming majority of Macs I come across have the MacKeeper installer file already present in their Downloads folder, often multiple copies of it. The downloaded file itself can do nothing until it is opened and installed, and the above setting (known as Gatekeeper - not to be confused with MacKeeper) will prevent that from occurring.
    I wanted to know how to use my macbook retina to the best of its potential.
    Never install any product that claims to "speed up", "clean up", "optimize", or "accelerate" your Mac. Without exception, they will do the opposite.
    Never install pirated or "cracked" software, software obtained from dubious websites, or other questionable sources. Illegally obtained software is almost certain to contain malware.
    Don’t supply your password in response to a popup window requesting it, unless you know what it is and the reason your credentials are required.
    Don’t open email attachments from email addresses that you do not recognize, or click links contained in an email:
    Most of these are scams that direct you to fraudulent sites that attempt to convince you to disclose personal information.
    Such "phishing" attempts are the 21st century equivalent of a social exploit that has existed since the dawn of civilization. Don’t fall for it.
    Apple will never ask you to reveal personal information in an email. If you receive an unexpected email from Apple saying your account will be closed unless you take immediate action, just ignore it. If your iTunes or App Store account becomes disabled for valid reasons, you will know when you try to buy something or log in to this support site, and are unable to.
    Don’t install browser extensions unless you understand their purpose. Go to the Safari menu > Preferences > Extensions. If you see any extensions that you do not recognize or understand, simply click the Uninstall button and they will be gone.
    Don’t install Java unless you are certain that you need it:
    Java, a non-Apple product, is a potential vector for malware. If you are required to use Java, be mindful of that possibility.
    Java can be disabled in System Preferences.
    Despite its name JavaScript is unrelated to Java. No malware can infect your Mac through JavaScript. It’s OK to leave it enabled.
    Block browser popups: Safari menu > Preferences > Security > and check "Block popup windows":
    Popup windows are useful and required for some websites, but popups have devolved to become a common means to deliver targeted advertising that you probably do not want.
    Popups themselves cannot infect your Mac, but many contain resource-hungry code that will slow down Internet browsing.
    If you ever see a popup indicating it detected registry errors, that your Mac is infected with some ick, or that you won some prize, it is 100% fraudulent. Ignore it.
    Ignore hyperventilating popular media outlets that thrive by promoting fear and discord with entertainment products arrogantly presented as "news". Learn what real threats actually exist and how to arm yourself against them:
    The most serious threat to your data security is phishing. To date, most of these attempts have been pathetic and are easily recognized, but that is likely to change in the future as criminals become more clever.
    OS X viruses do not exist, but intentionally malicious or poorly written code, created by either nefarious or inept individuals, is nothing new.
    Never install something without first knowing what it is, what it does, how it works, and how to get rid of it when you don’t want it any more.
    If you elect to use "anti-virus" software, familiarize yourself with its limitations and potential to cause adverse effects, and apply the principle immediately preceding this one.
    Most such utilities will only slow down and destabilize your Mac while they look for viruses that do not exist, conveying no benefit whatsoever - other than to make you "feel good" about security, when you should actually be exercising sound judgment, derived from accurate knowledge, based on verifiable facts.
    Do install updates from Apple as they become available. No one knows more about Macs and how to protect them than the company that builds them.
    Summary: Use common sense and caution when you use your Mac, just like you would in any social context. There is no product, utility, or magic talisman that can protect you from all the evils of mankind.

  • I am a teacher of mathematics and i have a windows pc, but i want to do the next step. I want to buy an iMac. I want to learn how to write mathematical equations and how to do geometrical schema in my documents with iMac. Help me please!!! Thank you very

    I am a teacher of mathematics and i have a windows pc, but i want to do the next step. I want to buy an iMac. I want to learn how to write mathematical equations and how to do geometrical schema in my documents with iMac. Help me please!!! Thank you very much!!!

    Bonjour VAGRAI
    1) To write math expressions in a text :
         — Microsoft Office 2011 etc. for Mac use its included Equation Editor.
         — OpenOffice.org (OOo) and NeoOffice : download free Dmath 3.3.
         — iWork (Pages, Numbers, Keynote), download free MathType 6.7, fully functional for 30 days, then becomes « Lite » for life as good as the Microsoft equation editor ; it’s better than using Grapher’s equation editor (Applications > Utilities) because MathType can be called from Pages and allows editing equations by clicking the math expressions your text (details on MathType website) .
         — Graph.app 2.3 in Mountain Lion is built to draw curves and surfaces from equations, so it uses an equation editor less powerful than mathType, but it’s easier typing expressions. You may get 2D 3D geometrical drawings from clever equations. Suggest a glance at   http://y.barois.free.fr/grapher/  to know all about Grapher (83 pages Instructions for Use - Grapher) and some examples
      2) Geometrical schema :
         — GeoGebra is very popular and used by math teachers.
         — Google SketchUp 8 was not built for mathematics but for architecture, but it’s very easy using it to draw 2D 3D surfaces and solid figures.
         — ShapeOnYou.app allows simples geometrical figures  http://pierre.chachatelier.fr/programmation/shapeonyou_en.php
    3) Some useful websites for screen shots of geometrical schema :
         http://www.mathcurve.com/
         http://perso.orange.fr/roger.assouly/
    Drawings files PDF, TIFF, JPG … can be inserted in an iWork window (Pages).
    I hate LaTex : not necessary to write math books !  
    Au revoir VAGRAI,
    YB24
    Attachment : lines and curves were made with Google SketchUp 8, screen copied (Command-Shift-4), inserted on a Pages sheet to add letters figures rectangles title.
    SketchUp allows drawing precisely an arc of circle 325 mm radius 22,5° angle for instance. 

  • Screens, like them? hate them? also, how to use actionscript with them.

    So I haven't used a flash version since Flash 8. I've now been given CS4 and inheritid a flash document that uses screens. After 2 weeks of figuring out how the presentation is made to 'go' from slide to slide on keydown, I finally discovered today that it is the default behaviour.
    Ok, so this leads me to my next question. How do people here feel about screens? Like them? Hate them? I feel like I could do half of this stuff easier with actionscript. I feel constrained by this. Not to mention I put some animation into a movie clip and it seems like it's not playing, like it's just poping right to the stop action at the end of that clip.
    Can anyone tell me how to use actionscript with screens? I looked at help, but of course, the help file doesn't give me what I really need to know. I'd like to put my actions on frame one of the root and let that control everything else. But what is the syntax like? The help file recommends external scripts, but that is not an option as the CEO takes this presentation with him and I can't risk having him lose the code.
    Please give me any advice you may have. Thank you!
    Stan

    Not that I'm any kind of expert on this matter, but I've never heard of screens, at least not by that name, and I have been fiddling with Flash for about 9 years now (like this case, I still learn new things all the time... though I'm still clueless as to what they are... chances are I won't miss 'em).
    When you mentioned scenes though, my personal recommendation is along the party lines of avoid them like the plague... use one timeline and/or movieclips for everything.  I have never used them in my own work, and my bias is partly due to having inherited them in other people's work... they make it hard to find things, especially when you have to first discover they're being used to begin with.  From a technical stance, I have found them to be problematic to manage as far as navigation goes.

  • Learning how to use Layout Managers

    The code that is included in this post is public code from the SUN tutorials. I am trying to learn how to use the layouts and add individual programs that were created to each component in the layouts.
    This is what I am exploring:
    I want to have a tabbed layout like the example TabbedPaneDemo located at http://java.sun.com/docs/books/tutorial/uiswing/examples/components/index.html#TabbedPaneDemo. Below is the code.
    In one of the tabs, I want to place a button and report in it. When the button is clicked, I want the report refreshed. Eventually I will be populating an array with data. The report I want to use the example SimpleTableDemo located at http://java.sun.com/docs/books/tutorial/uiswing/examples/components/SimpleTableDemoProject/src/components/SimpleTableDemo.java. Below is the code.
    From what I have learned, you can place a container inside a container. So I should be able to place the SimpleTableDemo inside the tab 4 of the TabbedPaneDemo.
    If this is indeed correct, then how do I put these two things together? I am getting a little lost in all the code.
    Any assistance in helping me learn how to create and use layout managers would be appreciated.
    package components;
    * TabbedPaneDemo.java requires one additional file:
    *   images/middle.gif.
    import javax.swing.JTabbedPane;
    import javax.swing.ImageIcon;
    import javax.swing.JLabel;
    import javax.swing.JPanel;
    import javax.swing.JFrame;
    import javax.swing.JComponent;
    import javax.swing.SwingUtilities;
    import javax.swing.UIManager;
    import java.awt.BorderLayout;
    import java.awt.Dimension;
    import java.awt.GridLayout;
    import java.awt.event.KeyEvent;
    public class TabbedPaneDemo extends JPanel {
        public TabbedPaneDemo() {
            super(new GridLayout(1, 1));
            JTabbedPane tabbedPane = new JTabbedPane();
            ImageIcon icon = createImageIcon("images/middle.gif");
            JComponent panel1 = makeTextPanel("Panel #1");
            tabbedPane.addTab("Tab 1", icon, panel1,
                    "Does nothing");
            tabbedPane.setMnemonicAt(0, KeyEvent.VK_1);
            JComponent panel2 = makeTextPanel("Panel #2");
            tabbedPane.addTab("Tab 2", icon, panel2,
                    "Does twice as much nothing");
            tabbedPane.setMnemonicAt(1, KeyEvent.VK_2);
            JComponent panel3 = makeTextPanel("Panel #3");
            tabbedPane.addTab("Tab 3", icon, panel3,
                    "Still does nothing");
            tabbedPane.setMnemonicAt(2, KeyEvent.VK_3);
            JComponent panel4 = makeTextPanel(
                    "Panel #4 (has a preferred size of 410 x 50).");
            panel4.setPreferredSize(new Dimension(410, 50));
            tabbedPane.addTab("Tab 4", icon, panel4,
                    "Does nothing at all");
            tabbedPane.setMnemonicAt(3, KeyEvent.VK_4);
            //Add the tabbed pane to this panel.
            add(tabbedPane);
            //The following line enables to use scrolling tabs.
            tabbedPane.setTabLayoutPolicy(JTabbedPane.SCROLL_TAB_LAYOUT);
        protected JComponent makeTextPanel(String text) {
            JPanel panel = new JPanel(false);
            JLabel filler = new JLabel(text);
            filler.setHorizontalAlignment(JLabel.CENTER);
            panel.setLayout(new GridLayout(1, 1));
            panel.add(filler);
            return panel;
        /** Returns an ImageIcon, or null if the path was invalid. */
        protected static ImageIcon createImageIcon(String path) {
            java.net.URL imgURL = TabbedPaneDemo.class.getResource(path);
            if (imgURL != null) {
                return new ImageIcon(imgURL);
            } else {
                System.err.println("Couldn't find file: " + path);
                return null;
         * Create the GUI and show it.  For thread safety,
         * this method should be invoked from
         * the event dispatch thread.
        private static void createAndShowGUI() {
            //Create and set up the window.
            JFrame frame = new JFrame("TabbedPaneDemo");
            frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            //Add content to the window.
            frame.add(new TabbedPaneDemo(), BorderLayout.CENTER);
            //Display the window.
            frame.pack();
            frame.setVisible(true);
        public static void main(String[] args) {
            //Schedule a job for the event dispatch thread:
            //creating and showing this application's GUI.
            SwingUtilities.invokeLater(new Runnable() {
                public void run() {
                    //Turn off metal's use of bold fonts
              UIManager.put("swing.boldMetal", Boolean.FALSE);
              createAndShowGUI();
    package components;
    * SimpleTableDemo.java requires no other files.
    import javax.swing.JFrame;
    import javax.swing.JPanel;
    import javax.swing.JScrollPane;
    import javax.swing.JTable;
    import java.awt.Dimension;
    import java.awt.GridLayout;
    import java.awt.event.MouseAdapter;
    import java.awt.event.MouseEvent;
    public class SimpleTableDemo extends JPanel {
        private boolean DEBUG = false;
        public SimpleTableDemo() {
            super(new GridLayout(1,0));
            String[] columnNames = {"First Name",
                                    "Last Name",
                                    "Sport",
                                    "# of Years",
                                    "Vegetarian"};
            Object[][] data = {
                {"Mary", "Campione",
                 "Snowboarding", new Integer(5), new Boolean(false)},
                {"Alison", "Huml",
                 "Rowing", new Integer(3), new Boolean(true)},
                {"Kathy", "Walrath",
                 "Knitting", new Integer(2), new Boolean(false)},
                {"Sharon", "Zakhour",
                 "Speed reading", new Integer(20), new Boolean(true)},
                {"Philip", "Milne",
                 "Pool", new Integer(10), new Boolean(false)}
            final JTable table = new JTable(data, columnNames);
            table.setPreferredScrollableViewportSize(new Dimension(500, 70));
            table.setFillsViewportHeight(true);
            if (DEBUG) {
                table.addMouseListener(new MouseAdapter() {
                    public void mouseClicked(MouseEvent e) {
                        printDebugData(table);
            //Create the scroll pane and add the table to it.
            JScrollPane scrollPane = new JScrollPane(table);
            //Add the scroll pane to this panel.
            add(scrollPane);
        private void printDebugData(JTable table) {
            int numRows = table.getRowCount();
            int numCols = table.getColumnCount();
            javax.swing.table.TableModel model = table.getModel();
            System.out.println("Value of data: ");
            for (int i=0; i < numRows; i++) {
                System.out.print("    row " + i + ":");
                for (int j=0; j < numCols; j++) {
                    System.out.print("  " + model.getValueAt(i, j));
                System.out.println();
            System.out.println("--------------------------");
         * Create the GUI and show it.  For thread safety,
         * this method should be invoked from the
         * event-dispatching thread.
        private static void createAndShowGUI() {
            //Create and set up the window.
            JFrame frame = new JFrame("SimpleTableDemo");
            frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            //Create and set up the content pane.
            SimpleTableDemo newContentPane = new SimpleTableDemo();
            newContentPane.setOpaque(true); //content panes must be opaque
            frame.setContentPane(newContentPane);
            //Display the window.
            frame.pack();
            frame.setVisible(true);
        public static void main(String[] args) {
            //Schedule a job for the event-dispatching thread:
            //creating and showing this application's GUI.
            javax.swing.SwingUtilities.invokeLater(new Runnable() {
                public void run() {
                    createAndShowGUI();
    }

    Before I did what you suggested, which I appreciate your input, I wanted to run the code first.
    I tried to run the SimpleTableDemo and received the following error:
    Exception in thread "main" java.lang.NoClassDefFoundError: SimpleTableDemo (wrong name: componets/SimpleTableDemo)
    at java.lang.ClassLoader.defineClass1(Native Method)
    at java.security.SecureClassLoader.defineClass(Unknown Source)
    at java.net.URLClassLoader...
    there are several more lines but as I was typing them out I thought that maybe the code is not written to run it in the command window. The errors seem to be around the ClassLoader. Is that correct? On the SUN example page when you launch the program a Java Web Start runs. So does this mean that the code is designed to only run in WebStart?

  • I am a high school teacher.  My district purchased the entire CC Suite.  Where can I find a tutorial in book form to learn how to use your products?  Do you all provide free book samples to teachers?

    I am a high school teacher.  My district purchased the entire CC Suite.  Where can I find a tutorial in book form to learn how to use your products?  Do you all provide free book samples to teachers?

    Good day!
    This is a user to user Forum, so you are not really addressing Adobe here, even though some Adobe employees thankfully have been dropping by. (edit: Actually they are more likely to frequent the regular Photoshop Forum.)
    Regards,
    Pfaffenbichler

  • I want to know how to use my domain name in business catalyst

    please I want to know how to use my domain name in business catalyst

    Hello marionussen,
    This issue of your's is specific to Buisness Catalyst and me have a forum for Buisness Catalyst. I would suggest you to post your query to forum: http://forums.adobe.com/community/business_catalyst for help.
    Let me know for any further query.
    Regards,
    Ratandeep Arora

Maybe you are looking for

  • Had to put new hard drive on computer now i can't find my music

    my husband had to get new hard ware for computer now my music has been lost i reseted it and now i lost all of my music basiclly my computer is now new so all of my music is gone

  • License Not Valid

    I installed Business Objects Enterprise 3.1XI in my pc.I created some reports using web intelligence.After one week when i tried to access Web intelligence,it is showing the error "license not valid".All other components in BO are working properly Ex

  • Downloading timeout when installing flash player 11.5.502.149 on mac osx ?

    Downloading timeout when installing flash player 11? I have a new MacBook Pro. I have OS 10.8.2. I cannot get FlashPlayer to download. I have tried uninstalling and reinstalling Adobe Flash Player 11 from the Adobe website. Doesn't work. Every time I

  • AddAdoCommand problems from visual objects

    Post Author: powerneet CA Forum: Other I'm trying to use the AddAdoCommand from Visual Objects. The code is simple: cConnectString:=IVarGet(oTableLink,#connectbufferstring) // resolves in : Provider=SQLOLEDB;;Data Source=(local);;Initial Catalog=200;

  • Adding an OVM server back into OVM Manager after a reload

    We have created a sandbox environment to test Oracle virtualization and had 2 physical servers setup. One running Oracle OVM and the other Oracle Linux. The Oracle Linux box had OVM Manager installed and was using local storage for the repository. Af