Skip to main content
gamedev.net
🔒 Locked

Java Question

Started by looseskrewz 2 replies 1.5k views
Original Post
looseskrewz
looseskrewz
I go to compile and I get this (I edited the paths away to make it shorter) What am I not doing, and what do I do to fix it? :) Thanks error VJS1161: Cannot find type 'javax.swing.JPanel' error VJS1161: Cannot find type 'javax.swing.JCheckBox' error VJS1161: Cannot find type 'javax.swing.JTextField' error VJS1161: Cannot find type 'javax.swing.JPanel' error VJS1161: Cannot find type 'javax.swing.JCheckBox' error VJS1161: Cannot find type 'javax.swing.JTextField' error VJS1161: Cannot find type 'javax.swing.JPanel' error VJS1161: Cannot find type 'javax.swing.JLabel' error VJS1161: Cannot find type 'javax.swing.JButton' error VJS1161: Cannot find type 'javax.swing.JCheckBox' error VJS1161: Cannot find type 'javax.swing.JButton' error VJS1161: Cannot find type 'javax.swing.JCheckBox' error VJS1161: Cannot find type 'javax.swing.JTextField'
yadango
yadango
are you using visual J# to build a Sun Java Swing applet? i don't think you can do that. totally different products. need more info on what you are using to compile your java applet. install the Sun JDK and use something like Eclipse or NetBeans to compile that and it should work like a charm.

EDIT: oh nevermind me, i didn't know you actually could use Swing with J#.
http://msdn2.microsoft.com/en-us/vjsharp/bb188695.aspx
only thing i can think of now is if you didn't add the reference to the library.
Sneftel
Sneftel
Moved to For Beginners.
SKATIN_HARD
SKATIN_HARD
Did you make sure you have the lines

import javax.swing

at the top of your file Where it would be something like

import javax.swing.JPanel;


Maybe you just happened to leave those out.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.