0
スイングコンポーネント(つまりjTextArea)のアクセシビリティレベルを変更して、別のクラスでアクセスできるようにしたいのですが!私はnetBeansを使用していますが、それはそれが意味する視覚的な機能を持っていないようです!これは私が試してみましたが、私はそれはそれ以外の場合、このブロックは初期化子として扱われプライベートスイングコンポーネントをJavaで公開する方法
// VV
public JTextArea getRequestTextArea()
{
return requestTextArea;//Got error that says "initilizer must be to complete normally"
}
であるべきであり、あなたが内部の構文エラーを取得する私は
public class HttpHeadersFrame extends javax.swing.JFrame
{
/** Creates new form HttpHeadersFrame */
public HttpHeadersFrame()
{
initComponents();
}
public JTextArea getRequestTextArea
{
return requestTextArea;//Got error that says "initilizer must be to complete normally"
}
// Variables declaration - do not modify
private javax.swing.JTextArea requestTextArea;
private javax.swing.JTextArea responseTextArea;
私はあまりにも魅力的です! – Xris