Re: Bouncing Balls: Creating a new ball when two balls collide Programming Software Development 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 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 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 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 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 by Dani I’ll mark this question solved :) Re: Bouncing Balls: Creating a new ball when two balls collide Programming Software Development 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 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 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 by jprog1000 Got it. Thank you so much! Re: Bouncing Balls: Creating a new ball when two balls collide Programming Software Development by aishamushtaq Hi, Its helpful for me. I got my answer. Re: Trying to animate sprite using DirectX9 Programming Software Development 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 by rproffitt Weird. I thought the move to USB-C was the next big thing. Frame Programming Software Development 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 …