guys can you help me to convert java application code to java midlet J2ME code using netbeans???

heres the java application code

import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import javax.swing.event.*;

////////////////////////////////////////////////////////////// class BMI
class BMI extends JFrame {
//=============================================== static method main
public static void main(String[] args) {
BMI window = new BMI();

//=============================================== instance variables
// Declare and initialize instance variables that are
// referred to when the program is running.
private JTextField _mField = new JTextField(4); // height
private JTextField _kgField = new JTextField(4); // weight
private JTextField _bmiField = new JTextField(4); // BMI

//================================================== ==== constructor
public BMI() {
//... Create button and add action listener.
JButton bmiButton = new JButton("Compute BMI");
bmiButton.addActionListener(new BMIListener());

//... Set layout and add components.
JPanel content = new JPanel();
content.setLayout(new FlowLayout());
content.add(new JLabel("Weight in kilograms"));
content.add(new JLabel("Height in meters"));
content.add(new JLabel("Your BMI is"));

//... Set the window characteristics.
setTitle("Body Mass Index");
pack(); // Do layout.
setLocationRelativeTo(null); // Center window.

//////////////////////////////////////////// inner class BMIListener
// Inner class is used to access components.
// BMI is converted to int to eliminate excess "accuracy".
private class BMIListener implements ActionListener {
public void actionPerformed(ActionEvent e) {
double kilograms = Double.parseDouble(_kgField.getText());
double meters = Double.parseDouble(_mField.getText());
int bmi = (int)computeBMI(kilograms, meters);
_bmiField.setText("" + bmi);

//=========================================== logic method computeBMI
public static double computeBMI(double weight, double height) {
return weight / (height * height);

please help me to convert this code to J2ME or mobility midlet

thank you guys!!!!