Newbie needs java help

Hi,
I have used Captivate for a while, but have no idea where to
begin to insert JavaScript into Captivate. Everyone talks about it,
but I can't find a very basic beginner explanation for this. I
don't even know WHERE to put the JavaScript.

Dear Altruistic
Thanks for the link to the Netbeans quickstart webpage sadly it does not contain any visual cues as to what proceedures are neccessary to implement the instructions.
For someone like me ( learning disability) this can cause difficulties I learn in a slightly different way to those who are able to assimilate written instructions.
The text might as well have been ancient Greek ...
I really need a discriptive walk through lets give an exampleso you will understand my needs ... say I wanted to open a Microsoft word document on the desktop of a windows PC (ok not a good choice but there you are ) here is how I would begin to write the proceedure
1. look at the bottom left hand side of your screen
can you see a windows symbol with start displayed ?
yes ..
Hold your mouse over the start icon and left click .. then use the cascading menu feature to select office 2003 ...
Do you get the general idea about what I need here ....?
So have a look at the link on my original post that points to David Eck's website where he lists some Java source code and if possible give me the proceedure of how to run this from within the Netbeans environment.
Once I can do this I will be able to teach myself ....
I guess in a nutshell what I am saying is why on earth is their not just a simple feature on the GUI that allows you to import some code and for Netbeans to run in Demo mode ! I know their is sample projects included within the application but here again this does not solve my problem of notbeing able to find a way to run source code from the application.
I hope this makes sense !

