how do i show the buttons that i create in an applet with this code?
private JButton B1;
private JButton B2;
public void init()
{
// JApplet init with your code.
B1 = new JButton("Button 1");
B1.addActionListener(new ButtonActionListener()); // reg
B2 = new JButton("Button...
Hi! I have a problem. I wanna have 2 buttons in my applet.
When u click on button 1 it should print a text in the applet.
When u click on button 2 a singel line should be painted in the applet.
I don't know how to get these buttons and how to register listeners for them. can anybody help me...
ok. in the class MyFrame.java i wanna create a listener with the class CheckButtons that is a inner class in MyCanvas.java do u understand or should i describe more?
But if i wanna call one of the innerclasses in another class? For an exampel if i wanna register a ActionListener on a button that is defined in a class and the listener is a inner class in some other class... how do i do that?
I have a problem. i wanna uppload a file to the webbserver with an ASP file. I have a form that is used to insert a new merchant into a database and one of the fields in the form is used to specify the location of the picture. But i wanna change that so i can browse the hard drive and chose a...
Hi everybody... i have a little problem with java.
I have a application that contains alot of differnt classes. And in one of these classes i have a inner class.
My question is: How do i call the inner class?
The application is a "Drawing program". The class that contains the...
it worked very good. but i have another problem now... I also want a varible to be inserted into the table OrderContent. The varible should be inserted into the
Field OrderID and the MerchantID and Quantity should be moved from BasketContent to OrderContent. Here is the code sofar:
INSERT INTO...
Hi everybody! I want to move every thing in a table where BasketID = "the current id". And it should all be moved to another table. My problem is that only one of the enteries in the table gets moved, not all eneteries that have the same BasketID. Any help here?
/Björn
Hi everybody! I want to have a search function on my page. The user types whatever he/she wants to find in a text box and the hits the button. I've tried everything to make this work and i thought that this would work:
"SELECT * FROM Varor WHERE KortBeskrivning LIKE '" & strSearch...
I know that the cookie is beening set because when i display the value of the cookie with Response.Write Request.Cookies("knife") it shows the correct value, and it also shows the correct and the same value when i update the browser. But if i close the browser and then opens it again...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.