回帖︰個class名係JTextField
String s = textField.getText();
呢個得左thx~~
========================
private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {
URL link;
link = new URL("http://humanum.arts.cuhk.edu.hk/Lexis/lexi-can/sound/ngo5.wav");
WavePlayer p = new WavePlayer( link.openStream() );
p.play();
}
========================
呢度唔得....