Total Java Newbie

Hello All:
I have experience in C, C++,. C# and PHP. but I am a rank amatuer.
Here is my question:
-Basically, I'm curious to know if I can create a program that the user will click on, and it will 'install' itself to the desktop.
User downloads my file.
User clicks on my file
User gets an icon on the desktop
User clicks on the icon
User gets 'Hello World' Message.
-Is Java potentially this user friendly?
-Thanks
Josh Beck

A lot of people here don't like applets, but a
properly authorized applet can do what you said. The
process would be
- user clicks on a link to the applet (the link could
be on your webpage)
- the applet downloads to the user machine and asks
the user if s/he wants to run the applet.
- applet starts, creates (or downloads) a desktop
shortcut and a program file.
- applet finishes (it's function is complete)
- user clicks on icon
- program that icon points to starts.
Some of the details are messy - for instance, where's
the user's desktop, but these problems are the same
for any methodology that might be used.... and the problem of security permissions, as applets can't do this by default. The security config would need to be changed for each and every client. Then you have the problem of reliance on the browser for robustness. Then you have the problem that whenever the user clears their internet cache or the app changes slightly it will need to be fully downloaded again (webstart has a separate cache, and clearly a client program gets round this totally). I could go on but my ready brek has just gone ping.

Similar Messages

  • Java newbie help (type casting, 64bit unsigned Long)

    Hi I am java newbie and need help on my project. I have a few questions. Can you put strings in a hashtable and test for their being their with the appropriate hashtable method? I want to test for equal strings, not the same object. Second question can you use all 64 bits of an unsigned long? java doesn't seem to allow this. Any packages that do?
    Thanks,
    Dave

    Try casting it to Long instead of long. Long (capital L) is an Object, while long (lower case l) is not. You may also check to make sure the value isn't null. I would have thought that autoboxing would have worked here unless the value was null. But I am no expert on autoboxing.
    Edit >> Checking for null ain't a bad idea but has nothing to do with the problem - this is a compile time problem. Sorry.
    Also>> This code should work:
    long cTime=(Long)session.getAttribute("creationtime");Edited by: stevejluke on Jul 1, 2008 11:00 AM

  • RFCLIB access from Perl / Java  - newbie question

    Hi folks,
    I am newbie with SAP. I am triying to access the SAP from my web application, wrote in PErl or JAva.
    I am trying to access the librfc, bit I would like to know:
    1) What software I need to install in my client side (the web server that host my web application)??
    2) Which software contains  the RFC SDK? or the RFC LIB?
    3) Should I runt the script to access the rfclib in the SAP server side???
    Please help me with this cruel doubt !!!

    Hi,
    download the SAP JAVA Connector (SAP JCO) from
    service.sap.com
    There are enough examples for java.
    Best Regards
    Frank

  • Total Java compiler problem confusion

    I am seeking some help and advice from those of you who use Java either as their first choice language or use it most of the time.
    I am using Microsoft Visual J++ 6.0 after being given it free. I have also just done a Java programming home course. I can program in C++ so the learning curve was not too steep. I currently use Microsoft Visual C++ 6.0 for my C++ programming. This is why I am keen to use the MS Java program because the setup is very similiar and I like using it.
    My problem comes into play when after completing the course I now try and type in the programs and compile them. They do not work, in fact I have had to make changes to the program to get it to work.
    Now have I been taught incorrectly how to program in Java or is it simply the MS Java program which is not setup correctly? I have been told the MS program I am using uses only Java 1.1 and the current one is 1.4.1.
    This is the program I was given as an example to follow and is supposed to work and is a Java program.
    import java.io.*;
    public class Class1
         public static void main (String [] args)
                   throws IOException
                   int num1, num2, sum;
                   System.out.println ("Input a number: ");
                   num1 = Course_io.readInt();
                   System.out.println ("Input another number: ");
                   num2 = Course_io.readInt();
                   sum = num1 + num2;
                   System.out.println ("The total is " + sum );
    The error I get is, "Undefined name 'Course_io' (j0049)
    Why? Have I not set up the compiler correctly or is the MS Vis J++ 6 compiler just a waste of time. If so, then why is it still available to purchase in shops?
    I don't want to know how to get the program to work, rather what the problem is with compilers etc...
    Sorry for the huge post but I would really appreciate some help on this frustrating matter.
    Thanks,
    Pk

    let me modify ur code:
    import java.io.*;
      public class Class1 {
       public static void main (String [] args) throws IOException {
       int num1, num2, sum;
       //added declaration
       BufferedReader in = new BufferedReader(
                              new InputStreamReader(System.in)); 
       System.out.println ("Input a number: ");
       num1 = Integer.parseInt(in.readLine()); 
       //num1 = Course_io.readInt();
       System.out.println ("Input another number: ");
       num2 = Integer.parseInt(in.readLine()); 
       //num2 = Course_io.readInt();
       sum = num1 + num2;
       System.out.println ("The total is " + sum );
    }tnks to robert for input procedure

  • Call All Adventurous Java Newbies

    Yes you heard me right!. Im an experienced programmer who adopted java about a year ago. What I want to do is create a small program that will be conductive to helping others learn programming ( specifically java ). The only problem is I dont have as much time as I would like to devote to this project. Hence im looking for some other vollunteers to help. I open this up to newbies as an oppertunity for them to learn and have an active contribution back to the java community.
    If your interested email me at [email protected]
    Learn by Doing!

    none of u knew whether mark aok was a child, or whether he was trying to have a go at something too hard for him or just made a simple mistake without checking.
    Admittedly these forums often include things that would be better solved by the individuals with the problems, but if u are not willing to solve other peoples problems then what's this forum all about
    Wgower etc sound like they are god's gift to Java or to programming, but i'm sure they've asked for help because of a stupid mistake before.
    Stop making programming into a jargon full secret clique of snobby 'intellectuals' --some of us like JG are trying to help bring programming to all who want to learn                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Java newbie seeks easy solution I cannot find!

    How would I print a fraction ( it MUST be a fraction ) to be displayed in the Java application?
    For example I take the average of three numbers and the result is 5 1/3.
    I have been fooling around with % 3 ( in my case it will always be a number over 3 because for this particular program I am taking the average of only three numbers ) . Using % 3 allows me to get the remainder number that will be displayed on the upper part of the fraction but no matter what I do I cannot get that number to be represented OVER 3.
    I have been trying
    system.out.println((average / 3) % / 3);
    (average is where it takes the average of my integers)
    But it does the actual math instead of printing out the remainder over 3. When I throw in quotation marks it doesn't work either. I have been looking through a few books and I have come up blank.
    I am totally new to Java so anything you throw at me will be much appreciated. Thank you.

    I guess very simply put is how would I convert a decimal to a written
    out fraction in Java? IE 3.3333333 -> 3 1/3spoiler:public void printAsFractionDiv3(int n) {
       int f= n%3;
       System.out.print(n/3);
       if (f != 0)
          System.out.print("+"+f+"/3");
    }kind regards,
    Jos

  • Java Newbie needs help with multi method dialog calculator

    Our example for the unit was the example below... we now must create a 5 method program for a calculator... 1 main method and 4 for the standard operations(+ - * /). It is supposed to utilize Swing for graphics/dialog boxes that ask you for the operation you would like to use(if statements based on which operation they enter), and a prompt that asks you separately for the 2 numbers used.... anyone feel like drawing this skeleton out? I am in class right now and none of my neighbors can figure it out either....
    import javax.swing.JOptionPane;
    public class Payroll
         public static void main(String[] args)
         String name;         //the user's name
         String inputString;  //holds input
         int hours;           //hours worked
         double payRate;      //hourly pay wage
         double grossPay;     //total pay
         //getUser
         name = JOptionPane.showInputDialog("What is your name?");
         //getHours
         inputString = JOptionPane.showInputDialog("How many hours did you work?");
         hours = Integer.parseInt(inputString);
         //getRate
         inputString = JOptionPane.showInputDialog("What is your hourly pay rate?");
         payRate = Double.parseDouble(inputString);
         //setGross
         grossPay = payRate * hours;
         //showGross
         JOptionPane.showMessageDialog(null, "Hello " + name + ". Your gross pay is: " + grossPay); 
         //End
         System.exit(0);
    }

    import javax.swing.JOptionPane;
    public class CalcDiag
         public static void main(String[] args)
         String operation;
         String inputString;
         double num1, num2, total=0;
         inputString = JOptionPane.showInputDialog("What is your first number?");
         num1 = Double.parseDouble(inputString);
         inputString = JOptionPane.showInputDialog("What is your second number?");
         num2 = Double.parseDouble(inputString);
         inputString = JOptionPane.showInputDialog("Please indicate which operation you would like to use: A,S,M,D ?");
         operation = inputString;
         if (operation.equals("A"))
              total = getAdd(num1, num2);
         if (operation.equals("S"))
              total = getSub(num1, num2);
         if (operation.equals("M"))
              total = getMult(num1, num2);
         if (operation.equals("D"))
              total = getDiv(num1, num2);
         JOptionPane.showMessageDialog(null,"Total = "+total);
         System.exit(0);
    public static double getAdd(double x, double y)
              return x+y;
    public static double getSub(double x,double y)
              return x-y;
    public static double getMult(double x, double y)
              return x*y;
    public static double getDiv(double x, double y)
              return x/y;
    }your welcome

  • Help, Java newbie a little over my head with LDAP

    I'm actually a network admin but I've been dabling in Java for a little while now.
    I am trying to write an app that will allow me to insert and remove attributes to entries in Active Directory.
    I have found some sample code which I have altered to make a "proof of concept" before I start on the actuall app I want.
    The problem I am having is writing into the AD. I can query entries with no error but when I try a modification I get an "DSA is unwilling to perform" LDAPException. I am pretty sure it's not a permissions issue but from reading stuff on here I am begnining to think that it may have something to do with SSL connections. There is commented out code below where I experimented with this but I was unable to connect the the AD when this was in. "unable to connect to the directory server error".
    If anyone can offer me any advice I would be most grateful.
    package LDAPTest;
    import netscape.ldap.*;
    import java.util.*;
    import com.novell.service.ndssdk.jndi.ldap.ssl.*;
    // Simple program to experiment with searching LDAP
    public class FilterSearch
    public static void main(String[] args)
    if(args.length != 6)
    System.out.println("Usage: java FilterSearch " +
    "<host> <port> "+
    "<authdn> <password> "+
    "<basedn> <filter> ");
    System.exit(1);
    String host = args[0];
    int port = Integer.parseInt(args[1]);
    String authid = args[2];
    String authpw = args[3];
    String base = args[4];
    String filter = args[5];
    String[] ATTRS = {"memberOf"};
    int status = -1;
    //SSL experiment that would not connect to the AD server.
    //LDAPConnection ld = new LDAPConnection(new LDAPSSLSocketFactory("com.novell.service.ndssdk.jndi.ldap.ssl.LdapSecureSocketFactory"));
    LDAPConnection ld = new LDAPConnection();
    System.out.println("done connection");
    try
    //Connect to server and authenticate
    ld.connect(host, port,authid,authpw);
    System.out.println("Search filter = " +filter);
    LDAPSearchResults res = ld.search(base, ld.SCOPE_SUB, filter, null, false);
    //Loop on results until complete
    while(res.hasMoreElements())
    try
    //Next Directory entry
    LDAPEntry entry = res.next();
    prettyPrint(entry, ATTRS, ld);
    status=0;
    catch(LDAPReferralException e)
    System.out.println(e);
    continue;
    catch(LDAPException e)
    System.out.println(e.toString() );
    continue;
    LDAPAttribute atrib = new LDAPAttribute("memberOf", "CN=Tight VNC,OU=Staging Transmitter Channels,DC=marimba,DC=local");
    LDAPModification mod = new LDAPModification(LDAPModification.ADD, atrib);
    System.out.println(ld.isAuthenticated());
    try{
    // This is the code the throws the Exception DSA is unwilling to perform.
    ld.modify("CN=smstest0005,CN=MarimbaComputers,CN=Computers,DC=marimba,DC=local", mod);}
    catch(LDAPException e){
    System.out.println(e);}
    catch(LDAPException e)
    System.out.println(e.toString() );
    //Done, so disconnect
    if((ld!=null) && (ld.isConnected()))
    try
    ld.disconnect();
    catch(LDAPException e)
    System.out.println(e.toString());
    System.exit(status);
    public static void prettyPrint(LDAPEntry entry, String[] attrs, LDAPConnection ld)
    System.out.println("DN: " + entry.getDN());
    //Use array to pick attributes. We could have
    //enumerated them all user LDAPEntry.getAttributes
    //but this gives us control of the display order
    for(int i = 0; i < attrs.length; i++)
    LDAPAttribute attr = entry.getAttribute( attrs);
    if (attr == null )
    System.out.println(attrs[i] + " not present");
    continue;
    Enumeration enumVals = attr.getStringValues();
    //Enumerate on values for this attribute
    boolean hasVals = false;
    while ((enumVals!=null) && enumVals.hasMoreElements())
    String val = (String)enumVals.nextElement();
    System.out.println(attrs[i] + ": " + val);
    hasVals=true;
    if(!hasVals)
    System.out.println(attrs[i] + " has no values");
    System.out.println("----------------------");

    OK, I have learned a little about JNDI today and have attempted to implement this using JNDI instead.
    I am now getting the OperationNotSupportedException when attempting to add an attribute to an item in Active Directory.
    here's the code, can anybody who has managed to add data into AD help with this?
    cheers.
    package JNDI;
    import javax.naming.*;
    import javax.naming.directory.*;
    import java.util.*;
    class Getattr
    public static void main(String[] args)
    Hashtable env = new Hashtable();
    env.put(Context.INITIAL_CONTEXT_FACTORY,"com.sun.jndi.ldap.LdapCtxFactory");
    env.put(Context.PROVIDER_URL, "ldap://hostname:389/");
    env.put(Context.SECURITY_PRINCIPAL, args[0]);
    env.put(Context.SECURITY_CREDENTIALS, args[1]);
    try {
    // Create the initial directory context
    DirContext ctx = new InitialDirContext(env);
    // Ask for all attributes of the object
    Attributes attrs = ctx.getAttributes("CN=smstest0005,CN=MarimbaComputers,CN=Computers,DC=marimba,DC=local");
    for (NamingEnumeration ae = attrs.getAll(); ae.hasMore();)
    Attribute attr = (Attribute)ae.next();
    System.out.println("attribute: " + attr.getID());
    /* Print each value */
    for (NamingEnumeration e = attr.getAll(); e.hasMore();System.out.println("value: " + e.next()));
    // Specify the changes to make
    ModificationItem mod[] = new ModificationItem[1];
    mod[0] = new ModificationItem(DirContext.ADD_ATTRIBUTE,
    new BasicAttribute("memberOf", "CN=Tight VNC,OU=Staging Transmitter Channels,DC=marimba,DC=local"));
    ctx.modifyAttributes("CN=smstest0005,CN=MarimbaComputers,CN=Computers,DC=marimba,DC=local", mod);
    // Find the surname attribute ("memberOf") and print it
    //System.out.println("memberOf: " + attrs.get("memberOf").get());
    } catch (NamingException e) {
    System.err.println("Problem getting attribute:" + e);

  • Java newbie (what's could be wrong with this program?)

    First things first, I just started programming with JAVA recently so please forgive me if it seems stupid. Since I am so relatively new to the language, in order to get a feel for it I started running some simple scripts. I can compile and execute most of them without any problem. However when I tried to compile this one I get a couple of errors I am not familiar with. So my question is what could be wrong and what needs to be changed in order to get it to work? or if the syntax is correct could there be some other problem?
    On a side note, I am coming more from a C and C++ background so if anyone can recommend a way to start learning the JAVA language from a prespective in C that would be highly appreciated.
    System Environment: I am using j2sdk1.4.2 on a Windows 2000 machine running SP3.
    If anything else needs further clarification please let me know.
    |------------------------- The Code -----------------------------------|
    package RockPaperScissors;
    import java.util.HashMap;
    public class RockPaperScissors {
    String[] weapons = {"Rock", "Paper", "Scissors"};
    EasyIn easy = new EasyIn();
    HashMap winners = new HashMap();
    String playerWeapon;
    String cpuWeapon;
    int cpuScore = 0;
    int playerScore = 0;
    public static void main(String[] args) {
    RockPaperScissors rps = new RockPaperScissors();
    boolean quit = false;
    while (quit == false) {
    rps.playerWeapon = rps.getPlayerWeapon();
    rps.cpuWeapon = rps.getCpuWeapon();
    System.out.println("\nYou chose: " + rps.playerWeapon);
    System.out.println("The computer chose: " + rps.cpuWeapon + "\n");
    rps.getWinner(rps.cpuWeapon, rps.playerWeapon);
    if (rps.playAgain() == false) {
    quit = true;
    System.out.println("Bye!");
    public RockPaperScissors() {
    String rock = "Rock";
    String paper = "Paper";
    String scissors = "Scissors";
    winners.put(rock, scissors);
    winners.put(scissors, paper);
    winners.put(paper, rock);
    System.out.println("\n\t\tWelcome to Rock-Paper-Scissors!\n");
    public String getPlayerWeapon() {
    int choice = 6;
    String weapon = null;
    System.out.println("\nPlease Choose your Weapon: \n");
    System.out.println("1. Rock \n2. Paper \n3. Scissors \n\n0. Quit");
    try {
    choice = easy.readInt();
    } catch (Exception e) {
    errorMsg();
    return getPlayerWeapon();
    if (choice == 0) {
    System.out.println("Quitting...");
    System.exit(0);
    } else {
    try {
    weapon = weapons[(choice - 1)];
    } catch (IndexOutOfBoundsException e) {
    errorMsg();
    return getPlayerWeapon();
    return weapon;
    public void errorMsg() {
    System.out.println("\nInvalid Entry.");
    System.out.println("Please Select Again...\n\n");
    public String getCpuWeapon() {
    int rounded = -1;
    while (rounded < 0 || rounded > 2) {
    double randomNum = Math.random();
    rounded = Math.round(3 * (float)(randomNum));
    return weapons[rounded];
    public void getWinner(String cpuWeapon, String playerWeapon) {
    if (cpuWeapon == playerWeapon) {
    System.out.println("Tie!\n");
    } else if (winners.get(cpuWeapon) == playerWeapon) {
    System.out.println("Computer Wins!\n");
    cpuScore++;
    } else if (winners.get(playerWeapon) == cpuWeapon) {
    System.out.println("You Win!\n");
    playerScore++;
    public boolean playAgain() {
    printScore();
    System.out.print("\nPlay Again (y/n)? ");
    char answer = easy.readChar();
    while (true) {
    if (Character.toUpperCase(answer) == 'Y') {
    return true;
    } else if (Character.toUpperCase(answer) == 'N') {
    return false;
    } else {
    errorMsg();
    return playAgain();
    public void printScore() {
    System.out.println("Current Score:");
    System.out.println("Player: " + playerScore);
    System.out.println("Computer: " + cpuScore);
    |------------------------- Compiler Output ----------------------------|
    C:\ide-xxxname\sampledir\RockPaperScissors>javac RockPaperScissors.java
    RockPaperScissors.java:8: cannot resolve symbol
    symbol : class EasyIn
    location: class RockPaperScissors
    EasyIn easy = new EasyIn();
    ^
    RockPaperScissors.java:8: cannot resolve symbol
    symbol : class EasyIn
    location: class RockPaperScissors
    EasyIn easy = new EasyIn();
    ^
    2 errors

    limeybrit9,
    This importing certainly seems to be the problem, I'm still not used to how compilation works within the JAVA language, I'll play around with it a bit and see if I can get it to work correctly.
    bschauwe,
    The C++ approach has certainly clarified some of the points. I guess I will be sticking to that.
    bsampieri,
    You were correct on the class looking rather generic, but as I mentioned before I was just sort of tinkering to see if I could get it to work.
    Thanks to all for the help, very much appreciated.

  • Java Newbie Question - the import statement

    Hi Geeks,
    I have a problem for importing a java .class in my project. This latter is named "Tedetis_New". Inside it, I created a "src" folder containing all the source code of the application. I import a jar file inside the parent directory of "src" (i.e. at the root of the project). Inside this jar archive, two classes (.class files) are not placed inside a package (default package according to eclipse), let's name one toto.class. So when I want to import toto.class from a file inside the src directory I simply do "import toto.class" but this statement doesn't work ! I don't manage to import my toto.class so ... what do you propose for this ?
    Thanks.

    Don't use the "default" class for anything serious;
    you can't import such a class.Er, package maybe?Yes, I was editing my reply while you replied to my reply so I couldn't
    edit my little blooper in my reply anymore; thank you very much Sir ;-)
    kind regards,
    JosI entered that response as quickly as I could, for just that reason. I
    thought you might notice and try to correct it, and I wanted to preserve
    your fuckupus maximus for all eternity.
    Everyone gather round and taunt Jos! Wave your private parts at his
    auntie! Fart in his general direction!
    Now, aren't you glad you didn't say "Jehovah"?I already knew that you were the one who invented amiability ;-)
    kind regards,
    Jehov^H^H^H^Hos

  • Saving Applet display as an image... Java newb

    Hello,
    I'm using wirefusion3D to display and configure 3D objects on a website I've been developing. The only thing it lacks is the ability to save out an image of the current display, which I need to do in order to place those images on a pdf invoice.
    It does, however, have the ability to include custom java code within the applet, so I would like to create a function that will take a snapshot of the current rendered applet display and save that snapshot as a bitmap image on the server. I'm new to Java (I'm a PHP/Javascript guy), and have had no luck finding anything about how this would be done. I'm not really sure what to search for, as I don't really know what java functions/classes deal with this sort of thing.
    I was hoping someone could point me in the right direction.
    Thanks in advance

    1. If all the drawing is taking place in one J/Component, you can construct a BufferedImage, obtain a reference to its associated Graphics and call paint/Component passing the Graphics reference as parameter. Then save the image to a file.
    2. java.awt.Robot#createScreenCapture returns a BufferedImage which is a snapshot of the screen.
    db

  • Visio like object drawing in Java - newbie question

    Hi all,
    Although a reasonably experienced java programmer I am new to the world of 2D graphics.
    I am contemplating writing a tool which includes a diagramming capability for displaying computer systems and interactions between them.
    I guess this would not be a million miles from what a UML diagramming tool does, but it would definitely have some differences.
    So, for example, in this tool a user would be able to:
    Define a computer system and allocate an icon for it.
    Drag that system icon onto a diagram.
    Draw lines between systems and to represent interactions and define what those interactions were.
    Does anyone know if there are any Java API's or tools out there which could get me started?
    Thanks in advance, Robin.

    wpafbuser1 wrote:
    Go fly a kite, Troll. OP said he was new and wanted to know which Java API's to use for 2D graphics. Moreover, there are no Java-related API's with diagramming capability. He can Google for that anyway.He's not new to java as he has stated that he is a "reasonably experienced java programmer". He also knows that he will probably need Java2D else he wouldn't be in this forum. If he is reasonably experienced, there's no doubt that he knows about Swing and how it can be used to create GUIs.
    To the OP, you could try to roll your own Visio like flowcharting program through Java2D and Swing, but you will probably get up and running faster if you use tools already created for this purpose. One such is JGraph ^1^. There are probably others as well.
    ^1^ http://www.jgraph.com/

  • Threads in Java: Newbie question

    Hi
    I had a doubt regarding Threads. I have implemented a Security Manager which does not allow a thread to write into a file. Now, the problem is when the thread tries to write into a file, the Security Manager calls my function in which I want to immediately terminate the thread. How do i do this? How do I terminate a thread without using the deprecated Stop() function ?
    Thanks in advance
    RG

    The trick is to make the thread die a natural death... One method is have a boolean somewhere which is initially set to true (maybe call it keepRunning?), and the thread that should die have a while loop which periodically checks to see that this boolean is still true.
    The function which should terminate the thread can now set that variable to false and force the thread to die at the next iteration of its while loop.
    There are more examples, more methods, and probably a better explanation at:
    http://java.sun.com/docs/books/tutorial/essential/threads/lifecycle.html
    Good luck!

  • Another java newbie question:  "Link errors"

    In the environments I've attempted compiling in, it seems that there is a just-in-time default, which means that any missing classes are not found until run time.
    Is there any way to to run javac so that what we used to call "link errors" will be displayed at compile time?

    Java has no .h files, so it shouldn't compile at all if a class is missing, unless:
    Someone compiles class Library, they have class Extension available
    They give you Library
    You compile, javac sees theat "Library" exists and checks no further
    At run time, you get errors about Library needs missing class "Extension"
    What class is missing anyhow?

  • Java newbie help: Need to change a graphic on screen

    Hello everyone. I'm a long time C/C++ programmer, and I've been thrust into the Java world when I inherited an incomplete project. If something I mention later on sounds stupid, it's probably because it came that way, or I'm trying to force it into what I know from old experience.
    FWIW, the project is being developed with Netbeans.
    What I'm after is how to change a graphic object onscreen from within the code, vs. with a device such as a mouse. I'm trying to emulate an LED indicator.
    What I've done so far is to try using the enable state, and defining GIFs to display. That didn't work.
    I've switched gears a bit, and tried something similar with the selected property, but that will only work if I hit the item with my mouse and click. Also, the item is defined as a jToggleButton.
    In general terms, what do I need to do to set this up for the displayed item to change without device input? I've been reading stuff about Buttons, ToggleButtons, Graphics, Images, and Icons, and I'm waaaaaay lost right now.
    To add to the frustration is that I've done something similar with Visual C++, and that worked as intended. Harumph.
    Help?!?

    FWIW, the project is being developed with Netbeans.
    In case you don't know, you can use any editor to develop java code.
    What I'm after is how to change a graphic object onscreen from within the code, vs. with a device such as a mouse. I'm trying to emulate an LED indicator.
    What I've done so far is to try using the enable state, and defining GIFs to display. That didn't work.
    What happend?
    I've switched gears a bit, and tried something similar with the selected property, but that will only work if I hit the item with my mouse and click. Also, the item is defined as a jToggleButton.
    Is this not what you wanted?

Maybe you are looking for

  • Error while importing a text file for a list of values

    Hi Experts, While importing a text file for a list of values in designer, I am getting error message as below: "Invalid setting in Excel key of the Engines section of the Windows Registry. (3433)". I am using BO XI R3. Universe Designer version : 12.

  • Trouble compiling cldc 1.02

    I'm trying to install j2me, and I downloaded midp, j2mewtk, cldc, and midp-palm. Where I'm having the most trouble currently is trying to build cldc. I'm running NT4, but I don't have cl, which the build wants to use. I do have g++. Can anyone help m

  • Rescue and Recovery and Windows 8.1

    Hi, For the last 4 years I used Rescue and Recovery on the my ThinkPads to keep backups (really liked the incremental backup feature) and restore single files when needed. I now just got a new X1 Carbon gen3 coming with Windows 8.1 installed by defau

  • Post RAM upgrade question.

    should i be reinstalling SL post upgrading my MacBook to 4gb ram from 2gb so that the system adapts to the new size?

  • Delete / Delimit PA Infotype

    We are working in a pre-go live environment and testing data conversions. I need to delete (or delimit) primary infotypes such as 0008 and 0009 for about 200 PERNRs. Is there a utility in PA which you can use to mass delete or mass delimit one Infoty