hi, Silly question however. I'm testing a couple of problems, For example disable all components in the swing class that extends JApplet.
For example this code:
public class gameLobby extends...
Type: Posts; User: macko
hi, Silly question however. I'm testing a couple of problems, For example disable all components in the swing class that extends JApplet.
For example this code:
public class gameLobby extends...
g.drawLine(10, 20, 300, 200);
g.drawRect(100, 100, 50, 70);
g.setColor(Color.BLUE);
g.fillOval(x, y, 40, 40);
it's only these lines that are using the paint method....
Hey, I'm curious is there any way around this?
I know safari have java plugin blocked for a fair reason. And java still works on firefox..
However firefox is slow, I would prefer to get around it...
lmao copeg..
Your JDE should have an auto format option.
first of all.. why do u want to create a rich text area? Cant you simply add the radio button to a new panel..
also.. try creating and adding the radio button to the component u want it on.. and...
break it down to points. do a search on each part of the question you need to further understand the meaning of.
"usually you would create an algorithm before developing a program or in this case...
when you have got the user to successfully finish the loop. then use
break;
to break the loop and end it..
Create a JTable, User a custom cell renderer (google it).
Then create a database class that connects to the database (google it again).
Its all on google :) just look around and try things, We...
Got it solved by using JLabel and adding html into the string..
It may not be a executable jar, If it's not. Then figure out the main class and run it via a sample html page.
Also.. If the jar isnt signed it sometimes causes problems also. Other then that id...
Hey guys,
Just curious if its possible to use html inside a java applet. I am currently using a JTable for the user list, But im running into multiple errors when applet is loading and getting a...
I think its kind of a bad idea to reference an image from a local drive..
Simply copy the image file to your eclipse project main directory and refrence it as image.jpg. Either build the image...
try to scan word by word.. and do a if statement to check if the word is and or random
for example you could try:
if (word.equals("and"))
{
--- CODE here (use Replace not...
hmm... nobody?
you see that when you're adding new components to the panel/frame etc..
I have no time to test your code but first option would be to try to reset the frame as visible as the last line of code on...
I totally agree... I have just finished programming in college. I knew more then the teacher, Our last assignment was a multi threaded chat.. Seems the teacher didn't want to teach us networking....
Well it seems his trying to set a object as a string to me.
hmm If your new to loops, Stick to simple code such as JOptionPane
for example a string varible getting data from the optionpane
...
_strString = JOptionPane.ShowInputDialog(null,...
I could be wrong but just a suggestion.. when returning the object try to set it as a string. Example is:
return((String) objectValue);
Where are you initializing the variable for the images..
Do you get an error?
You should check the hosts file.. make sure the applet allows connections.
If the applet is a server for example.. the applet could be limited and set to localhost...
for a start.. Try to put in a few System.out.println()'s .. to check the value of every variable in that method.
EDIT: Make sure that they are printing out the correct details your after.
Could you post the code ?
Ok i guess this is more of a question then a problem.
I have begun using a SYNTH look and feel method that reads a XML file and sets the design according to that.
method for setting look and...
nobody culd help so i did a dodgy trial system for now..
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;
import...