Multiple Users Login ( Help With The Code ) Please.

Hi all. Please help me...
I'm using www.wix.com to create my websites.
but since Wix.com don't able us to have member system conecet to database, i use Flash SWF As3 files...
Please can anyone help me with the Code?
Username=1    /Password= 1    /Url= www.1.com
Username=2    /Password= 2    /Url= www.2.com
Username=2    /Password= 2    /Url= www.2.com
*If user name 1 or 2 or 3 correct. Show massage ex: Welcome back, if not correct " Bad login"
*When login, it will open the url but in new page after the old one closed.
+ There is anyway to add " Password recovaring box too"?
but not connected to datdabase as i said?
Please help me, please! i areadly have code but it don't work for more than one user.
Thank u soooo much!!
Loai

Here's the code i have already,,
but i don't know how to add more than one user + when login it open new window ( popup ) i want it to open in the same window...
Please help.
stop();
//hide the password
//pass_txt.displayAsPassword = true;
//adding event listener to the login button
login_mc.addEventListener(MouseEvent.CLICK, loginUser);
function loginUser(e:MouseEvent):void{
//if both username and password are correct let the user logged in
if(name_txt.text == "1" && pass_txt.text == "1"){
navigateToURL( new URLRequest( "http://www.wix.com/designersgroup/tutorials/9-1" ), "_blank" );
display_txt.text = "Going to secure area";
else if(name_txt.text != "1" && pass_txt.text != "1"){
display_txt.text = "Login failed!";
if(name_txt.text == "2" && pass_txt.text == "2"){
navigateToURL( new URLRequest( "http://www.wix.com/designersgroup/tutorials/9-2" ), "_blank" );
display_txt.text = "Going to secure area";
else if(name_txt.text != "2" && pass_txt.text != "2"){
display_txt.text = "Login failed!";

Similar Messages

  • Can you help with the code to publish Flash to my own domain.

    Thank you for your help, I publish the my site to my own domain, I do not use .Mac, I tested your code and ity works well on .Mac, can you help with the code to publish to my own domain.
    Thank you again

    You appear to have just collected a variety of code snippets and thrown them together, including a section of AS2 code ( gage.onRelease = function() {... )
    The suggestion I offered yesterday still stands.  You should find a tutorial regarding AS3 and the atan2 function.  Beyond that, what you show suggests this is a school assignment.  You should seek help from your fellow students and instructor if that is the case.

  • Multiple user login problem with ADF

    Hi All,
    I am using Jdev 11g. I have an ADF application which is running inside JDev enbedded WLS. I implemented "Authentication Only" security into the application and created a few users. If I try to login/logout/re-login with individual user, all of users work perfectly. However, when I have one user already logged in, I open another browser and try to login with another user (or the same user), I always get an "Error 403--Forbidden" error. Basically I have an application which can only work for one user at one time. Does anyone know how to fix this problem so that I can have multiple users logged in at the same time?
    Thank you very much in advance,
    John

    Chris,
    Thank you for your response.
    I am using Firefox version 2.0.0.20. When I add the security component into my ADF application, I just take whatever it has by default without any customization. That includes default login.html and error.html. Here is my experience,
    1) Execute my starting task flow activity inside the JDeveloper. This will invoke a new login page in my default browser Firefox.
    2) Login the application with user "abc" and do something. Keep this session open.
    3) Open another Firefox browser and enter login URL. and then Login the application with user "xyz" (or even "abc"). I got the error page.
    To me, it should be basic web application behavior. I can do things like this in other J2EE application. This one doesn't make sense at all. I am not sure if this is the behavior I would see when I deploy it to a standalone WLS.
    Any ideas?
    Thanks,
    John

  • Help with button code please?

    I am a novice and have just completed my first animated movie. I need help with action script.
    The movie is currently looped and I have created and invisible button the size of the frame with the intention that a user can click on the movie image to stop it and on second click continue the movie from where it stopped.
    I have used the AS event handler method to stop the movie. I have tested it and it works. But I cannot figure suitable code to restart the movie.
    Two questions;
    1. am I going about the task the right way? (should I use two buttons, one stop, one start)?
    2. if my approach is feasible, can anyone give me the correct AS to re-start the movie and put me out of my misery please?

    you can use the following after changing "yourbutton" and "yourmovieclip" to use suitable instance names:
    yourbutton.onRelease=function(){
    if(!this.toggle){
    yourmovieclip.stop();
    } else {
    yourmovieclip.play();
    this.toggle=!this.toggle;

  • How can I get Firefox to run on a network with multiple users logging on with the same user name and password?

    I am trying to get Firefox running on a large network where I have multiple users that log on with the same user name and password. The problem is that when another user logs on to another computer the message comes up that their is already an instance of firefox running on that computer even though there really isn't. Only one instance can be run on the network at one time. I believe it is because firefox stores a shared profile as it thinks it is actually the same user even though it is being run on another computer. I repeat that each user that logs on uses the same user name and password but on different computers.

    I am trying to get Firefox running on a large network where I have multiple users that log on with the same user name and password. The problem is that when another user logs on to another computer the message comes up that their is already an instance of firefox running on that computer even though there really isn't. Only one instance can be run on the network at one time. I believe it is because firefox stores a shared profile as it thinks it is actually the same user even though it is being run on another computer. I repeat that each user that logs on uses the same user name and password but on different computers.

  • Help with the wireless, please.

    I am not having a problem with the iPod's wireless, because it seems to work fine at my friend's house on his unprotected wireless.
    The problem is my secured, with a WEP key, internet.
    It worked for a little while, but after a month it decided to not work. It connects when the network isn't secured, so I know it's an issue with the WEP key. I want to change my security to a WPA key, and I use an Actiontec GT701-WG Wireless router/gateway. I went to change the security to WPA, but it asks for a whole slew of things I don't know. As anybody ever setup a network with this type of router, and if yes, please tel me how to setup a WPA key!
    Thanks in advance for any help.

    Oh, and just in case this information is useful, my iPod can connect to the network, password and SSID are accepted. The little "wi-fi" icon appears at the top with a full signal.

  • I would need help with the following please: I need to save some of my email on a disk. I was going to Print, then Save PDF but then I am stuck. Help please. Thanks. Elisabeth

    I would need help with saving some eamil messages to a disk to unclutter my email. How can I do this please?
    Thanks.
    Elisabeth

    Open the email and then from the File menu select Save As Rich Text Format. That'll save it to open in TextEdit. If you want a pdf then open the email and do command-p (Print) and then from the PDF drop down box lower left corner select Save as PDF.

  • Can you help with the coding please? I am trying to create a moveable pin by clicking and dragging.

    import mx.transitions.Tween;
    import mx.transitions.easing.*;
    /* Mouse Click Event
    Clicking on the specified symbol instance executes a function in which you can add your own custom code.
    Instructions:
    1. Add your custom code on a new line after the line that says "// Start your custom code" below.
    The code will execute when the symbol instance is clicked.
    gage.addEventListener(MouseEvent.CLICK, fl_MouseClickHandler);
    function fl_MouseClickHandler(event:MouseEvent):void
    // Start your custom code
    // This example code displays the words "Mouse clicked" in the Output panel.
    trace("Mouse clicked");
    // End your custom code
    function rotation(350, 182) {
       return Math.atan2(dy, dx) * 180/Math.PI;
    gage.onRelease = function() {
       var newAngle:Number = rotation(_xmouse-this._x, _ymouse-this._y);
       var dist:Number = Math.abs(newAngle - this._rotation);
       this._rotation %= 360;
       if(dist > 180)     {
          if(newAngle > this._rotation) {
             newAngle -= 180;
          } else {
             newAngle += 180;
       new Tween(this, "_rotation", Strong.easeOut, this._rotation, newAngle, 1, true);

    You appear to have just collected a variety of code snippets and thrown them together, including a section of AS2 code ( gage.onRelease = function() {... )
    The suggestion I offered yesterday still stands.  You should find a tutorial regarding AS3 and the atan2 function.  Beyond that, what you show suggests this is a school assignment.  You should seek help from your fellow students and instructor if that is the case.

  • James help with the code

    ok, i tried putting the code right after the first <body and it still came down there in the same spot... the only thing that seemed to change was adding <center>to the beginning even then it was down..... if you can view source on my page www.gameinfocenter.com the h ome page ma b you mite know exactly where to put it....

    The only thing you can do by simple pasting is to have the banner centered at the bottom of the screen.
    For any other location, you will have to do a little bit more work to specify exactly where on the page you want the banner to show up. Here's a write up that I did a while back. It's pretty straightforward...
    Adding HTML to iWeb pages

  • Little help with the G5 please!

    I have had my 5G ipod for a while now, and have had very few problems.
    Recently, I charged my ipod as usual and unplugged it the next morning to a full battery picture across the entire screen. I could not shut off the ipod. I tried all of the normal tricks and tried connecting it to my computer, but no matter what I do/did the ipod still shows a full battery icon. It died after a few hours, so I tried charging it again. Even during charging it showed the full battery icon.
    Is there something wrong with the ipod or did I do something wrong?

    try doing what i call RCDC.
    RCDC (Restore, Charge, Drain, Charge)
    1) RESTORE your iPod
    2) CHARGE your iPod
    3) DRAIN your iPod (to do this play you music while you sleep)
    4)re-CHARGE your iPod
    Doing so should re-calibrate your battery. This should work.
    Prof.
    MacBook 2.16GHz 1GB RAM 120GB   Mac OS X (10.4.10)   30GB White iPod w/ Video Gen. 5///4GB iPod nano Product (RED)

  • Ajax - Multiple Values - Help with the code

    Hi all,
    My code is probably wrong, though, I don't know where the problem is. I'm not that good with programming and copied the example from oracle.com and modified it... I hope you guys can help me. Here is what I have:
    A select list: P4_DOBJ1_NR (The user selects something from DOBJ_NR from the table dataobject)
    A display as text item: P4_NAMSP1
    Another display as text item: P4_DOBJ_NAME1
    Here my code:
    HTML Header Setting for my select list-attribut:
    onchange="javascript:getDOBJ1Info(this);"
    The HTML header from my page:
    <script type="text/javascript">
    function getDOBJ1Info(filter)
    var xml = null;
    var get = new htmldb_Get(null,$v('pFlowId'), 'APPLICATION_PROCESS=GETDOBJ1Info',0);
    get.add('GOBJ1NO', filter.value);
    ret = get.get('XML');
    if(ret)
    var oneItems = ret.getElementsByTagName("NAMSP");
    if (oneItems)
    var onedisplay = document.getElementById("P4_NAMSP1");
    onedisplay.innerHTML = oneItems[0].getAttribute("VALUE");
    var twoItems = ret.getElementsByTagName("DOBJ_NAME");
    if (twoItems)
    var twodisplay = document.getElementById("P4_DOBJ_NAME1");
    twodisplay.innerHTML = twoItems[0].getAttribute("VALUE");
    get = null;
    </script>
    An application item, called: GOBJ1NO
    And the Application Process:
    DECLARE
    vONE VARCHAR2(100);
    vTWO VARCHAR2(100);
    BEGIN
    owa_util.mime_header('text/xml', FALSE );
    htp.p('Cache-Control: no-cache');
    htp.p('Pragma: no-cache');
    owa_util.http_header_close;
    htp.prn('<DATA>');
    SELECT NAMSP, DOBJ_NAME INTO vONE, vTWO FROM DATAOBJECT WHERE DOBJ_NR = :GOBJ1NO;
    htp.prn('<ONE VALUE="' || vONE || '"></ONE>');
    htp.prn('<TWO VALUE="' || vTWO || '"></TWO>');
    htp.prn('</DATA>');
    EXCEPTION WHEN OTHERS THEN
    htp.prn('<ONE VALUE="Error"></ONE>');
    htp.prn('<TWO VALUE="Error"></TWO>');
    END;

    Your process returns a XML document with structure
    <DATA>
       <ONE> value one </ONE>
       <TWO> value two </TWO>
    </DATA>but you are trying to retrieve element named "NAMSP"
    so try to chang it to :
    var oneItems = ret.getElementsByTagName("ONE");You will find fantastic examples on Denes Kubicek web site:
    Try this url:
    http://apex.oracle.com/pls/otn/f?p=31517:106:1074750275898234::NO
    HTH
    Thomas

  • Need help with the code...

    The program should accept two inputs from user in form of military time for example (1245). Then it should calculate and display the difference.
    For some reason it displays 0's...
    Please help.
    Thanks.
    public class TimeInterval
    private int firstHour;
    private int firstMin;
    private int secondHour;
    private int secondMin;
    //Constructor
    public TimeInterval(String first, String second)
    String h1 = first.substring(0,1);
    int h2 = Integer.parseInt(h1);
    firstHour = h2;
    //firstHour = Integer.parseInt(first.substring(0,1));
    String m1 = second.substring(2,3);
    int m2 = Integer.parseInt(m1);
    firstMin = m2;
    //firstMin = Integer.parseInt(second.substring(2,3));
    String hh1 = first.substring(0,1);
    int hh2 = Integer.parseInt(hh1);
    secondHour = hh2;
    //secondHour = Integer.parseInt(first.substring(0,1));
    String mm1 = second.substring(2,3);
    int mm2 = Integer.parseInt(mm1);
    secondMin = mm2;
    //secondMin = Integer.parseInt(second.substring(2,3));
    //Methods
    public int getHours()
    int HourDifference = secondHour - firstHour;
    return HourDifference;
    public int getMinutes()
    int MinutesDifference = secondMin - firstMin;
    return MinutesDifference;
    import java.util.Scanner;
    public class TimeIntervalTest
    public static void main(String[] args)
    Scanner scanner = new Scanner(System.in);
    System.out.print("Enter the First time now:");
    String hr = scanner.next();
    System.out.print("Enter the Second time now:");
    String mn = scanner.next();
    System.out.println(hr);
    System.out.println(mn);
    TimeInterval timeDifference = new TimeInterval(hr, mn);
    System.out.println(timeDifference.getHours());
    System.out.println(timeDifference.getMinutes());
    }

    I can't say I understand your code, but for a starter, I think you are misunderstanding method substring:
    public class StringExample {
        public static void main(String[] args) {
            String first = "2345";
            String h1 = first.substring(0,1);
            System.out.println(h1);
    }

  • Help with error code, please.

    I have compiled a small AS3 script of a bouncing basketball with sound - the volume of the sound  decreasing as the bounces get smaller.
    I have obviously not done something correctly in the way I have installed the sound because I get this error message " 1180: Call to possibly undefined method bounce2 "( bounce2 is the mp3 file). Without the sound the ball bounces perfectly - it is the sound that has killed it. I am a newbie  and am trying to learn AS3 the hard way - by experience  but am stumped here - can some one help, please?   Below is my script.
    // create a ball sprite
    import flash.media.Sound;
    var initialrotationSpeed=12;
    var rotationSpeed : Number;
    var initialxVel : Number=8;
    var stage_width : Number=750;
    ball_mc.x=80;
    ball_mc.y=360;
    //setup position and velocity variables
    var xPos : Number=ball_mc.x;
    var yPos : Number=ball_mc.y;
    var xVel : Number;
    var yVel : Number=0.5;
    var grav ; Number=1;
    var vol : Number=1;
    var snd : Sound=new bounce2();
    snd.play();
    addEventListener(Event.ENTER_FRAME,onLoop,false,0,true);
    function onLoop(evt:Event) : void {
    if(ball_mc.x/stage_width));
    xVel=initialxVel*(1-(ball_mc.x/stage_width));
    yVel+=grav;
    xPos+=xVel;
    yPos+=yVel;
    if(Math.abs(yPos-560)<1&&Math.abs(yVel)<1)
    remove EventListener(Event.ENTER_FRAME,onLoop);
    else if(yPos>560){
    yPos=560;
    yVel*= -.8;
    xVel*= .8;
    vol- =0.1;
    snd.play(0,0,newSoundTransform(vol));
    ball_mc.x=xPos;
    ball_mc.y=yPos;
    if(ball_mc.xstage.stageWidth-ball_mc.width/4||ball_mc.x<0+ball_mc.width/4){
    xVel*= -1;
    addEventListener(Event.ENTER_FRAME,Rotation);
    function Rotation(event:Event):void {
    if(ball_mc.x/stage_width<1)
    ball_mc.rotation+=initialrotationSpeed*(1-ball_mc.x/stage_width);
    if(ball_mc.x<700)
    xVel=initialxVel*(1-(ball_mc.x/stage_width));
    ball_mc.x+=xVel;
    else
    removeEventListener(Event.ENTER_FRAME,Rotation);

    Thank you - that was it - "class" - or lack of .
    I am most appreciative of your assistance
    regards

  • Help with the code

    Hi all,
    i have records like in internal table itab
    id      amount
    101  1  1.00
    101  2  2.00
    102  1  1.00
    102  2  2.50
    102  3  3.00
    103  2  1.50
    i want the output like like this internal table itab1
    101  3.00
    102  6.50
    103  1.50
      clear : wa_zoritem ,price.
    total= 0.00
    loop at itab into wa_itab.
    on change of wa_itab1-id.
    clear total.
    total= total + wa_itab1-amount.
    wa_itab1-id   = wa_itab_copy-id.
    wa_itab1-total= wa_itab_copy-total.
    append wa_itab1 to itab1.
    endon.
    *MODIFY TABLE i_FINAL FROM wa_FINAL
                     TRANSPORTING COST.
    *MODIFY  wa_final to i_final.
    wa_itab_copy = wa_itab.
    clear : wa_itab.
    endloop.
    This works fine when i have multiple records
    but this doesn't work when i have the follwwing record in itab
    id      amount
    101  1  1.00
    Thanks

    hi,
    *suppose the data is avialble in the internal table ITAB.
    [code]
    sort ITAB by ID amount.
    delete adjacent duplicates from ITAB comparing ID.
    *Now thw ITAB conatins only the records.
    *101 3.00
    *102 6.50
    *103 1.50[/code]
    Regards
    Reshma

  • Help with my code, please?

    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.* ;
    import BreezySwing.*;
    import java.io.*;
    import TerminalIO.*;
    import java.lang.*;
    import java.util.*;
    import java.io.Serializable;
    public class FitnessCalculator extends GBFrame {
      private JTextField BMITextField, BMI2TextField, BPTextField,
    BP2TextField;
      private JLabel weightLabel, heightLabel, SystolicLabel, DiastolicLabel;
      private JMenuItem BMI, Bp;
      String BodyMassIndex, BloodPressure = "";
      int Systolic, Diastolic, weight, height;
      private JButton BodyMassCalculator, BloodPressureCalculator;
      Integer weightHeight = weight + height;
      public FitnessCalculator( ){
          setSize(400,500);
          setLocation(200,200);
          JMenu calculators = new JMenu("Calculators");
          calculators.setMnemonic(KeyEvent.VK_U);
          JMenu BP = new JMenu("BloodPressure");
          JMenuItem BPItem = new JMenuItem("BloodPressure");
          BPItem.addActionListener(new ActionListener(){
              public void actionPerformed(ActionEvent e) {
                  FitnessCalculator bmiWindow = new
    FitnessCalculator("BloodPressure");
              bmiWindow.setSize(400,400);
              bmiWindow.setVisible(true);
          JMenu BMI = new JMenu("BMI");
          JMenuItem BMIItem = new JMenuItem("BMI");
          BMIItem.addActionListener(new ActionListener(){
              public void actionPerformed(ActionEvent e) {
                  FitnessCalculator bmiWindow = new FitnessCalculator("BMI");
              bmiWindow.setSize(400,400);
              bmiWindow.setVisible(true);
          calculators.add(BMIItem);
          calculators.add(BPItem);
          calculators.addSeparator();
          JMenu Quit = new JMenu("Quit");
          JMenuItem quitItem = new JMenuItem("Quit");
          quitItem.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_Q,
           Event.CTRL_MASK));
          quitItem.addActionListener(new ActionListener(){
              public void actionPerformed(ActionEvent e) {
                  System.exit(0);
          calculators.add(quitItem);
          JMenuBar menuBar = new JMenuBar();
          menuBar.add(calculators);
          setJMenuBar(menuBar);
      public FitnessCalculator(String blah){
          BodyMassIndex();
      public void BodyMassIndex(){
           JMenu calculators = new JMenu("Calculators");
          calculators.setMnemonic(KeyEvent.VK_U);
          calculators.add(new JMenuItem("BMI"));
          calculators.add(new JMenuItem("BodyFat"));
          calculators.add(new JMenuItem("BloodPressure"));
          calculators.addSeparator();
          if ( weight == 0){
                BMI2TextField.setText("Noob");
               }else{
                  if( BMI < 18.5){
                      BMI2TextField.setText("UnderWeight");
                  }else{
                   if( BMI >= 18.5 && BMI <= 24.9){
                      BMI2TextField.setText("Normal");
                  }else{
                  if( BMI >= 25 && BMI <= 29.9){
                      BMI2TextField.setText("Overweight");
                  }else{
                  if( BMI > 30){
                      BMI2TextField.setText("Obese");
                  }else{
             BMI2TextField.setText("Your BMI is :" + BMI);
       public void BloodPressure(){
           JMenu calculators = new JMenu("Calculators");
          calculators.setMnemonic(KeyEvent.VK_U);
          calculators.add(new JMenuItem("BMI"));
          calculators.add(new JMenuItem("BodyFat"));
          calculators.add(new JMenuItem("BloodPressure"));
          calculators.addSeparator();
      public String setText(String t){
          return t;
       public Integer getNumber(){
               return weightHeight;
           public void BodyMassIndexCalculator(){
           Integer BMI = (weight / (height * height) * 703);
            weightHeight = weight + height;
            weightLabel = weightLabel;
            heightLabel = heightLabel;
            if ( weight == 0){
                BMI2TextField.setText("Noob");
               }else{
                  if( BMI < 18.5){
                      BMI2TextField.setText("UnderWeight");
                  }else{
                   if( BMI >= 18.5 && BMI <= 24.9){
                      BMI2TextField.setText("Normal");
                  }else{
                  if( BMI >= 25 && BMI <= 29.9){
                      BMI2TextField.setText("Overweight");
                  }else{
                  if( BMI > 30){
                      BMI2TextField.setText("Obese");
                  }else{
             BMI2TextField.setText("Your BMI is :" + BMI);
            //BMI.setText(BMI);
              public void BloodPressureCalculator(){
           SystolicLabel = SystolicLabel;
           DiastolicLabel = DiastolicLabel;
              //BloodPressure.setText(BloodPressure);
      public void buttonClicked(JButton buttonObj){
        if ( buttonObj == BodyMassCalculator){
               double BMI = weightHeight;
            if ( weight == 0){
                BMI2TextField.setText("Noob");
               }else{
                  if( BMI < 18.5){
                      BMI2TextField.setText("UnderWeight");
                  }else{
                   if( BMI >= 18.5 && BMI <= 24.9){
                      BMI2TextField.setText("Normal");
                  }else{
                  if( BMI >= 25 && BMI <= 29.9){
                      BMI2TextField.setText("Overweight");
                  }else{
                  if( BMI > 30){
                      BMI2TextField.setText("Obese");
                  }else{
             BMI2TextField.setText("Your BMI is :" + BMI);
           if ( buttonObj == BloodPressureCalculator){
               //Integer Systolic = Systolic.getNumber();
               //Integer Diastolic = Diastolic.getNumber();
                   BP2TextField.setText("Liar");
               }else{
                   if( Systolic < 120 && Systolic > 80){
                       BP2TextField.setText("Normal");
                   }else{
                       if( Systolic > 120 && Systolic < 139){
                           BP2TextField.setText("PreHypertension");
                       }else{
                           //BP2TextField.setText("Your Bloodpressure is : ") +
    BloodPressure);
      public JMenuItem add(JMenuItem ob){
          if ( ob == BMI){
              FitnessCalculator bmiWindow = new FitnessCalculator("BMI");
              bmiWindow.setSize(400,400);
              bmiWindow.setVisible(true);
              this.setVisible(true);
          if ( ob == Bp){
              BloodPressure();
              this.setVisible(false);
          return Bp;
      public static void main(String[] args) {
      JFrame f = new FitnessCalculator(  );
      f.addWindowListener(new WindowAdapter(  ) {
        public void windowClosing(WindowEvent we) { System.exit (0); }
      f.setVisible(true);
    }When I compile it, it will show up like I want it to. But when I click the menu and go down to the calculator I want to pop up, only the window pops up. There's nothing in it. How would I take the input from the user and tell the user if they are overweight or not?
      if ( weight == 0){
                BMI2TextField.setText("Noob");
               }else{
                  if( BMI < 18.5){
                      BMI2TextField.setText("UnderWeight");
                  }else{
                   if( BMI >= 18.5 && BMI <= 24.9){
                      BMI2TextField.setText("Normal");
                  }else{
                  if( BMI >= 25 && BMI <= 29.9){
                      BMI2TextField.setText("Overweight");
                  }else{
                  if( BMI > 30){
                      BMI2TextField.setText("Obese");
                  }else{
             BMI2TextField.setText("Your BMI is :" + BMI);
    }I thought it was that, but when I open the calculator nothing shows up in the window. What do I need to do to take input from the user and output the needed info from the above text?

    What do I need to put BMI as? I don't know if having it as a MenuItem is working.
    When I compile it, it will show up like I want it to.???
    If you didn't understand, I meant that it compiles and opens a GUI window. Just a blank window with a Menu Bar. With two calculators that drop down. When I click the BodyMassIndex one a new GUI window opens up. But nothing is in it. How do I get the user to input the information and output the result of it? This is really confusing me.

Maybe you are looking for

  • I-Tunes freezes every time I open it

    I just bought the update for 2.0 for my iPod touch. It works great initially until I plug it into my laptop (which has been running 7.7 for a week or so fine). Itunes opened and then immediatly freezed and was not responding. I tried to install 7.7 o

  • Mail Accounts Shortcut no longer working in Lion

    In Snow Leopard I heavily relied on some custom shortcuts for switching between my different email accounts when sending mail as outlined in this site: http://hints.macworld.com/article.php?story=20081120093222315 . Then I upgraded to Lion and much t

  • Important bug........

    Hi.I'm using WLS 5.1 with sp 6, NT system. I have a servlet where I use HttpSession to store attributes (EJB). This attributes are recuperated in a jsp page. This behavior is correct........ The problem starts when I establish permissions in my custo

  • Why:current thread not owner?

    Here is my class: public class TestThread extends Thread {     /* (non-Javadoc)      * @see java.lang.Thread#run()     @Override     public void run() {         System.out.println("begin");         Test.check();         System.out.println("end"); pub

  • Compatibility, print

    Hello, I'm using Oracle 8i client on Windows NT (Release 3 (8.1.7), Part No. A85305-01) I would like to print to a file with parser.getDocumentElement()->print() It doesn't work, printing to a stream parser.getDocumentElement()->print(xmlBuff,1024,0,