Forum: Java Apr 25th, 2005 |
| Replies: 14 Views: 2,028 wht RU on Abt Jwenting? Dis is prfctly gd grmr!! |
Forum: Java Mar 14th, 2005 |
| Replies: 2 Views: 1,937 Yeah for some reason - on my main prog i click a button brings up a little display window to show a few details. But when i move this window. it goes black :S Any ideas? |
Forum: Java Mar 14th, 2005 |
| Replies: 14 Views: 3,807 Sorry for the double post, Im not sure how to edit the above message?
I tried the above and it kinda worked. However other buttons moved around it and it wasn't a very reliable method. |
Forum: Java Mar 14th, 2005 |
| Replies: 14 Views: 3,807 Thats great thanks. Yeah i was thinking that i might be able to remove and add the button when the user clicks it - might flicker. I will try it anyway. |
Forum: Java Mar 14th, 2005 |
| Replies: 22 Views: 12,152 So what would happen if you typed:
slapMmiikkee(); ? |
Forum: Java Mar 14th, 2005 |
| Replies: 14 Views: 3,807 You guys are missing something ;) I am creating a scatter field, each star being a button (1700 of them to be exact). Therefor the buttons are placed depending on their x,y attributes and can overlay... |
Forum: Java Mar 13th, 2005 |
| Replies: 14 Views: 3,807 Ta for the info! But it didn't work :( |
Forum: Java Mar 13th, 2005 |
| Replies: 14 Views: 3,807 Hi! I have a bunch of Jbuttons which are scattered over each other. Is there a method which will bring the button the user selected to the front of the pack?
Thanks! |
Forum: Java Mar 7th, 2005 |
| Replies: 1 Views: 8,483 Hey guys,
I can set the font of a label just fine. However I want to set the font of the text on a button. Alas JButton only takes a string as a parameter for the text on the button. Any ideas... |
Forum: Java Feb 5th, 2005 |
| Replies: 4 Views: 5,744 Darn so how can i make them bigger?! I feel the grid layout might be restricting the size but im not so sure. |
Forum: Java Feb 5th, 2005 |
| Replies: 4 Views: 5,744 Is there anyway of actually changing the length of a slider. I have a some sliders in a grid layout and im wondering wether the grid layout will stop the sliders from expanding. |
Forum: Java Feb 5th, 2005 |
| Replies: 3 Views: 1,652 Ive actually just created a border layout with the graph in the center, Y axis (panel with gridLayout) to west and x axis (same as Y) south. Then created 5 labels for each y/x panel which i have... |
Forum: Java Feb 4th, 2005 |
| Replies: 5 Views: 2,243 What type of errors are you getting or what seems to be the problem? Does it compile and run Ok? |
Forum: Java Feb 3rd, 2005 |
| Replies: 3 Views: 1,652 Hey guys n girls, I have two arrays (one for x and one for y axis) which contain labels i would like to display on a graph. How do you recommend i do this?
I was thinking multiple JLabels, spread... |
Forum: Java Jan 30th, 2005 |
| Replies: 4 Views: 3,386 I actually used a SortedSet which seems to have done the job nicely. Thanks for the tip on Vectors, i see they have synchronisation overhead - what other problems have you found with them. I couldn't... |
Forum: Java Jan 30th, 2005 |
| Replies: 4 Views: 3,386 Does anyway know of a method which will do this on a vector, or a container which automatically sorts them? Otherwise i might try and use the ascii values. But just wondering what you peeps thought? |
Forum: Java Dec 6th, 2004 |
| Replies: 4 Views: 1,931 Hey you were right - not so sure what i did differently. mostlikely didn't give the label panes any sort of layout let alone a grid one. :)
ta muchly |
Forum: Java Dec 6th, 2004 |
| Replies: 4 Views: 1,931 Thats a fine idea, alas, one ive already tried with little success as the labels and sliders do not line up correctly - the labels end up being bunched together.
Thanks for the suggestion though :) |
Forum: Java Dec 5th, 2004 |
| Replies: 4 Views: 1,931 Hey people, Im just wondering what type of layout you would recommend to set up a grid of labels and sliders:
This is the format that i would like them to be in.
JLabel - Jslider - JLabel
JLabel... |
Forum: Java Dec 1st, 2004 |
| Replies: 0 Views: 2,823 Hello, I am currently working on some coursework from which i have to write a syntax analyser to parse a grammer. Unfortunatly I am finding it hard to understand what I am meant to be doing - and if... |
Forum: Java Nov 30th, 2004 |
| Replies: 2 Views: 2,364 Ive been given this code as part of a lexical analyser for which i will be coding a syntax analyser - however the file the lexical analyser will be reading will come throught this code:
public... |
Forum: Java Nov 28th, 2004 |
| Replies: 1 Views: 5,376 Is there anyway i can get some labels and sliders to alignproperly when they are both using grid layouts attached to a border layout.
Basically using one gridlayout for the lot meant that the... |
Forum: Java Nov 28th, 2004 |
| Replies: 2 Views: 2,621 You could construct two for loops which search through the array - one inside the other. Then when you find which value you are looking at - just print out the number each bit of the for loop got to. |
Forum: Java Nov 24th, 2004 |
| Replies: 4 Views: 1,901 Q1. Try looking up java members in google or structure the question differently like "whats a member in java?" then apply that answer to your question youve got. I mean i don't even know what it... |
Forum: Java Nov 23rd, 2004 |
| Replies: 2 Views: 1,406 What isn't? -
P in Public class Prog1 shouldn't be a capital.
The chars aren't defined properly - static final char blank = ' ';
Whats := all about? Not sure myself but i don't get an error when... |
Forum: Java Nov 23rd, 2004 |
| Replies: 2 Views: 2,083 http://www.devx.com/tips/Tip/13625 |
Forum: Java Nov 23rd, 2004 |
| Replies: 3 Views: 2,344 You could have an array of vowels which you could campare with every :( letter and if theres a match increment a vowelCount variable :) |
Forum: Java Nov 22nd, 2004 |
| Replies: 9 Views: 2,472 it would have to be the calculator created in parameters so
public Calculator getCalculator()
{
Calculator calc1;
calc1 = calc;
return calc1;
}
hows that? but then if its been declared... |
Forum: Java Nov 22nd, 2004 |
| Replies: 9 Views: 2,472 You could make a method in your parameters class called getCalculator, which simply returns the calculator -
public Calculator getCalculator()
{
return calc;
}
Then create an instance of... |
Forum: Java Nov 22nd, 2004 |
| Replies: 11 Views: 4,332 Weeell the best ones ive used so far are:
Eclipse - "Eclipse is an open platform for tool integration built by an open community of tool providers. Operating under a open source paradigm, with a... |
Forum: Java Nov 21st, 2004 |
| Replies: 5 Views: 3,868 Thats the best way to get through an array - is the exception error a arrayoutofbounds one? Check your i<whatever bit in the forloop - it may trying to check out more spaces in the array than there... |
Forum: Java Nov 21st, 2004 |
| Replies: 5 Views: 3,868 Ok look up String in the API - there are two methods which you can use in there.
and heres a tutorial on conversion:
http://mindprod.com/jgloss/conversion.html
Hope that helps :) |
Forum: Java Nov 20th, 2004 |
| Replies: 5 Views: 3,868 Try using a while loop and character array. Also look up StringTokenizer in the API: http://java.sun.com/j2se/1.4.2/docs/api/
You should be able to work it out from there. :) |
Forum: Java Nov 19th, 2004 |
| Replies: 2 Views: 4,702 if ((long1/divisor) == divisor)
perfectSquare = true;
divisor; <--- whats that doin there? I don't think its a proper statement.
}
:) |
Forum: Java Nov 18th, 2004 |
| Replies: 1 Views: 1,634 package untitled4;
import java.util.*;
public class bubble
{
public static void main (String[] args)
{ |
Forum: Java Nov 18th, 2004 |
| Replies: 3 Views: 1,418 Is it possible for you to be a bit more specific about the problems? Might be easier to take it one step at a time :) |
Forum: Java Nov 18th, 2004 |
| Replies: 7 Views: 1,942 Don't just read remeber to put theory into practice - no doubt the best way to learn is to get stuck in there and start writing programs :) |
Forum: Java Nov 17th, 2004 |
| Replies: 1 Views: 1,872 Look up ImageIcon in the API |
Forum: Java Nov 17th, 2004 |
| Replies: 2 Views: 1,882 First of all remeber to wrap your code with tags.
Second make sure youve got the right location for the file - You have to put the whole location in i.e '"C:/blah/matches.txt" unless its actually... |
Forum: Java Nov 17th, 2004 |
| Replies: 5 Views: 30,561 Thankyou jwenting that worked a treat. I am not using Tiger, unfortunatly, and I had never thought of using StringBuffer - i tried using the concat function to stick the strings together but it never... |