1. place random points in a JPanel stackoverflow.comI have created a
|
2. What is top-left visible point of panel??? coderanch.comit is (0,0) the problem is the bottom left of the text is at (0,0), so you would need to find the height of the text, and adjust the y coord. simple demo showing the line drawn at y coord 40 text drawn also at y coord 40, but appears above the line import java.awt.*; import javax.swing.*; class Testing extends JFrame ... |
3. Whats the point of extending JFrames and JPanels? coderanch.comThe soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - ... |
4. How do I do I check Points inside a jPanel coderanch.comI am having a problem about my program. My mouselistener - mouseclicked - has to get a point and check all my panels if they have that point. Every time I click on a square, the selected square is always the upper left corner. The squares are individual panels on a main panel that has a grid layout. What is wrong ... |