अगर मैं इस तरह MigLayout के साथ एक JTextArea का उपयोग करें:MigLayout JTextArea सिकुड़ नहीं है जब linewrap के साथ प्रयोग किया = सच
MigLayout thisLayout = new MigLayout("", "[][grow]", "[]20[]");
this.setLayout(thisLayout);
{
jLabel1 = new JLabel();
this.add(jLabel1, "cell 0 0");
jLabel1.setText("jLabel1");
}
{
jTextArea1 = new JTextArea();
this.add(jTextArea1, "cell 0 1 2 1,growx");
jTextArea1.setText("jTextArea1");
jTextArea1.setLineWrap(false);
}
तो JTextArea बढ़ता है और पूरी तरह से सिकुड़ता है जब विंडो का आकार बदलने। जब मैं लाइन को स्क्रैप करने के लिए सेट करता हूं तो जब मैं विंडो को फिर से छोटा करता हूं तो JTextArea कम नहीं हो रहा है। मैं किसी भी मदद की सराहना करता हूं। धन्यवाद
मार्सेल
एक सरल और तेजी से समाधान आप यहां प्राप्त कर सकते हैं! http://stackoverflow.com/a/7833439/2530822 – TotoliciCristian