String Functions
the above link can help you
Type: Posts; User: DanBrown
String Functions
the above link can help you
What type of project you are looking for ?
Some desktop application :- Student management,Hospital Management ..
or
Some utilities like:
Image Cropping tool ,Word Pad, Screen Stealer etc.
or...
try to print isLost value of the book after disposing the book. Probably your setting it true at the time of disposal.
JFrame prog = new JFrame("Chris's file synchronization");
GridLayout topPanel = new GridLayout(4,1);
prog.setLayout(topPanel);
JPanel P1 = new JPanel(); ...
As per my knowledge : you can also run your application in tray and can invoke your application by simply clicking on it or can invoke popup menu to ask what operation you want to perform.
How to...
your code is like puzzle.
You are creating Pane one time and adding the same pane to different locations.
Same with your other components.
Dear if your are creating one object of any component...
you cannot compare String object with "=="
for String comparison
use
"a".equals(first)
You need to type cast computerArray[i] to specific class
like : Laptopn lap = (Laptop) computerArray[i];
and then use
lap.getSize();
Similarly you can type cast for Desktop
:-bd
Where you want to add button my dear?
import java.text.DecimalFormat;
import javax.swing.JOptionPane;
public class MortgageCalculatorGUI///Name of my File and Class
{
public static void main(String[] args){
double...
variable declared in try block has local scope in the block,these variables cannot be accessed outside the try block, so declare them outside try block.
double weight = 0.0f;
double height =...
if (fileDialog == null) {
fileDialog = new FileDialog(frame);
}
fileDialog.setMode(FileDialog.LOAD);
fileDialog.show();
String file = fileDialog.getFile();
if...
had you tried something to solve this problem.Sorry, we can help you only if you show some effort from your side.
Comment this line
System.out.print(years);
salary *= 2;
int last = (int)salary;
int step = 1000;
for(int start=1000;start<=last;start=start+step){
System.out.print("*");
Transactions tr = new Transactions()
this class is in web-inf/classes folder
Transaction is an helper java class.
And my Jsp page is outside the web-inf where we generally put our html...
Hello Friends,
I want to show the output return by the below given servlet into jsp page .
import java.io.*;
import javax.servlet.*;
import javax.servlet.http.*;
Click here
Try the above given link , this will solve your problem
Your question is not clear to me , if it is possible can you make it more clear.
Welcome
enjoy programming
are you looking for some web project or other.
when its showing you blank page.when you are requesting for page , when login fails , when login successful.
when?
Please be clear with your problem.
import java.io.*;
import java.util.StringTokenizer;
public class Project1 {
public static void createArrays(){
int[] nums = null;
try {
File file1 = new File("file1.txt");
This forum is not to provide free java source codes, this is to help you if you stuck some where in your program.
try your assignments yourself and if any problem is there we are here to help you.
I think my dear , instead of asking others for pointing out the mistake.You should try it more than 10 times.Because this is the only way to improve your skills.
I am feeling you are not taking...