Asking for return type with constructor

import java.swing.*;
public class firstWindow extends JFrame
     public static final int WIDTH = 300;
     public static final int HEIGHT = 200;
     public FirstWindow()
          super();
          setSize(WIDTH,HEIGHT);
          JLabel newLabel = new JLabel("My Medical Record.");
          getContentPane().add(newLabel);
          WindowDestroyer listener = new WindowDestroyer();
          addWindowListener(listener);
}Continue to get a 'method with no return type'. I looked for a syntax error but can't see it.
Edited by: Zarnon on Mar 2, 2008 2:07 PM

radiorx wrote:
public FirstWindow()Class name is firstWindow, so the constructor should be re-named :
public firstWindow()In the former case, the FirstWindow identifier creates a method rather than a constructor, and methods in Java need a return type.
Hope this helpsInstead of renaming the constructor, rename the class file public class firstWindow extends JFrame into public class FirstWindow extends JFrame

Similar Messages

  • Why is it ok for a verizon wireless service representative to lie to a customer? I went over my monthly data and i called to ask for some help with the overage because i was barely over. They told me they would take care of it and sold me on a shared data

    why is it ok for a verizon wireless service representative to lie to a customer? I went over my monthly data and i called to ask for some help with the overage because i was barely over. They told me they would take care of it and sold me on a shared data plan that would result in 2gb less data but told me i would save 20$ a month. I agreed and recieved my next statement and to my suprise my bill actually went up 15$ a month and i talked to several people and they all told me there is nothing that can be done to get back on the plan i was on and they can not even give me a discount to get me back to what i was paying. They can only offer me a convenience credit. I will be cancelling service.

    ajwest101,
    We do not want to see you go. I truly apologize for any misinformation regarding your plan. Let's investigate into this a little further. What plan were you on? What plan were you switched to? If you look at the detailed billing online of your previous bill do you see any additional charges other then the plan?
    LindseyT_VZW
    Follow us on Twitter @VZWSupport

  • I am trying to set my imessage, but when i switch to on it asks for a password with a different apple id than my original

    i am trying to set my imessage, but when i switch to on it asks for a password with a different apple id than my original

    Sign out of that Apple ID, then sign in with the correct one.
    Go to Settings > FaceTime, tap your Apple ID, and select Sign Out.
    Go to Settings > Messages > Send & Receive, tap your Apple ID, and select Sign Out.
    http://support.apple.com/kb/ts4268

  • Conditions record for returns order with order type "RE" Modification

    Hi,
    How can I gay out the EDI1 conditons row ( Customer expected price ) for returns order, so that the customer price is not considered.
    Current Scenerion: when we create a returns order "RE" with reference to standard order "OR" it pulls out the price details from the standard order, but then in the conditions tab the EDI1 ( customer expected price ) is still active which allows the user to enter the new price. When the user enters the new price, the price for that line item is getting updated with this new customer expected price.
    Can any one help me out on how to gray put that row, so that the user is not allowed to enter a new price during rreturns.
    Thanks in Advance!!

    Hi
    This will be updated automatically when generate planned orders thru MRP. (MD02)
    regards
    Srinivas

  • I have a new email address which I have had verified, but when I try to update an app it asks for my password with the old email address and always comes back telling me it is an incorrect password.

    I Have a new email address which I have entered into settings and it has been verified. I no longer have the old email address. When I try to update an app, it comes up with my old email address and asks for my password. It always comes back with a message that the password is incorrect. What do I do to fix this?

    Hi Vivian Zollman,
    Welcome to the Support Communities!
    I'm not sure if you are referring to your Apple ID or just your email account in the Mail app.  So, I've included all of the articles that may be relevant for you.
    iOS: Setting up an email account
    http://support.apple.com/kb/ht4810
    If you already have an email account set up and you want to modify its settings, tap Settings > Mail, Contacts, Calendars, tap the name of your account, and then your email address. Then tap any information you want to adjust.
    iOS: Changing the signed-in iTunes Store Apple ID account
    http://support.apple.com/kb/HT1311
    iCloud: View or change your iCloud payment information
    http://support.apple.com/kb/PH2616
    Cheers,
    - Judy

  • I had asked for some help with ICloud  3 weeks ago but no one answered, cloud has my old email and will not let me sign in my Iphone has not backed up in 9 weeks probably same for my iMac cannot even et to my photos. HELP please  Sandie P

    Had asked for help with iCloud 3 weeks ago.  Cloud has my old email and I no longer know the password, wont't let me sign in with new email.  When I talked with apple cust service they assured me that everything associated with apple would change over.  NO it did not! Cannot find how to get cloud to change this. My Iphone says I have not backed up in 9 weeks because of iCloud.  Can anyone help me or give me some advise please
    Thank you so very much
    Sandie P

    Same thing happened to me. My son's iPod touch suddenly started indicating that my "username or PW had changed" or was "incorrect" so I paid Apple $30 to find out that all that was required was updating the software by plugging his iPod into my computer & syncing with iTunes. My problem was then solved.

  • I changed my apple id and password online, next time i turned on my computer icloud pops up asking for a password with my old apple id.  i enter my password and it doesnt work, how do i change my iCloud id to my updated apple id?

    I changed my apple id and password online.  The next time I turned on my computer, iCloud popped up asking for a password, but displaying my old apple id.  I tried signing in, but I think because it is my old apple id listed it doesnt let me.  Anyone have any idea how I can update the iCloud apple id and password to reflect that of my apple id?

    If the old ID is yours, and if your current ID was created by editing the details of this old ID (rather than being an entirely new ID), go to https://appleid.apple.com, click Manage my Apple ID and sign in with your current iCloud ID.  Click edit next to the primary email account, change it back to your old email address and save the change.  Then edit the name of the account to change it back to your old email address.  You can now use your current password to turn off Find My iDevice, even though it prompts you for the password for your old account ID. Then save any photo stream photos that you wish to keep to your camera roll.  When finished go to Settings>iCloud, tap Delete Account and choose Delete from My iDevice when prompted (your iCloud data will still be in iCloud).  Next, go back to https://appleid.apple.com and change your primary email address and iCloud ID name back to the way it was.  Now you can go to Settings>iCloud and sign in with your current iCloud ID and password.

  • Office mac keeps asking for license key with fusion drive

    I'm posting this in case anyone else is having this trouble where Office for Mac 2011 keeps asking for the license key. I have a later 2013 iMac with Fusion drive and never have been able to use office on this computer without entering the key. In talking with Microsoft they removed office and all the files and reinstalled with no help. In speaking with Apple, they said there is a known issue with Microsoft Office and the Fusion drive and Microsoft is working on a patch. Evidently the fusion drive moves the files around and to Microsoft that looks like new hardware so it prompts for the key. Realy annoying! Microsoft

    I'm a certified Apple consultant and I recently hit this issue at an installation. On seven iMacs with the Fusion drive, I deleted the "Thunderbolt Bridge" interface from the Network System Preference. We then rebooted the computers, entered the product key one more time, and so far, the problem has disappeared and survives subsequent rebootings.
    Obviously, if you are frequently networking two Macs using Thunderbolt, this isn't a good long-term solution (though it is easily added back). However, it does appear to work. I have no sound theory as to why it works, except that Office might be interpreting the existence of that bridge as evidence that the software was copied onto a machine instead of properly installed. This is just a wild guess, though.
    I have no idea if it will work for others, but hey, the forums are for throwing out these ideas and seeing if one of them sticks for most people. So...there it is.

  • SQL Developer asks for java.exe with the version that has java built in.

    I have a user with the following platform:
    Windows XP2
    SQL Developer Version 1.5.4
    The version they are trying to get running is the one that has the JDK built in. However, when they try and startup SQL Developer it asks for the location of java.exe.
    However, when I run the same exact version on my workstation, I do not receive the prompt for a java.exe.
    I checked the documentation, and I couldn't find anything related to this particular issue, however I may have missed it.
    Can anyone provide me with any guidance please? Thanks.

    Resolved. There was a difference of permissions on the user's machine.

  • ODSI support for return type "PL/SQL TABLE"?

    Hello!
    We are trying to connect our ODSI to an Oracle function with return type "PL/SQL TABLE". The ODSI "wizard" (used to create the physical data service) seems to understand the interface during creation, but when executed it fails. The ODSI server complains about wrong type (PLS-00382: expression is of wrong type) when we execute it from the "test tab".
    The function's metadata is looks like this:
    <params xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xdt="http://www.w3.org/2004/07/xpath-datatypes" xmlns:pn1="ld:physical/rekondis/CALC_DEBITING" >
    <param name="RETURN_VALUE" kind="return" xqueryType="pn1:RETURN_VALUE_ROW" nativeTypeCode="1111" nativeType="PL/SQL TABLE"/>
    <param name="PIN_CASE_ID" kind="in" xqueryType="xs:decimal" nativeTypeCode="3" nativeType="NUMBER"/>
    <param name="PIN_ACTION_CODE" kind="in" xqueryType="xs:decimal" nativeTypeCode="3" nativeType="NUMBER"/>
    <param name="PI_AD_NAME" kind="in" xqueryType="xs:string" nativeTypeCode="12" nativeType="VARCHAR2"/>
    </params>
    Any ideas how we can make this work!? Or is this not even supported in ODSI 10.3?
    Thanks!
    // Mikael

    Please refer to the documentation - http://download.oracle.com/docs/cd/E13162_01/odsi/docs10gr3/datasrvc/Create%20Physical%20Data%20Services%20from%20Stored%20Procedures.html

  • HT2589 App updates asking for apple id with wrong apple id

    My husband is trying to update an app on his ipad and it is not only asking for apple I'd password, but it brings up my apple Id. We checked in setting and t shows his apple id. How can he update without signing in especially with my id.

    You should be prompted for the password for the account that originally bought/downloaded the app. Have you tried typing in your account's password when trying to download the update - you shouldn't need to go into Settings and log out of his account and in with yours.
    If it was definitely bought/downloaded with his account, then depending upon what the app is and whether it has any content in, then you could try deleting it and re-downloading it from his account.

  • Report for wage type with number, amount and amount per unit?

    Hi friends.
    I would like to know if there exits a report for wage type (like the PC00_M99_CWTR) that shows the number (anzhl), amount per unit (betpe) and the amount (betrg) of a person for a specific wage type.
    The standar report PC00_M99_CWTR does not display the amount per unit (betpe).
    Thanks in advance.
    Albio.-
    Edited by: Albio Manuel Vivas on Oct 20, 2011 6:13 PM

    Thanks,
    could you tell me what transaction i'll should use?
    thanks in advance
    Albio.-

  • Problem building schema for return type as custom object

    Hi i am invoking a web service through a partner link. But when i expand the invoke variables( in structure tab ), it shows Exception- Problem building schema.
    Response is of type java:Customer which is a custom object having mobile_no, name, compname.
    Error is--
    Invalid reference: 'java:customobjectproject:Customer'
    wsdl file:
    <?xml version='1.0' encoding='UTF-8'?>
    <definitions name="CustomerDetailServiceDefinitions" targetNamespace="http://customobjectproject" xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:s0="http://customobjectproject" xmlns:s1="http://schemas.xmlsoap.org/wsdl/soap/">
    <types>
    <xs:schema attributeFormDefault="unqualified" elementFormDefault="qualified" targetNamespace="http://customobjectproject" xmlns:s0="http://customobjectproject" xmlns:s1="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xs="http://www.w3.org/2001/XMLSchema">
    <xs:element name="getCustomer">
    <xs:complexType>
    <xs:sequence>
    <xs:element name="mobileNo" type="xs:int"/>
    <xs:element name="name" type="xs:string"/>
    <xs:element name="compName" type="xs:string"/>
    </xs:sequence>
    </xs:complexType>
    </xs:element>
    <xs:element name="getCustomerResponse">
    <xs:complexType>
    <xs:sequence>
    <xs:element name="return" type="java:Customer" xmlns:java="java:customobjectproject"/>
    </xs:sequence>
    </xs:complexType>
    </xs:element>
    </xs:schema>
    <xs:schema attributeFormDefault="unqualified" elementFormDefault="qualified" targetNamespace="java:customobjectproject" xmlns:s0="http://customobjectproject" xmlns:s1="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xs="http://www.w3.org/2001/XMLSchema">
    <xs:complexType name="Customer">
    <xs:sequence>
    <xs:element minOccurs="1" name="Mobile_no" nillable="false" type="xs:int"/>
    <xs:element minOccurs="1" name="Name" nillable="true" type="xs:string"/>
    <xs:element minOccurs="1" name="CompName" nillable="true" type="xs:string"/>
    </xs:sequence>
    </xs:complexType>
    </xs:schema>
    </types>
    <message name="getCustomer">
    <part element="s0:getCustomer" name="parameters"/>
    </message>
    <message name="getCustomerResponse">
    <part element="s0:getCustomerResponse" name="parameters"/>
    </message>
    <portType name="CustomerDetail">
    <operation name="getCustomer" parameterOrder="parameters">
    <input message="s0:getCustomer"/>
    <output message="s0:getCustomerResponse"/>
    </operation>
    </portType>
    <binding name="CustomerDetailServiceSoapBinding" type="s0:CustomerDetail">
    <s1:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
    <operation name="getCustomer">
    <s1:operation soapAction="" style="document"/>
    <input>
    <s1:body parts="parameters" use="literal"/>
    </input>
    <output>
    <s1:body parts="parameters" use="literal"/>
    </output>
    </operation>
    </binding>
    <service name="CustomerDetailService">
    <port binding="s0:CustomerDetailServiceSoapBinding" name="CustomerDetailSoapPort">
    <s1:address location="http://localhost:7030/CustomerDetail/CustomerDetail"/>
    </port>
    </service>
    </definitions>
    I am using jdeveloper 10.1.3.3.0. Please help..
    Thanks.

    Well, the problem is caused by the fact that BPEL does not yet support soapenc:Array types. We've created a workaround by defining two Services, one that has only single returntypes and one that has the multiple returntypes (which are defined using soapenc:Array). There are other solutions, but those are very complicated. Hope this helps!

  • Why asked for serial number with premiere cs6 on cloud?

    I keep getting asked for a serial number to launch premiere pro cs6 even though it is on cloud.
    where do I get that serial number or how do I go past this?
    thanks.

    This is a user to user forum, not Adobe support
    Adobe contact information - http://helpx.adobe.com/contact.html
    Adobe Activation Chat in #4 9-11-09 http://forums.adobe.com/thread/488108
    or
    Cloud Forum http://forums.adobe.com/community/creative_cloud
    or
    Forum for Download & Install & Setup problems
    http://forums.adobe.com/community/download_install_setup
    Chat http://www.adobe.com/support/download-install/supportinfo/
    -or http://www.adobe.com/support/chat/ivrchat.html

  • I'm being asked for a password with the following statement: The proxy moz-proxy://192.168.30.5:800 is requesting a username and password. The site says: "moz-proxy://192.168.30.5:800"

    Here's an example of what happens when I cancel the username and password request:
    ERROR: Cache Access Denied
    Sorry, you are not currently allowed to request:
    http://cben.net/?
    from this cache because your username and password are incorrect or your user group does not have permission to web browse. Please check your username and password. They are case sensitive so make sure Caps Lock is not on.
    This happens 100% of the time.

    I have the same problem. It ask for all elements that proxt detects ("NetworkError: 407 Proxy Authentication Required").
    Solution "No proxy" not works because i aslo require internet.
    I have version 10.0.2 on windwos XP, and this happens to me since I update it. On chrome and ie works without prompt.
    I upload and example, this page calls facebooks elements (i can't acces facebook) and others, for each element prompt proxy is shown.

Maybe you are looking for