JavaSwing, Scope and actionPerformed. Programming Software Development by thompsonSensibl Hello, I'm in a pickle. (Please observe the code) In the actionPerformed method, I don't know how I can get the value of the variable 'minutes'. I can get 'hours' by e.getActionCommand(), but can't do minutes that way. I need to get both 'hours' and 'minutes' at the same action. Please help. import java.awt.FlowLayout; import … Re: JavaSwing, Scope and actionPerformed. Programming Software Development by JamesCherrill This is really confused. You need to stop coding for a minute or two and think about what you are doing. You have 2 JLabels, but then you add action listeners as if they were buttons, then you try to get two Strings from them as if they were JTextFields. If you want to get user input then the obvuious thing is to add two JTextFields and an "OK… Re: JavaSwing, Scope and actionPerformed. Programming Software Development by thompsonSensibl Sorry, my mistake. Yes, I meant JTextFields, and not JLabels; I have tried to correct them but can't (maybe you can, as a mod?) . And I don't want to add in a JButton; there must be a solution without one! Cheers. Bookstore Program Programming Software Development by tone10lite ….0 Dveloped on May 3, 2009 */ import java.awt.*; import javaswing.*; import java.awt.*; public class Books { Variables String Title; private… cannot find Symbol again Programming Software Development by dennysimon … LoginDialog.java below the source site is [url]http://www.javaswing.org/jdialog-login-dialog-example.aspx[/url] Hope that someone… Re: visualization Programming Software Development by jjt Do you mean JAVASWING for 2D Graphics? I am used with JCreator LE, but the tutorial in JAVASWING is based on the IDE NETBeans? Which is more useful for my work? Could you suggest me something! Thx JJ --- Re: Java codes to extract information off a webpage Programming Software Development by Roodra …'s sure a start. However, when you want to use JavaSwing to make an interface for codes, and uses classes, how… suggest give a sample code , that integrates classes, methods in javaSwing ? Re: Any projects for the java beginner? Community Center by zeroliken yes, here's a link for an example [URL="http://www.javaswing.org/java-cardlayout.aspx"]http://www.javaswing.org/java-cardlayout.aspx[/URL] Re: visualization Programming Software Development by jjt did some work with JAVASWING. with UI creation. My intension over here, is that i … Re: visualization Programming Software Development by eranga262154 [QUOTE=jjt;439901]did some work with JAVASWING. with UI creation. My intension over here, is that i … Re: visualization Programming Software Development by Ezzaral [quote=jjt;440415]Do you mean JAVASWING for 2D Graphics?[/quote] Well, your graph would be on a JPanel, but you would override paintComponent() with your own code to generate the shapes, lines, etc. Here again is the link to the tutorial on 2D graphics: [URL]http://java.sun.com/docs/books/tutorial/2d/index.html[/URL] Re: Getting a picture from file? Programming Software Development by niranga Read [url]http://www.javaswing.org/jfilechooser-example.aspx[/url] Re: Bookstore Program Programming Software Development by VernonDozier Note the revisions. There is still a lot for you to do, but this will at least compile. [code=JAVA] import java.awt.*; import javax.swing.*; public class Book { // Variables String Title; private int Price, Pages; // METHODS private String getTitle() { return Title; } … Re: Bookstore Program Programming Software Development by peter_budo [B]Ah just seen that I'm minute too late. VernonDozier provided some bits that I left for you to finish [/B] You are expected to create at least 3 classes let call them Book, Booklet and BookletsGUI. Your provided code is real mess and show that you are seriously behind your class studies. The book class should look something like this [code=… Re: Bookstore Program Programming Software Development by peter_budo Now this ill-mannered thing you did.. [QUOTE=tone10lite]Thanks a lot for your help. I need to get this done by 11 am tommorow because its my final for the class. Everything you said to me doesent really make sense because im so behind do you think you can finish it for me? I can paypal you some money for it if you want but i just need to pass this… Re: cannot find Symbol again Programming Software Development by NormR1 Please post the FULL text of the error message. To copy the contents of the command prompt window: Click on Icon in upper left corner Select Edit Select 'Select All' - The selection will show Click in upper left again Select Edit and click 'Copy' Paste here. Also show the commandline that you are using to compile the program. The classpath should… Re: cannot find Symbol again Programming Software Development by dennysimon here is the command line error thank you denny Microsoft Windows XP [Version 5.1.2600] (C) Copyright 1985-2001 Microsoft Corp. C:\Documents and Settings\han>cd\ C:\>cd\ C:\>cd c:\program files\java\jdk1.6.0_25\bin C:\Program Files\Java\jdk1.6.0_25\bin>javac c:\java\… Re: cannot find Symbol again Programming Software Development by dennysimon and here is the command line to compile Login.java thank you denny //----------------------------- Microsoft Windows XP [Version 5.1.2600] (C) Copyright 1985-2001 Microsoft Corp. C:\Documents and Settings\han>cd\Program Files\java\jdk1.6.0_25\bin C:\Program Files\Java\jdk1.6.0_25\bin>javac c:\java\jdialogdemo\Login.java C… Re: cannot find Symbol again Programming Software Development by jwenting do learn to use your tools. You NEVER run the JDK tooling from the installation directory. Run them from the root of your source directory, setting the appropriate environment variables to point to the JDK tooling, and the appropriate commandline parameters for the compiler to direct its input and output directories as well as its classpath. … Re: cannot find Symbol again Programming Software Development by NormR1 For the javac command to find a class definition the definition needs to be on the classpath. The compiler can not find the definition for the Login class. The classpath should be set to the folder that contains the package folder: jdialogdemo since Login is in that package. Re: cannot find Symbol again Programming Software Development by dennysimon Hello I have succeded create class,but I wonder why there are more than one class made ,this time I use another example ,and it logically has to create 2 classes DialogDemo.class and CustomDialog.class,but it create DialogDemo$1.class,Dialogdemo$2 Custom Dialog$1 CustomDialog$2 etc (there are 11 clases all), when I run java DialogDemo ,it ok , … Re: cannot find Symbol again Programming Software Development by jwenting You're using inner classes, the XXX$YYY.class are inner classes to XXX.