@kellym1able give me your email and i'll send you one, i got a few ebooks you might be interested in on java 2d/3d game design that have what you're looking for
If I have a GUI editor, would it be possible to just create 2500 panels in the editor and then editing them?? Cause I also need to assign certain values to the panels and things never work out when I create them dynamically ; - ;
@ArnisNewbie Creating inner class inside Frame class. Here's the code you must add inside the Frame class. private class Painting extends JPanel { private static final long serialVersionUID = 6888782312648977026L; public Painting() { setBackground(Color.RED); } public void paintComponent(Graphics g) { super.paintComponent(g); } }
@mu3d93 typing error. You wrote: gui.setDefautCloseOperation(JFrame.EXIT_ON_CLOSE); and missed l from Default so correct line is gui.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
@kellym1able give me your email and i'll send you one, i got a few ebooks you might be interested in on java 2d/3d game design that have what you're looking for
scuzzulus 1 week ago
hey-
do you know of any good java books for teaching/ referencing graphics programming/ physics design?
i'm interested in doing modelling and simulation, and I"m looking for a really thorough reference for java.
I understand the basics of object oriented programming, and can find enough online (pretty beginner, really)
but I don't have much for finding information on the class libraries, essential language components (i.e. methods)
kellym1able 1 month ago
If I have a GUI editor, would it be possible to just create 2500 panels in the editor and then editing them?? Cause I also need to assign certain values to the panels and things never work out when I create them dynamically ; - ;
xZero0113x 1 month ago
@mu3d93 could u import everything? and is it typed correctly?
1Jupe 3 months ago
@DjNightey you should proofread your own comments before posting them... haha
Enigma7995 3 months ago
you should watch your own tutorial before you putting it up on youtube
DjNightey 5 months ago
@ArnisNewbie Creating inner class inside Frame class. Here's the code you must add inside the Frame class. private class Painting extends JPanel { private static final long serialVersionUID = 6888782312648977026L; public Painting() { setBackground(Color.RED); } public void paintComponent(Graphics g) { super.paintComponent(g); } }
tuonp 10 months ago
@mu3d93 typing error. You wrote: gui.setDefautCloseOperation(JFrame.EXIT_ON_CLOSE); and missed l from Default so correct line is gui.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
tuonp 10 months ago
i cant compile, the program found an error in this line -
gui.setDefautCloseOperation(JFrame.EXIT_ON_CLOSE);
File: D:\java\Frame.java [line: 14]
Error: D:\java\Frame.java:14: cannot find symbol
symbol : method setDefautCloseOperation(int)
location: class javax.swing.JFrame
mu3d93 1 year ago
How do you do this using only one *.java file?
ArnisNewbie 1 year ago