Similar Messages

  • Newbie needs general help w/Java Updating

    Hi,
    I don't use Java (as far as I know) too often, but right now I've got Java 5_6 update on my computer. I've been told that's unstable and I should update to Java 6. I was also told I should remove 5_6 Update with add/remove programs before doing so. I was also told I should remove the three Java "objects" in the Downloaded Program Files Folder before doing so (which is an IE thing, right?). But I was also told to go and download Java 6 directly from the Sun site and install, but I'm not sure if that's necessary or the way I want to do it, because I have the option to check for updates in the Java Control Panel that comes up when I double click the Java icon in my Control Panel folder.
    Questions:
    1. The three java objects in the downloaded objects folder are in a folder that's part of IE, is that right? I don't use IE (except for Windows Updates), I use Firefox. So where are the objects kept for Firefox?
    2. Do I really need to also remove these objects in addition to add/removing 5_6 Update? If so, for both IE and Firefox?
    3. When I go to my Control Panel, there is an icon for JAVA. When I double-click this icon, a JAVA CONTROL PANEL opens up. If I remove 5_6 Update and those objects, will that also remove this control panel? The control panel was part of my system when I got my laptop.
    4. If the Java Control Panel is retained, then why can't I just go to the second tab which is for Updates, choose "Update Now" and get the Java 6 update that way? (And this would be AFTER I remove 5_6 -- and any objects, IF that's necessary.)
    It's my hope that I can just update to Java 6 (after removing the 5_6 update and objects, if necessary) by using the update feature in the Java Control Panel instead of downloading Java 6 from the Sun site. If this is not a good idea, I would like to understand why.
    Any help is appreciated -- thanks!

    Thanks for the post. So J2SE Runtime Environment 5.0
    Update 6 (which is apparently what I have now) is
    stable
    It's reasonably stable. There are bugs in it, of course. There are always bugs in software. Unless you're having problems with them, however, you don't automatically need to update.
    The list of changes between that release of Java 5 and the latest (1.5.11 at the time of writing) is given here:
    http://java.sun.com/j2se/1.5.0/ReleaseNotes.html
    , and it's false that it has security
    holes that can be exploitedThat's a completely different question. I can't promise you that there are no security flaws that have been fixed since that particular update. However, unless you're running a server or downloading applets or otherwise running in a security constrained environment there's not much point in worrying about it. Again, if there is a specific reason for you to worry check the bugs and enhancement lists here to see if your concerns are addressed:
    http://java.sun.com/javase/6/webnotes/index.html
    Either way you don't update just because someone says you should unless you have reason to believe they know what they're talking about. I suggest you ask your original source to explain why they think you should upgrade and to provide you with the evidence to back up their assertions.

  • Newbie needs JNI help

    the JNI tutorial speaks about creating a "shared directory" where a "dll" file is created and stored.
    How do i create this ".dll" file and store it into the shared directory ? ...

    Hi,
    Creating dll is outside the realm of Java programming. You need to use some language like C/C++/VB etc. Any good C/C++ IDE has wizards to help you create a dll. Use them. There is a free one at www.bloodshed.org called Dev-C++.
    cheers
    Projyal

  • Newbie needs urgent help

    Hi guys,
    I need to create a function that returns as string, the path or location of the file it is in.
    for example:
    this function will be in a file called A.java
    A.java has the path C/MyDocuments/Jenna/java/A.java
    so when I run this function, it returns a string "C/MyDocuments/Jenna/java"
    I would really appreciate if someone could write code to help me understand how i can do this
    thanks
    curious girl
    xxx

    You want the location of the source file (the .java file) from which the current class was compiled? You can't do that. (Unless you explicitly code it as a member variable of that class, which would be silly).
    Or do you want the location of the .class file? That can't be done completely cleanly or reliably, but you can sort of get it by searching all the elements of that class' ClassLoader's classpath, which you can't necessarily get for all classloaders.
    Whichever one it is, why do you think you need this?

  • FLASH NEWBIE NEEDS YOUR HELP

    I have 4800 jpg files in my librarie, and i want to put each
    in a keyframe on scene; the idea is to make a simple movie.
    Importing a .mov movie, the quality decrease, and i just notice,
    with the jpg file the swf movie has a better quality.
    There´s some code to to this fast and easy?
    Please help me.
    sayeg5. ( very newbie flash user). By the way, i´m using
    flash cs3. Trying to learn.

    Quote from: barkingdogg on 10-February-07, 05:57:05
    sorry if i had to ask again. but when you mean during install does that mean during installation of windows?
    thank you very much for your quick response. 
    yes, in a begging of XP installation press "F6".
    hit "F6" here few times.
    then at next screen put diskette which contain RAID drivers into floppy and load them with pressing "S" key.
    load 1st one, and config. them hit "S" key again and load second one as well. you need to load it both:

  • VB Programmer needs java help

    I am a VB programmer and have started to learn Java a little bit. I need this program to be written anytime by Monday, but it must be written in java because they plan to use it on multiple platforms. Our java programmer quit and I don't know enough to write it in java. The program is to figure payroll. The user will input their name and remove the check in the hourly check box if they are salaried. If the employee is hourly, then any hours worked over 40 are time and a half. If they are salaried, they must choose what company level they are. I have included the three salary levels below. The program then needs to print to the screen in the bottom text box their yearly salary computed for a 40 hour work week. Can anyone help me and write the program? Whoever will do this for me, I will award 34 duke dollars. That is all I have.
    Thank you so much for your help,
    Kori
    Name:
    Text box here for name
    (check box) Hourly
    Hours:
    Text box here for hours
    (option button) Level 1
    (option button) Level 2
    (option button) Level 3
    (option button) Level A
    (option button) Level B
    Total Pay:
    Number Processed:
    (command button) (command button)
    Calculate Pay__________Clear
    (text box)
    shows "payoll report"
    Level 1 = 6.25f
    Level 2 = 8.15f
    Level 3 = 10.85f
    Level A = 27000f
    Level B = 42000f
    Max hours is 80.0f

    I am a VB programmer and have started to learn Java a
    little bit. I need this program to be written anytime
    by Monday, but it must be written in java because they
    plan to use it on multiple platforms.Do this this little toy program in VB so you have a working solution on one platform by Monday. Show it to your boss and say you did a rapid prototype first for people to evaluate. Then take your time and convert it to Java.
    /Ulrika the pragmatical.

  • Oracle developer needs Java help

    I develop applications in Oracle 8i on NT4. As part of a trigger, I need to perform an update to an extremely large table which takes many minutes. Because it's tied to a web page, I can't wait for the update to complete. Oracle natively doesn't support system calls -- I use the Shell() command in VB -- but Oracle DOES support Java stored procedures. I'm hoping that a Java stored procedure will be able to spawn/execute a new process/program specified by a command line instruction (ie: "C:\SQLPLUS.EXE SCOTT/TIGER @update.sql") and return immediately - without waiting for the process to complete. There doesn't need to be any handle for or call back from the process - just fire and forget. Can anyone provide me some direction, or better some existing Java code that does this? THANKS!

    Hi "todmcg",
    I'm not sure that I have understood your question correctly, but here goes anyway...
    Yes you can create a java stored procedure and have a trigger execute that procedure. In order to execute system commands in java, you usually use the "exec()" method of class "java.lang.Runtime". It is also easy to spawn new threads using java. So yes, you can have your java stored procedure execute a system command in a background thread.
    In my opinion, the Oracle documentation explains very well how to create a java stored procedure. The documentation is available from:
    http://tahiti.oracle.com
    Also, examples of how to call system commands from java stored procedures are available at this Web site:
    http://asktom.oracle.com
    You may also find relevant information at:
    http://metalink.oracle.com
    and
    http://technet.oracle.com
    Of-course, you can also use JDBC from your java stored procedure to execute your "update.sql" script -- without the need to execute a system command.
    Basic code skeleton:
    [NOTE: Untested and may contain syntax errors.]
    public class SystemCommand implements Runnable {
      private static String cmd;
      public void run() {
        Runtime runtime = Runtime.getRuntime();
        runtime.exec(cmd);
      public static void execCommand(String cmd) {
        this.cmd = cmd;
        new Thread(new SystemCommand()).start();
    }Hope this helps you.
    Good Luck,
    Avi.

  • Spry Newbie needs some help

    It is the little things in life I was always told and all I
    am trying to do is to pretty much duplicate the form validation
    demo. However I am not even sure where to begin. I have created
    many forms and have had them submit and returned in an emial
    successfully but I am not quite sure how the Spry widgets work or
    how to apply them to an existing form or even a new one for that
    matter.
    Does the page have to be dynamic in order to use the Spry
    validation widget? Hopefully iy can be used on a static page. Are
    there any tutorials out there for creating a form in DW CS3 using
    the Spry validation widget?
    Thanks,
    Houston

    Hi,
    First of all, the Spry widgets works on static pages, so you
    don't necessary need to have a dynamic page.
    It is not to hard to make the demo from site, and I'll
    explain you the basic steps you should do to have these widgets
    working on your page. The css part, you can customize as you wish,
    the demo from site is just a customization.
    As I saw, you use Dreamweaver for creating this demo, so I'll
    give you the explanations for how to do it on DW.
    In a html page, add a form. Inside form add: a Spry Textfiled
    validation input (from the Spry tag), a Spry Select input and a
    Spry Textarea input.
    If you go in design view and select an widget, a blue border
    will appear and on the Property Inspector will appear all the
    properties you need to customize.
    To see exactly what does every property, please check the
    Dreamweaver help.
    This is the start to create you own form containing Spry
    widgets.
    Hope this help,
    Diana

  • Another Newbie Needs Your Help!

    I'm going to try to make this quick, but there is an
    important backstory to my problem.
    I grew up living in Fullerton, California, until about 10
    months ago. I still call Fullerton my home and take pride in it.
    About 4 years ago, I started playing guitar; about 2 years
    ago, I started lusting over a Fender Stratocaster. Fender Musical
    Instruments was started by Leo Fender, a radio repairman who
    created the first mass-produced electric guitar in his workshop in
    Fullerton (coincidentally I went to the same high school he did as
    well).
    Health problems made him sell Fender to CBS; when he got
    better, he got with some friends and started the Music Man company.
    A falling-out with said friends resulted in him dissolving ties
    with the company. But then he got together with his long-time
    friend and descendent of the founders of his hometown, George
    Fullerton, and started G&L (George & Leo) Guitars. G&L
    still builds guitars in Fender's own factory, the original factory
    of Fender guitars, in Fullerton, even though Leo passed away in
    1991.
    A couple months ago I heard about G&L and, looking at the
    website, I realized that these were the exact guitars I'd been
    looking for--sooo much more than a normal Fender guitar (CBS has
    since taken Fender in different directions than Leo would have,
    even moving production to Corona, California) and still made in my
    hometown. The website, unfortunately, lacked pictures of the exact
    color and model of guitar I wanted, a similar problem I experienced
    on Fender's website. Having built upon my 12 years of experience
    and know-how with photoshop, I had taken a high-resolution photo of
    a Fender Stratocaster and had made custom shapes out of every piece
    of the guitar so that I could customize and colorize the thing to
    my heart's desire. But the shapes changed to G&L shapes once I
    heard of G&L.
    Well, after a little tinkering, I had my dream guitar, and
    posted pictures in the forum of G&L. Two days later the CEO of
    G&L contacted me with the offer of swapping a guitar for some
    webwork. I'm ecstatic! A $2000 guitar just for something I do as a
    hobby? Plus *******' resume material...
    Anyway, the Photoshop work is easy; but I don't want static
    pictures of my artwork on any website. Optimally, I wanted to
    figure out how to build a guitar customizer using Flash, and Mr.
    CEO is more than happy to follow my train of thought. Problem is,
    I've taken one college-level beginning Flash class but still feel I
    know nothing aside from being able to animate something, which I do
    using a USB pen-and-tablet to make mini-cartoons.
    So I've been google-searching macromedia flash tutorials
    looking for someone that can help me build a customizer.
    I know of a couple examples:
    DUBMODDER: VW Customizer
    MINIUSA: Build your own MINI Cooper
    Now I'm not afraid to work hard, and I have a great sense of
    an artistic, streamlined, and web-friendly style, as I've done web
    work with photoshop before. I also catch on with any computer
    program very quick; I took an 8-week college class in 3DS Max and
    completed it with the highest grade in the class and left my
    instructor with no doubt that I was one of the very few who didn't
    need to take the course over to pick up anything better.
    These are the two examples I have on Photobucket of my
    guitars; they're the same model, the only difference is body and
    headstock color. These are the two options I'm considering, though
    of late I've leaned towards the green:
    Translucent
    greenburst with matching headstock
    Translucent
    orange with black headstock
    Every individual component of the guitars is its own custom
    shape; so styling and coloring is a breeze, plus getting them up on
    the screen individually is a breeze as well. I just need to know
    how to get it so that through a series of menu bars, radio buttons,
    and checkboxes, I can include all the options available to someone
    who would be purchasing a guitar and have a realtime, interactive
    picture of the guitar displayed either below or to the right of the
    options bar.
    Oh, and another note: each of my pictures above is scaled to
    25% original size but uncompressed. Being vector graphics, everyone
    here knows how high they can be scaled without loss of detail.
    Thanks in advance, and if I get significant help, mention
    will not be forgotten to this forum and the significant
    helpers.

    Welcome,
    but if you want help, you really must avoid the thesis-style
    posts - not too many here have time to
    read a life biography as interesting as it may be - and after
    reading most of it I am still not sure
    what your question is - there's nothing specific in your post
    other than what brought you to this
    point in your career/hobby.
    I would suggest keeping your question very direct and to the
    point and in as few words as possible -
    many of us have clients and deadlines and not a lot of time
    to devote to answering questions. Take
    this as constructive critism only please - i read your post
    and still don't know what answer(s) you
    are looking for.
    (also helps to provide a descriptive subject sso when we scan
    the posts we can see the topic
    involved and know ahead of time if we can answer them -
    subjects that are general and vague like
    "Nebie needs help" tend to get skipped over by the majority).
    hope this helps.
    -c
    --> **Adobe Certified Expert**
    --> www.mudbubble.com
    --> www.keyframer.com
    DNC2112 wrote:
    > I'm going to try to make this quick, but there is an
    important backstory to my
    > problem.
    > I grew up living in Fullerton, California, until about
    10 months ago. I still
    > call Fullerton my home and take pride in it.
    > About 4 years ago, I started playing guitar; about 2
    years ago, I started
    > lusting over a Fender Stratocaster. Fender Musical
    Instruments was started by
    > Leo Fender, a radio repairman who created the first
    mass-produced electric
    > guitar in his workshop in Fullerton (coincidentally I
    went to the same high
    > school he did as well).
    > Health problems made him sell Fender to CBS; when he got
    better, he got with
    > some friends and started the Music Man company. A
    falling-out with said
    > friends resulted in him dissolving ties with the
    company. But then he got
    > together with his long-time friend and descendent of the
    founders of his
    > hometown, George Fullerton, and started G&L (George
    & Leo) Guitars. G&L still
    > builds guitars in Fender's own factory, the original
    factory of Fender guitars,
    > in Fullerton, even though Leo passed away in 1991.
    > A couple months ago I heard about G&L and, looking
    at the website, I realized
    > that these were the exact guitars I'd been looking
    for--sooo much more than a
    > normal Fender guitar (CBS has since taken Fender in
    different directions than
    > Leo would have, even moving production to Corona,
    California) and still made in
    > my hometown. The website, unfortunately, lacked pictures
    of the exact color
    > and model of guitar I wanted, a similar problem I
    experienced on Fender's
    > website. Having built upon my 12 years of experience and
    know-how with
    > photoshop, I had taken a high-resolution photo of a
    Fender Stratocaster and had
    > made custom shapes out of every piece of the guitar so
    that I could customize
    > and colorize the thing to my heart's desire. But the
    shapes changed to G&L
    > shapes once I heard of G&L.
    > Well, after a little tinkering, I had my dream guitar,
    and posted pictures in
    > the forum of G&L. Two days later the CEO of G&L
    contacted me with the offer of
    > swapping a guitar for some webwork. I'm ecstatic! A
    $2000 guitar just for
    > something I do as a hobby? Plus *******' resume
    material...
    > Anyway, the Photoshop work is easy; but I don't want
    static pictures of my
    > artwork on any website. Optimally, I wanted to figure
    out how to build a
    > guitar customizer using Flash, and Mr. CEO is more than
    happy to follow my
    > train of thought. Problem is, I've taken one
    college-level beginning Flash
    > class but still feel I know nothing aside from being
    able to animate something,
    > which I do using a USB pen-and-tablet to make
    mini-cartoons.
    > So I've been google-searching macromedia flash tutorials
    looking for someone
    > that can help me build a customizer.
    > I know of a couple examples:
    >
    http://dubmodder.com
    >
    http://miniusa.com
    > Now I'm not afraid to work hard, and I have a great
    sense of an artistic,
    > streamlined, and web-friendly style, as I've done web
    work with photoshop
    > before. I also catch on with any computer program very
    quick; I took an 8-week
    > college class in 3DS Max and completed it with the
    highest grade in the class
    > and left my instructor with no doubt that I was one of
    the very few who didn't
    > need to take the course over to pick up anything better.
    > These are the two examples I have on Photobucket of my
    guitars; they're the
    > same model, the only difference is body and headstock
    color. These are the two
    > options I'm considering, though of late I've leaned
    towards the green:
    >
    http://i61.photobucket.com/albums/h41/dnc2112/InvaderPlusGreenburst.jpg
    >
    http://i61.photobucket.com/albums/h41/dnc2112/InvaderPlusOrange.jpg
    > Every individual component of the guitars is its own
    custom shape; so styling
    > and coloring is a breeze, plus getting them up on the
    screen individually is a
    > breeze as well. I just need to know how to get it so
    that through a series of
    > menu bars, radio buttons, and checkboxes, I can include
    all the options
    > available to someone who would be purchasing a guitar
    and have a realtime,
    > interactive picture of the guitar displayed either below
    or to the right of the
    > options bar.
    > Oh, and another note: each of my pictures above is
    scaled to 25% original size
    > but uncompressed. Being vector graphics, everyone here
    knows how high they can
    > be scaled without loss of detail.
    > Thanks in advance, and if I get significant help,
    mention will not be
    > forgotten to this forum and the significant helpers.
    >

  • Newbie Needs Array Help

    I have a txt file that contains the following:
    5:2
    1:2
    3:3
    4:3
    2:1
    5:3
    1:2
    2:3
    3:2
    2:1
    I need to make a few calculations to the data above. I cannot change the format of the file. I need the sum of each column and I need to compare the integers in each row. When I compare the two ints I just need a true or false depending on whether row1>row2.
    I think I can make these calculations by first splitting the data into two rows. I'm trying to read this data from a text file but when I get to the end of the file I get a NumberFormatException. I've looked over my code for hours but can't seem to find my mistake. This is a piece of my code, any advice?
    while((line = inScrn.readLine())!=null) {
    scores = line.split(":")
    for(int index=0; index < scores.length; index++) {
    int num = Integer.parseInt(scores[index]);} //This is where I get the error
    System.out.println(num); }
    I inserted the System.out.println just to see how much of the file my code reads. It reads all the data but errors at the end of the file. I tried adding empty spaces to the end of my file but that didnt make a difference.
    The exact error at the bottom of my compiler is:
    NumberFormatException:
    for input String: "" (in java.lang.NumberFormatException)

    I have a txt file that contains the following:
    5:2
    1:2
    3:3
    4:3
    2:1
    5:3
    1:2
    2:3
    3:2
    2:1
    I need to make a few calculations to the data above.
    I cannot change the format of the file. I need the
    sum of each column and I need to compare the integers
    in each row. When I compare the two ints I just need
    a true or false depending on whether row1>row2.
    I think I can make these calculations by first
    splitting the data into two rows. I'm trying to read
    this data from a text file but when I get to the end
    of the file I get a NumberFormatException. I've
    looked over my code for hours but can't seem to find
    my mistake. This is a piece of my code, any advice?
    while((line = inScrn.readLine())!=null) {
    scores = line.split(":")
    for(int index=0; index < scores.length; index++) {
    int num = Integer.parseInt(scores[index]);}
    ex]);} //This is where I get the error
    System.out.println(num); }
    I inserted the System.out.println just to see how
    much of the file my code reads. It reads all the data
    but errors at the end of the file. I tried adding
    empty spaces to the end of my file but that didnt
    make a difference.
    The exact error at the bottom of my compiler is:
    NumberFormatException:
    for input String: "" (in
    java.lang.NumberFormatException)Your Error indicates that java tried to convert "" to a Number
    which of course gives NumberFormatException
    So I'd guess from that, that your program reads in all the data and does what you require.
    But Then it reads in an empty line i.e. ""
    You'll want to handle this in some way like:
         if( ! line.length() == 0 ) //Don't try and Interpret a Blank Line at all
                 scores = line.split(".");
                 //.......... and etc
        }and also think about something like
          int num =0;
          try
                num = Integer.parseInt(scores[index]);
         catch( NumberFormatException e )
                System.out.println( "Could Not Parse: " + scores[index]  );
         }As for the procedure to do what you want, well, I'm sure you'll get that.
    Ah Yeh, much as it catches me too:-
    null and empty String "" are not the same......

  • Need java help urgent plzzz

    Ive never visited a Java forum other than this one and its been over 2 years now. Out of curiosity I just went to JavaRanch.
    Ive seen a lot of heated flaming from both sides (on these forums)
    but i figured id take a look today.
    The FIRST post i look at someone asks what the purpose of an
    interface is and one of the responses he gets is:
    "Please revise your display name to meet the JavaRanch Naming Policy. To maintain the friendly atmosphere here at the ranch, we like folks to use real (or at least real-looking) names, with a first and a last name.
    You can edit your display name here. Thank you for your prompt attention!"
    i wish i could go to 33 pt font: WTF IS THAT?
    WEIRD!
    Thats just way to creepy for me and im out... as if the brown and the
    meesen (brian regan joke) everywhere werent enough.
    Anyone know any other good ones?
    http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&f=33&t=019908

    JavaRanch scares me as well. Yea i think the ranch is making an army of cattle.
    Ill check out devshed.
    http://www.javaranch.com/name.jsp
    SO F*CKING SCARY:
    "I understand that in some cultures there is no such thing as "first name and last name" - there is just one name. If you are one of these people, I WOULD LIKE TO HUMBLY ASK YOU TO SACRIFICE A PIECE OF YOUR CULTURE to help me build this culture."
    apparently the cows love the policy though:
    http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&f=10&t=001017

  • Newbie needs ENV help

    Hi all,
    I recently inherited a flex project someone left for dead...
    I am having a little trouble finding some things referenced in
    http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/.
    When in Flex builder 3, I cannot seem to import any fl.* packages.
    How do I get to this package???
    Also, I do not see any support for nested Data Grids... I
    have a REAL need to be able to nest one grid within another. Is
    there any way I can do this in Flex? I found some stuff about the
    AdvancedDataGrid component, but, I don't know where to look for
    information on its capabilities.
    So, any help would be greatly appreciated. Thanks,
    Stan

    Hi Stan,
    Here's the link to the Flex 3 feature introductions on our
    Adobe Labs site about Advanced DataGrid:
    http://labs.adobe.com/wiki/index.php/Flex_3:Feature_Introductions#Advanced_DataGrid
    thanks,
    Sharon

  • [NEWBIE] Need some help...

    Hello everybody, maybe someone will find five minutes to help me...
    I've got this class that parses an XML file (here's the source):
    package bicocca.util;
    import java.io.FileReader;
    import org.xml.sax.XMLReader;
    import org.xml.sax.InputSource;
    import org.xml.sax.helpers.XMLReaderFactory;
    import org.xml.sax.helpers.DefaultHandler;
    import org.xml.sax.Attributes;
    public class Configurator extends DefaultHandler {
    public String dbAddress = new String();
    public String serverAddress = new String();
    public String appHome = new String();
    private boolean intoDB = false;
    private boolean intoServer = false;
    private boolean intoHome = false;
    private boolean intoIp = false;
    private boolean intoPath = false;
    public Configurator() {
         super();
    public void setUp() throws Exception {
         XMLReader xr = XMLReaderFactory.createXMLReader();
         Configurator handler = new Configurator();
         xr.setContentHandler(handler);
         xr.setErrorHandler(handler);
    FileReader r = new FileReader("c:\\tomcat4.0.\\webapps\\bicocca\\WEB-INF\\bicocca-conf.xml");
    xr.parse(new InputSource(r));
    public void startElement (String uri, String name, String qName, Attributes atts) {
         System.out.println("startElement(): " + name);
         if(name == "dbAddress"){
         intoDB = true;
         if(name == "serverAddress"){
         intoServer=true;
         if(name == "appHome"){
         intoHome=true;
         if(name == "ip"){
         intoIp=true;
         if(name == "path"){
         intoPath=true;
    public void endElement (String uri, String name, String qName) {
         System.out.println("endElement()" + name);
         if(name == "dbAddress"){
         intoDB = false;
         if(name == "serverAddress"){
         intoServer=false;
         if(name == "appHome"){
         intoHome=false;
         if(name == "ip"){
         intoIp=false;
         if(name == "path"){
         intoPath=false;
    public void characters (char ch[], int start, int length) {
    System.out.println("characters()");
    if ((intoDB) && (intoIp)){
    for (int i=start; i<start+length; i++){
    dbAddress += ch;
         System.out.print("DB: " + dbAddress + "\n");
    if ((intoServer)&&(intoIp)){
    for (int i=start; i<start+length; i++){
    serverAddress += ch[i];
         System.out.print("Server: " + serverAddress + "\n");
    if ((intoHome)&&(intoPath)){
    for (int i=start; i<start+length; i++){
    appHome += ch[i];
         System.out.print("Home: " + appHome + "\n");
    public String getDBAddress(){
    try {
    setUp();
    catch(Exception e){
         e.getMessage();
    System.out.print("===========> DB: " + dbAddress + "\n");
    return dbAddress;
    public String getServerAddress(){
    try {
    setUp();
    catch(Exception e){
         e.getMessage();
    return serverAddress;
    public String getAppHome(){
    try {
    setUp();
    catch(Exception e){
         e.getMessage();
    return appHome;
    As you see, there are three methods that should return one of this three Strings:
    public String dbAddress = new String();
    public String serverAddress = new String();
    public String appHome = new String();
    Instead, when I run the class (istanziated in a jsp), on the Tomcat console I obtain this result:
    startElement(): configuration
    characters()
    characters()
    startElement(): dbAddress
    characters()
    startElement(): ip
    characters()
    DB: 127.0.0.1
    endElement()ip
    characters()
    startElement(): port
    characters()
    endElement()port
    characters()
    endElement()dbAddress
    characters()
    characters()
    startElement(): serverAddress
    characters()
    startElement(): ip
    characters()
    Server: 127.0.0.1
    endElement()ip
    characters()
    startElement(): port
    characters()
    endElement()port
    characters()
    characters()
    endElement()serverAddress
    characters()
    characters()
    startElement(): appHome
    characters()
    startElement(): path
    characters()
    Home: c:\tomcat4.0.3\webapps\bicocca
    endElement()path
    characters()
    endElement()appHome
    characters()
    endElement()configuration
    ===========> DB:
    What I understood is that after parsing the XML file, the class clears all variables... What I'm doing wrong?
    N.B. Previewing this message I see that there's something wrong displayng the index of "ch" in the for cicles in the characters() method, I wrote them right, is just a display bug!

    first Dr. Clap is correct.
    What I understood is that after parsing the XML file
    the class clears all variables...not at all! you simply don't realize than we you do new Configurator() you instanciate a new class.
    the variables are set in this new class, not in the current one!!!
    hence, the address is there: handler.dbAddress !!!

  • Newbie Needs Template Help

    Ok I am a complete newbie to flash. I have read most of the guides provided and searched the forums but I honestly can't find an answer to my question.
    I have decided to use one of the templates provided with my flash pro cs5. It is the advanced album.
    My question:  how do I use it?  
    I know it gives me generalized instructions when it opens but for the life of me I cannot figure out where or how to put my photos in.
    I am using the template because when I try to make an album from scratch I also cant seem to get it to work right (the images just fly through on the preview)
    thanks in advance for the help!

    Hello wiccanluvr1988,
    To make photos show up in the 'Advanced Photo Template' you have to do the following steps...
    1.Store your project .fla file inside a folder.
    2.Put all your photos inside that folder that you want in the Photo Template.
    3.Now you have to go inside the actions frame of the template and change line 11 with this code below by adding your own photo directory.
    Line 11:
    var hardcodedXML:String="<photos><image title='Your Photo'>images/yourphoto.png</image><image title='Your Photo 2'>folder/yourphoto2.png</image></photos>";
    Simple Explained Form:
    var hardcodedXML:String="<photos><image title='Image title here...'>Put image directory here</image>
    /*Repeat this line of code with new photo directories to display more photos*/ <image title='Image title for 2nd photo...'>Image directory here for 2nd photo</image>
    </photos>";
    I hope this helped...

  • Need java help

    hi, i hope this is the right place to put this question. i have a optiplex gxi with a 3geg. hardrive. and 64mb of ram.with windows me. when i download java to play on pogo the games will load but they drag and freeze up. the only java download i can get is jre 5.0 update 16 i think i have uninstalled it compleatly.because i keep getting all kinds of errors one i get is ie6 will hang and i get a send to microsoft error report. when i try to update java i get an error number 1723 windows installer error. i can not update the windows installer or even download net framework. please can someone help. (i miss pogo) i have tried to install msjvm but that doesn't work either. sorry for my typeing skills i hope you can help thank you.

    brightsmile29 wrote:
    thank you for your reply however my computer is not compatable with ie7 i have windows me. whice is not supported. and i can not download java so therefore i have no java installed. any help would be gratefull.That ME based system is beyond it's life span at this point in time. You can use JRE's that were developed about that time--Up to 1.4x (I think, you may get away with early 5).
    So basically you have to face reality--that OS, machine, and JVM's have fallen off the grid for the most current games.
    If you have completely uninstalled Java, then run regclean several times and then load the last usable version of Java that you have had installed in the past--and realize, the newer stuff is not made for that era of machine.

Maybe you are looking for