Home > Default > How to access form objects from different class?

How to access form objects from different class?

November 30Hits:0
Hello, I am new to java and i started with netbeans 6 beta,
when i create java form application from template i get 2 classes one ends with APP and one with VIEW,
i put for example jTextField1 with the form designer to the form and i can manipulate it's contents easily from within it's class (let's say it is MyAppView).
How can i access jTextField1 value from different class that i created in the same project?
please help. and sorry for such newbie question.
Thanks Mike


hmm now it says
non static variable jTree1 can not be referenced from static context
My code in ClasWithFormObjects is
public static void setTreeModel (DefaultMutableTreeNode treemodel){
jTree1.setModel(new DefaultTreeModel(treemodel));
and in Class2 it is

Read other 9 answers


Related Articles

  • How to access an object in a beanOctober 11

    I am looking for a way to access an object in a bean and make available to the page. for example if i have a Bean called User and it contains an attribute Called Company as an attribute in User. Now I have User.getCompany(). and I can do this <%User

  • Hyper-V encountered an error trying to access an object on computer ...October 11

    I'd like to share an issue which occurred during one of my recent configurations as well as the associated solution which worked for me. While configuring Hyper-V Manager on a non-domain joined Windows 8.1 Enterprise client, to communicate with a non

  • Add ABAP program: validating package - error accessing shared objects-areaOctober 11

    When adding a new program or browsing the packages in eclipse i get an "error accessing shared objects-area". I can edit, save and run existing ABAP reports, however. There was a similar problem here, regarding database procedure proxies but the

  • DBMS_SQL.PARSE to access remote objectsOctober 11

    I am using following code in a procedure ... DBMS_SQL.PARSE (cur, vSQL, DBMS_SQL.NATIVE); where variable vSQL can contain a remote object. A DB link (with Fixed User option) exists to access that database. The DB link is working. The remote object is

  • Unable to access the objects with out schema as prefix.. can any body helpOctober 11

    Hi, i am using 10g.I have one problem like i unable to get the table access with out mention prefix for that table. but i created public synonym and gave all grants to all users also. but still i need to mention schema name as prefix otherwise it giv

  • Access file object from flex web appOctober 11

    Hi all, I want to access file object from flex web app. What should i do? I have to take array from my XML. In XML there will be only dir path. So for taking file name from dir i have to access it and have to perform for loop on that dir. What should

  • Access denied (Object: com.sap.portal.system/security/no_safety)December 9

    We are implementing EP 6.0, currently with SP11. We have developed some iViews, which are using RFC functions to get information from backend system, in this case SRM. Everything worked fine, till the day we’ve transported those developments into oth

  • Help on accessing Oracle object !November 30

    Hi, Looking for a help in accessing oracle object using JDBC. I've the following object defined in Oracle. TYPE ty_ctg_prod AS OBJECT( PROD VARCHAR2(40 ), NODE_ID NUMBER , CTG_ID NUMBER ); TYPE ctg_PROD_ary AS VARRAY (50) OF ty_ctg_PROD; The procedur

  • ListCellFactory - how to access an object's data associated with list cell?November 30

    I am new to javafx and building a sample app to learn the basics. The app has a list view control and used listcellfactory to create listcells. Each list cell is composed of few labels and image. I populated list view with listViewItems function, whe

  • Access to object list of type "BusinessSystem" using the InternalEOAService BusinessSystemAccessor failedNovember 30

    Hi All, We are facing an issue in PI configuration when, we are unable to view business systems in the Integration Builder. ERROR : Access to object list of type "BusinessSystem" using the InternalEOAService BusinessSystemAccessor failed Our Lan

Copyright (C) 2019 wisumpire.com, All Rights Reserved. webmaster#wisumpire.com 14 q. 0.634 s.