English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

Programming & Design - March 2007

[Selected]: All categories Computers & Internet Programming & Design

import java.applet.*;
import java.awt.*;
import java.awt.event.*;

public class LeapYearApplet extends Applet implements ActionListener
{
private TextField inField = new TextField(15); //GUI components
private TextField resultField = new TextField(15);
private Label promt1 = new Label("Input Year >>");
private Label promt2 = new Label(">> is a Leap Year = >>");
private Button FindYear = new Button ("Leap Year!");

private isLeapYear = new isLeapYear(); //The Leap Year object
}

public void init();
{ //Set up the user interface
add(promt1); //Input elements
add(inField);
add(FindYear); //Control Button
add(promt2); //Output elements
add(resultField);
//Register button with listeners
FindYear.addActionListener(this);
setSize(175,200);
}//int()

public void actionPerformed(ActionEvent e)
{
String inputStr = inField.getText(); //Get user's input
//Convert it to double
double userInput = Double.parseDouble(inputStr);
double result = 0;

if(e.getSource()FindYear) { //Process and report
result = year.isLeapYear(userInput);
resultField.setText("result="+ result);
}

2007-03-28 09:08:45 · 3 answers · asked by tabbysp 2

Imagine this;

You've got an image (let's call it boat.jpg), below it you have 8 jpeg thumbnails of other images. I am able to use the onMouseOver function so that when you mouse over the 1st thumbnail, boat.jpg changes to boat2.jpg. However, I am then unable to mouse over the next thumbnail and for the original boat.jpg to change to boat3.jpg and so on.

Is there a script or simple put of syntax I need to include so that the original boat.jpg changes for each thumbnail?

Any help will be much appreciated.

2007-03-28 08:59:01 · 5 answers · asked by Anonymous

Give the link!

2007-03-28 08:54:34 · 2 answers · asked by jennifer g 7

2007-03-28 08:51:06 · 2 answers · asked by Danny H 1

I have a remote server running Windows XP SP2, with both SQL2005 Express with Advanced Features and SQL 2000 installed. I can remotely connect to the SQL2K instance using Query Analyser or Enterprise Manager. I can also remotely connect to the SQLEXPRESS using Management Studio Express Edition.

I am writing an ASP.NET 2.0 with VS2005 application (actually upgraded from .NET 1.1 with VS2003). However, now I cannot connect to the remote SQL2K from the application. I can connect to a locally installed SQL2K on the development machine, but I cannot connect to the remote server.

2007-03-28 08:48:25 · 1 answers · asked by Tamayi M 2

Trying to save space on my HD. If I deleted some files, like the audio files in a game, would it still funtion.

2007-03-28 08:47:30 · 2 answers · asked by Anonymous

I am currently using Flash 5 but also have Flash MX if I may need to use that.

2007-03-28 08:45:14 · 1 answers · asked by schaeferdesign1 1

2007-03-28 08:43:48 · 2 answers · asked by jsssika 2

Ive seen it around in programs where it fades away and I really need it for my program so does any one know how to do it?
Please give code or link.
Visual Basic.Net

2007-03-28 08:30:11 · 3 answers · asked by sbraidley 3

What is the html code or process for inserting an image in the same location as you flash movie for users without the flash plugin. Now, I know that 99% of users have the flash plugin, but my boss wants this done.

I have searched and just came up with nothing.

Any suggestions?

2007-03-28 08:25:52 · 3 answers · asked by aaronarnett2002 1

var day = prompt("What day is it?","")
if (day == Saturday || day == Sunday)
alert("Enjoy your Weekend")

2007-03-28 08:09:18 · 2 answers · asked by judi s 1

the content keeps tending to the left side of the screen and doesnt move as I resize the browser.

2007-03-28 08:09:09 · 1 answers · asked by zentoccino 2

Is it possible?

Example:
This centers:






This doesn't





But I need the purple box to be absolute so I can define other elements within it relative to it's position.

2007-03-28 08:07:48 · 3 answers · asked by Anonymous

Also if they are good programmers why have they not written a book on the topic?

2007-03-28 08:02:19 · 7 answers · asked by Siu02rk 3

2007-03-28 07:46:24 · 1 answers · asked by Anonymous

I need to create an sql server query analyser like interface which desplays key words in different colors. Which control i should use for that? How?
Please help.

2007-03-28 07:43:51 · 1 answers · asked by Anu 2

I have to button of a windows form and i want to call Internet exploere on the click of the button with some parameter and i want to pass those parameter as query string. I am using .net framework 2.0.pls give me code.

2007-03-28 07:32:57 · 2 answers · asked by Rahul pal 1

Does anyone have any really good SAFE sites for free screensavers/wallpaper?

2007-03-28 07:31:41 · 7 answers · asked by Ziggy 1

Here it is:

I have a default.aspx page.
I have written a Javascript page called resource/JS1.js

How can I include this in my .aspx file?

2007-03-28 07:20:00 · 3 answers · asked by instntpudn 2

I would like to buy a domain name (my first and last name put together). I just borrowed an introductory web design book and wanted to get started, but I'd like to have my website be my name. How do I go about doing this?

2007-03-28 07:13:24 · 2 answers · asked by Brandon 3

need help on how to snd msgs to myspace friends.......it keep saying vverify email please hepl

2007-03-28 06:26:09 · 1 answers · asked by Justin T 1

Hi, Im trying to build my own website but i know little of programming. Im using a template and im trying to get the words to form a list.
ie.
Interests:
Dog training
Poker
Outdoors
I tried using

but that creates a space.
ei.
Interests:

Dog training

Can You help me out?

2007-03-28 06:06:35 · 6 answers · asked by Anonymous

2007-03-28 05:44:19 · 4 answers · asked by Prasath 1

Hi,Hope you're fine.Please take 2 minutes from your busy time and have a look on this website http://www.aliwebdev.com this is my personal webportfolio. It's all about my work,experience,education & etc. I thougth to share with you. I value your time and commentz. thanqs

2007-03-28 05:37:53 · 2 answers · asked by mohdasghar_ali 1

the database I am currently working in is contacts, when i attempt to enter a note under the notes section I get the following error...The value you enter is not valid for this field. For example, you may have entered text in a numeric field or a number that is larger than the fieldsize setting permits...... I was merly trying to put in a note and I keep getting this same error, it also does not matter what contact I am under I will get this error....someone please help!!!

2007-03-28 05:05:55 · 4 answers · asked by misskittys357 2

fedest.com, questions and answers