Java labels 👨‍💻

แชร์
ฝัง
  • เผยแพร่เมื่อ 23 ธ.ค. 2024

ความคิดเห็น •

  • @BroCodez
    @BroCodez  4 ปีที่แล้ว +75

    // You might want to add frame.setVisible(true) to be the very last line. Sometimes with Mac, the components won't appear until you resize the window
    import java.awt.Color;
    import java.awt.Font;
    import javax.swing.BorderFactory;
    import javax.swing.ImageIcon;
    import javax.swing.JFrame;
    import javax.swing.JLabel;
    import javax.swing.border.Border;
    public class Main {
    public static void main(String[] args) {
    // JLabel = a GUI display area for a string of text, an image, or both

    ImageIcon image = new ImageIcon("dude.png");
    Border border = BorderFactory.createLineBorder(Color.green,3);

    JLabel label = new JLabel(); //create a label
    label.setText("bro, do you even code?"); //set text of label
    label.setIcon(image);
    label.setHorizontalTextPosition(JLabel.CENTER); //set text LEFT,CENTER, RIGHT of imageicon
    label.setVerticalTextPosition(JLabel.TOP); //set text TOP,CENTER, BOTTOM of imageicon
    label.setForeground(new Color(0x00FF00)); //set font color of text
    label.setFont(new Font("MV Boli",Font.PLAIN,100)); //set font of text
    label.setIconTextGap(-25); //set gap of text to image
    label.setBackground(Color.black); //set background color
    label.setOpaque(true); //display background color
    //label.setBorder(border); //sets border of label (not image+text)
    label.setVerticalAlignment(JLabel.CENTER); //set vertical position of icon+text within label
    label.setHorizontalAlignment(JLabel.CENTER); //set horizontal position of icon+text within label
    //label.setBounds(100, 100, 250, 250); //set x,y position within frame as well as dimensions

    JFrame frame = new JFrame();
    frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    //frame.setSize(500,500);
    //frame.setLayout(null);
    frame.setVisible(true);
    frame.add(label);
    frame.pack();
    }
    }

    • @jhanzaibhumayun5782
      @jhanzaibhumayun5782 3 ปีที่แล้ว +1

      Thanks for the tip! My labels were not showing up until I resized the window. This explains why. Using IntelliJ IDEA.

    • @shanihalder2755
      @shanihalder2755 3 ปีที่แล้ว +1

      @@jhanzaibhumayun5782 bro can u help me pls by telling what u exactly did? Im also using intellij and facing the problem, tried different ways, but imageicon is not showing up, text is coming but imageicon never shows 😭, pls help bro, what to do

    • @jhanzaibhumayun5782
      @jhanzaibhumayun5782 3 ปีที่แล้ว +3

      @@shanihalder2755 I just added frame.setVisible(true) to the last line in the code. Don't really know exactly what type of problem you are having. Would help if you posted your code.

    • @scientificshorts9673
      @scientificshorts9673 3 ปีที่แล้ว +1

      in the previous lesson .setopaque wasn't used change color of the frame but is it used here?

    • @shanihalder2755
      @shanihalder2755 3 ปีที่แล้ว +4

      @@jhanzaibhumayun5782 problem solved bro after multiple tries. It solved after i moved the image to the project folder, earlier i was putting the image in the source code folder. Thanks for help❤️

  • @caidenhiles
    @caidenhiles ปีที่แล้ว +1

    Knowing that you made a video about labels actually exited me to learn about labels and I thought about it all day today and yesterday until I finally got a chance to watch it tonight. Gotta say, it's my favorite tutorial i've watched

  • @maxwong1768
    @maxwong1768 2 ปีที่แล้ว +10

    This lesson has much more information than usual .
    I have made some references for each code and would like to share with you guys .
    Hope this will make it more clear to you .
    package testing;
    import javax.swing.JFrame;
    import javax.swing.JLabel;
    import javax.swing.ImageIcon;
    import javax.swing.border.Border;
    import javax.swing.BorderFactory;
    import java.awt.Color;
    import java.awt.Font;
    public class Main {
    public static void main(String[] args) {

    // create an image for label .
    ImageIcon image = new ImageIcon("src/烈日戰士.png") ;

    // create boundary lines for label and set their color and size .
    Border border = BorderFactory.createLineBorder(new Color(0x000000) , 5) ;

    // Setup the label

    // create a label .
    JLabel label = new JLabel() ;
    label.setBackground(new Color(0xABF095)) ;

    // It is used after setting the background color .
    // true : paint every pixel within the bounds of label .
    label.setOpaque(true) ;

    // Apply the boundary lines to the label .
    label.setBorder(border) ;

    // set the position and dimensions of label bounds within the frame .
    // Before using the code below , add to set a layout for label first .
    label.setBounds(0 , 0 , 500 , 500) ; // (x , y , width , height)

    // Text of label

    // Another style :
    label.setText("Nice to meet you !");

    // set "type of font" , font style , font size .
    // ("MV Boli" , "Helvetica" , "Futura" , ……) , (plain, bold, italic)
    label.setFont(new Font("MV Boli" , Font.PLAIN , 20)) ;

    // set the font color .
    label.setForeground(new Color(0x4878F5)) ;

    // Position of components in label

    // add the image into the label .
    label.setIcon(image) ;

    // set the position of label text within the label bounds .
    label.setHorizontalTextPosition(JLabel.CENTER) ; // Left or CENTER or RIGHT
    label.setVerticalTextPosition(JLabel.TOP) ; // TOP or CENTER or BOTTOM

    // set the position of label image within the label bounds .
    label.setHorizontalAlignment(JLabel.CENTER) ;
    label.setVerticalAlignment(JLabel.CENTER) ;

    // set the distance between the text block and the image .
    // negative and positive are both available .
    label.setIconTextGap(0) ;

    // Setup the frame .

    // we need a frame to hold components(e.g. label) .
    JFrame frame = new JFrame() ;
    frame.setVisible(true) ;

    // exit when you click [X] on the top-right corner .
    // "JFrame.HIDE_ON_CLOSE" : hide but still running in the background thread .
    //"JFrame.DO_NOTHING_ON_CLOSE" : disable the [X] button .
    frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE) ;
    frame.setSize(500 , 500) ; // still manually resizable .

    // Add component to the frame .

    frame.add(label) ;

    // set a layout for the label to set bounds .
    frame.setLayout(null) ;

    // By using the code below , system will auto-resize the frame in order to accommodate all the components you add to the frame , no matter if size of components change .
    // use to add all your components to your frame first , disable and before you use the code below .
    // frame.pack() ;
    }
    }

  • @pavelkvasnicka6856
    @pavelkvasnicka6856 ปีที่แล้ว +4

    This is the best Java tutorial for beginners, so you can learn Java and English in one hit. Please keep going! I vote for Java advance tutorial. Thanks a lot Bro

  • @augustocera574
    @augustocera574 3 ปีที่แล้ว +14

    Thank you very much Bro. Your tutorials are fantastic. Your so underrated man...

  • @ADJOLU91
    @ADJOLU91 ปีที่แล้ว +1

    This was soo difficult to understand at school but somehow you make it sooo easy. Thank you! 🙏🏼

  • @somonorhong168
    @somonorhong168 6 หลายเดือนก่อน

    you're the best teacher , Thanks for this vdo

  • @swapnil72
    @swapnil72 9 หลายเดือนก่อน +1

    From Java17 onwards use "LEADING" instead of "TOP" to avoid exception

  • @UnderArea51
    @UnderArea51 2 ปีที่แล้ว +4

    Awesome! I love the broke down videos - learn Java in smaller sections

  • @dianamilenaarchilacordoba4632
    @dianamilenaarchilacordoba4632 3 หลายเดือนก่อน

    great video!!! I'm infinitely grateful for your dedication and big heart to share this knowledge with the world. Thank you soo much

  • @Iischeese
    @Iischeese 2 ปีที่แล้ว +10

    If the Image Icon is not showing up you can try:
    'ImageIcon *name* = new ImageIcon(getClass().getResource("*FilePath*"));'
    instead of
    'ImageIcon *name * = new ImageIcon(*FilePath*);'

    • @thaison3684
      @thaison3684 ปีที่แล้ว

      bro u can help me. my error : Exception in thread "main" java.lang.NullPointerException: Cannot invoke "java.net.URL.toExternalForm()" because "location" is null

    • @Iischeese
      @Iischeese ปีที่แล้ว

      @@thaison3684 looks like something that you code is trying to reference is null. Try seeing if you are referencing/declaring correctly.

    • @Tamflakes
      @Tamflakes ปีที่แล้ว

      Bless you, I was going crazy!! That did the trick! 🤯

    • @Iischeese
      @Iischeese ปีที่แล้ว

      @@Tamflakes No problem, glad I could help!

    • @zohebansari6429
      @zohebansari6429 ปีที่แล้ว

      Bro it is showing " non static method "getclass()" tell me without using method how to bring images??

  • @mbekezelisibanda3641
    @mbekezelisibanda3641 2 ปีที่แล้ว +2

    bro your tutorials are so much helpfull its well detailed for a beginner like me .

  • @RockRahul0103
    @RockRahul0103 ปีที่แล้ว

    Much needed thing in TH-cam thanks bro

  • @Ryan-zv6yl
    @Ryan-zv6yl 5 หลายเดือนก่อน

    Makes me really appreciate JavaScript with css. This would have taken me like 8 lines of css to accomplish this. Great to have this option in Java thiugh

  • @kemann3815
    @kemann3815 3 ปีที่แล้ว +1

    Wow. Awesome.

  • @legiang5836
    @legiang5836 7 หลายเดือนก่อน +2

    thank you sir

  • @mahdib9361
    @mahdib9361 4 ปีที่แล้ว +2

    Please Make Tuturial For JAVAFX

  • @noisyguest5249
    @noisyguest5249 4 ปีที่แล้ว +10

    I use to think and java and javascript was the same when i first strarted coding hahah

    • @BroCodez
      @BroCodez  4 ปีที่แล้ว +8

      I did too lol. I guess Javascript was named after Java because the name was so popular at the time, albeit Javascript has nothing to do with Java

    • @noisyguest5249
      @noisyguest5249 4 ปีที่แล้ว +6

      @@BroCodez ohhh i learned js beforr java becuz of it

    • @parthibanv.p5562
      @parthibanv.p5562 3 ปีที่แล้ว

      Yeah I'm also confused when I'm started Java. I bought javascript course in Udemy instead of Java course .

    • @umamahesh1991
      @umamahesh1991 3 ปีที่แล้ว

      Me tooo.....bro explanation 👌..take a bow

  • @kamalkhashoggi2374
    @kamalkhashoggi2374 2 ปีที่แล้ว

    Thank yo brother I understand now what is a Label is ow to create a label and what is a frame and how to create a Frame. Millions Thanks and god bless you❤

  • @Benchmus
    @Benchmus 3 ปีที่แล้ว

    I need this Chanel, because java is complicated

  • @danny.3036
    @danny.3036 3 ปีที่แล้ว +1

    Thanks, Bro! ☕ You're awesome!

  • @cdjosh3568
    @cdjosh3568 4 ปีที่แล้ว +2

    Very good video keep it up!

    • @BroCodez
      @BroCodez  4 ปีที่แล้ว

      thanks for watching Josh!

  • @Simis999
    @Simis999 2 ปีที่แล้ว

    we're gettin higher bro!!

  • @adriannedayrilleilaban9224
    @adriannedayrilleilaban9224 3 ปีที่แล้ว +3

    bro how do you add another text so that there is a text above and below the pic?

  • @lucyledezma709
    @lucyledezma709 4 ปีที่แล้ว +1

    Hey Bro!!! Thanks so much for the tutorial!!!!

    • @BroCodez
      @BroCodez  4 ปีที่แล้ว +1

      you're welcome! Thanks for watching!

  • @beksaylor
    @beksaylor 2 ปีที่แล้ว

    @Bro Code I am learning more from you than I am my professors. Thanks Bro~~

  • @Maximiliano706
    @Maximiliano706 2 ปีที่แล้ว

    Thank You !

  • @Amirrjl-y8z
    @Amirrjl-y8z ปีที่แล้ว

    nice

  • @janil9357
    @janil9357 4 ปีที่แล้ว +1

    very helpful as always thank you !!

  • @upcomingupdateswithsajju7725
    @upcomingupdateswithsajju7725 3 ปีที่แล้ว +2

    Sir please tell us in short how to add an image to the project folder? Thank you sir

    • @tobias6642
      @tobias6642 2 ปีที่แล้ว

      Copy the image from the explorer and then in Eclipse, select the package and hit ctr + v to paste it. Alternatively you can copy the absolute path of the image if you don't want to paste it in the project folder.

  • @曾毓哲-b1t
    @曾毓哲-b1t ปีที่แล้ว

    Thank you very much

  • @robinshere8697
    @robinshere8697 3 ปีที่แล้ว

    Thank you bro! Great content and explainations.

  • @mohamadnazirissumalgy3699
    @mohamadnazirissumalgy3699 4 ปีที่แล้ว +1

    I'm keen on your videos bro.

    • @BroCodez
      @BroCodez  4 ปีที่แล้ว

      thank you for watching Mohamad

  • @AliZografos
    @AliZografos 10 หลายเดือนก่อน

    how can i add only the image and move it around the frame?

  • @studioboi177
    @studioboi177 2 หลายเดือนก่อน

    thank u bro

  • @WajdAlhuzaym
    @WajdAlhuzaym 2 ปีที่แล้ว

    thank you very much bro, you're more helpfulI than university lectures

  • @malikshahzaib3313
    @malikshahzaib3313 4 ปีที่แล้ว

    Thank you brother!

  • @魏子強-z7s
    @魏子強-z7s ปีที่แล้ว

    thank you bro myhero

  • @a7mibr206
    @a7mibr206 10 หลายเดือนก่อน

    Thanks Bro

  • @yahyakhawaja88
    @yahyakhawaja88 2 ปีที่แล้ว +1

    How can I resize the image in a label. I palced a random image it only a part of it appeared in the label

    • @shaikadil2197
      @shaikadil2197 ปีที่แล้ว

      To resize the image icon, you'll have to translate the icon to an image, resize the image then translate the the image back to an icon. Here's the code ;
      ImageIcon icon = new ImageIcon (filename.png):
      Image image = icon.getImage(); //transform the icon to an image.
      Image newimage = image.getScaledInstance(width, height, Image.SCALE_SMOOTH):
      icon=new ImageIcon(newimage);// this transforms the image back to an icon
      credit: Martin Wachira(Comments)

  • @ahmedmelsapagh6611
    @ahmedmelsapagh6611 4 ปีที่แล้ว

    Very very good

    • @BroCodez
      @BroCodez  4 ปีที่แล้ว +1

      thanks for watching Ahmed

  • @sophieguelfi8193
    @sophieguelfi8193 ปีที่แล้ว +1

    how can i make the image smaller on my screen?

    • @shaikadil2197
      @shaikadil2197 ปีที่แล้ว

      To resize the image icon, you'll have to translate the icon to an image, resize the image then translate the the image back to an icon. Here's the code ;
      ImageIcon icon = new ImageIcon (filename.png):
      Image image = icon.getImage(); //transform the icon to an image.
      Image newimage = image.getScaledInstance(width, height, Image.SCALE_SMOOTH):
      icon=new ImageIcon(newimage);// this transforms the image back to an icon
      credit: Martin Wachira(Comments)

  • @fiona7651
    @fiona7651 2 ปีที่แล้ว

    Thanks!!

  • @ibrahimylmaz8378
    @ibrahimylmaz8378 2 ปีที่แล้ว

    thanks bro

  • @bryansuguitan7616
    @bryansuguitan7616 5 หลายเดือนก่อน

    Guys, my favicon isn't showing on my JFrame. I am using netbeans on mac OS. How can I make it work?

  • @manuelgonzalezpalafox2627
    @manuelgonzalezpalafox2627 2 ปีที่แล้ว

    Ly 2 bro

  • @rentv6447
    @rentv6447 2 ปีที่แล้ว

    Thankyou Bro😍

  • @minhtetpaing1695
    @minhtetpaing1695 3 ปีที่แล้ว

    Thank you so much sir.

  • @853kryptonian7
    @853kryptonian7 4 ปีที่แล้ว

    How to set an image as your the logo for the app you have programmed?

  • @mamaafrica2512
    @mamaafrica2512 2 ปีที่แล้ว

    how can I add second label?

  • @КоляСмоляр-м7л
    @КоляСмоляр-м7л 2 ปีที่แล้ว

    where i can find fonts types for label

  • @honoredegg
    @honoredegg 2 ปีที่แล้ว

    50th. Thank you, ma Bro Sensei

  • @mahorodivin2979
    @mahorodivin2979 ปีที่แล้ว

    thx bro

  • @sithuhtun3609
    @sithuhtun3609 3 ปีที่แล้ว

    The font style doesn't work. I need help

  • @853kryptonian7
    @853kryptonian7 4 ปีที่แล้ว

    PLz bro how to set an image as your logo

  • @maryamhussein2192
    @maryamhussein2192 ปีที่แล้ว

    you are the goat! T ^ T :DDD

  • @md.sazibahmed8659
    @md.sazibahmed8659 4 ปีที่แล้ว

    Best

    • @BroCodez
      @BroCodez  4 ปีที่แล้ว

      thanks for watching MD. Sazib

  • @kingkock1
    @kingkock1 2 ปีที่แล้ว

    Label of love

  • @amankrmj
    @amankrmj 3 ปีที่แล้ว +1

    Sir, is it possible to create array of JLabels....?

    • @ryan2-518
      @ryan2-518 3 ปีที่แล้ว +1

      Yeah
      Jlabel[] labelArray = new Jlabel[whatever size you want]

  • @Mo_Xtreme
    @Mo_Xtreme 3 ปีที่แล้ว

    How do you add a jpeg file in intellij idea? Help please

  • @mahmodmardani7535
    @mahmodmardani7535 3 ปีที่แล้ว

    perfect

  • @619REY38
    @619REY38 4 ปีที่แล้ว +1

    is there a code to resize the image icon?

    • @martinwachira4429
      @martinwachira4429 2 ปีที่แล้ว

      To resize the image icon, you'll have to translate the icon to an image, resize the image then translate the the image back to an icon. Here's the code ;
      ImageIcon icon = new ImageIcon (filename.png):
      Image image = icon.getImage() //transform the icon to an image.
      Image newimage = image.getScaledInstance(width, height, Image SCALE_SMOOTH):
      icon = new ImageIcon (newimage);// this transforms the image back to an icon.

    • @shaikadil2197
      @shaikadil2197 ปีที่แล้ว

      @@martinwachira4429 Thanks a lot brother. It worked!!

  • @BISAMARKSMANDOANG
    @BISAMARKSMANDOANG ปีที่แล้ว

    GG

  • @bgtstudy8039
    @bgtstudy8039 4 ปีที่แล้ว

    Thanks You so so so so so so so much..

  • @blankcoder235
    @blankcoder235 ปีที่แล้ว

    ImageIcon doesn't work. Give some suggestion

  • @cadmvwebteam4027
    @cadmvwebteam4027 4 ปีที่แล้ว

    My gui window pop up does not have the Java Logo on the left top? How to set up so that this Java Logo should appear on the left top? Instead of the Java Logo on top left, all I see just: X, -, and + signs on the left. Is there a way to move those to the right top so that we can set up the Java Logo on the left top. Thanks for helping...

    • @BroCodez
      @BroCodez  4 ปีที่แล้ว +1

      are you referring to the default java logo?

  • @abishekk.j3773
    @abishekk.j3773 2 ปีที่แล้ว

    I Coded on my VS but its not getting any effect in Frame even though I added label to Frame? Anyone know why that is happening?

  • @mudassirnaz1813
    @mudassirnaz1813 3 ปีที่แล้ว

    Thanks

  • @geocojonnrigor
    @geocojonnrigor 2 ปีที่แล้ว

    Thanks for the tutorial. But I have a question. Why is it when I run the program the GUI's Appearance doesn't update, it's just empty/blank white window. It just gets updated or fixed whenever I just resize the window's size or hit maximize or minimize button. I mean it's not a big deal, but just annoying since I have to do that whenever I need to run the code.

    • @soumelee5661
      @soumelee5661 2 ปีที่แล้ว +1

      try putting the frame.setVisible(true); at the end of the code

    • @geocojonnrigor
      @geocojonnrigor 2 ปีที่แล้ว +1

      @@soumelee5661 I already found the solution on the error! 😅 But thank you!

  • @lenoxi273
    @lenoxi273 5 หลายเดือนก่อน

    My Images aren't visible pls help🙏

  • @raghavkonda6175
    @raghavkonda6175 2 ปีที่แล้ว

    Isnt doing all this in Java , a little complicated. Can be done with less effort with CSS and Front end Javascript ...
    Whats your opinion ?

    • @Mix_Lv
      @Mix_Lv ปีที่แล้ว +1

      a little late, but this is a java course man, why would he do it in CSS or JavaScript in a Java course. Doesnt matter if its complicated.

  • @seabass6106
    @seabass6106 4 ปีที่แล้ว +1

    Bro you make me Pro

  • @tinczo1178
    @tinczo1178 2 ปีที่แล้ว

    yo its me fellow bro

  • @jacokyle0160
    @jacokyle0160 3 ปีที่แล้ว

    Hey bro, I copy and pasted all your code into my VScode editor and swapped the bro.png reference with a different image in my project folder-- but the image didn't show on the screen. Do you know an easy fix to this? It's really been bothering me.

    • @jacokyle0160
      @jacokyle0160 3 ปีที่แล้ว +1

      Ah, I got it to work. Thanks for the vids man- they are really the only resource out there to learn this kind of stuff

    • @dipikakanth8402
      @dipikakanth8402 3 ปีที่แล้ว

      I'm having the same problem..could you please help me out ??

    • @jacokyle0160
      @jacokyle0160 3 ปีที่แล้ว +2

      @@dipikakanth8402 I fixed the issue by putting my image in the project folder-- not the library folder or the source code folder, but the main folder.

    • @dipikakanth8402
      @dipikakanth8402 3 ปีที่แล้ว

      @@jacokyle0160 Thank you

  • @Pellucoxx
    @Pellucoxx 3 ปีที่แล้ว

    Bro, please add code to comment!

  • @James_AAF
    @James_AAF 7 หลายเดือนก่อน

    for the algorithm

  • @joyceasante8292
    @joyceasante8292 ปีที่แล้ว

    import java.awt.Font;
    import java.awt.Color;
    import javax.swing.BorderFactory;
    import javax.swing.ImageIcon;
    import javax.swing.JFrame;
    import javax.swing.JLabel;
    import javax.swing.border.Border;
    public class Main{
    public static void main(String[ ]args){
    ImageIcon image = new ImageIcon("flower.png");
    Border border = BorderFactory.createLineBorder(Color.blue,3);
    JLabel label = new JLabel();
    label.setText("Coding is fun!");
    label.setIcon(image);
    label.setHorizontalTextPosition(JLabel.RIGHT);
    label.setVerticalTextPosition(JLabel.CENTER);
    label.setForeground(Color.blue);
    label.setFont(new Font("Italic",Font.ITALIC,18));
    label.setIconTextGap(-20);
    label.setBackground(Color.yellow);
    label.setOpaque(true);
    label.setBorder(border);
    label.setVerticalAlignment(JLabel.BOTTOM);
    label.setHorizontalAlignment(JLabel.LEFT);
    //label.setBounds(50,50,125,125);
    JFrame frame = new JFrame();
    frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    //frame.setSize(380,380);
    //frame.setLayout(null);
    frame.add(label);
    frame.setVisible(true);
    frame.pack();
    }
    }

  • @noisyguest5249
    @noisyguest5249 4 ปีที่แล้ว +1

    I code but not in binary numbers

    • @BroCodez
      @BroCodez  4 ปีที่แล้ว +1

      that is ok, I don't either

  • @leonidas14775
    @leonidas14775 6 หลายเดือนก่อน

    Java has Labels...
    it also has goto 👹

  • @SuperMixGamer
    @SuperMixGamer 3 ปีที่แล้ว

    where's the code tho

  • @061_SHIVANSHSRIVASTAVA
    @061_SHIVANSHSRIVASTAVA 3 หลายเดือนก่อน

    ok

  • @JohnSmithM2C
    @JohnSmithM2C 3 ปีที่แล้ว

    Bro,do u even code?

  • @siriusleto3758
    @siriusleto3758 2 ปีที่แล้ว

    2. comment

  • @ap1136-c4m
    @ap1136-c4m 8 หลายเดือนก่อน

  • @patrickpasaje4037
    @patrickpasaje4037 3 ปีที่แล้ว

    "Video 50"

  • @unofficialbeastx929
    @unofficialbeastx929 4 ปีที่แล้ว

    You = God

    • @BroCodez
      @BroCodez  4 ปีที่แล้ว +1

      thanks, but I'm just bro

  • @raulmartinez2361
    @raulmartinez2361 ปีที่แล้ว +1

    idk why but my code wont load any image some of the var names are diffrent then the video but it just wont load and idk why
    package Main;
    import javax.swing.ImageIcon;
    import javax.swing.JFrame;
    import javax.swing.JLabel;
    public class mayn {
    public static void main(String[] args) {
    ImageIcon bg = new ImageIcon("computationalemulatorr calc2.png");

    JLabel textz = new JLabel();
    textz.setText("GOD HELP ME PLEASE, GIVE ME STRENGTH");
    textz.setIcon(bg);
    JFrame window = new JFrame();
    window.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    window.setSize(32*48,32*24);

    window.add(textz);
    window.setVisible(true);
    }
    }

    • @zohebansari6429
      @zohebansari6429 ปีที่แล้ว +1

      Sams problem bro why I can't use label.add(image)?? You got solution

    • @hoomanhessarii2358
      @hoomanhessarii2358 3 หลายเดือนก่อน

      @@zohebansari6429 any solution ?

  • @lorenzschwarz5877
    @lorenzschwarz5877 3 ปีที่แล้ว

    comment

  • @bobzerotz5539
    @bobzerotz5539 3 ปีที่แล้ว

    random comment

  • @noah77
    @noah77 4 ปีที่แล้ว +1

    Seems like you have cough, everything alright??

    • @ramarromarrone7756
      @ramarromarrone7756 4 ปีที่แล้ว +3

      bruv it's his voice

    • @BroCodez
      @BroCodez  4 ปีที่แล้ว +2

      My voicebox was wornout. Two videos/day might be too much lol

  • @etsoo
    @etsoo 3 ปีที่แล้ว

    .

  • @greeneggsandmushrooms9855
    @greeneggsandmushrooms9855 3 ปีที่แล้ว

    a buh abuh dat's all fokes

  • @anjapietralla5767
    @anjapietralla5767 11 หลายเดือนก่อน

  • @eugenezuev7349
    @eugenezuev7349 7 หลายเดือนก่อน

  • @archaeniac7846
    @archaeniac7846 3 ปีที่แล้ว

    Best

  • @sairos4057
    @sairos4057 2 ปีที่แล้ว

    thanks bro

  • @MrLoser-ks2xn
    @MrLoser-ks2xn 2 ปีที่แล้ว

    Thanks

  • @maciejkaminski8535
    @maciejkaminski8535 3 ปีที่แล้ว

    comment