35,618 Topics

Member Avatar for
Member Avatar for painless

plz help me out ... i m using the following code to display an image which resides on my pc (C:\Users\vivek\Pictures\firefox,JPG)... but when i run the code ....there is no compile time error..n also not any run time error..n the output is a empty frame :'( [code=java]import java.awt.*; import javax.swing.*; …

Member Avatar for painless
0
133
Member Avatar for Nitz

Hey everyone. I need a bit of advise on my code. Here is a sample image. [quote] ^ 20+ | | | | 15+ | | | | 10+ | | | | 5+ | | | | +----+----+----+----+----+----+----+----+> 0 5 10 15 20 25 30 35 40 Upper Left: …

Member Avatar for ~s.o.s~
0
217
Member Avatar for athlonica

Hi Guys! I need help with something that I can't figure it out on my own. I'm working with an XSLT stylesheet that constructs some URLs that are finally presented as an html page. I want to add to one of those URL a variable that I know how to …

Member Avatar for xml_looser
0
91
Member Avatar for llemes4011

Hi. I started looking into JavaMail today, and I got the basics down. But when I sent a message to my friends Gmail account, it said that the message my not be from me, and was sent to spam... does anyone know why?

Member Avatar for llemes4011
0
98
Member Avatar for llemes4011

I'm writing an Email Client, and I need a JSplitPane that splits 4 or 5 JPanels instead of 2. I looked around and didn't really see anything that looked like what I need. I need it so I can adjust the size that is allotted to the subject, sender, date, …

Member Avatar for llemes4011
0
833
Member Avatar for jamojo

Hello Everyone, I am using ths class as my reusable SQL select for my queries in other classes. But when I used this in other classes, it generated me this error: java.sql.SQLException: Network error IOException: Address already in use: connect Can anyone give me some idea or advise on how …

Member Avatar for jamojo
0
179
Member Avatar for stevnlon

