Forum: Java Mar 3rd, 2005 |
| Replies: 1 Views: 1,814 Hi, i'm working on an application cosisting of 7 individual jFrame screens. I was wondering, is it possible to code a button to go back to a previous screen, without removing any data a user has... |
Forum: Java Mar 2nd, 2005 |
| Replies: 15 Views: 5,569 I've tried the follwing, but it doesn't compile - it says it can't overide the paint method:
public void paint(Graphics g) extends jLabel1 {
g.setColor(Color.green);
g.drawLine(600,335,290,290);... |
Forum: Java Mar 1st, 2005 |
| Replies: 15 Views: 5,569 Hi, I'm developing a GUI with several forms, one of which contains a jLabel that displays a JPEG image of a graph as it's icon. How do I go about plotting a simple 2d curve on that image from a set... |
Forum: Java Jan 23rd, 2005 |
| Replies: 7 Views: 3,298 How do I code an IF loop to perform the following?:
if a > X
b = //a value//
else
b = //another value//
Thanks!! |
Forum: Java Dec 16th, 2004 |
| Replies: 4 Views: 2,139 I've written a Java application using Netbeans, and I was wondering if there is any way in which I can run this application using an executable file in windows rather then having to run it through... |
Forum: Java Dec 8th, 2004 |
| Replies: 1 Views: 8,528 Hi, how would I go about changing the mouse cursor image? I have a jLabel with an image of graph on it and I would likt the mouse cursor to change to a cross-hair when the mouse is moved onto the... |
Forum: Java Dec 1st, 2004 |
| Replies: 1 Views: 2,342 Hi, I'm creating a GUI in which users are required to interact with graphs. I have a jFrame on which I have put a jLabel and used this label to import a JPEG of a graph (i.e it's an icon). My problem... |
Forum: Java Nov 22nd, 2004 |
| Replies: 9 Views: 2,470 Yes, calculations is defined elsewhere. However, when I add the code you provided me with(very grateful!!), the compiler returns with an error saying that an identifier is missing before the line of... |
Forum: Java Nov 22nd, 2004 |
| Replies: 9 Views: 2,470 Still doesn't work, even with the modifications given above. I still work on it though, must be some way round it!! |
Forum: Java Nov 22nd, 2004 |
| Replies: 9 Views: 2,470 Hi, it almost helps, but when I try and run the program, it comes up with:
Intake.java [189:1] <identifier> expected
calc = pram.getCalculator();
^
1 error
Errors compiling Intake. |
Forum: Java Nov 22nd, 2004 |
| Replies: 9 Views: 2,470 I'm having a problem whereby I create an instance of a class called Calculations.class in one of my main classes, but cannot access that instance from any other class. Here is the code
public... |
Forum: Java Nov 16th, 2004 |
| Replies: 1 Views: 1,869 I'm programming a GUI and some frames require images to be displayed on them. How do I go about importing a simple jpeg onto a Jpanel within the GUI frame? |
Forum: Java Nov 14th, 2004 |
| Replies: 3 Views: 2,261 I'm having a problem with a GUI i'm building. I have a separate class called Calculations.class which does nothing except hold certain variables and do calculations with them. One of my classes... |
Forum: Java Nov 9th, 2004 |
| Replies: 2 Views: 4,801 I have a small problem with doing calculations in one java class and trying to refer to the varibles in another class. I have written a GUI program that performs certain calculations and then when a... |
Forum: Java Nov 8th, 2004 |
| Replies: 1 Views: 2,659 Hi, just wondering if anyone could help with a little problem. I'm designing a GUI that models the behaviour of a gas turbine engine. I need to add a graph i have scanned into my computer onto the... |