Newbie :: Traversing component heriarchy

This is kind of a simple question.
I have a few classes that interact in my swing app.
I have a main class which is the JFrame
then I have a class that is a panel, then a class that
is a button on the panel.
3 .java files.
I'm opening up a dialog in the third, (deepest), class
and I am allowed to specifiy a container when I
construct it. I like to do this so the dialog displays
within the app area and not somewhere strange on the
screen. I want to specify the highest level container my
Jframe.
I am currently doing it like this.
this.getParent().getParent()
from the button class I go to the panel class, then to the
JFrame class. It works.
Is there a prettier way to do this? How do I access the
JFrame container directly ?? Not a major issue, but it
just looks bad. Plus, if I ever modify the depth of said
element, then this relative reference may be invalidated.
Thanks
Josh

Without passing in a reference to the frame you can't do it. To always get the root. You must write a function that recursively goes up the tree
Component root = null;
public void getRoot(Component c)
if (c.getParent == null)
root = c;
else
getRoot(c);
something like that

Similar Messages

  • Newbie: Traversing XML with Java

    i have an xml file named contactlist.xml. The DTD is as follows:
    <!DOCTYPE contactlist [
    <!ELEMENT contactlist     (contact+)>
    <!ELEMENT contact     (name,tel,email)>
    <!ELEMENT name (#PCDATA)>
    <!ELEMENT tel (#PCDATA)>
    <!ELEMENT email (#PCDATA)>
    ]>
    It is a well formed document. Now what i need to do is to use java to traverse this document when given a name to return the coresponding telephone number and email address. I have created a java file named TraverseContacts.java using DOM. I have been able to get access of the file contactlist.xml (document = builder.parse(new File("contactlist.xml"))) but i am being unable to traverse it! Here is an extract of the code which traverses the document:
    switch(node.getNodeType()){
                   //if its not a Document node, process its children
                   case Node.DOCUMENT_NODE:
                        Document doc= (Document) node;
                        getResult(doc.getDocumentElement());
                        break;
                   //process element node acording to its tag name
                   case Node.ELEMENT_NODE:
                        if(node.getNodeName().equals("contactlist"))
                             processChildNodes(node.getChildNodes());
                        else if(node.getNodeName().equals("contact"))
                             processChildNodes(node.getChildNodes());
                        else if(node.getNodeName().equals("name"))
                             //find the attribute value for name
                             //check whether it matches the query
                             NamedNodeMap nameAttributes=node.getAttributes();
                             Node value = nameAttributes.item(0);
                             if((value.getNodeValue()).equalsIgnoreCase(name)){
                                  if(node.getNodeName().equals("tel"))
                                       Element telElement = (Element) node;
                                       tel_no += telElement.getAttribute("tel");
                                       result += tel_no;
                                  if(node.getNodeName().equals("email"))
                                       Element emailElement = (Element) node;
                                       e_mail += emailElement.getAttribute("email");
                                       result += e_mail;
                             else return;
                        else if(node.getNodeName().equals("tel")){
                             Element telElement = (Element) node;
                             tel_no += telElement.getAttribute("tel");
                             result += tel_no;
                        else if(node.getNodeName().equals("email")){
                             Element emailElement = (Element) node;
                             e_mail += emailElement.getAttribute("email");
                             result += e_mail;
                        break;
    can somebody please tell me where have i gone wrong. i am sure the mistake is somewhere around here in this java code only but am unable to identify it.

    Your DTD indicates that you have (for eaxample) an email element with text in it but no attributes, but you are using emailElement.getAttribute("email"). You need to get the string value of the text node(s) within emailElement, not the attribute value.
    Pete

  • Newbie getting: component cannot be instantiated make sure it is a JavaBean

    I've been doing the JavaBeans Trail. Didn't get far.
    Created MyBean.java (included at the end) and added it to the palette. When I try to drop it on a JFrame, I get:
    "The component cannot be instantiated.
    Please make sure it is a JavaBean."
    What must I do to make sure it's a JavaBean?
    (I made sure the project was compiled before trying to drop it on.)
    TIA,
    Mike
    Using:
    Sun Java(TM) Studio Enterprise 8.1 (Build 2006.12.01)
    Windows XP version 5.1 running on x86
    Java 1.5.0_09
    ==========<->==========
    * MyBean.java
    * Created on April 20, 2007, 12:59 PM
    * To change this template, choose Tools | Template Manager
    * and open the template in the editor.
    * @author MFidler
    public class MyBean {
        /** Creates a new instance of MyBean */
        public MyBean() {
         * Holds value of property yourName.
        private String yourName;
         * Getter for property yourName.
         * @return Value of property yourName.
        public String getYourName() {
            return this.yourName;
         * Setter for property yourName.
         * @param yourName New value of property yourName.
        public void setYourName(String yourName) {
            this.yourName = yourName;
    }

    Well, after some frustrated yet concerted effort, I downloaded the NetBeans IDE 5.5 and the exercise worked fine.
    I'm good to go.
    Thanks anyway. Guess I'll stick with the NetBeans IDE.
    Cheers,
    Mike

  • Note: 905624

    Hello Experts,
    From the previous post in the forums i came to know i have to apply Note:905624....which inturns is guiding me to load Support Package 7.0.
    Since my basis is on leave for next few days, and i have to try it by myself, so help me if i am missing with some step.
    I have downloaded the Support Pakcage and decommpresed the car file to my Application Server. Now from SPAM Tcode i loaded the .pat files from application server.
    Now when i am trying to check the queue...it is not displaying any queue....even though i loaded new support package...by check at the component hierachy i came to know that thier are some pre-requisite which are not met. I think i have to install some more supportive SPges.
    Below are the component heriarchy pre-requiste options:
    Requirement set 01
    SAP_BW,700    YES
    SAPKA70007    NO
    SAPKIPYJ77    NO
    SAPKW70006    YES
    Requirement set 02
    PI_BASIS,2006_1_700   No
    SAP_BW, 700           YES
    SAPKA70007            NO
    SAPKW70006            YES
    Let me know which Support Package i have to download more? and please if possible send me the links from where i can download.
    CHeers!!!!!!

    Hi
    SAP has released SP-08,so,I would advocate you to wait for Basis to come and implement the SP-08 instead which is latest and readily available instead of going for SP-07.
    However ,if you want to solve your problem pertaining to "You cannot activate transformation " ERROR.
    Steps -
    1)transaction SNOTE
    2)Menu>Goto>Download SAP note
    give the note number "905624"
    3)Hit the clock button "Implement SAP note"
    4)It might ask you for a REQUEST ,save it in a NEW  request for transport.
    you are all set.
    Hope it Helps
    Chetan
    @CP..

  • Newbie Focus Traversal Problem

    I'm trying to do the equivalent of checking the "Tab Stop" checkbox in the MS C++ compiler's dialog layout tool. In other words, I want to go from field to field with the tab key. I've cut and pasted some code from another web site into my code but it doesn't do anything. Is this really the right code? I can't help be think I'm way off base here because it can't possibly be this insanely complex to do the equivalent of checking a checkbox in C++. Can it? What am I doing wrong?
    None of the println statements are ever hit.
    --gary
    import javax.swing.JDialog;
    import java.awt.event.ActionListener;
    import javax.swing.JPanel;
    import javax.swing.JFrame;
    import javax.swing.JLabel;
    import javax.swing.JButton;
    import java.awt.event.ActionEvent;
    import java.awt.Point;
    import java.awt.Dimension;
    import java.awt.*;
    import javax.swing.*;
    import java.net.*;
    import java.io.*;
    import javax.swing.border.*;
    import java.util.Arrays;
    import java.util.List;
    public class LoginDialog extends JDialog implements ActionListener {
        private boolean cancel = false;
        private boolean loggedIn = false;
        private String postUrl;
        private JButton cancelButton;
        private JButton loginButton;
        private JPanel myPanel;
        private JTextArea taLogin;
        private JPasswordField taPassword;
        private JTextArea taAccount;
        private Border outline;
        private Border margins;
        LoginDialog(JFrame frame) {
            super(frame, "Login to Your Account", true);
            myPanel = new JPanel();
            margins = BorderFactory.createEmptyBorder(15, 15, 15, 15);
            myPanel.setBorder(margins);
            getContentPane().add(myPanel);
            myPanel.setMaximumSize(new Dimension(100,100));
            myPanel.setLayout(new GridLayout(4,2));
            outline = BorderFactory.createLineBorder( Color.black );
            myPanel.add(new JLabel("Account Name:  "));
            taAccount = new JTextArea("",1,16);
            myPanel.add(taAccount);
            taAccount.setBorder(outline);
            myPanel.add(new JLabel("Admin ID:"));
            taLogin = new JTextArea("",1,10);
            myPanel.add(taLogin);
            taLogin.setBorder(outline);
            myPanel.add(new JLabel("Admin Acct Password:"));
            taPassword = new JPasswordField("");
            taPassword.setEchoChar('*');
            taPassword.addActionListener(this);
            myPanel.add(taPassword);
            cancelButton = new JButton("Cancel");
            cancelButton.addActionListener(this);
            cancelButton.setBounds(80, 40, 100, 100);
            myPanel.add(cancelButton);       
            loginButton = new JButton("Login");
            loginButton.addActionListener(this);
            myPanel.add(loginButton);
            final Component order[] =
              new Component[] {taAccount, taLogin, taPassword};
            FocusTraversalPolicy policy = new FocusTraversalPolicy() {
              List list = Arrays.asList(order);
              public Component getFirstComponent(Container focusCycleRoot) {
    System.out.println("returning first object");
                return order[0];
              public Component getLastComponent(Container focusCycleRoot) {
    System.out.println("returning last object");
                return order[order.length-1];
              public Component getComponentAfter(Container focusCycleRoot,
                  Component aComponent) {
                int index = list.indexOf(aComponent);
    System.out.println("returning next object");
                return order[(index + 1) % order.length];
              public Component getComponentBefore(Container focusCycleRoot,
                  Component aComponent) {
                int index = list.indexOf(aComponent);
                return order[(index - 1 + order.length) % order.length];
              public Component getDefaultComponent(Container focusCycleRoot) {
    System.out.println("returning default object");
                return order[0];
            setFocusCycleRoot(true);
            myPanel.setFocusTraversalPolicy(policy);
            pack();
            setLocationRelativeTo(frame);
            setVisible(true);
        public void actionPerformed(ActionEvent e) {
            Object source = e.getSource();
            boolean good = false;
            loggedIn = false;
            if(source==cancelButton) {
                cancel = true;
                setVisible(false);
            } else if (source==loginButton) {
                String account = taAccount.getText();
                String login = taLogin.getText();
                String password = new String(taPassword.getPassword());
                String postData = account+")+("+login+")+("+password;
                try {
                    URL my_url = new URL("http://www.--myURL--.com/logger.php");
                    HttpURLConnection connection =  (HttpURLConnection)my_url.openConnection();
                    connection.setDoOutput(true);
                    connection.setUseCaches (false);
                    connection.setRequestMethod("POST");
                    connection.setFollowRedirects(true);
                    connection.setRequestProperty("Content-Length", ""+postData.length());
                    connection.setRequestProperty("Content-Language", "en-US");
                    connection.setRequestProperty("Content-Type", "application/x-www-form-urlencoded");
                    DataOutputStream posted = new DataOutputStream (connection.getOutputStream ());
                    posted.writeBytes(postData);
                    posted.flush ();
                    posted.close ();
                    BufferedReader inStream = new BufferedReader(new InputStreamReader(connection.getInputStream()));
                    String inputLine;
                    good = false;
                    while ((inputLine = inStream.readLine()) != null) {
                        System.out.println("Server response: "+inputLine);
                        if (inputLine.substring(0,4).equals("url=")) {
                            postUrl = inputLine.substring(4);
                            good = true;
                            cancel = false;
                            loggedIn = true;
                        } else if (inputLine.equals("invalid login")) {
                            good = true; // server did respond, but response was "invalid login"
                            loggedIn = false;
                    inStream.close();
                    if (!good) {
                         JOptionPane.showMessageDialog(null, "Unable to contact server.\nTry again later.", "alert", JOptionPane.ERROR_MESSAGE);
                } catch (MalformedURLException me) {
                    System.out.println("MalformedURLException: " + me);
                    JOptionPane.showMessageDialog(null, "Unable to contact server.\nTry again later.", "alert", JOptionPane.ERROR_MESSAGE);
                } catch (IOException ioe) {
                    System.out.println("IOException: " + ioe);
                    JOptionPane.showMessageDialog(null, "Unable to contact server.\nTry again later.", "alert", JOptionPane.ERROR_MESSAGE);
                if (loggedIn) {
                    setVisible(false);
                } else {
                    JOptionPane.showMessageDialog(null, "Login or password not correct.", "alert", JOptionPane.ERROR_MESSAGE);
        public boolean ifCancel() { return cancel; }
        public boolean ifLoggedIn() { return loggedIn; }
        public String getPostUrl() { return postUrl; }
    }

    an example here
    http://forum.java.sun.com/thread.jspa?threadID=738872
    which changes a GridLayout's traversal from left-right to up-down
    basically you put the components (in the order you want) into a Component[],
    which is used by the FocusTraversalPolicy for next/previous etc.
    note: won't work across FocusCycles - needs additional code for that

  • Newbie Trying to Identify a Component

    Hi I am newbie in electronics and mutisim and i have to create a laser circuit that uses a summing amplfier? (Basically i have it on a sheet in front of me and it is a square box with a plus inside, with input and output connections left and right obviously  and an arrow form above aiming down into it)
    I cant find this symbol anyway, can anyone help?

    Is there any way you could post a picture of what you have? There is a Voltage Summer component under SOURCES>CONTROL_FUNCTION_BLOCKS, but if it has an arrow anywhere on it that sounds to me like current and I don't see any summer/adder for current..
    I will post a picture of the Voltage Summer for you to look at.  It would help if we had a picture of it as it may be something different than what I am thinking it is.
    Kittmaster's Component Database
    http://ni.kittmaster.com
    Have a Nice Day
    Attachments:
    Voltage Summer.JPG ‏12 KB

  • How do I traverse a tree component ?

    How do I traverse a tree component ?
    I tried the following but it only returns 1 row. The dataprovider is XML.
    var datalength:Number = mytree.dataProvider.length;
    Alert.show(String(datalength));
    for ( var i:Number = 0; i < datalength; i++)
          Alert.show(mytree.dataProvider.getItemAt(i).@label); 

    I went with the following approach
    for each  
    (var attribute:XML in treeSource..@*)
         Alert.show((attribute.parent( ).@label
         +
    ": " + attribute.name( ) + "=" + attribute));}

  • Component that is focusable, but not focus- traversable

    Hi,
    I have found a tidy solution to this, and posted it in the thread I thought was most appropriate, THEN I found, it was in the REFLECTION forum - duh.
    I won't cross post the whole solution here.
    So if you're interested, bowl over there for the answer
    http://forum.java.sun.com/thread.jspa?messageID=3541807&#3541807
    Cheers
    Bruce

    Answer,
    I have a status field on my dialog that shouldn't be keyboard traversible, but I would like the user to be able to cut the contents (such as an error display), so I need to be able to have it focusable by mouse click.
    I did this by enclosing the component inside a focusCycleRoot container that isn't itself focusable !!
    original code, status widget gets focus when traversing via keyboard.
            JTextField status = new JTextField();
            status.setColumns(40);
            status.setEditable(false);
            status.setFocusable(true); // So user can cut the text with mouse
            status.setBorder(new javax.swing.border.EmptyBorder(status.getInsets()));
            container.add(status, "layout stuff");This is the modified code, which stops status being traversible by keyboard.
            JTextField status = new JTextField();
            status.setColumns(40);
            status.setEditable(false);
            status.setFocusable(true); // So user can cut the text with mouse
            status.setBorder(new javax.swing.border.EmptyBorder(status.getInsets()));
            Container statusTraversalHider = new JPanel();
            statusTraversalHider.add(status);
            statusTraversalHider.setFocusCycleRoot(true);
            statusTraversalHider.setFocusable(false);
            container.add(statusTraversalHider, "layout stuff");

  • Newbie question about component and UDF usage.

    This will be the 1st time I'm coding a component and UDF. I
    kind of understand the concept but not sure about how to write it
    in detail.Such as passing the parameter, etc.
    I'm starting to write a user login, verifying users before
    allowing them to enter into the app.
    So I have 2 fields in my login form, Login and password.
    Upon submitting this form, on the actionpage.cfm I'm calling
    a component. This is how I call the component:
    <CFINVOKE Component="cfc/loginaction"
    Method="AuthentiCateUser" ReturnVariable="UserInfo">
    Then in my Component I have the following:
    <CFCOMPONENT>
    <CFFUNCTION Name="AuthentiCateUser" RETURNTYPE="Query"
    hint="Use for user login">
    <CFARGUMENT Name="login" Type="Structure"
    Required="true">
    <CFARGUMENT Name="password" Type="Structure"
    Required="true">
    <!--- checking user authentication --->
    <CFQUERY NAME="Authenticate" DATASOURCE="sendfast">
    SELECT * FROM tblcustomer WHERE Login = '#Login#' AND
    Password = '#Password#'
    </CFQUERY>
    <CFRETURN AuthentiCateUser>
    </CFFUNCTION>
    </CFCOMPONENT>
    When I run this code, I got error, it said :
    The parameter LOGIN to function AuthentiCateUser is required
    but was not passed in.
    The error occurred in
    C:\CFusionMX\wwwroot\KDt_Mod\userloginaction.cfm: line 18
    16 : <CFSET
    UserLoginInfo["Password"]="#Form.Password#"> 17 : 18 :
    <CFINVOKE Component="cfc/loginaction" Method="AuthentiCateUser"
    ReturnVariable="UserInfo">
    19 :
    My question is:
    What should I do in order to pass #Form.Login# and
    #Form.Password# to my UDF within my component?
    I'm using CFMX 6 and Micrisift SQL 8

    I've applied cfinvokeargument and my login and password were
    passed to my component.
    But I'm facing new problem: Where should I write my
    authentication? should I write user authentication within my
    component or
    loginaction.cfm (the calling template)
    What I mean by authentication is something like this:
    <CFIF #Authenticate.RecordCount# IS NOT 0>
    <cfset session.CustomerID
    ="#Authenticate.customerid#">
    <cfset session.Name ="#Authenticate.Name#">
    <CFCOOKIE NAME="UserLoginIn"
    VALUE="12345_pn#Authenticate.customerid#">
    <cflocation url="index.cfm?loc=home">
    <CFELSE>
    <script language="JavaScript">
    alert("Username/password is not found, plese try again");
    history.go(-1);
    </script>
    <cfabort>
    </CFIF>
    If I keep this code in my loginaction.cfm what is returned
    from my function is not recognized by the component, the error said
    Authenticate.RecordCount is not recognized.
    Also I'm still confuse with what should I put in the
    RETURNTYPE. If I put query, it gave me error, also, what is
    returned by CFRETURN.
    This is my component:
    <CFCOMPONENT>
    <CFFUNCTION Name="AuthentiCateUser" RETURNTYPE="Query"
    hint="Use for user login">
    <CFARGUMENT Name="login" Type="Structure"
    Required="true">
    <CFARGUMENT Name="password" Type="Structure"
    Required="true">
    <!--- checking user authentication --->
    <CFQUERY NAME="Authenticate" DATASOURCE="sendfast">
    SELECT * FROM tblcustomer WHERE Login = '#Login#' AND
    Password = '#Password#'
    </CFQUERY>
    <CFRETURN AuthentiCateUser>
    </CFFUNCTION>
    </CFCOMPONENT>

  • Component and Panels - newbie

    sometimes panels are directly added and sometimes a Component is created and panels are added to Component and then they are used in JSplitPane.
    In what kind of situations can we add directly the panel, and when do we need the Component() ?
    eg
    final Label l11 = new Label("Sections");
    DefaultListModel model = new DefaultListModel();
    JList statusList = new JList(model);
    model.addElement("Claim Info");
    model.addElement("Line Info");
    JScrollPane c13 = new JScrollPane(statusList);
    Component c11 = new claimspanel();
    Component c12 = new claimspanel();
    c12.setLayout(new GridLayout(5,1));
    clslabelpanel lbl1 = new clslabelpanel();
    c12.add(lbl1);
    c12.add(c13);
    c12.add(Box.createVerticalStrut(100));
    c12.add(Box.createVerticalStrut(100));
    c12.add(Box.createVerticalStrut(100));
    JSplitPane spLeft = new JSplitPane(JSplitPane.VERTICAL_SPLIT, c12, c11);
    spLeft.setDividerSize(0);
    spLeft.setContinuousLayout(true);

    By 'use' i assume you mean, hold the reference as
    either a panel or a component.
    The answer is you should hold the reference using the type that is most generic, and still meets your needs. In this way, in the future you can adjust the implementation without effecting anyone other code. So if you need a method that is only found in panel, then hold a panel reference. If not, use container if container's methods satisfy you, otherwise use component.

  • Component newbie question

    I'm trying to create a function that willa automatically
    increment a number for tabindex on form fields this is what I did
    for now to this it.
    <cfcomponent>
    <cffunction name="myFunction" access="public"
    returntype="numeric">
    <cfargument name="myArgument" type="numeric"
    required="true">
    <cfset myResult= arguments.myArgument>
    <cfreturn myResult>
    </cffunction>
    </cfcomponent>
    Saved as default.cfc
    then in the form i do this
    <cfparam default="0" name="myResult" />
    <cfscript>
    getTabIndex=createObject("component","cfc.default");
    </cfscript>
    Then this:
    <cfoutput>#getTabIndex.myFunction(myResult)#</cfoutput>
    <cfoutput>#getTabIndex.myFunction(myResult)#</cfoutput>
    <cfoutput>#getTabIndex.myFunction(myResult)#</cfoutput>
    <cfoutput>#getTabIndex.myFunction(myResult)#</cfoutput>
    which give me 0 0 0 0 . I want 1,2,3,4 ect. Any idea on how
    to do this? Seems simple but I can't seem to figure it out.

    Sorry I cut-n-pasted the wrong function. This is what I have
    and I still get 11111. The output does not accept the updated
    myResult Variable.
    <cfcomponent>
    <cffunction name="myFunction" access="public"
    returntype="numeric">
    <cfargument name="myArgument" type="numeric"
    required="true">
    <cfset myResult= incrementValue(arguments.myArgument)>
    <cfreturn myResult>
    </cffunction>
    </cfcomponent>

  • NEWBIE: AS3/XML DataGrid Component interaction

    So heres the situation:
    I'm trying to create a simple newsreader using a Flash
    DataGrid component in which data is loaded via EXTERNAL XML
    attributes. And it works fine...got 2 columns, "subject" and "date
    posted", and the appropriate data being sent to the right place.
    So heres the problem:
    I'd like to link those rows, when the user clicks on any
    individual row, to load the "URL" attribute that the XML has
    defined. Feels like there's an easy solution but i just can't put
    my finger on it:
    Is this possible? Code below:
    < LexHead />

    Whay are you using a different formatted xml for the dummy
    than the real data. Using internal data for testing is a fine
    technique, but i needs to be the same format as the real data.
    Otherwise how will you know when you get the code right?
    I have an example that uses HTTPService to get an xml file
    from the server, uses a tree to display/edit the nodes, a dynamic
    dataGrid for displaying/editing the attributes, and HTTPService to
    send it back to the server. The backend is JSP, so to run that
    you'd need a J2EE web server like Tomcat, but the tree and property
    explorer might be useful.
    Semd me an email and I will send it to you directly.
    Tracy

  • Newbie question with Netbeans: How do I get a component in a panel

    I've made a class called PatternComponent that extends JComponent which draws some patterns and stuff that I specify. I've been using a very basic GUI that I threw together in eclipse, but I need to clean it up and I've decided that NetBeans is more apt for the job.
    I've figured out how to get my buttons to work, but I can't find how to add my PatternComponent to the panel I want to stick it in.

    This is not a Netbeans forum.

  • Newbie to SJSC : Cannot drop component onto page NoClassDefFoundError

    Hello,
    I recently downloaded and installed Sun Java Studio Creator 2 (SJSC) and was trying the tutorial to get myself familiarized with it.
    I cannot drop any JSF (not even standard or basic) onto the page1 JSP, i get this error:
    ********* Exception occurred ************ at 10:45 AM on Mar 21, 2006
    java.lang.NoClassDefFoundError: com/sun/jsfcl/xhtml/FramesetFrameset
            at com.sun.rave.designer.DndHandler.createBeans(DndHandler.java:1425)
            at com.sun.rave.designer.DndHandler.importBean(DndHandler.java:868)
            at com.sun.rave.designer.DndHandler.importItem(DndHandler.java:702)
            at com.sun.rave.designer.DndHandler.importDataDelayed(DndHandler.java:376)
            at com.sun.rave.designer.DndHandler.access$000(DndHandler.java:114)
            at com.sun.rave.designer.DndHandler$1.run(DndHandler.java:298)
            at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
            at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
    [catch] at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
            at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
            at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
            at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
            at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)I think that this error is NOT related to the upgrade issues related to "You cannot drop components on plan HTML documents, only on web forms."
    I have read the forum extensively but cannot find any helpful topics so i decided to post.
    I really appreciate your time for reading this far, if you have any ideas, please llet me know.
    Thank you very much!!!!
    Federico Vela

    Sandeep,
    Thank you for your reply.
    Although it did not fix the issue, reinstalling to c:/sun/creator did change the error!
    I get the big ugly red bar in the design view that says there are errors on the page.
    Now the problem is an undefined symbol on the inheritance of the page
    public class Page1 extends AbstractPageBean***cannot find symbol AbstractPageBean******
    If i scroll up to the import statement
    import com.sun.rave.web.ui.appbase.AbstractPageBean;***package com.sun.rave.web.ui.appbase does not exist*****
    furthermore, if i try to compile i get the following error
    C:\Documents and Settings\Federico Vela\My Documents\Creator\Projects\HelloWebTutorial\nbproject\build-impl.xml:371: Warning: Could not find file C:\Program Files\Sun\Creator2\rave2.0\modules\autoload\ext\errorhandler.jar to copy.I will try your suggestion of deleting the user folder. I'll let you know if I make any progress. Thanks a bunch.!!!
    federico

  • Focus traversal of a component and its descendants

    We have a certain panel in our application which is receiving focus, and we don't want it to receive focus. I can call setFocusable(false) on every button in that panel, and that works... but it's incredibly cumbersome.
    Unfortunately, calling setFocusable(false) on the panel itself doesn't stop the focus manager finding the children.
    Is there a "proper" way to do this?
    Also while I'm here, is there a "proper" way to make the Tab key exit a JTable when pressed? There was a previous post about overriding the action on the Tab key, but I'm not impressed by that option at present as it may have wider effects than the table.

    I have a need to produce a list of EBS compnents (Oracle Financial 11i) for audit purpose. We are using Oracle EBS 11i Oracle financial. Is there a way to get this kind of information from the system?Please see these docs.
    How to check if certain Oracle Applications product/module is implemented? [ID 443699.1]
    How to Establish if a Product is Installed in e-Business Suite 11i [ID 420648.1]
    Thanks,
    Hussein

Maybe you are looking for

  • Software Developer position based in LAS VEGAS METRO

    Small company in the Las Vegas Metro area seeks a LabVIEW Software Developer. The LabVIEW Software Developer overview: The LabVIEW Software Developer position is responsible for developing and troubleshooting LabVIEW software developed for our propri

  • IChat not allowing initiate of multi party video

    iChat works for me in almost every case...even iChat to AIM...and even when the remote location is behind 2 NAT routers. It has worked between Tiger and Leopard, between Tiger and PC/AIMver5.9, and other scenarios. However, there is now a problem. I

  • SAP XI and CCMS

    Hi, I was wondering what are the monitoring abilities for SAP XI in CCMS. Has anyone used the CCMS to monitor and alert about problems with interfaces ? What kind of monitoring have you done ? Thanks, Elad.

  • SCCM Distribution Point Failures

    I have 16 DP's in Config manager all were working last week. Now only 2 are allowing content. The error message states: Possible cause: Distribution Manager does not have sufficient rights to the computer. Solution: Verify that the site server comput

  • Express vs. Extreme: which has the longer range?

    Just discovered that by hanging an Airport Extreme base station (802.11n, 10/100 Ethernet model) outside my 36th floor apartment, I can connect to the home network from the park, coffee shop, shopping mall and other areas downstairs. In fact, accordi