Menu
Menu
DaniWeb
Log In
Sign Up
Read
Contribute
Meet
Search
Search
About 1,000 results for
java.
- Page 1
Re: Which programming language is best Ludo game development?
Programming
Game Development
3 Days Ago
by kishanrg
… languages for game development, including Ludo games, are C++, C#,
Java
, JavaScript, and Python. Ultimately, the "best" programming language…
Re: Bouncing Balls: Creating a new ball when two balls collide
Programming
Software Development
5 Days Ago
by jprog1000
Got it. Thank you so much!
Re: Bouncing Balls: Creating a new ball when two balls collide
Programming
Software Development
5 Days Ago
by vortex_1
In my opinion, implementing a feature in a bouncing balls simulation where a new ball is created when two balls collide can add an interesting and dynamic element to the simulation. This feature can introduce a sense of complexity and unpredictability, making the simulation more engaging and challenging for users. It could also provide an …
Re: Bouncing Balls: Creating a new ball when two balls collide
Programming
Software Development
4 Days Ago
by jprog1000
Great reply, vortex! Agree with all your points.
Re: Bouncing Balls: Creating a new ball when two balls collide
Programming
Software Development
4 Days Ago
by Digital_39
Hi, Its helpful for me. I got my answer.
Re: Which programming language is best Ludo game development?
Programming
Game Development
3 Days Ago
by polles
i would choose JavaScript
Re: Bouncing Balls: Creating a new ball when two balls collide
Programming
Software Development
2 Weeks Ago
by toneewa
… <= radius * radius; } } BallPanel.
java
: import
java
.awt.event.ActionListener; import
java
.awt.event.ActionEvent; import javax.swing.JPanel; import….swing.Timer; import
java
.awt.Graphics; import
java
.awt.Color; import
java
.util.ArrayList; import
java
.util.Arrays; public class…
Re: Bouncing Balls: Creating a new ball when two balls collide
Programming
Software Development
1 Week Ago
by toneewa
…getBounds().intersects(b.getBounds()); } } BallPanel.
java
: import
java
.awt.event.ActionListener; import
java
.awt.event.ActionEvent; import javax.swing.JPanel….swing.Timer; import
java
.awt.Graphics; import
java
.awt.Color; import
java
.util.ArrayList; import
java
.util.Arrays; public class…
Bouncing Balls: Creating a new ball when two balls collide
Programming
Software Development
2 Weeks Ago
by jprog1000
… 500 ); frame.setVisible( true ); } } import
java
.awt.event.ActionListener; import
java
.awt.event.ActionEvent; import javax.swing.JPanel; import… javax.swing.Timer; import
java
.awt.Graphics; import
java
.awt.Color; public class BallPanel extends …
i need to transform specific code for mltiplr classes to GUI
Programming
Software Development
2 Weeks Ago
by JILA
if i provide you with my project OOP
java
can you transform him for me to GUI
Re: Bouncing Balls: Creating a new ball when two balls collide
Programming
Software Development
2 Weeks Ago
by jprog1000
Thank you so much for your reply and additions! It is certainly working as I wanted. I will read through the code you have added and ask you any questions I might have. I hope you don't mind. Regards
Re: Bouncing Balls: Creating a new ball when two balls collide
Programming
Software Development
2 Weeks Ago
by Dani
I’ll mark this question solved :)
Re: Bouncing Balls: Creating a new ball when two balls collide
Programming
Software Development
2 Weeks Ago
by Dani
… oh, sorry, missed the bit about you still needing clarifications. Feel feee to ask :) I’ll now unmark this topic as solved. /facepalm
Re: Bouncing Balls: Creating a new ball when two balls collide
Programming
Software Development
1 Week Ago
by jprog1000
Hello, Thank you again so much! All your additions are clear, but it seems like whenever two balls collide, more than one ball is added to the arraylist and painted. Any way to have just one ball added to the panel for every collision? Have some kind of a toggle flag in paintcomponent? Regards
Re: Bouncing Balls: Creating a new ball when two balls collide
Programming
Software Development
1 Week Ago
by toneewa
Yes, this is true. Overlapping ball spawns can do that causing a chain reaction. Something like that could be done. How you handle the spawning of the new ball is what I played with a bit before. You will see better collision detection changing to: g.fillOval(ball.getX(), ball.getY(), 1 * ball.getRadius(), 1 * ball.getRadius());
How Build Html form ?
Programming
2 Weeks Ago
by Kirubel_2
<!DOCTYPE html> <html style="font-size: 16px;" lang="en"><head> <title>Comment</title> <script src="js/jquery.js"></script> <link rel="stylesheet" href="sign.css"> </head> <body …
How Build video-player in html And css ?
Programming
2 Weeks Ago
by Kirubel_2
<head><title>navigation</title> <link rel="stylesheet" href="../css/nav.css"> <link rel="stylesheet" href="../css/tutorial.css"> <link rel="stylesheet" href="../css/vedio.css"> <link rel="stylesheet" href="…
Re: How Build video-player in html And css ?
Programming
2 Weeks Ago
by Kirubel_2
body{ /* background: url(../img/w11.png); */ background: url(../img/m.jpg); background-size: cover; background-repeat: no-repeat; margin: 0; padding: 0; height: 101vh; overflow-y: hidden; } .container button{ background: transparent; …
Why am getting different syntax errors when running a Python script
Programming
Software Development
2 Months Ago
by Tom_45
… oriented design works, having taught myself VB.NET, C# and
Java
. I don't understand why running the same code with…
Hi everyone, I'm kasmar45
Community Center
Say Hello!
2 Months Ago
by kasmar45
I have not been active on the site for sometime now. That is because I ended my previous project and didn't have another ready to go. Now I do have a new project and that is
Java
so I will be around more often.
Re: Download multiple files in single zip and render for download
Programming
Software Development
2 Months Ago
by Sachin_41
what is _response in this? Is this some library?
Please I need guidance
Programming
Web Development
1 Month Ago
by Naija kid_1
Hi, Goodday everyone, I'm new to web development, please if I had questions, could I ask on her for a help reply?
Re: Please I need guidance
Programming
Web Development
1 Month Ago
by pritaeas
Yes, that's what this forum is for.
Re: Please I need guidance
Programming
Web Development
1 Month Ago
by Dani
Of course! What's your first question? :)
Re: Why am getting different syntax errors when running a Python script
Programming
Software Development
2 Months Ago
by Tom_45
After I posted this question I noticed that I was missing the raw string indicator and the capture group enclosing parenthesis on the findall, which explains the subscripting error. So, hold off on the answers for now. I'm still having other issues with multiple file runs, though.
Re: Why am getting different syntax errors when running a Python script
Programming
Software Development
2 Months Ago
by Tom_45
Finished the assignment and was able to work out the bugs I was encountering. In addition to the issues I mentioned in my last reply, I had several instances of not indenting properly so that statements like exit() were not executing because their indention made them part of an if statement.
Re: Hi everyone, I'm kasmar45
Community Center
Say Hello!
2 Months Ago
by Dani
Welcome back! Thanks for joining and hopefully we can help you with your upcoming project.
Java sikhana chahte Hain
Programming
Software Development
2 Years Ago
by Yogendra_2
Java
Hi everyone, I'm Lilimae
Community Center
Say Hello!
4 Years Ago
by Lilimae
Java
Hi everyone, I'm New Ethiopian m
Community Center
Say Hello!
2 Years Ago
by New Ethiopian m
Java
1
2
3
17
Next
Last
Search
Search
Forum Categories
Hardware/Software
Programming
Digital Media
Community Center
Latest Content
Newest Topics
Latest Topics
Latest Posts
Latest Comments
Top Tags
Topics Feed
Social
Meet People
Forums
Top Members
Community Functions
DaniWeb Premium
Newsletter Archive
Markdown Syntax
Community Rules
Developer APIs
Connect API
Forum API Docs
Tools
SEO Backlink Checker
Legal
Terms of Service
Privacy Policy
FAQ
About Us
Advertise
Contact Us
© 2024 DaniWeb® LLC