السلام عليكم
كيف يمكن تحويل ارقام من نوع double يتم ادخالها في TextField الى مصفوفة من نوع double
لانه من المعروف ان TextField يستقبل فقط حروف نصيه
لقد جربت الكود الاني لكن لم افلح.
ActionListener txt = new ActionListener() {
public void actionPerformed(ActionEvent e) {
String s = intBox1.getText();
double data_array [] = Double.parseDouble("s");
}
};
intBox1.addActionListener(txt);والسلام