1. java.awt , swing, and APACHE POI for Power Point Presentation stackoverflow.comI'm trying to use SlideShow to create presentation... http://poi.apache.org/apidocs/org/apache/poi/hslf/usermodel/SlideShow.html and I see some uses of java.awt classes in the examples. My question is: to what extent awt can be ... |
2. Can't get the right point for Gui Java Clock stackoverflow.comThere is something wrong with my math and to be honest I'm not exactly sure what I'm doing as far as the math goes. heres what the applicable code looks like:
|
3. How to find anchor/rotation point in Java? stackoverflow.comOk I've been trying to rotate a Rectangle that sits on top of an image. I have a Scrollable class that displays the Image. I can draw Rectangles on ... |
4. Drawing curve from several points stackoverflow.comI would like to know how to join point together to form a curve. I have 20 points in a diagram and would like to know how to join to ... |
5. launching and closing a native browser that points to web app stackoverflow.comHello good Stack Overflow people, I do have a business problem and would like to get some answers/pointers/ideas on how to go about solving it. perhaps this has been mentioned in some ... |
6. Swing draw points bytes.com@KiddoGuy Read Sun's Swing tutorial. The AWT event dispatch thread calls the paint() method which calls the paintComponent() method; that's the method you have to override (re-implement) if you want to ... |
7. How to jump to a point in a program? coderanch.comHello, Perhaps I'm missing your point a bit... What about putting each loop in it's own method and then running a thread to handle the button event and call the method with the second loop when the button is pushed? The methods could otherwise be called from main in whatever order you wanted. Good Luck, -Dirk Schreckmann |
8. Converting points. Help! coderanch.comWhat I have is a group of images stored in a jar file that I load into ImageIcons that get placed into a scroll pane that gets put into a label that gets put into a tabbed pane. The ImageIcon can be zoomed in and out Before I put the "resetPoint" (my home grown method) call in, when I click on ... |
9. fraction point problem coderanch.com |
10. set start point for dimension coderanch.com |
11. requesting all components at a Point coderanch.comI solved it. I thought there would be some kind of method for this in SwingUtilities but there isn't so: public static Component[] getComponentsAt(Component parent, int x, int y) { ArrayList selectedComponents = new ArrayList(); if (!parent.contains(x, y)) { return null; } if (parent instanceof Container) { Component components[] = ((Container)parent).getComponents(); for (int i = 0 ; i < components.length ; ... |
12. Break point coderanch.com |
13. setMaximumFractionDigits : Digits After Decimal Point without Rounding coderanch.comOriginally posted by savas karabuz: When the user inputs into this field, say 12345, it is converted to 12.345,00 after navigating to the next field(Locale specific). But if 12345,467 is inputed, it is converted to 12.345,47. What i need, and don't know how to get, is just the "two" digits after the decimal point displayed on the screen, not the ones ... |
14. How to draw points in Java? coderanch.comimport java.awt.*; import java.awt.event.*; import java.awt.geom.*; import java.util.*; import java.util.List; import javax.swing.*; public class DrawingPoints { public static void main(String[] args) { JFrame f = new JFrame(); f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); f.getContentPane().add(new PointPanel()); f.setSize(400,400); f.setLocation(200,200); f.setVisible(true); } } class PointPanel extends JPanel { List pointList; Color selectedColor; Ellipse2D selectedPoint; public PointPanel() { pointList = new ArrayList(); selectedColor = Color.red; addMouseListener(new PointLocater(this)); setBackground(Color.white); } protected ... |
15. drawing a curve from points coderanch.comHi, I am a relative newcomer to this sort of stuff, but here's what I'm thinking: First, I don't know of any class that would do what you want to do. However, here is what I would start with: You have a collection of points, probably in two arrays, int xPoints[] and int yPoints[], or maybe just in one array, points ... |
16. Drawing a point coderanch.com |
17. point to a folder (directory in windows) coderanch.com |
18. conversion of power point(ppt) file into flash(swf) file coderanch.com |
19. Help with getting new points coderanch.comHi guys, I am doing a project that needs me to draw a triangle on the screen and rotate it. The rotate part is fine but after i rotate the shape i could not get the new cordinates of the new triangle.Please advice thanks. i tried to cast the shape back to polygon and get the points but i had a ... |
20. Get LeafElement from DefaultStyledDocument by Point(x,y) ?? coderanch.com |
21. Distance between a point and a cubic curve coderanch.comHi, I need to implement a function that makes a cubic curve "selected" when the user clicks on it. In order to do that, I need to detect whether the mouse click happened on the cubic curve (or within a very short distance from it). So I need a function which, using pseudo-code would look like this: if(distance between mouseClick and ... |
22. Null point in netbeans gui coderanch.comHi I have a problem with NetBeans gui class and variables from class that i made. Here is the whole code. // so this is automated code from NetBeans with main method package ultimateweather; import org.jdesktop.application.Application; import org.jdesktop.application.SingleFrameApplication; /** * The main class of the application. */ public class UltimateWeatherApp extends SingleFrameApplication{ /** * At startup create and show the main ... |
23. Drawing a point java-forums.orgHi, I have written a code that gives me the position of a planet in relation to the sun. What i get is the position x and the position y. now I would like to draw these positions in a window. The window I made is from the Graphics class. I am searching a method (like drawLine) but for points. Thanks ... |
24. looking for Point interpolater java-forums.orgHello, I'm wondering if there's a method or class or algorithm of some kind in the Java APIs that will take in two Point objects and interpolate them. More specifically, I'd like something that will help me produce a line between the points, but I need this line to be made up of Points itself - that is, an array or ... |
25. point of sale system help urgent java-forums.orgAOA i m creating a point of sale system using java ...i want to create a sale screen that have all the records from a database and when user start writing in a field named "required item" all the records against that alphabet should display only e.g if user write "a" than only the records starting with "a" should be displayed ... |
26. Look and Feel ClassNotFoundException (where should my classpath point?) forums.oracle.comYou're not getting that exception thrown, you're not even running the code. The compiler is telling you that you have to add a try/catch or a throws clause in case it does happen. And please tell me, what's the wonderful concept of omitting error messages like ex.printStackTrace() in catch blocks to improve debugging? |