I wonder if i could pick anyones brains on somthing? [CODE]public void show(String add) { try { statement.execute("select * from Staff_Details WHERE Address2 =" + add); [/CODE] This is a section of code im working on. The string variable add at the end of the SQL statement is not working …

Member Avatar for masijade
0
136
Member Avatar for cyrogathoni
Member Avatar for Pradeep.sibar
0
51
Member Avatar for Pradeep.sibar
0
41
Member Avatar for r0n

hi everyone how should i move the data of the multiple text file to another text file... (for instance you have two text files readFile1.txt and readFile2.txt and you have to move the data of the two text files in another file which is writeFile.txt ) how should i read …

Member Avatar for r0n
0
4K
Member Avatar for blueandyellow

Hello. I've hit a brick wall on an assignment for class. I've included the instructions and what I have gotten so far. My major problem is converting the number for days of the week to the actual day. Any help will be greatly appreciated. Thanks! Insert code into the Clock …

Member Avatar for ithelp
0
369
Member Avatar for Pradeep.sibar
Member Avatar for leviathan185

Hi, I am just starting to learn Java and the tutorial i am using says i need to add the path that JDK is installed to but when i attempt to save the file it comes up access denied? I am running Windows 7 RC build 7100. Can someone please …

Member Avatar for leviathan185
0
183
Member Avatar for PhiberOptik

Hey I am sitting around here on my summer semester break. I am curious if anyone here is a java developer and actually makes good money at it? Basically I would like to know what kind of stuff you do, where you work from, office, home, etc. I'm just curious …

Member Avatar for BestJewSinceJC
0
143
Member Avatar for kaustubh.pandey

pls give me web based project topics in java ..with is different 4m others.n eay 2 built.n in that project pls not send me common project topic like library mngt ,airlines,etc........... pls send me some intresting topics which so different...ok n i m not want the high project topics....i m …

Member Avatar for llemes4011
0
81
Member Avatar for get2tk

Can u control Dynamic Link Library (DLL) file of a usb powered drive using java??? if not,what other code can control dll files and how can it be made to communicate with java codes.

Member Avatar for nmaillet
0
64
Member Avatar for JohnPhilipps

Good morning, I would like to ask for your help, I am working on getting a text file read using using a java applet, the content of that text file is generated with an object in the class TowersOfHanoiExecute TowersOfHanoi towersOfHanoi = new TowersOfHanoi( totalDisks ); after which I was …

Member Avatar for JohnPhilipps
0
799
Member Avatar for suretd

Good Day, When I run my servlet in my web browser, everything runs fine ... until i press one of the option buttons, Deposit, Withdraw or Balance, then i get the following error: [COLOR="Red"] type Status report message /servlet/HTMLBank description The requested resource (/servlet/HTMLBank) is not available.[/COLOR] Here is the …

Member Avatar for ~s.o.s~
0
251
Member Avatar for chints22

hello all, I am developing a website in dreamwiever 8 first time and chose jsp dynamic page. can anyone tell me how can I add CSS to my jsp page.?? i have downloaded 100s of templates from net and tried it in <link> tag but it dint work. please help …

Member Avatar for peter_budo
0
56
Member Avatar for bloodredoscar

Hi everybody, Can somebody show me a very comprehensive way of using struts2 iterator tags. I already have the action working but when i am about to list it in my JSP it doesnt display anything. And one more, is it better to use JSTL that stuts2 tags? Please enlighten.... …

0
49
Member Avatar for Pradeep.sibar
Member Avatar for yilmazhuseyin
0
79
Member Avatar for suretd

Hi All, For my final assignment, I need to create a BookCatalogue and save the data to a file on the disk. I have created a Book class that get and inserts the fields: Book title, author and type. [CODE] public class Book { private String title; private String author; …

Member Avatar for di2daer
0
133
Member Avatar for juser11

I am trying to configure log4j for one of my web projects. For that I want to read the log4j.properties file. Below is the code [code] private URL url; private File file; file = new File(url.getPath()); DOMConfigurator.configure(url); [/code] Following is the error Exception in thread "Thread-1" java.lang.NullPointerException Then I try …

Member Avatar for kvprajapati
0
128
Member Avatar for prawin@123

Hi I am new bee to JS and PHP, i have a code to display the images from directory in the path C:\wamp\www\prawin\new\locations\test\admin But this code didnt works . can any one help me. My code is [ICODE] <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <title>Untitled Document</title> …

Member Avatar for mysoogal
0
119
Member Avatar for suretd

HI All, Another Question: I have created another program that queries the StockTracker database for all users and the stocks held by each user. The program compiles, but at run-time i get the error: [COLOR="Red"]"Exception in thread 'main' java.sql.SQLException: Column not found at sun.jdbc.odbc.JdbcOdbcResultSet.findColumn<JdbcOdbcResultSet.java:1833> at sun.jdbc.odbc.JdbcOdbcResultSet.getString<JdbcOdbcResultSet.java:395> at StockByUser.main<StockByUser.java:43>"[/COLOR] I am …

Member Avatar for masijade
0
12K
Member Avatar for JohnPhilipps

Good afternoon, I am in the process of learning java and I am a little bit stock on a couple of issues. I am working with javamail version-1.4.2 and JavaBeans Activation Framework 1.0.2 release. The purpose of my code is to give me the ability to move e-mails from one …

Member Avatar for JohnPhilipps
0
1K
Member Avatar for painless

Sequencer sequencer = MidiSystem.getSequencer (); can any 1 tell ...What's going on in this code ....

Member Avatar for painless
0
89
Member Avatar for kuay

package gcd; import java.io.*; class gcd { public static void main (String args []) throws IOException { BufferedReader dataIn= new BufferedReader(new InputStreamReader(System.in)); String strEntry; String str_C; String ans; int a[] = new int[10000]; int n=0,i=0,j=0,c=0,max=0,min=0; long prod=0; strEntry = dataIn.readLine(); n = Integer.parseInt(strEntry); for(i=1;i<=n;i++) { str_C = dataIn.readLine(); c = …

Member Avatar for JamesCherrill
0
111
Member Avatar for suretd

Hi All, I have created a servlet HTMLBank.java which I need to display in my browser. I am using Tomcat as my server. I have saved the class for HTMLBank in: C:\Program Files\Apache Group\Tomcat 4.1\webapps\ROOT\WEB-INF\Classes\servlet But when i try to "run" my servlet in my browser, i get a message …

Member Avatar for suretd
0
1K

The End.