Java swing GUI tutorial #19: BoxLayout

Поделиться
HTML-код
  • Опубликовано: 16 янв 2025

Комментарии • 22

  • @jochim65
    @jochim65 8 лет назад +1

    Very nice tutorial. Clear, easy-to-understand demonstration. Better than many tutorials I've been seeing. Will subcribe.

  • @sshookum
    @sshookum 8 лет назад +1

    very helpful thankyou! I love how you go through everything and explain what everything means without assuming that I know it.

  • @sviatoslavnaida89
    @sviatoslavnaida89 8 лет назад

    short and understandable tutorial... Great !!

  • @afifkhaja
    @afifkhaja 5 лет назад

    Thanks for this video. I was really struggling with this but you are video was very helpful

  • @OsvaldoMaria
    @OsvaldoMaria 10 лет назад

    great tutorial man you saved my life

  • @andreapaz4392
    @andreapaz4392 7 лет назад

    thank you so much!! very good and simple explanation

  • @EddieKMusic
    @EddieKMusic 11 лет назад

    Great tutorial.

  • @OverG88
    @OverG88  11 лет назад

    Thank you! MigLayout coming soon. :)

  • @saradjaroud971
    @saradjaroud971 7 лет назад +3

    How can I center my buttons??

    • @OverG88
      @OverG88  6 лет назад

      You probably want to use MigLayout. Combined with CardLayout, it solves pretty much everything.

  • @haffizbilal6687
    @haffizbilal6687 8 лет назад

    i want to work in it hub for great learning in silicon valley can any one help me

  • @haffizbilal6687
    @haffizbilal6687 8 лет назад

    in these days can java developer get us visa for job

  • @nutrinogirl456
    @nutrinogirl456 10 лет назад

    Thankss!! :D

  • @wertin200
    @wertin200 7 лет назад

    public BoxLayout(){
    panel.setLayout(new BoxLayout(panel,BoxLayout.PAGE_AXIS));
    }
    When i try to uses this code my IDE gives a error messages with the PAGE_AXIS because it can't find the symbol? But i have everything you have and extra.
    This is the full code:
    package boxlayout;
    import javax.swing.JButton;
    import javax.swing.JFrame;
    import javax.swing.JPanel;
    import javax.swing.SwingUtilities;
    public class BoxLayout {
    JFrame frame = new JFrame("BoxLayout");
    JPanel panel = new JPanel();
    JButton Button1 = new JButton("1"), Button2 = new JButton("2");
    public BoxLayout(){
    panel.setLayout(new BoxLayout(panel,BoxLayout.PAGE_AXIS));
    }
    public static void main(String[] args) {

    }
    }

    • @wertin200
      @wertin200 7 лет назад

      Hahaha i found the problem the name of the class is BoxLayout the same as BoxLayout so that cause the problem............ This truely a facepalm moment ........

  • @mrraptorious8090
    @mrraptorious8090 5 лет назад

    How bout just using a designer?

  • @trollerninja4356
    @trollerninja4356 7 лет назад

    It gives me multiple errors when i try to use boxlayout for my jframe...whats the problem??

  • @jaybartgis5148
    @jaybartgis5148 4 года назад +1

    Why does every single aspect of Java have to be such a massive pain in the ass?

  • @alantao3810
    @alantao3810 4 года назад

    disliked. add some commentary next time