Search Results

Showing results 1 to 40 of 41
Search took 0.01 seconds.
Search: Posts Made By: MrScruff ; Forum: Java and child forums
Forum: Java Apr 25th, 2005
Replies: 14
Views: 2,028
Posted By MrScruff
wht RU on Abt Jwenting? Dis is prfctly gd grmr!!
Forum: Java Mar 14th, 2005
Replies: 2
Views: 1,937
Posted By MrScruff
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
Posted By MrScruff
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
Posted By MrScruff
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
Posted By MrScruff
So what would happen if you typed:

slapMmiikkee(); ?
Forum: Java Mar 14th, 2005
Replies: 14
Views: 3,807
Posted By MrScruff
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
Posted By MrScruff
Ta for the info! But it didn't work :(
Forum: Java Mar 13th, 2005
Replies: 14
Views: 3,807
Posted By MrScruff
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
Posted By MrScruff
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
Posted By MrScruff
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
Posted By MrScruff
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
Posted By MrScruff
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
Posted By MrScruff
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
Posted By MrScruff
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
Posted By MrScruff
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
Posted By MrScruff
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
Posted By MrScruff
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
Posted By MrScruff
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
Posted By MrScruff
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
Posted By MrScruff
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
Posted By MrScruff
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
Posted By MrScruff
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
Posted By MrScruff
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
Posted By MrScruff
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
Posted By MrScruff
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
Posted By MrScruff
http://www.devx.com/tips/Tip/13625
Forum: Java Nov 23rd, 2004
Replies: 3
Views: 2,344
Posted By MrScruff
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
Posted By MrScruff
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
Posted By MrScruff
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
Posted By MrScruff
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
Posted By MrScruff
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
Posted By MrScruff
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
Posted By MrScruff
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
Posted By MrScruff
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
Posted By MrScruff
package untitled4;

import java.util.*;

public class bubble
{

public static void main (String[] args)
{
Forum: Java Nov 18th, 2004
Replies: 3
Views: 1,418
Posted By MrScruff
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
Posted By MrScruff
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
Posted By MrScruff
Look up ImageIcon in the API
Forum: Java Nov 17th, 2004
Replies: 2
Views: 1,882
Posted By MrScruff
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
Posted By MrScruff
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...
Showing results 1 to 40 of 41

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC