Learn Java Tutorial 1.33- GridBagLayout and GridBagConstraint

  Рет қаралды 57,169

mybringback

mybringback

Күн бұрын

In this Java tutorial we'll learn how to organize our component (buttons, checkboxes, etc) within our panel. There are a few different organization Layouts we can use, but in this tutorial we will learn about gridbaglayout and gridbagconstraint. Welp, that should cover it ya grid bags.
Source code | Additional Info for this tutorial: bit.ly/16zvxeU
Hit us up on G+, facebook, or twitter!
Follow us!
-------------
Google +: bit.ly/1b6FeRV
Facebook: on. 11sX40j
Twitter: bit.ly/ZuuI4Y
-------------
Jake's G+ = bit.ly/14yuNTD
Travis's G+ = bit.ly/11iPctT
------------
Donate: bit.ly/110go1C .
Visit Our Friends @ Stone River E-Learning for Additional Tutorials - bit.ly/1fjsXTn
Coupon 20% Off HTML & CSS for Beginners - bit.ly/1MmuYfw

Пікірлер: 47
@RatherBAnon
@RatherBAnon 11 жыл бұрын
I think the reason I like these tutorials above all others on the Java subject, is because each video feels like it covers an element. I don't have to have watched the 32 first tutorials to understand what's going on in this one. That's unique, and I like it. Thanks a lot!
@BashkimUkshini
@BashkimUkshini 10 жыл бұрын
I watched tutorials from every possible guy about this, and believe me or not, this is the best tutorials ever made for what I was searching! THANK YOU THANK YOU THANK YOUUUUUUUUUUU !!!
@xXBR4D3NXx
@xXBR4D3NXx 11 жыл бұрын
So far I've been able to skip around these tutorials without getting lost, very nice mayn.
@jjemknox
@jjemknox 13 жыл бұрын
Thanks for the GUI Tutorials! You have simplified it very well. Most of the time it is made so complicated you can't figure out what you are actually doing and what goes with what.
@ForestSkies
@ForestSkies 12 жыл бұрын
Wow, I'm in Highschool and as far as I know it's the same for me, and props to you for being so young.Ten, was it?Very impressive!
@opikse
@opikse 11 жыл бұрын
wow thank you for this good tutorial. I had used gridbagconstraints before but never knew how to use insert. Less more did I knew that you could put what type of layout you'll want to use like a parameter. I always thought that the panel object was lazy so I unfortunately fired the him :/ But today mr.Panel is warmly welcomed ;)
@dawoodchaudary8736
@dawoodchaudary8736 6 жыл бұрын
Thank you so much i was having really bad time learning what layout does what in swing because i always worked with null layout and set bounds positioning this video is treasure
@sikandernawaz
@sikandernawaz 12 жыл бұрын
Sir you made it so simple to handle layouts , i have done a calculator interface design just after watching this video,,,,
@yodudeanson
@yodudeanson 12 жыл бұрын
Thankyou Travis for all yr help..yr a good teacher!
@toxicitysocks
@toxicitysocks 13 жыл бұрын
Every tutorial helps me! Thanks!
@AltF4Moments
@AltF4Moments 11 жыл бұрын
Awesome Tutorials!
@prakanshuray7595
@prakanshuray7595 11 жыл бұрын
Awesome Man ,really enjoyed that one,subscribed your channel!!!
@SuperZilas
@SuperZilas 11 жыл бұрын
very clear, well done, thank you. I like em simple with little jibber jabber
@DustanWebb
@DustanWebb 13 жыл бұрын
Awesome Work keep it up and thanks for your hard work
@Olavbakke98
@Olavbakke98 12 жыл бұрын
I've got a problem with it... I've got two JLabels and one JButton lined up at 00,11,22 but they all show up in a perfect line!
@vmishev
@vmishev 10 жыл бұрын
I love the way you explain, man ;)
@jordannewman3972
@jordannewman3972 10 жыл бұрын
TRAVIS YOUR THE BEST, btw make more tutorial. plz *_*
@joshloschen1653
@joshloschen1653 12 жыл бұрын
how come when you do gbc.insets = new Insets.... the first insets isn't capitalized but the second one is? I didn't think java would allow that?
@MrJamyvideo
@MrJamyvideo 10 жыл бұрын
very funny way to explain , i like it :)
@Senoy05
@Senoy05 12 жыл бұрын
Thanks, this helped me a lot!
@flatspotgames
@flatspotgames 9 жыл бұрын
your vids really helping out, thanks
@valen8560
@valen8560 11 жыл бұрын
can you tell me which Font you are using?
@FranMcOd
@FranMcOd 10 жыл бұрын
how can i put a label in the left top corner?
@erdinc2727
@erdinc2727 10 жыл бұрын
thanks for tutorials. i want to know how i could align all elements(JLabel, JTextField, JTextArea) most left side of Center Panel(p3 in this situation) ?
@ShaharHarshuv
@ShaharHarshuv 8 жыл бұрын
it's not that comfortable that you need to reasign the "gridx" and "gridy" values" every time you add a new object to the panel. is there a more comfortable way to it? for example - giving the coordinates as parameters to the "add" function.
@kornelijekovac9793
@kornelijekovac9793 8 жыл бұрын
Exactly panel1.add(button1, gbc(5,3)); would make much more sense.
@surajgenius
@surajgenius 13 жыл бұрын
thanks dude!!!
@thenerdtroops
@thenerdtroops 12 жыл бұрын
cool. im the only one who does java in my whole school im still at primary lol works though thanks
@physicsimpossible73
@physicsimpossible73 10 жыл бұрын
This is the only video I have watched on your series as I needed a tutorial on the GridBagLayout as I have a problem and it is still not solved. When I change the gridx and gridy coordinates, it does not seem to change the position of the component on the panel... Does anybody know why this is? Please help me I have been trying to solve this for ages :(
@KaizerKilborn
@KaizerKilborn 10 жыл бұрын
I can't even import it. It doesn't exist in my library :/
@iCrakken
@iCrakken 10 жыл бұрын
I know it's been 8 month but just to let anyone know that when asking for coding help you should always post the part of the code that you're having problem with.
@ih779
@ih779 10 жыл бұрын
How do you make objects appear on the left side of the window? when you put zero on the 'x' its still appears for some reason in the middle of the window.. thanks
@iCrakken
@iCrakken 10 жыл бұрын
Because it's centered. Try doing BorderLayout.WEST instead of BorderLayout.CENTER
@Deadly699
@Deadly699 13 жыл бұрын
thank you so much
@iCrakken
@iCrakken 10 жыл бұрын
If you know HTML and CSS, these will be pretty easy to understand.
@tubevideo03
@tubevideo03 10 жыл бұрын
hmm how is that ?
@aram2514
@aram2514 7 жыл бұрын
questions not awnsered
@Blue-Scorpion
@Blue-Scorpion 13 жыл бұрын
god sent me to you :D thanks for great tut!! :D
@alexplatteeuw5363
@alexplatteeuw5363 9 жыл бұрын
Do i have to import the GridBagConstraints. If yes, how?
@Dantepersson
@Dantepersson 9 жыл бұрын
Alex Platteeuw Yes you do, import java.awt.GridBagLayout
@aimensasi4530
@aimensasi4530 10 жыл бұрын
in the : gbc.insets = new insets(15,15,15,15); what is the 15 stand for
@RSNyam
@RSNyam 10 жыл бұрын
Number of pixels outside of the component (bottom, left, right, top)
@taetaedork8355
@taetaedork8355 8 жыл бұрын
The spacing for each side, I believe.
@povilasrackauskas857
@povilasrackauskas857 11 жыл бұрын
you're awesome
@gudia698
@gudia698 12 жыл бұрын
u have not explained gridx and gridy properly............
@Bat0u89
@Bat0u89 13 жыл бұрын
very wordy dude...but thanks :)
Learn Java Tutorial 1.34- ActionListener and JOptionPane
11:46
mybringback
Рет қаралды 35 М.
Java Tutorial 47 (GUI) - GridBagLayout and GridBagConstraints
13:08
John Gizdich
Рет қаралды 135 М.
She made herself an ear of corn from his marmalade candies🌽🌽🌽
00:38
Valja & Maxim Family
Рет қаралды 18 МЛН
Beat Ronaldo, Win $1,000,000
22:45
MrBeast
Рет қаралды 158 МЛН
小丑女COCO的审判。#天使 #小丑 #超人不会飞
00:53
超人不会飞
Рет қаралды 16 МЛН
Java panels 🟥
13:26
Bro Code
Рет қаралды 112 М.
Java buttons 🛎️
14:28
Bro Code
Рет қаралды 179 М.
Java copy objects 🖨️
7:08
Bro Code
Рет қаралды 61 М.
Java GUI Tutorial - Make a Login GUI #100
19:49
Alex Lee
Рет қаралды 568 М.
Java GridLayout 🔳
5:27
Bro Code
Рет қаралды 81 М.
Learn Java Tutorial 1.15- The modulus operator
6:38
mybringback
Рет қаралды 48 М.
Generics In Java - Full Simple Tutorial
17:34
Coding with John
Рет қаралды 1,1 МЛН
Java Full Course for free ☕
12:00:00
Bro Code
Рет қаралды 12 МЛН
Java GUI Tutorial #14 - GridBagLayout Manager In Java GUI Swing Explained
16:10