0
我的问题是,我不知道如何将值从jInternalFrame传递给另一个。 当我在jInternalFrame1,我点击一个按钮,打开jInternalFrame2,在这一个我需要把一些值(字符串和整数),当我点击“确定”按钮jInternalFrame2我想显示值在我的jInternalFrame1中。 这是我打开jInternalFrame2我jInternalFrame1:使用netbeans将值从jInternalFrame传递到另一个jInternalFrame
private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) {
ConfigureHost ch = new ConfigureHost(); //ConfigureHost is my jInternalFrame2
jDesktopPane1.add(ch); //Yeah I have a DesktopPane on my jInternalFrame1
ch.setVisible(true);
任何人有一些想法?