Advertisement
Nickname
charles
Registered since:
February 26, 2002
Short bio:
Retired Comet astronomer Java programmer
Home page:
http://cometskies.com
Total posts:
519

Forum posts by Charles Bell:

35 pages [ Previous 1 ... 23 24 25 26 27 28 29 30 31 32 33 Next ]
Posted in Java Answers Forum, Jun 17, 2002, 2:42 AM
Try this link:http://www.mindview.net/Books/TIJ/A very easy to use and free text editor tool can be gotten at:http://www.scintilla.org/SciTE.htmlIf you are using windows, I recommend the windows installer version at:http://www.algonet.se/~tomten/scite/
Posted in Java Answers Forum, Jun 17, 2002, 2:34 AM
create a FileInputStream with the file you want to read as its argument:File dataFile = new File("data.pat");FileInputStream fis = new FileInputStream(dataFile);DataInputStream dis = new DataInputStream(file);//then its just a matter of reading in the 256x256 //pixel data bytes in some kind of loop.int framepixels = 256*256;for (int frame =...
Posted in Java Answers Forum, Jun 17, 2002, 2:21 AM
/* Access.java* @author: Charles Bell* @version: Jun 17, 2002*/import java.awt.*;import javax.swing.*;/** Access*/public class Access extends JFrame{ public Access(){ super("Access"); init(); } public static void main(String[] args){ Access access = new Access(); } public void init(){ setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); String user...
Posted in Java Answers Forum, Jun 17, 2002, 2:00 AM
Here is a simple Email Applet which will cause theuser's email client to bring up a filled in email message when clicked which you could adapt to your project and send simple email messages to others.You could easily adapt this to your particular situation:/* EmailApplet.java* @author: Charles Bell* @version: June 17, 2002*/import...
Posted in Java Answers Forum, Jun 17, 2002, 12:27 AM
JPanel square[j] = new JPanel();JLabel imageLabel[j] = new JLabel(new ImageIcon("myimage.gif"));square[j].add(imageLabel[j]);and later in the program when you want to change the image:imageLabel[j].setIcon(new ImageIcon("newimage.gif"));
Posted in Java Answers Forum, Jun 17, 2002, 12:19 AM
all you need to do is add some lines of code as was suggested:simpleA.addActionListener(new ProActionListener());interestA.addActionListener(new ProActionListener());just like you did to your OK button.
Posted in Java Answers Forum, Jun 17, 2002, 12:15 AM
No, the only methods I see are the memory methods of the Runtim class.Something like what you propose is outside the scope of the normal java. Have you tried writing a c or a c++ program and interfacing with a jni call?
Posted in Java Answers Forum, Jun 17, 2002, 12:08 AM
I responded to the post with the real stuff in it. I left the programming to be completed by you, but if you are still stuck hit me up again.Your program is looking good.
Posted in Java Answers Forum, Jun 17, 2002, 12:06 AM
With JRadioButton you have several constructors to choose from:Constructor SummaryJRadioButton() Creates an initially unselected radio button with no set text.JRadioButton(Action a) Creates a radiobutton where properties are taken from the Action supplied.JRadioButton(Icon icon) Creates an initially unselected radio button with the specified...
Posted in Java Answers Forum, Jun 17, 2002, 12:01 AM
private class Executionionhandler implements ActionListener{ public void actionPerformed(ActionEvent event){ for(int i=0;i{ int x=array;int k=x+2;if (look(x)> 0) i = look(x);........}}public int look(int j){ int n = -1; if(j==5)n =20; return n;}
Posted in Java Answers Forum, Jun 16, 2002, 11:57 PM
There is an open source project called Jacobat:http://users.rcn.com/danadler/jacob/
Posted in Java Answers Forum, Jun 16, 2002, 11:54 PM
public void setFields(File propertiesFile){ Properties properties = new Properties(); try{ properties.load(new FileInputStream(propertiesFile)); String isdn = properties.getProperty("ISDN"); String title = properties.getProperty("Title"); String author = properties.getProperty("Author"); String edition = properties.getProperty("Edition");...
Posted in Java Answers Forum, Jun 16, 2002, 11:49 PM
You need to declare your text fields with names so you can reference them in your program and then set the test values. You have them declared anonymously: bookTextFields.add( new JTextField( 5 ) ); bookTextFields.add( new JTextField( 10 ) ); bookTextFields.add( new JTextField( 10 ) ); bookTextFields.add( new JTextField( 10 ) );...
Posted in Java Answers Forum, Jun 16, 2002, 11:20 PM
If you are not getting anything at all to show up in the textarea, then the textarea you think you are writing to must not be the one you are looking at. This might mean that you have defined the textarea more than one time in your program, perhaps once globally and another time locally, with the global version being the one you are looking at...
Posted in Java Answers Forum, Jun 16, 2002, 11:13 PM
change input = new BasicFileReader (data.txt);to input = new OOJ.basicIO.BasicFileReader (data.txt);
35 pages [ Previous 1 ... 23 24 25 26 27 28 29 30 31 32 33 Next ]
Advertisement