Menu
Menu
DaniWeb
Log In
Sign Up
Read
Contribute
Meet
Search
Search
About 1,000 results for
frame
- Page 1
Re: Bouncing Balls: Creating a new ball when two balls collide
Programming
Software Development
2 Months Ago
by toneewa
…); } BallPanel bp = new BallPanel(b);
frame
.add(bp);
frame
.setSize(520, 540); // Set the
frame
size to 520x540
frame
.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); // Close the…
Re: Bouncing Balls: Creating a new ball when two balls collide
Programming
Software Development
2 Months Ago
by toneewa
…collisionCount, 20, 20); } }
Frame
.java: import javax.swing.JFrame; public class
Frame
{ public static void main(String[] …BallPanel bp = new BallPanel(b);
frame
.add( bp );
frame
.setSize( 500, 500 );
frame
.setVisible( true ); } private static …
Bouncing Balls: Creating a new ball when two balls collide
Programming
Software Development
2 Months Ago
by jprog1000
…javax.swing.JFrame; public class
Frame
{ public static void main( String args[] ) { JFrame
frame
= new JFrame( "…BallPanel bp = new BallPanel(b);
frame
.add( bp );
frame
.setSize( 500, 500 );
frame
.setVisible( true ); } } import …
"Enhanced Imaging: USB 3.0 Camera Technology"
Hardware and Software
2 Months Ago
by diana_17
… improved capabilities of USB 3.0 cameras allow for quicker
frame
rates and greater resolutions, resulting in smoother video capture and…
Re: Bouncing Balls: Creating a new ball when two balls collide
Programming
Software Development
2 Months 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 Months Ago
by Dani
I’ll mark this question solved :)
Re: Bouncing Balls: Creating a new ball when two balls collide
Programming
Software Development
2 Months 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
2 Months 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
2 Months 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());
Re: Bouncing Balls: Creating a new ball when two balls collide
Programming
Software Development
1 Month Ago
by jprog1000
Got it. Thank you so much!
Re: Bouncing Balls: Creating a new ball when two balls collide
Programming
Software Development
1 Month Ago
by aishamushtaq
Hi, Its helpful for me. I got my answer.
Re: Trying to animate sprite using DirectX9
Programming
Software Development
2 Months Ago
by Pavel_11
Hello, it is unneccessarily to use right movex or leftmovex , because it is to much variables. You should to use one variable movex to make it with minus or plus sign in your update function; by pressing left or right keys; because the one thing which is changable is a picture; I mean in global sense; variables like leftx, right x should be one…
Re: "Enhanced Imaging: USB 3.0 Camera Technology"
Hardware and Software
2 Months Ago
by rproffitt
Weird. I thought the move to USB-C was the next big thing.
Frame
Programming
Software Development
11 Years Ago
by Krishna1991
… a java program to create a
frame
with a menu File->Open The
frame
should consist of a combobox. On select… On click of the “Open” menu item display an internal
frame
with a text box and button named “insert”. On click…
frame help
Programming
Web Development
14 Years Ago
by MDanz
on the bottom
frame
is menu.html [CODE]<body><form action='…; </form> </body>[/CODE] on the top
frame
is link.php [CODE]<?php if (isset($_POST['url…
Frame on top on each other
Programming
Software Development
16 Years Ago
by mohanme_2001
… none of the frames are visible. When i keep the
frame
side by side its working. Is there any workaround for…
Re: Frame on top on each other
Programming
Software Development
16 Years Ago
by williamrojas78
Hi What is the
frame
you are using? i am using a GroupBox1 and GroupBox2 and it works fine. I also tried it with panel 1 and panel2 and works fine. Also, what do you have in the frames? Do you have any other routines that might be affecting the components inside the frames? regards
Frame
Programming
Software Development
13 Years Ago
by Aanchal89
… void main(String args[]) { Display d = new Display("main
frame
"); d.setVisible(true); d.setSize(300,300); } public void…
Frame / content pane "dead space"?
Programming
Software Development
14 Years Ago
by glenlivet
…(JFrame.EXIT_ON_CLOSE); Container container =
frame
.getContentPane(); MainFrame mf = new MainFrame(
frame
,container);
frame
.add(mf);
frame
.pack();
frame
.setSize(1100,800);
frame
.validate();
frame
.setVisible(true); } } [/code…
Re: Frame / content pane "dead space"?
Programming
Software Development
14 Years Ago
by Ezzaral
You're adding your components to the
frame
content pane itself - not the JPanel that you're constructing. …. You just need alter two lines to fix that[code]
frame
= iframe; // you want to set the panel layout and pass…;container" parameter at all. It's redundant with the
frame
reference and depending on what else you plan to do…
Frame fails to update
Programming
Software Development
12 Years Ago
by sirlink99
… Caves(this); int gameFrame = 1; JFrame f; public
Frame
(){ GraphicsEnvironment env = GraphicsEnvironment.getLocalGraphicsEnvironment(); vc = env.getDefaultScreenDevice(); Robot…(); } public static void main(String[] args) {
Frame
f = new
Frame
(); } boolean pB, l; @Override public void keyPressed…
Re: Frame fails to update
Programming
Software Development
12 Years Ago
by sirlink99
… Caves(this); int gameFrame = 1; JFrame f; public
Frame
(){ GraphicsEnvironment env = GraphicsEnvironment.getLocalGraphicsEnvironment(); vc = env.getDefaultScreenDevice(); Robot…(); } public static void main(String[] args) {
Frame
f = new
Frame
(); } boolean pB, l; @Override public void keyPressed…
Frame Targets
Digital Media
UI / UX Design
14 Years Ago
by jep87
… I'm having trouble targeting links in the menu
frame
to the main
frame
(where I'd like the link to show…'ve been doing: In the frames code, I put <
frame
src="http://..." name="main"> In… I click on links in the menu
frame
, they ACTUALLY show up in the target
frame
about 5% of the time. Can…
Frame resize problem
Programming
Software Development
12 Years Ago
by Tomashqooo
[CODE] from tkinter import * ... program ...
frame
=
Frame
(width=640,height=480)
frame
.pack() ...program... #now to change the
frame
size
frame
.configure(width=800) [/CODE] doesn`t work ... I tryed from.config() too but it doesnt work
Re: Frame resize problem
Programming
Software Development
12 Years Ago
by TrustyTony
I can not reproduce your problem: [CODE]try: from tkinter import * except ImportError: from Tkinter import * root = Tk()
frame
=
Frame
(root, width=640, height=480)
frame
.pack() #now to change the
frame
size
frame
.configure(width=200) mainloop() [/CODE]
Frame Refresh
Programming
Web Development
12 Years Ago
by mohamedasif18
…;"> <
frame
src"page1.php">Page1</
frame
> // Navigation <
frame
src"page2.php&…quot;>Page2</
frame
> // Main Content … By this case when user press F5 the Main content
frame
goes to page2.php from current page . In this case…
Re: Frame and Multiple Panel ..Need Help
Programming
Software Development
14 Years Ago
by BestJewSinceJC
… myFrame = null; public DynamicPanel1(DynamicFrame
frame
){ myFrame =
frame
; public void actionPerformed(ActionEvent e){ //Is…myFrame; DynamicPanel1 myPanel1; public DynamicPanel2(DynamicFrame
frame
, DynamicPanel1 panel1){ myFrame =
frame
; myPanel1 = panel1; } public void…
Frame detection possible?
Digital Media
UI / UX Design
18 Years Ago
by sjklein
… times - once for the main page and once inside the
frame
.[/COLOR] [COLOR=#555555]I would like to be able to… detect if the page is inside a
frame
. If it's in the
frame
, it wouldn't call Header.jsp. If… it wasn't inside a
frame
, it would call Header.jsp.[/COLOR] [COLOR=#555555]Does that…
Re: frame question
Programming
Software Development
15 Years Ago
by stultuske
… can keep clicking the button and i like new
frame
keep opening. so this is something i got, …are open and when they are closing. int openFrams;
Frame
newFrame= new
Frame
("quiz"); openFrams = newFrame; will that … as the errors you received allready stated, it is a
Frame
-Object, not a numerical value (corresponding to an int).…
Frame auto resize
Digital Media
UI / UX Design
15 Years Ago
by SameerMughal
… even though I enabled scrolling in my menu
frame
, content is not very nicely readable as it… just wondering if there is any way of
Frame
auto resize such if the content goes beyond …the origional width the
frame
automatically resize - i.e not the scrolling …but the
frame
width. It will be great if some …
1
2
3
17
Next
Last
Search
Search
Forum Categories
Hardware/Software
Recommended Topics
Programming
Recommended Topics
Digital Media
Recommended Topics
Community Center
Recommended Topics
Latest Content
Newest Topics
Latest Topics
Latest Posts
Latest Comments
Top Tags
Topics Feed
Social
Forums
Top Members
Meet People
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