Комментарии:
clear , short and usefull ! thanks.
ОтветитьHow did you add the button on top of the image/(lable)?
ОтветитьThat "icon" field doesn't seem to exist enymore...
ОтветитьThanks a ton
Ответитьcame for the tutorial, stay for the music, name of the song?
ОтветитьShort and easy, good video my friend!
ОтветитьHow about the source code? 😅 Sorry I'm just new to this I want to make a program that would add interest. And I need to put picture and idk what to do next 🤣
Ответитьgot distracted by the track, yeww
ОтветитьThank you, I needed this
ОтветитьHi
Picture name / 1.png
How can i add picture to this class /
import java.awt.BorderLayout;
import java.awt.GridLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JOptionPane;
import javax.swing.JPanel;
import javax.swing.JTextField;
import java.awt.BorderLayout;
public class ElectromafnaticSpectrum extends JFrame{
ElectromafnaticSpectrum(){
super("Elctromagnatic Spectrum");
Spectrum s =new Spectrum();
JButton b = new JButton("Solution");
JPanel P1 = new JPanel(new BorderLayout());
JPanel Equationpanel=new JPanel(new GridLayout(40,70));
JPanel SOUTHPanel = new JPanel();
JLabel c = new JLabel("Ligth speed (3×10^8)");
JLabel h = new JLabel("Blank constant (6.626×10^-34)");
JLabel W = new JLabel("Wavelength (m)");
JTextField TW = new JTextField();
TW.setText("Please enter the wavelength from the picture");
JOptionPane box = new JOptionPane();
b.addActionListener(new ActionListener(){
@Override
public void actionPerformed(ActionEvent e){
float Wa = Float.parseFloat(TW.getText());
Equation Eq = new Equation (Wa);
box.showMessageDialog(null,Eq.Energy(),"Solution",3,null);
}
});
P1.add(Equationpanel, BorderLayout.NORTH);
SOUTHPanel.add(b);
//P1.add(new Spectrum(), BorderLayout.CENTER);
P1.add(SOUTHPanel, BorderLayout.SOUTH);
add(P1);
Equationpanel.add(W, BorderLayout.AFTER_LAST_LINE);
Equationpanel.add(c, BorderLayout.AFTER_LAST_LINE);
Equationpanel.add(h, BorderLayout.AFTER_LAST_LINE);
Equationpanel.add(TW, BorderLayout.AFTER_LAST_LINE);
System.out.println("ssssssssssss");
setSize(600, 600);
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
setVisible(true);
}
fuck u noob
ОтветитьCan u provide the source code
ОтветитьHeadphone ,,Oh ,, sound level 100 ,, Oh I am a died,,Oh I am and died
ОтветитьWow.Amazing!!!
ОтветитьThat really helped thanks
Ответитьworst background sound
ОтветитьThanks a lot
ОтветитьThank u
Ответитьwhat helpful??
Try to teach with coding ...
Wtf Shortcuts😠
Why the shitty music should be in every video ? ._.
ОтветитьThis is ridiculously overcomplicated....
Ответитьthanks bro appreciate that
ОтветитьVery helpful video
ОтветитьThank you friend, it helped a lot!!!
Ответитьgood
Ответитьthank you so much, this video saved my life :)
Ответитьthank u so much ip student k liye farishta ho aap
Ответитьthanks.
ОтветитьShitty music
Great tutorial
Thanks :)
my image ain't loading.. is there a specific size for java to load an image?
Ответитьty for the tutorial and the music reminded me of playing NFS years back xD
ОтветитьHow do I make it not resizable?
ОтветитьThanks A Lot Buddy .... I Searched all but nothing was helpful ... You Really Deserve a Big Clap and Heartily Thanks .
Ответитьreally helped me out.
ОтветитьNice And good
Plz Subscribe in my Channel
awesome tutorial
ОтветитьHey can you help me it worked but whenever I run my program the output window would not show the background full size (theres a grey area)
Ответитьthanks!
ОтветитьThanks a lot. :D
Ответитьthank you was really very helpful
Ответитьsuperb !!!!!!!!!!!!!!
thanks alot for this helkp
Great, no talking, no bullshit.. just straight to the point.. Thanks!
ОтветитьThanx a lot,, but then how to link the button by a code? Sorry, I'm still beginner
ОтветитьThanks a lot :)
Ответитьtell me how to browse image and display that image path in text field and image in jLabel with button
ОтветитьThank you, you saved my life
ОтветитьReally helped me bro
ОтветитьThanks man, +1 for funky music.
Ответить