TextField1.setText("fahimaamir"); this code give me error in netbeans 6.1

hi master
sir i use netbean 6.1
i have one textfield and one button in page
when i use this code in button
public String button1_action() {
textField1=("fahimaamir");
return null;
that give me error line in
textField1=("fahimaamir"); this code
when i deploy that show this error
F:\BACKUP\WebApplication8\src\java\webapplication8\Page1.java:142: cannot find symbol
symbol : variable textField1
location: class webapplication8.Page1
textField1.setText("sjflskjf");
1 error
F:\BACKUP\WebApplication8\nbproject\build-impl.xml:392: The following error occurred while executing this line:
F:\BACKUP\WebApplication8\nbproject\build-impl.xml:213: Compile failed; see the compiler error output for details.
BUILD FAILED (total time: 1 second)
please see this error and give me idea how i give value to textfield
thank you
aamir

hi!
Since Netbeans 6.1 the IDE doesn't add Bindings Attributes for placed components like textFields...
When you place an textField or any other component you have to right click on it an choose: Add Binding Attribute
Then the component is known in the source code.
Greetings,
Remi
Edited by: remifreiwald on Jun 25, 2008 11:00 AM

Similar Messages

  • This line give me error Map fillParams = new HashMap(); for calling ireport

    hi master
    sir i flow this link step by step
    http://developers.sun.com/jscreator/learning/tutorials/2/reports.html
    when i us this step
    Double-click the View Report button to display the Java source for the viewReportBtn_action method.
    Add the following code shown in bold to the body of the viewReportBtn_action method.
    Code Sample 5: viewReportBtn_action Method
    public String viewReportBtn_action() {
    // Free up the rowset resources
    tripDataProvider.close();
    then this line give me error
    Map fillParams = new HashMap();
    in out put windows give me this error
    C:\Documents and Settings\Administrator\My Documents\Creator\Projects\TravelReport\src\travelreport\Page1.java:383: cannot find symbol
    symbol : class Map
    location: class travelreport.Page1
    Map fillParams = new HashMap();
    please give me error how solve this error
    thank's
    aamir

    Complete step 17 (2 steps after you paste the code)
    17. Right-click in the source and choose Fix Imports from the pop-up menu.
    I suggest that you complete the following 2 tutorials before you try to do the advanced ones.
    http://developers.sun.com/jscreator/learning/tutorials/2/jscintro.html
    http://developers.sun.com/jscreator/learning/tutorials/2/helloweb.html

  • Why this code give me duplicate data

    Hii, all
    Why this code give me duplicate data
    SELECT (G.NAME_1 ||' '||G.NAME_2||' '||G.NAME_3||' '||G.NAME_4) AS NAME,
                  R.RES_NUM
    FROM    GUST G , RESERVATION R,ROOM_DETAILS S,ROOMS RR
    WHERE   G.RES_NUM = R.RES_NUM
    AND     R.RES_NUM = S.RES_NUM
    AND     RR.OCCUPIED = 'Y'
    RES_NUM
    1282
    1282
    1282
    1282
    1280
    1280
    1280
    1280
    1281
    1281
    1281
    1281
    1310
    1310
    1310
    1310
    16 rows selected

    I can solve my problem with another solutions
    like that
    SELECT (G.NAME_1 ||' '||G.NAME_2||' '||G.NAME_3||' '||G.NAME_4) AS NAME,
                  R.RES_NUM
    FROM    GUST G , RESERVATION R,ROOM_DETAILS S
    WHERE   G.RES_NUM = R.RES_NUM
    AND     R.RES_NUM = S.RES_NUM
    AND     TO_CHAR(CHECK_OUT,'DD-MM-YYYY')>=(to_char(sysdate+1,'dd-mm-yyyy','nls_calendar=''arabic hijrah'''))but if this code working he will give me result = 100%
    SELECT (G.NAME_1 ||' '||G.NAME_2||' '||G.NAME_3||' '||G.NAME_4) AS NAME,
                  R.RES_NUM
    FROM    GUST G , RESERVATION R,ROOM_DETAILS S,ROOMS RR
    WHERE   G.RES_NUM = R.RES_NUM
    AND     R.RES_NUM = S.RES_NUM
    AND     RR.OCCUPIED = 'Y'but i can't do that
    Edited by: Ahmed_Arafa on Jan 20, 2012 1:25 PM

  • If ( windowsIsMacAddress(macAddressCandidate) ) this line give me error

    hi master sir i try to
    this link code http://forum.java.sun.com/thread.jspa?threadID=245711&forumID=4
    see my code
    private final static String getMacAddress() throws IOException {
              String os = System.getProperty("os.name");
              try {
                   if(os.startsWith("Windows")) {
                        return windowsParseMacAddress(windowsRunIpConfigCommand());
                   } else if(os.startsWith("Linux")) {
                        return linuxParseMacAddress(linuxRunIfConfigCommand());
                   } else {
                        throw new IOException("unknown operating system: " + os);
              } catch(ParseException ex) {
                   ex.printStackTrace();
                   throw new IOException(ex.getMessage());
    private final static String windowsParseMacAddress(String ipConfigResponse) throws ParseException {
              String localHost = null;
              try {
                   localHost = InetAddress.getLocalHost().getHostAddress();
              } catch(java.net.UnknownHostException ex) {
                   ex.printStackTrace();
                   throw new ParseException(ex.getMessage(), 0);
              StringTokenizer tokenizer = new StringTokenizer(ipConfigResponse, "\n");
              String lastMacAddress = null;
              while(tokenizer.hasMoreTokens()) {
                   String line = tokenizer.nextToken().trim();
                   // see if line contains IP address
                   if(line.endsWith(localHost) && lastMacAddress != null) {
                        return lastMacAddress;
                   // see if line contains MAC address
                   int macAddressPosition = line.indexOf(":");
                   if(macAddressPosition <= 0) continue;
                   String macAddressCandidate = line.substring(macAddressPosition + 1).trim();
                   if(windowsIsMacAddress(macAddressCandidate)) {
                        lastMacAddress = macAddressCandidate;
                        continue;
              ParseException ex = new ParseException("cannot read MAC address from [" + ipConfigResponse + "]", 0);
              ex.printStackTrace();
              throw ex;
    private final static String windowsRunIpConfigCommand() throws IOException {
              Process p = Runtime.getRuntime().exec("ipconfig /all");
              InputStream stdoutStream = new BufferedInputStream(p.getInputStream());
              StringBuffer buffer= new StringBuffer();
              for (;;) {
                   int c = stdoutStream.read();
                   if (c == -1) break;
                   buffer.append((char)c);
              String outputText = buffer.toString();
              stdoutStream.close();
              return outputText;
    public final static void main(String[] args) {
              try {
                   System.out.println("Network infos");
                   System.out.println(" Operating System: " + System.getProperty("os.name"));
                   System.out.println(" IP/Localhost: " + InetAddress.getLocalHost().getHostAddress());
                   System.out.println(" MAC Address: " + getMacAddress());
              } catch(Throwable t) {
                   t.printStackTrace();
    but sir only this line give me eror
    if ( windowsIsMacAddress(macAddressCandidate) )
    symbol : method windowsIsMacAddress(java.lang.String)
    location: class webapplication42.Page1
    if(windowsIsMacAddress(macAddressCandidate)) {
    1 error
    please give me idea how i get mac address
    thank's
    aamir

    Complete step 17 (2 steps after you paste the code)
    17. Right-click in the source and choose Fix Imports from the pop-up menu.
    I suggest that you complete the following 2 tutorials before you try to do the advanced ones.
    http://developers.sun.com/jscreator/learning/tutorials/2/jscintro.html
    http://developers.sun.com/jscreator/learning/tutorials/2/helloweb.html

  • This line give me error ExternalContext econtext = getExternalContext();

    sir i try to create pdf with using
    ireport and jasper
    i past mfa.jasper and mfajrxml in wen-ing/reports folder
    i see this link
    http://developers.sun.com/jscreator/learning/tutorials/2/reports.html
    i try to call mfa.jasper directly by using inputstream
    when i put this line system give me error
    please give me idea which class i import and how i use inputstream
    thank's
    aamir

    Complete step 17 (2 steps after you paste the code)
    17. Right-click in the source and choose Fix Imports from the pop-up menu.
    I suggest that you complete the following 2 tutorials before you try to do the advanced ones.
    http://developers.sun.com/jscreator/learning/tutorials/2/jscintro.html
    http://developers.sun.com/jscreator/learning/tutorials/2/helloweb.html

  • Hi sunil i used this code but showing error called (startingrow)compile time sub or function are not defined please

    i wanted to update data of excelsheet to mysql database  but displaying an compile time error as sub or functions are not defined           -------------->(startingrow)     please help me out 
    Dim cn As New ADODB.Connection
    Dim number, nRows, wds_id, production_data
      cn.ConnectionString = "Provider = MSDASQL.1; Persist Security Info = False;Data Source = mysql32; User ID = root;Password = bmx1; Initial Catalog = wds"
      cn.CursorLocation = adUseClient
      cn.Open
     Dim i As Integer, QryTxt As String
     i = StartingRow(wds_id) ---------->In this line
     Do Until i = Sheet1.Rows.count
      If Sheet1.Cells(i, 1) = "" Then
       nRows = i - 1
       Exit Do
      End If
      i = i + 1
     Loop
     For i = StartingRow(wds_id) To nRows
            QryTxt = QryTxt & "update tblprod_agr_006 set wds_id1 = '" & Replace(Sheet1.Cells(i, 1), "'", "''") & "'," & vbCrLf
                               QryTxt = QryTxt & "    column2 =  '" & Replace(Sheet1.Cells(i, 3), "'", "''") & "'," & vbCrLf
                               QryTxt = QryTxt & "    column3 =  '" & Sheet1.Cells(i, 4) & "'," & vbCrLf
            QryTxt = QryTxt & "where conditioncolumn =" & "'" & Sheet1.Cells(i, 2) & "'" & "" & vbCrLf
     Next
     cn.Execute (QryTxt)

    First off, is this relating to a Microsoft SQL Server database, or a MySQL database?  I see several references to MySQL in your example.
    Your code uses a function StartingRow() which isn't a built-in T-SQL function.  So, if it is a function you've defined, you need to make sure it's properly referenced in order to use it.  (may need a 2 or 3 part name if it isn't in the default
    schema or the same database.)
    Microsoft SQL Server Storage Engine PM

  • See my code for geting the datasource that give me error

    sir i use under blow code for geting datasource
    no error in datasource but when use datasource object that give me errr
    Connection conn = null ;
    // the following should be in a try-catch...
    javax.naming.Context ctx = new javax.naming.InitialContext() ;
    DataSource ds = (DataSource)ctx.lookup("java:comp/env/jdbc/Travel") ;
    conn = ds.getConnection() ;
    JasperReport jasperReport = JasperCompileManager.compileReport ("f:\ireport\fahim.jrxml","G",conn); ?(this line give me error )
    JasperPrint jasperPrint = JasperFillManager.fillReport(jasperReport,new HashMap(),obj);
    please give me idea how i get ireport JasperReport viewer
    thank's
    aamir

    I found and easier way to do it and wrote it up here: http://developers.sun.com/jscreator/learning/tutorials/2/reports.html

  • Code to get error message in small pop up window.

    Hi,
    I got this code to get error message in pop up window. But this code is giving null pointer exception.
    Can any one tell what is the exception. and how to solve it.
    IWDConfirmationDialog dialog;
              String dialogText = "Duplicate value ";
              dialog = wdComponentAPI.getWindowManager().createConfirmationWindow(
              dialogText,
               wdControllerAPI.getControllerInfo().findInEventHandlers("ok"),
              "ok"
              dialog.open();
    Regards,
    H.V.Swathi

    Hi,
    Most probably you are getting the null pointer exception because of wdControllerAPI.getControllerInfo().findInEventHandlers("ok") as WD is not able to find the ok event handler.
    I guess you have already defined the "ok" event handler in your view .
    Considering that the name of the event handler is "ok" , you can make the following change in
    your code
    confirmDialog = wdComponentAPI.getWindowManager().createConfirmationWindow(dialogText,wdThis.WD_EVENTHANDLER_ON_ACTION_OK, "ok");
    Regards,
    Ashish

  • Please help, i connect my phone to computer and gives me error code this i phone cannot be used because the apple mobile device is not started

    please help, i connect my phone to computer and gives me error code this i phone cannot be used because the apple mobile device is not started

    http://support.apple.com/kb/HT1923
    uninstall and reinstall
    there is a complicated way to work with just the mobile device support but its simpler just to uninstall itunes and related components and then reinstall itunes
    ur music will be fine, u will just lose the playlists. but ur mobile device support will be working again.

  • I create an id. on review option when i enter visa card and security code, it always gives an error msg "Invalid Secruity code". but i use this code for money withdraw from ATM and for shopping also. plz tell the solution ????

    i create an id. on review option when i enter visa card and security code, it always gives an error msg "Invalid Secruity code". but i use this code for money withdraw from ATM and for shopping also. plz tell the solution ????

    The code they are asking for is the last three digits of the number on the back of the card (you don't use this when using an ATM or presenting the card in shops).

  • Firefox will not open, it gives me this cod and would not turn off, Error on switching in renew: NS_ERROR_UNEXPECTED, Component returned failure code: 0x8000ffff (NS_ERROR_UNEXPECTED) [nsIPrefBranch.getCharPref] id: none

    I restored my computer to earlier time and I did an other restore but to latest time and since then every time I click on Firefox short cut this window comes up with the same cod and I can not turn it off unless turn off or restart my laptop, I did delete the Firefox few times and reinstalled it but did not change anything, still I get the same cod,
    Error on switching in renew:
    NS_ERROR_UNEXPECTED, Component returned failure code: 0x8000ffff (NS_ERROR_UNEXPECTED) [nsIPrefBranch.getCharPref]
    id: none

    Some how I solved my problem by opening a user account and downloading Firefox 4.0 beta and installing it, I did try it, worked fine, so I did close the user account and did go back to my own account(switched user), the main page that I had problem with Firefox which would not open, I dabble click on Firefox it start working again!! I hope that solves your problem too.
    firefox will not open, it gives me this cod and would not turn off, Error on switching in renew: NS_ERROR_UNEXPECTED, Component returned failure code: 0x8000ffff (NS_ERROR_UNEXPECTED) [nsIPrefBranch.getCharPref] id: none

  • My iTunes won't launch. It will give and error code 13014. How can I fix this?

    My iTunes won't launch. It will give and error code 13014. How can I fix this?

    Hi tuzas2,
    The article below may be able to help you with this issue.
    Click on the link below to see more details and screenshots. 
    I've quoted some applicable information below for you:
    iPhone and iPod touch: An unknown error (13014), (13136), or (13213) may occur after updating to iTunes 8.0.1 or later
    Solution 1
    Make sure you have the latest version of iTunes installed.
    Solution 2
    Quit and reopen iTunes. If the issue continues, then restart your computer.
    Solution 3
    Quit iTunes, temporarily disable the anti-virus security software on your computer, then reopen iTunes and try to sync your device. If iTunes successfully syncs your iPhone or iPod touch, consult the anti-virus software vendor.
    Solution 4
    Turn off Genius in iTunes in the Genius sidebar (choose View > Hide Genius Sidebar).
    I hope this information helps ....
    Have a great day!
    - Judy

  • Hello all .. i have a big problem in my ipad version 5.1.1 that is when i connect the ipad with my computer the i tunes give me this message ( itunes couldnt connect to this ipad .an unknown error occurred (0xE8000012).) how i can solve this problem pleas

    hello all .. i have a big problem in my ipad version 5.1.1 that is when i connect the ipad with my computer the i tunes give me this message ( itunes couldnt connect to this ipad .an unknown error occurred (0xE8000012).) how i can solve this problem please
    and this is an pic for the problem

    There is some troubleshooting for 0xE8 error codes on this page : http://support.apple.com/kb/TS3221 - you could see if anything on that page fixes it

  • I have a an iMac 27" and am trying to import some videos of a friends wedding into iMovie however one of the movies won't import. It doesn't say why or give any error message or codes. All of the other movies on the card download with out a problem.

    I have an iMac 27" and am trying to import some videos of a friends wedding into iMovie however one of the movies won't import. It doesn't say why or give any error message or codes.
    All of the other movies on the card download with out a problem. The movie in question is not 'corrupt' as you can watch it in iMovie direct from the SD card but as soon as you try to import it, it  just says 'error'. iIve tried moving the file to an external drive ( and other variations on this theme) then importing but have had no luck.
    Can anyone please help me.

    The mystery remains....
    Thanks for the pointers. The file type is .mts (a proprietry sony one).
    I have now found some video converter software (Wondershare and iSkysoft) at a cost. Either will convert this file for me into .mp4. This I can then import into iMovie without any problems. I've checked this on the trial versions and it worked well but without paying am left with a giant watermark in the video
    The mystery (which I still havent solved) is why did 20 other .mts files import fine and then this one not?
    If you could point me in the direction of some free .mts converter software that would be the cherry on the cake.
    Thanks

  • I have an iPod Classic 160GB and now it will not sync.  I have restored to factory settings multiple times.  It freezes during sync, gives -50 error code and says video is not supported on iPod.  Please help.

    I have an iPod Classic 160GB and now it will not sync.  I have restored to factory settings multiple times.  It freezes during sync, gives -50 error code and says video is not supported on iPod.  Please help.

    This is the iPod touch forum. I requested the moderators to move your post to the iPod classic forum.

Maybe you are looking for

  • Can't install 10.5.1 update! help please!

    hi i have written a post before but it is still unresolved. i have installed the leopard os last week (erase and install) i can't run software update and the manual 110MB updater doesn't work, instead i get this message: +"You cannot install Mac OS X

  • How can we download smartforms under a transport request.

    hi    my requirement is that i have to download all smartforms under a transport request using a report program, is thr any standard program in sap or anyone who have done it before. thanks n regards. pardeep kumar

  • PF attribute modification in Access Policy for existing users.

    Hi Guys, I have an access policy for provisioning a resource. Suppose if I make some changes for the process form attribute value inside the access policy,How can I have the same attribute value reflected in the process form of users who are already

  • Pan image and simultaneous track motion

    I have a still photo that I am panning. At the same time, I want the still to move to a different (and smaller) position on the screen. Is there a way to apply a motion path to the video track which is independent of the motion being used on the stil

  • Wireless Bridge dropping traffic

    Hi, We have 2 x AIR-BR1310 setup with a point to point bridge between 2 offices, see below. Office2---Bridge2------Bridge1---Office1 At random periods of the day the link drops and office1 is unable to contact office2. Upon further inspection the Bri