| |
thread by: beso2ooo |
last post Nov 14 '12 by: saeidnovin470
File f = new File("C:\\TEST");
try{
if(f.exists()==false){
f.mkdir();
System.out.println("Directory Created");
}
else{
System.out.println("Directory is not created");
}
}catch(Exception e){
|
thread by: drkwzrd |
last post Nov 13 '12 by: Luuk
Hi, i have to print in java a list of all tables in a selected database. Here some code:
public String elegirtabla() throws SQLException{
cg.scanner();
System.out.println("Listado de base de datos del servidor "+cg.server+":");
rs= cg.con.getMetaData().getCatalogs();
while(rs.next()){
...
|
thread by: chubschub |
last post Nov 10 '12 by: neeraj0708
import java.util.Scanner;
import java.io.*;
public class Lab06A
{
private String name;
private int age;
private int year;
|
thread by: PreethiGowri |
last post Nov 9 '12 by: PreethiGowri
i have replaced the default icon of jar file but when i copy and run the same jar file in another PC i don't get the image, also i don't get the background images nor the icon that i placed on top of the window(one instead of a java icon)
please help
|
thread by: bamsThomas212 |
last post Nov 6 '12 by: PreethiGowri
I wanted to ask about the code that I have made if either variable or any of ... thank you ...
"incomparable types: java.lang.string and int"
if(StringUtils.isNullOrEmpty(txtIdPemesanan.getText())){
JOptionPane.showMessageDialog(null, "ID pemesanan tidak boleh kosong", "Larangan", JOptionPane.ERROR_MESSAGE);
}else{
...
|
thread by: dynamiser |
last post Nov 6 '12 by: PreethiGowri
i was trying to use JOptionPane as the input mode to find out if the input number is prime or not.. but i am stuck with this code..
package primeNo;
import java.util.Scanner;
import javax.swing.JOptionPane;
public class primeNo {
public static void main(String args) {
int num;
JOptionPane.showInputDialog("Please enter a number : ");
|
thread by: PreethiGowri |
last post Nov 6 '12 by: PreethiGowri
how do we update the back-end table from front-end jtable?
i'm using the following things in my project -
editor- netbeans 7.2
framework - core java
database - mysql 5.0.96
my question-
i have a jtable with just one column made editable, when the user edit's the content of the table from front-end i want to update my table in back-end with...
|
| |
thread by: Dio1080 |
last post Nov 1 '12 by: thatjediknight
Hello, I need help making a table based off my tax code I made, the tax code was a little, but I need help with the table part also. The table should look like this:
Income | Single Married | Joint Married | Separate | Head of house
50000 | 9846 | 7296 | 10398 | 8506
50050 | 9859 | 7309 | 10411 ...
|
thread by: sprightee |
last post Oct 31 '12 by: vivax83
Hi,
I've a simple object class as testObj.java with getter and setter methods.
In my code i need to check if the testObj object is null.
My code is :
testObj test = new testObj();
//invoke a method A which returns test as return type
if(test==null || test.equals(""))
{
System.out.println("The test object is null);
|
thread by: nagasri |
last post Oct 31 '12 by: sreekandank
i ve a frame and added two panels in that i want to disable the main frame when i click the buttons in my second panel..
hw to do
|
thread by: MUJEEB I S |
last post Oct 31 '12 by: sreekandank
Hai friends ...
i am fresher in java please tell me how to run my simple java program in browser....?
|
thread by: sreekandank |
last post Oct 31 '12 by: sreekandank
Generic class is a class with one or more type variables. A Generic class declaration looks like a non-generic class declaration, except that the class name followed by a type parameter. For instance, consider a following generic class Employee<T>.
class Employee<T>
{
private T obj;
Employee(T obj)
{
this.obj=obj;
}
|
thread by: chintan85 |
last post Oct 30 '12 by: chintan85
Basically I want to automate comparison of screenshots(new with old) of web applications.
I have configured Selenium to run with junit core in eclipse. I am tyying to use Jmagick with this configuration.
This is the command to do image comparision in command line.
compare reference.jpeg to-be-tested.jpeg -compose src diff.jpeg
I...
|
thread by: sahital |
last post Oct 30 '12 by: sahital
i want parametarized funcion...how to create that using netbeans??
|
thread by: fharook |
last post Oct 30 '12 by: zmbd
Dear all
I want to learn "Struts", can any one provide the link of PDF
Thanks & Reagards
Sk.Fharook.
|
| |
thread by: MUJEEB I S |
last post Oct 27 '12 by: Luuk
Hai friends am Fresher in java ...
please tell me the way to teach java web applications tutorial...
|
thread by: bernouli |
last post Oct 27 '12 by: bernouli
Ibatis cannot access the database. here is my
SqlMapConfig.xml
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE sqlMapConfig
PUBLIC "-//ibatis.apache.org//DTD SQL Map Config 2.0//EN"
"http://ibatis.apache.org/dtd/sql-map-config-2.dtd">
<sqlMapConfig>
<settings useStatementNamespaces="true"/>
|
thread by: Catching360 |
last post Oct 25 '12 by: Rabbit
So have this whole program that I need to do. What's required is that I draw a die using the user's input of die and location. Then show it. I have a main client "RollTheDie"
import javax.swing.JFrame;
import java.awt.Color;
import java.util.Scanner;
public class RollTheDie
{
public static void main(String args)
{
|
thread by: mahender kumar |
last post Oct 24 '12 by: mahender kumar
how i make a thin connitionin java using oracle 8.0 also set classpath
|
thread by: Suresh Mahesh |
last post Oct 23 '12 by: Dave0291
How to convert matlab program to java by any tool/software?
|
thread by: suni |
last post Oct 23 '12 by: suni
i want to check in the captured packet that a particular word or a string exists in it...that particular word can can be any word like bomb...so that an alert message can be given...for capturing jpcap works well but can it perform a checking like this...im aware that of packet.data in jpcap but not very clear...please help me with this.
thanks
|
thread by: Whisperthecat |
last post Oct 22 '12 by: Rabbit
when asked fro ticket number it says the last number is 7 and theremainder is 4 so the result is false. Can somebody please explain. Thank you
import javax.swing.JOptionPane;
public class TicketNumber
{
public static void main(String args)
{
final int CHECKDIGIT = 7;
String ticketString;
|
thread by: amullen98 |
last post Oct 20 '12 by: Rabbit
Hello,
I am writing a program to for a tic tac toe game using multiple classes. And I need to be able to have the user enter in the size of the board and then have the game run no matter how big or small the board is. But when I try to implement this I keep getting an error involving java.lang.ArrayIndexOutOfBoundsException: 2 and have no clue...
|
| |
thread by: blaukerze |
last post Oct 19 '12 by: blaukerze
I need help here because i dont know how to take the last Number from the Arraylist away that i wrote in it. (And i dont know how to make it that he doesnt go in else after i pressed "a".
import java.math.BigInteger;
import java.util.*;
import java.io.IOException;
public class stack
{
public static void main(String args)
{
|
thread by: sreekandank |
last post Oct 18 '12 by: Rabbit
I have written the following code to demonstrate thread synchronization.
class ChildThread extends Thread
{
String msg={"This","is","a","synchronized","variable"};
public void run()
{
display();
}
public synchronized void display()
|