Button and Action Event

Im using this code
ic void actionPerformed (ActionEvent e)
     //Object source = evt.getSource(); Cant use Object as it becomes ambiguous, being used by both CORBA and Java
     Object source = e.getSource();
     if (source == testButton)
          sendElement("HelloWorld");
}which is cool but when using it in a corba application the pesky compiler throws this back.
Supplier.java:204: reference to Object is ambiguous, both class org.omg.CORBA.Ob
ject in org.omg.CORBA and class java.lang.Object in java.lang match
Object source = e.getSource();
is there another way to achieve the same but without using the Object thing ?

Why another way? Just typejava.lang.Object source = ...Kind regards,
  Levi

Similar Messages

  • Buttons and Action Script 3 in Flash CS4

    Hi, I am new to Flash. I am working on creating a photo gallery and I am having an issue trying to figure out how to add AS3 code to link buttons to a point in a timeline.  I have 5 buttons each with an alpha transparency change that works fine and now I want to establish an action on each button that on CLICK will bring up a particular photo in my timeline. Help!  Thanks

    I can't tell you what is involved with bringing up a photo on your timeline, but to code a button to do something, first you assign it an instance name via the properties panel.  Let's say you name it btn1.
    Then, normally in layer dedicated to actionscript, in the same frame as that button you assign an event listener and an event handler to go with it...
    function btn1Handler(evt:MouseEvent):void {
         gotoAndStop("framelabel"); // or frame number
    btn1.addEventListener(MouseEvent.CLICK, btn1Handler);
    For that example it shows how to have the button make things move to a different frame in the timeline.

  • ********  Need to add any button activated ACTION EVENT***********

    Can anyone help me add any type of ACTION EVENT /ACTION LISTENER TO THIS CODE
    PLEASE REVIEW AND COMPILE IF NECESSARY. Ensure that it compiles without errors. Currently it compiles without errors. It opens up as a GUI window that accepts a password. If anyone could just add a button to it that will do just about anything, time check, date check whatever it would be great!!!!! THIS WAS COMPILED WITH THE JGRASP COMPILER JAVA ACCEPTED
    Thank you all,
    ********************** Bruce's Code*****************************
    import java.awt.*;
    public class TimeEntryForm extends Panel
    private Panel tallPanel = new Panel();
    private Panel tallPanel2= new Panel();
    public TimeEntryForm()
    tallPanel.setLayout(new GridLayout(3, 1));
    tallPanel.add(new Label("Hrs Total"));
    tallPanel.add(new Label("Any"));
    tallPanel.add(new Label("One"));
    tallPanel2.setLayout(new GridLayout(3,1));
    tallPanel2.add(new Label("Personal Leave "));
    tallPanel2.add(new Label("Hrs Total "));
    tallPanel2.add(new Label("Pay Calc "));
    setLayout(new GridBagLayout());
    GridBagConstraints c = new GridBagConstraints();
    c.gridx = 0; c.gridy = 2;
    add(new Label("Social Security # "), c);
    c.gridx = 1; c.gridy = 0;
    add(new Label("TIME ENTRY FORM"), c);
    c.gridx = 1;c.gridy = 1;
    add(new Label("Enter Date Here "), c);
    c.gridx = 3;c.gridy = 2;
    add(new Label("Employee Name "), c);
    c.gridx = 3;c.gridy = 4;
    add(new Label("Sick Time "), c);
    c.gridx = 0; c.gridy = 3;
    add(new Label("IN OUT "), c);
    c.gridx = 0; c.gridy = 4;
    add(new Label("IN OUT "), c);
    c.gridx = 0; c.gridy = 5;
    add(new Label("IN OUT "), c);
    c.gridx = 0; c.gridy = 6;
    add(new Label("IN OUT "), c);
    c.gridx = 0; c.gridy = 7;
    add(new Label("IN OUT "), c);
    c.gridx = 0; c.gridy = 8;
    add(new Label("IN OUT "), c);
    c.gridx = 0; c.gridy = 9;
    add(tallPanel2, c);
    c.gridx = 1;c.gridy = 11; //note, sets y
    add(new Label("Hrs Worked Today "), c);
    c.gridx = 1;c.gridy = 12;
    add(new Label("Pay Earned Today "), c);
    c.gridx = 2;
    add(tallPanel2, c);
    public static void main(String args[])
    Frame f = new Frame("Time Entry Form");
    f.add(new TimeEntryForm());
    f.pack();
    f.setVisible(true);
    }

    Hi java-luv,
    I am not sure if I understand the problem. But I was able to add a JButton to your code (using the JBuilder designer). The button just exists the application. Please check the listing below. Hope this helps.
    import java.awt.*;
    import javax.swing.*;
    import java.awt.event.*;
    public class TimeEntryForm extends Panel
    private Panel tallPanel = new Panel();
    private Panel tallPanel2 = new Panel();
    private JButton jButton1 = new JButton();
    public TimeEntryForm() {
    tallPanel.setLayout(new GridLayout(3, 1));
    tallPanel.add(new Label("Hrs Total"));
    tallPanel.add(new Label("Any"));
    tallPanel.add(new Label("One"));
    tallPanel2.setLayout(new GridLayout(3, 1));
    tallPanel2.add(new Label("Personal Leave "));
    tallPanel2.add(new Label("Hrs Total "));
    tallPanel2.add(new Label("Pay Calc "));
    setLayout(new GridBagLayout());
    GridBagConstraints c = new GridBagConstraints();
    c.gridx = 0;
    c.gridy = 2;
    add(new Label("Social Security # "), c);
    c.gridx = 1;
    c.gridy = 0;
    add(new Label("TIME ENTRY FORM"), c);
    c.gridx = 1;
    c.gridy = 1;
    add(new Label("Enter Date Here "), c);
    c.gridx = 3;
    c.gridy = 2;
    add(new Label("Employee Name "), c);
    c.gridx = 3;
    c.gridy = 4;
    add(new Label("Sick Time "), c);
    c.gridx = 0;
    c.gridy = 3;
    add(new Label("IN OUT "), c);
    c.gridx = 0;
    c.gridy = 4;
    add(new Label("IN OUT "), c);
    c.gridx = 0;
    c.gridy = 5;
    add(new Label("IN OUT "), c);
    c.gridx = 0;
    c.gridy = 6;
    add(new Label("IN OUT "), c);
    c.gridx = 0;
    c.gridy = 7;
    add(new Label("IN OUT "), c);
    c.gridx = 0;
    c.gridy = 8;
    add(new Label("IN OUT "), c);
    c.gridx = 0;
    c.gridy = 9;
    add(tallPanel2, c);
    c.gridx = 1;
    c.gridy = 11; //note, sets y
    add(new Label("Hrs Worked Today "), c);
    c.gridx = 1;
    c.gridy = 12;
    add(new Label("Pay Earned Today "), c);
    c.gridx = 2;
    add(tallPanel2, c);
    jbInit();
    public static void main(String args[]) {
    Frame f = new Frame("Time Entry Form");
    f.add(new TimeEntryForm());
    f.pack();
    f.setVisible(true);
    private void jbInit() {
    jButton1.setText("Exit");
    jButton1.addActionListener(new TimeEntryForm_jButton1_actionAdapter(this));
    this.add(jButton1, null);
    void jButton1_actionPerformed(ActionEvent e) {
    System.exit(0);
    class TimeEntryForm_jButton1_actionAdapter implements java.awt.event.ActionListener {
    TimeEntryForm adaptee;
    TimeEntryForm_jButton1_actionAdapter(TimeEntryForm adaptee) {
    this.adaptee = adaptee;
    public void actionPerformed(ActionEvent e) {
    adaptee.jButton1_actionPerformed(e);

  • Dynamic Creation of Buttons and Actions HELP

    Hi there,
    I have got a problem (or maybe even two) with the dynamic Creation of buttons. The code below creates the buttons.
    My main problem is, that the parameter created for the button's action isn't propagated to the assigned event handler. I get a null, though the name of the parameter in the event handler and the name of the parameter added to the action are the same.
    Could it also be that I'm always using the same action? I.e. does wdThis.wdGetAddElementAction() always return the same action instance? If yes, how can I create individual actions for each button?
    Any help is appreciated!
    Cheers,
    Heiko
    "    for(int i=rootContainer.getChildren().length; i<wdContext.nodeFeature().size();i++)
                   IPrivateVCT_Feature.IFeatureElement featureElement = wdContext.nodeFeature().getFeatureElementAt(i);
                   IWDTray featureTray = (IWDTray) view.createElement(IWDTray.class, featureElement.getName());
                   IWDCaption header = (IWDCaption) view.createElement(IWDCaption.class, featureElement.getName()+"_Header");
                   header.setText(featureElement.getName());
                   featureTray.setHeader(header);
                   featureTray.setExpanded(false);
                   rootContainer.addChild(featureTray);
                   IWDButton button = (IWDButton) view.createElement(IWDButton.class, featureElement.getName()+"_Button_AddElement");
                   IWDAction actionAddElement = wdThis.wdGetAddElementAction();
                   actionAddElement.getActionParameters().addParameter("featureIndex", new Integer(i).toString());
                   button.setOnAction(actionAddElement);
                   button.setText("Add Element");
                   featureTray.addChild(button);

    Hi Heiko,
    You have done everything correctly....except for 1 line
    in the code...
    Replace the following line in your code:
    actionAddElement.getActionParameters().addParameter("featureIndex", new Integer(i).toString());
    Replace the above line with this code:
    button.mappingOfOnAction().addParameter("featureIndex",i);
    Actually in your code, you are not associating the parameter with the button...
    Note that addParameter(...) comes with two signatures: addParameter(String param, String value) and addParameter(String param, int value). You can use any of them based on yuor need.
    Hope it helps,
    Thanks and Regards,
    Vishnu Prasad Hegde

  • Duplicating Buttons and Actions?

    I am creating an Interactive PDF and will be using buttons to show and hide many of the features. I would like to replicate many of the buttons and the actions. However, when I try and copy and paste (or use option) to do this actions attached to the button would not export to the PDF. Is there anything I can do to fix this or accomplish the same thing?

    If a button is not working correctly, here are the typical culprits.
    1. PDF viewer. Interactive elements may not work on various PDF viewers, but in your case, you're using Reader. 
    2. Corruption. An Indesign document (especially one with with many interactive elements) can become corrupt. Export to IDML, open IDML back into ID, export to PDF and test.
    3. Faulty Inspection. A button can be a complex interaction of actions, events and visibility. A button can have multiple actions assigned to multiple events. The complexity is compounded with many buttons using show/hide actions. The task of determining whether all attributes are applied correctly is tedious. Make sure to toggle each event in panel and inspect each action, along with checking the visibility of other buttons.

  • Help needed regarding buttons and action listeners!

    Hey,
    Im designing an applet and im trying to create it so that when a button is pressed a new Draw object is drawn, I have read up about action listeners but im not totally sure where they need to be inserted
    Ive posted my code below so hopefully someone out there wll be able to see what im working with!
    Thank you in advance
    public class ImageWithMulti extends Applet {
        Image image;
        public void init () {
            image = getImage(getDocumentBase(),
                getParameter("Channel"));
        public void paint(Graphics g) {
            g.drawImage(image, 0, 0, this);
            drawMultiDown1
        (g, 0, 0, getSize().width, getSize().height, 25, new Color(0).white);   //2nd number changes left sided position up or down
            drawMultiUp1
        (g, 0, 0, getSize().width, getSize().height, 25, new Color(0).white);
            drawMultiUp2
        (g, 0, 0, getSize().width, getSize().height, 25, new Color(0).white);
            drawMultiDown2
        (g, 0, 0, getSize().width, getSize().height, 25, new Color(0).white); 
            drawMultiUp3
        (g, 0, 0, getSize().width, getSize().height, 25, new Color(0).white);   
           drawMultiDown3
        (g, 0, 0, getSize().width, getSize().height, 25, new Color(0).white);
           drawMultiUp4
        (g, 0, 0, getSize().width, getSize().height, 25, new Color(0).white);
           drawMultiDown4
        (g, 0, 0, getSize().width, getSize().height, 25, new Color(0).white);
           drawMultiUp5
        (g, 0, 0, getSize().width, getSize().height, 25, new Color(0).white);

    hi,
    i've modify your code. but i've commented your some original code because i was getting error...
    please check the code...
    import java.awt.event.*;
    import java.applet.*;
    import java.awt.*;
      <applet code="ImageWithMulti.class" width=100 height=140></applet>
    public class ImageWithMulti extends Applet implements ActionListener {
        Image image;
        Button btnClick = null;
        public void init () {
            /*image = getImage(getDocumentBase(),
                getParameter("Channel"));*/
              btnClick = new Button("Click");
              add(btnClick);
              btnClick.addActionListener(this);
        public void paint(Graphics g) {
            g.drawImage(image, 0, 0, this);
           /* drawMultiDown1
        (g, 0, 0, getSize().width, getSize().height, 25, new Color(0).white);   //2nd number changes left sided position up or down
            drawMultiUp1
        (g, 0, 0, getSize().width, getSize().height, 25, new Color(0).white);
            drawMultiUp2
        (g, 0, 0, getSize().width, getSize().height, 25, new Color(0).white);
            drawMultiDown2
        (g, 0, 0, getSize().width, getSize().height, 25, new Color(0).white); 
            drawMultiUp3
        (g, 0, 0, getSize().width, getSize().height, 25, new Color(0).white);   
           drawMultiDown3
        (g, 0, 0, getSize().width, getSize().height, 25, new Color(0).white);
           drawMultiUp4
        (g, 0, 0, getSize().width, getSize().height, 25, new Color(0).white);
           drawMultiDown4
        (g, 0, 0, getSize().width, getSize().height, 25, new Color(0).white);
           drawMultiUp5
        (g, 0, 0, getSize().width, getSize().height, 25, new Color(0).white);*/
         public void actionPerformed(ActionEvent ae){
              if(ae.getSource() == btnClick){
                   System.out.println("Hey");
    }dhaval..

  • Creating a new window from and action event

    Hey I have a problem i would like most of my menu items to create a new window containing a set text and i was thinking of creating a new container with a JTextArea but for some reason its not working. if someone could help me that be great... so my question is how do create another window (TextArea) with my tokenized array info in it open up when Print File or Print Total is the event??
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import java.util.*;
    import java.io.*;
    import java.util.StringTokenizer;
    import javax.swing.plaf.*;
    class PhoneProject extends JFrame implements ActionListener
         private static final int WIDTH = 260;
         private static final int HEIGHT = 160;
         private static final int X_ORIGIN = 402;
         private static final int Y_ORIGIN = 299;
         ArrayList internalCalls = new ArrayList();
         ArrayList externalCalls = new ArrayList();
         PhoneCall internal;
         PhoneCall external;
         JMenu query = new JMenu("Query");
         JMenu proccess = new JMenu("Proccess");
         String inRecord;
         int numExtension;
         int numCallType;
         int numSeconds;
         int totalIntTime;
         int totalExtTime;
    public static void main(String args[])
              PhoneProject frame = new PhoneProject();
              frame.setVisible(true);
    public  void LoadArray(File myFile) throws IOException
              FileReader fr = new FileReader(myFile);
              BufferedReader br = new BufferedReader(fr);
              while ((inRecord = br.readLine()) != null)
                   StringTokenizer tokenizer = new StringTokenizer(inRecord);
                   String extension = tokenizer.nextToken();
                   String callType = tokenizer.nextToken();
                   String seconds = tokenizer.nextToken();
                   numExtension = Integer.parseInt(extension);
                   numCallType = Integer.parseInt(callType);
                   numSeconds = Integer.parseInt(seconds);
                   if (numCallType == 0)
                        internal= new PhoneCall(numExtension, numCallType, numSeconds);
                        totalIntTime = (totalIntTime + numSeconds);
                        //System.out.println(totalIntTime + "int");
                        internalCalls.add(internal);
                   if (numCallType == 1)
                        external = new PhoneCall(numExtension, numCallType, numSeconds);
                        totalExtTime = (totalExtTime + numSeconds);
                        //System.out.println(totalExtTime + "EXT");
                        externalCalls.add(external);
                   System.out.println(internal.getSeconds());     
         public PhoneProject()
              Container contentPane;
              setBounds(X_ORIGIN, Y_ORIGIN, WIDTH, HEIGHT);
              setTitle("Phone Analyzer");
              setResizable(true);
              contentPane = getContentPane();
            contentPane.setLayout(new BorderLayout());
              JMenu file = new JMenu("File");
              JMenuItem  item;
              item = new JMenuItem("Open");
              item.addActionListener(this);
              file.add(item);
              item = new JMenuItem("Exit");
              item.addActionListener(this);
              file.add(item);
              proccess.setEnabled(false);
              item = new JMenuItem("Print File");
              item.addActionListener(this);
              proccess.add(item);
              item = new JMenuItem("Print Totals");
              item.addActionListener(this);
              proccess.add(item);
              item = new JMenu("Low and High");
              item.addActionListener(this);
              proccess.add(item);
              JMenuItem subItem = new JMenuItem("Compare");
              subItem.addActionListener(this);
              item.add(subItem);
              query.setEnabled(false);
              item = new JMenu("Average Total Utilization");
              item.addActionListener(this);
              query.add(item);
              JMenuItem itemInt = new JMenuItem("Internal");
              itemInt.addActionListener(this);
              item.add(itemInt);
              JMenuItem itemExt = new JMenuItem("External");
              itemExt.addActionListener(this);
              item.add(itemExt);
              item = new JMenuItem("Highest Internal Utilization");
              item.addActionListener(this);
              query.add(item);
              item = new JMenuItem("Highest Total Utilization");
              item.addActionListener(this);
              query.add(item);
              JMenuBar menuBar = new JMenuBar();
            setJMenuBar(menuBar);
            menuBar.add(file);
            menuBar.add(proccess);
            menuBar.add(query);
              contentPane.add(new JTextArea("Phone Report"));
      public void actionPerformed(ActionEvent event)
           String menuName;
           menuName = event.getActionCommand();
           if (menuName == "Open")
                JFileChooser chooser = new JFileChooser();
                int returnVal = chooser.showOpenDialog(this);
                if (returnVal == JFileChooser.APPROVE_OPTION)
                     try
                        File myFile = chooser.getSelectedFile();
                        this.LoadArray(myFile);
                        proccess.setEnabled(true);
                        query.setEnabled(true);
                     catch (Exception e)
         if (menuName == "Print File")
    JTextArea display = new JTextArea();
              display.setText("Hello");testing to see if it works
              display.setVisible(true);
         if (menuName == "Print Total")
                                               JTextArea display = new JTextArea();
              display.setText("Hello");//testing
              display.setVisible(true);
           if (menuName == "Exit")
                System.exit(0);
    }Phone.txt
    2000 0 300
    2000 0 538
    2000 1 305
    2000 1 729
    2005 0 205
    2005 0 305
    2005 1 592
    2005 1 594
    2010 0 364
    2010 0 464
    2010 1 904
    2010 1 100
    2020 0 234
    2020 0 839
    2020 1 999
    2020 1 210
    Assignment: Array Based GUI Assignment
    Telephone call data has been collected from a company's telephone switch. You have been asked to analyze it and produce various statistics.
    Input File
    The input file is a sequential file. It is in no specific order. The file contains an extension number, type of call, and the length of call in seconds. A record is produced each time a call is made from that extension. You should create your own test file.
    Field     Type     Description
    Extension     Integer     Extension number. This is a 4 digit number. Valid Extensions are 2000 to 2020.
    Type     Integer     Value of 1 means internal, any other value is an external call.
    Time     Long     Length of call in seconds
    Example:
    �     2000,1,60 : ----->>>> Extension 2000 had an internal call that lasted 60 seconds
    �     2000,1,356: ----->>>> Extension 2000 had an internal call that lasted 356 seconds
    �     2019,2,65: ------>>>> Extension 2019 had an external call that lasted 65 seconds
    �     2001,1,355: ----->>>> Extension 2001 had an internal call that lasted 355 seconds
    Process
    1.     Use 2 arrays to accumulate the time of calls for each extension, both internal and external.
    2.     The reports and queries are to be produced from the arrays.
    Hints:
    �     Create 2 arrays: one for internal calls and one for external calls.
    �     Load the arrays in Form Load: do not do any calculations here.
    �     The report and queries can totally be produced from the arrays.
    Output: Report
    Telephone Useage Report
    Extension Internal External
    2000 4500 3500
    2001 19350 22981
    2002 2333 900
    2003 3144 122
    Totals 99999 99999
    Output: Queries
    On the form add add query capability.
    1.     Average Total Utilization: Internal Calls: 9999 (total length of all internal calls / number extensions)
    2.     Average Total Utilization: External Calls: 9999
    3.     Extension with the highest internal call utilization: Ext xxxx; 9999 seconds.
    4.     Extension with the highest total utilization.
    Form Design
    The design of the form is up to you. However, use the following guidelines:
    �     use menus (preferred) or command buttons
    �     use a common dialog box to ask for the file name
    �     use a list box or text box to display the output
    the caption on the form should include your name

    hi
    u can try like following code
    if (menuName == "Print File")
              new mytextframe();
    class mytextframe extends JFrame{
         JTextArea display = new JTextArea();
         public mytextframe()
              setSize(300,300);
              setVisible(true);
              add(display);
              display.setText( "ello");
    }

  • Buttons and Action script 3

    I have purchased Flash CS3 and have created a small
    animation. I would like the user to press the button in order for
    the animation to play. With the previouse version of flash I would
    drag the button onto the stage open the action script window and
    start entering the script e.g. on(release){gotoandPlay(5);}
    However with the new version I cannot write scripts for the
    buttons.... I am confused or am I missing something? Please help me
    out.

    you're missing actionscript3. and if you don't care to learn
    and use it, just use the actionscript2 publish settings and use
    actionscript2 coding in your projects.

  • How to handle (drag and drop) and Action Event in a JList?

    I am having many JList,
    On click of an element in JList I am loading a image in JSP.
    But If I try to drag and drop one image from one bucket to another bucket Iam not getting any problem,
    But I when I drag all the images from the target List to some other List and make the target List empty.
    Now If I try to move the image from source list to the target list Iam getting this error,
    Exception in thread "AWT-EventQueue-6" java.lang.NullPointerException
         at pdfViewer.NewFileSegregater$24.valueChanged(NewFileSegregater.java:1944)
         at javax.swing.JList.fireSelectionValueChanged(Unknown Source)
         at javax.swing.JList$ListSelectionHandler.valueChanged(Unknown Source)
         at javax.swing.DefaultListSelectionModel.fireValueChanged(Unknown Source)
         at javax.swing.DefaultListSelectionModel.fireValueChanged(Unknown Source)
         at javax.swing.DefaultListSelectionModel.fireValueChanged(Unknown Source)
         at javax.swing.DefaultListSelectionModel.insertIndexInterval(Unknown Source)
         at javax.swing.plaf.basic.BasicListUI$Handler.intervalAdded(Unknown Source)
         at javax.swing.AbstractListModel.fireIntervalAdded(Unknown Source)
         at javax.swing.DefaultListModel.addElement(Unknown Source)
         at pdfViewer.NewFileSegregater.actionPerformed(NewFileSegregater.java:2918)
         at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
         at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
         at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
         at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
         at javax.swing.plaf.basic.BasicButtonListener$Actions.actionPerformed(Unknown Source)
         at javax.swing.SwingUtilities.notifyAction(Unknown Source)
         at javax.swing.JComponent.processKeyBinding(Unknown Source)
         at javax.swing.KeyboardManager.fireBinding(Unknown Source)
         at javax.swing.KeyboardManager.fireKeyboardAction(Unknown Source)
         at javax.swing.JComponent.processKeyBindingsForAllComponents(Unknown Source)
         at javax.swing.JComponent.processKeyBindings(Unknown Source)
         at javax.swing.JComponent.processKeyEvent(Unknown Source)
         at java.awt.Component.processEvent(Unknown Source)
         at java.awt.Container.processEvent(Unknown Source)
         at java.awt.Component.dispatchEventImpl(Unknown Source)
         at java.awt.Container.dispatchEventImpl(Unknown Source)
         at java.awt.Component.dispatchEvent(Unknown Source)
         at java.awt.KeyboardFocusManager.redispatchEvent(Unknown Source)
         at java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(Unknown Source)
         at java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(Unknown Source)
         at java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(Unknown Source)
         at java.awt.DefaultKeyboardFocusManager.dispatchEvent(Unknown Source)
         at java.awt.Component.dispatchEventImpl(Unknown Source)
         at java.awt.Container.dispatchEventImpl(Unknown Source)
         at java.awt.Component.dispatchEvent(Unknown Source)
         at java.awt.EventQueue.dispatchEvent(Unknown Source)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.run(Unknown Source)
    Please help me how to solve this problem..

    Er, sure. In the class pdfViewer.NewFileSegregater on line
    1944 (!), in the valueChanged() method, something is pointing to
    null.
    That method is being called from
    pdfViewer.NewFileSegregater.actionPerformed() on line
    2918 (!!).
    Of course, none of us know what's going on in those code
    segements but you. And for the record, that's not how to spell
    Segregator.

  • Help!!! Button and action sequence...

    I am creating a relatively simple web site in FC, but I have run into a problem. I purchased a stock .mov file, which I converted in Flash CS5 to use as an intro to the site. In Flash, I added a button to enter the site. My resulting .swf intro works perfectly in Flash; but when I import into FC, the button no longer functions (the button states are preserved, but there is no interactivity - even when I use the "Add Interaction" panel in FC). Where did I go wrong?
    And, is there any way to access a specific frame of a file in FC?
    Thanks!
    Jane

    There is a nice converter in the CS5 suite called something like Adobe Media Converter I think. Use that tool and convert it to a flv instead. There is lots of things in Flash that I think runs in conflict if you embed a .swf with a FLVplayer from flash.

  • Allow users to click button and add event to their calendar?

    This page:
    http://ical.mac.com/WebObjects/iCal.woa/wa/default?u=judp&n=LAFCPUG.ics
    Has a subscribe link that when clicked, warns me in Firefox that an external application will be launched. I am guessing it will launch iCal and place an event in my calendar.
    1. Does this look like what it is going to do?
    2. How is something like this setup on a website?
    Thanks.

    Hi
    Take a look at contentseed.com
    Works well for me
    cheers
    Ian
    "Nancy O" <[email protected]> wrote in message
    news:gm2nsg$3no$[email protected]..
    > Search this group for Content Management - a thorough
    answer to this topic
    > was posted by me to Judy earlier today.
    >
    >
    > --
    > Nancy O.
    > Alt-Web Design & Publishing
    > www.alt-web.com
    >
    >
    >

  • Logon customization adding the button and action

    HI,
    I have a com.sap.portal.runtime.par file I imported and umLogonpage.JSp I added the pictures.
    Here I have to provide the extra button like Guest user if user clicks that button the srm_guest user id and pass: 1234 for every guest user that navigates to the portal with guest user roles.
    Can any one help me in this same.

    Why another way? Just typejava.lang.Object source = ...Kind regards,
      Levi

  • Radio Buttons and Event Structures

    Guys, I am hoping for some help here on something I probably should know but cant figure out how to do.  I am using a set of radio buttons and an event structure to run a UI.  The radio buttons are acting as both a user input and indicator of current status selected by the user.  I have the event structure set to run on value change of the radio button.  All works great unless the operator decides that he wants to repeat the selection that the radio button is already set to.  The event structure does not recognize this as a change of value and will not execute.  Is there a way to set the event structure up to run even if the same selection of the radio button is made a second time?  I attached a crude example to this post.  Basically everytime I press the button, I want an entry made into the text box, regardless if the selected item was already pressed.  Any thoughts.
    Troy
    Attachments:
    Radio Button Test.vi ‏16 KB

    Instead of hacking around the inherent nature of radio buttons, why not just use a Cluster?  Its behavior in the UI is more customizable.  Check this out:
    I just replaced your radio buttons with a cluster, and added a little logic to the event structure to get it to behave the way you describe.  I've attached the VI below, saved in 8.2, if you want to try it out.
    Hope this helps,
    -D
    Message Edited by Darren on 11-07-2006 10:45 AM
    Darren Nattinger, CLA
    LabVIEW Artisan and Nugget Penman
    Attachments:
    cluster_buttons.png ‏7 KB
    Cluster Test.vi ‏17 KB

  • Problems adding  url link to buttons in action Script 3

    each time I added it link 1 to the button on file i get these error messages-  
    1046: Type was not found or was not a compile-time constant: link1.
    1180: Call to a possibly undefined method link1.
    Warning: 3594: exec is not a recognized method of the dynamic class RegExp. var r:Object = p.exec(s);  
    This is the code I am using:   import flash.net.navigateToURL; import flash.net.URLRequest;  var link_one:link1;  link_one = new link1(); stage.addChild(link_one);  link_one.addEventListener(MouseEvent.CLICK, buttonClickHandler);  function buttonClickHandler(event:MouseEvent):void { var url:String = "http://www.masterpiececorp.com/ARMREF.htm"; var request:URLRequest = new URLRequest(url); navigateToURL(request); }    I have no other problems with link 3 or 4, just link 1  I still cannot get my urls link to movie clips on the flash  
    Can you upload flash here? if not I have a image capture I can use to have you look at my buttons  and action script code. i have been to every forum I know and not any have been helpful at all. This is my last hope.
    Very frustrated newbie  Gina T
    Message was edited by: gtaylor0406

    The way you had your code originally would be correct...
    var link_one:link1;
    link_one = new link1();
    addChild(link_one);
    The 1046 error is indicating it doesn't recognize the link1 class.  So the first thing you need to make sure of is that you have assigned the link1 class designation to whatever symbol that is in the library.

  • Dynamic buttons and itemlisteners????

    I'm trying to do something that might not be possible. I would like to create some buttons and actions for those buttons on the fly. For example:
    1) read some files from a directory (these file store settings)
    2) Create buttons using the filenames as the button labels
    3) Create associated actionPerformed section related to those buttons
    I want to do this because the amount of files and there names could change all the time. Basically I want to create a button for each file, and essentially launch an application using the settings file as part of a process.
    So far I've read a filename into a string. The first problem, how do I use that filename as the name of a button?
    JButton "string value" = new JButton();
    Then, subsequently, how to you set up the action? See code snipet below.
    Hope that made some sense. Can anything like this be done?
    Thanks,
    James
    //this loads the buttons
    for (int i=0; i < main.size(); i++)
         Vector temp = new Vector();
         temp = (Vector)main.elementAt(i);
         JButton buttonName = new JButton((String)temp.elementAt(0));
         buttonName.addActionListener(this);
         northFlow.add(buttonName);
    //this is in the actionPerformed section
    for (int i=0; i < main.size(); i++)
         Vector temp = new Vector();
         temp = (Vector)main.elementAt(i);
         if (source == (String)temp.elementAt(0))
                loadProgram((String)temp.elementAt(0));

    There is a way to give a button a variable name equal to the file name but it involves extremely advanced Java programming involving creating dynamic class instances. I would strongly discourage this approach because debugging it when it doesn't work, can be a nightmare.
    There is a much easier way to do this however. Create an array of JButtons. Call it, oh say, "MyButtons". Then at the appropriate places, you can do:
    JButton[] MyButtons;
    MyButtons = new JButton[ main.size ];
    for ( int i = 0; i < main.size(); i++ ) {
       Vector temp = new Vector();
       temp = (Vector)main.elementAt(i);
       MyButtons[i] = new JButton( (String)temp.elementAt(0) );
       MyButtons.addAction...
    Incidently, you may also want to re-think your data structure. From what I understand, you have an array where each element is a vector (another array of zero or more elements). This results in code that is difficult to read and write. Consider making your own objects instead of using vectors, then you could write something like...
    for ( int i = 0; i < main.size(); i++ ) {
       if ( source == main.getProgramName() ) {
    loadProgram( main[i].getProgramName() );
    The nice thing about this approach is that you can mix and match objects within the array, or add elements to each object in any particular order and it won't break the rest of your code.
    P.S., use the square brackets to indicate arrays. For some reason, this board is converting them into angle brackets.

Maybe you are looking for

  • Problems with new iMac and Adobe Creative Suite 2

    Just wondering if anyone can help me out. I am a Graphic Design student and just bought Adobe Creative Suite2. I installed it on my new iMac, and it wouldn't open InDesign or Photoshop although I had no problems with Acrobat and Illustrator. A pop-up

  • Error in SQL Procedure

    Hi Experts I have created following procedure which is showing Run Time  error alter proc Stock_item as begin           create table #temp           main_Group varchar (40),           intermediate_group     varchar(40),           final_Group         

  • Plsql index

    Hi, I have the below code. Please let me know why i am getting bdms error. emp table has only one column- idd insert into emp values( 1) declare type emptabtype is table of emp%rowtype index by pls_integer; empTab emptabtype; begin select * into empT

  • HotPixels show up after several LR processing steps

    Dear all, I am having two problems with Nikon Raw Processing and LR4.1. 1st: I am producing and processing content for ESO (European South Observatory), especially TimeLapses. Those sequences consist of hundreds of Images in hundreds of folders. Sour

  • Text manipulation

    I have a data set that is huge, displaying a list of two numbers, separated by a comma, as in "0.15,1.21". Each number represents an x- and y-coordinate that I want to plot in Numbers. Is there a way I can use Automator to copy each number (separated