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...
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...
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...
Hi! I have a big problem. I want to check if a visitor of my page already has been there. And i want to do that by checking if the cookie "knife" is empty or not. I have tried the following command:
if Request.Cookies("knife") == "" then
else
...... lots of...
How do i make a VBScript function to activate when i press a button. The button is written in a asp file and the function that will be called should empty the shopping basket. Can anybody help me with this? (I think that James can ;)
Hi! I sure hope that i'll get as good help that i have had on my other questions. I have this problem, i want the shopping basket to be in a frame so the customer always will see what the basket contains... but i can solve this... pls help me... this is the code for ShowBasket.asp:
<html>...
I have a problem in my shopping basket. If i try to put a merchant in the basket and the merchant already is there, i get a error msg... but that isn't how i want it... i want it to increas the Quantity instead. Can u help me? The code i have now is:
<%
Dim oCmd
Dim BasketID, MerchantID...
I wanna now how i can give a custumer a own generated id and put it in a cookie so the custumer always has the same id when he/she comes to my page... can some one help me?
(btw... the id should be stored in a database to) =)
I have a problem. I'm programming a homepage in asp with VBScript and databases. And i also have a shopping basket on it. And now to my problem, i have a file, AddToBasket.asp, that puts the merchant in the basket and i call it with:
AddToBasket.asp?BasketID=...&MerchantID=...&Quantity=...
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.