Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p><code>If someone can help me, leave a comment below please!</code> </p> <ul> <li><p>why please you are you going to smash with your head wall, <code>JScrollPane</code> is designated for Dynamic, Resizable <code>LayoutManager</code>, <code>AbsoluteLayout</code> can broken this its basic properties</p></li> <li><p>starting from top</p> <ol> <li><p><code>public class app extends JFrame {</code></p> <ul> <li><code>public class App {</code> ---> Java Naming Conventions</li> <li>and not extends anything, create <code>JFrame</code> as local variable</li> </ul></li> <li><p><code>new app();</code> ---> se Oracle tutorial Initial Thread</p></li> <li><p>create another <code>JPanel</code>, put there <code>JTextField</code> and <code>JButton</code> </p></li> <li><p>did you overlay something <code>tf1.setBounds(5,5,this.getWidth()-120,20);</code></p></li> <li><p><code>NullLayout</code> doesn't works correctly without using <code>Insets</code></p></li> <li><p>change built_in <code>FlowLayout</code> for <code>JPanel painel = new JPanel(null);</code> to <code>BorderLayout</code>, there put <code>JScrollPane</code> with <code>JTextArea</code> to <code>CENTER area</code></p></li> <li><p>you can to put <code>JScrollPane</code> with <code>JTextArea</code> to <code>JFrames CENTER area</code> directly and another <code>JPanel</code> with <code>JTextField</code> and <code>JButton</code> to <code>SOUTH</code> or <code>NORTH</code>, <code>JFrame</code> has <code>BorderLayout</code> implemented in API</p></li> <li><p><code>JScrollPane</code> showing <code>JScrollbars</code> only in the case that its <code>Dimension</code> is smaller than <code>JComponent</code> placed there</p></li> <li><p>use <code>JFrame.pack()</code> instead of <code>setSize</code>, this line should be before <code>setVisible</code></p></li> </ol></li> </ul>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload