Home Tutorialhelp Comment I can't get this to work

 
 

Comment

Paul Belleville
I can't get this to work,
January 15, 2010 at 6:17 AM

I can't get this to work. I tried this one and the one where you add the PNG to the background.
the first example (background), it shows up with a bunch of Xs in the background. I this (master) example, I get an error saying the image could not be displayed.
any ideas?
I copied your code exactly and created a small png file.
View All Comments | View Tutorial
Advertisement
Related Tutorial and Articles
Java Beginners

POI APPLICATION
POI APPLICATION  HI .. I WANT POI (JAVA POI)SOURCE CODE FOR CONVERT EXCEL TO TEXT FORMAT ? EXPLAIN IN DETAIL PLEASE 

Java Beginners

POI Tutorial
POI Tutorial  Hi, How to access the Excel file in Java? I have heard about POI in Java. Can anyone share me the url of the tutorial? Thanks   Hi, Yes you can use the POI api for reading and writing Excel file. Check 

Java Beginners

Add color to background but I can't labels or textfields
Add color to background but I can't labels or textfields  Please help... JTextField(10); con.add(l1); con.add(tf1);   I am very new to Java, I followed your instruction and this is what I came up with, am I missing something 

Date Calendar

Using POI - Date Calendar
Using POI  What can i do with POI in Java and also give me an example of it.Thanks 

WebSevices Questions

How to use Apache POI?
How to use Apache POI?  Can anyone tell me how to use Apache POI??I... the following link: http://download.nextag.com/apache/poi/release/bin/ Then put the poi-3.2-FINAL-20081019.jar,poi-contrib-3.2-FINAL-20081019.jar and poi 

Java Beginners

Error in POI - Java Beginners
Error in POI  Hi friend, I am working with Excel using POI... into different location. Along with this I need to remove the extra sheets which is not used by the program. For this I wrote a method inside calling 

JDBC Questions

mysql error 1042 can't get hostname for your address
mysql error 1042 can't get hostname for your address  Hi, I am not able to connect to MySQL database. Its giving following error: mysql error 1042 can't get hostname for your address How to solve this error? Thanks   

Java Beginners

poi & class path - Java Beginners
poi & class path  This is the same problem regarding POI , Sir , i have downloaded poi-bin-3.5-beta6-20090622.zip from this link http://www.mirrorgeek.com/apache.org/poi/dev/bin/ i dont know wether 

Java Beginners

JFreeChart dosn't work
chart from JFreechart, but I just can't get it to work. The graph get its data... be the double values. I tried DefaultCategoryDataset, but every time I run it, an error occurs (i tried an example from here, with XY, and it didn't work either) I 

Java Beginners

can't read my xml file in java
(); } the codes can't read the xml file bcz i want to append the whole xml in my gui...can't read my xml file in java  i've a xml file like this : <..._COMMENT> //nothing ... in this row and my some java codes 

Java Beginners

can't read my xml file in java
(); } the codes can't read the xml file bcz i want to append the whole xml in my gui...can't read my xml file in java  i've a xml file like this : <..._COMMENT> //nothing ... in this row and my some java codes 

Java Beginners

can't read my xml file in java
(); } the codes can't read the xml file bcz i want to append the whole xml in my gui...can't read my xml file in java  i've a xml file like this : <..._COMMENT> //nothing ... in this row and my some java codes 

Java Beginners

can't read my xml file in java
(); } the codes can't read the xml file bcz i want to append the whole xml in my gui...can't read my xml file in java  i've a xml file like this : <..._COMMENT> //nothing ... in this row and my some java codes 

Java Beginners

can't read my xml file in java
(); } the codes can't read the xml file bcz i want to append the whole xml in my gui...can't read my xml file in java  i've a xml file like this : <..._COMMENT> //nothing ... in this row and my some java codes 

Java Beginners

can't read my xml file in java
(); } the codes can't read the xml file bcz i want to append the whole xml in my gui...can't read my xml file in java  i've a xml file like this : <..._COMMENT> //nothing ... in this row and my some java codes 

Java Beginners

insert checkbox in cell using POI api in java
insert checkbox in cell using POI api in java  I need to insert checkbox in excel cell using POI and java. Any one help me on this. Ashok S 

Java Beginners

POI Word document (Letter Template)
POI Word document (Letter Template)  Dear Team, i need code for generating word document(letter format). i am unable to get the code for formats, font settings, letter type settings. please help me for the same. Thanks 

General

Java Read .doc file using POI library
Java Read .doc file using POI library In this section, you will learn how to read the word document file using POI library. The class HWPFDocument throw all... get the text from the word file as an array with one String per paragraph 

Development process Questions

Apache POI Excel creation - Development process
Apache POI Excel creation  Hi i am creating Excel sheet using Apache POI. i could able to generate Excel sheet and saving it in mentioned physical... doesn't appear in the excel sheet. but i could able to get the all data when i save 

General

POI API Event
POI API Event        In this program we are going to explain about POI API Event... the HSSFEventFactory.processWorkbookEvents(request, Filesystem) method, or we can get an instance 

Development process Questions

Edit word document Headers and Footers using POI Library in java?
Edit word document Headers and Footers using POI Library in java?  Hi All, I need code to modify the Header and Footer contents of a ms-word template using POI or JACOB libraries. Could any one help me? Thanks Advance 

Development process Questions

Java sdk/java poi hssf code to creat excel with folder structure,( i,e folders, subfolders and childrens )
Java sdk/java poi hssf code to creat excel with folder structure,( i,e folders... . i need some help in getting folder structure using this java . Folder... on Java sdk of business objecsts . i need some help in getting folder structure using 

Java Magazine Questions

How to set background of an excel sheet using POI - Java Magazine
How to set background of an excel sheet using POI  Hi, i am trying to format the excel using java. How to set the background color of an excel sheet( complete sheet which includes all cells). i am using poi2.5.1. Thanks 

Java Beginners

i need to answer this Question but i can't do it probably
i need to answer this Question but i can't do it probably   use the web to locate the lyrics to the traditional song"The Twelve Days of Christmas" the song contains a list of gifts received for the holiday.the list is cumulative 

JSP Servlet Questions

How to Work - JSP-Servlet
How to Work  Respected sir i am ramesh doing final year MCA.Now i am doing final year project using java,jsp,servlet.i only know java.i want details... model database program with where we save that program using jsp,servlet,java 

Development process Questions

POI and HSSF - Development process
POI and HSSF  Hi i ceated excel file using jakarta poi library i want to add Percentage formula to cell i am not able to do that can you please suggest me how do i add formula c3.setCellValue("Percentage"); cell3.setCellType 

Swing AWT

modify this so that i can work better - Swing AWT
modify this so that i can work better  this program is about opening a savings account, i need any one to modify it and add new features to it to make i more better. the codes are; //OpenSavingsAccount1.java import 

Java Beginners

Err while reading CSV file using POI - Java Beginners
Err while reading CSV file using POI  Hi, When i am trying to read a CSV file using POI Dile system, the below error is coming up. java.io.IOException: Invalid header signature; read 2334956330951926093, expected 

Java Beginners

Help Me in My Java Work
Help Me in My Java Work  Can you help me please... Write a Java application, to be called GpaCalculator, which will return a grade point average... for individual marks are given below: (i) A mark ranging from 90 to 100% is awarded 

Java Beginners

OFbiz frame work - Java Beginners
OFbiz frame work   Hi.. I just wanted to know which is the best resource to study more about ofbiz framework.Im currently working on a project using Ofbiz. Please give me a suggestion Regards Vishnu  Hi friend 

WebSevices Questions

Restlet Frame work Related question
Restlet Frame work Related question  How to send data from client to server using Restlet framework. The main problem is i am not able to get data at server side. Can anyone post a complete program how to achieve 

Java Beginners

how to count no.of sheets in excel through POI jar as well as through Java?
will be dynamic ) .I want to read all sheets one by one in java by using POI jar. I...how to count no.of sheets in excel through POI jar as well as through Java... know the method to count the no.of sheets in excel through POI jar or else java 

Java-Tutorials

Read Excel(.xlsx) document using Apache POI
, boolean  as well as text cells. In the below example, i have used Apache POI...Read Excel(.xlsx) document using Apache POI In this section, you will learn how to read Excel file having .xlsx extension using Apache POI library 

SQL Question

I cant get values in MS acces in tables
I cant get values in MS acces in tables   I got problem in sending values from servlet . * i am using ms acces * i cant display my values but der is increase in number of rows my jsp: <%@ page language="java 

Java Beginners

Java I/O Assistance + Loop
CANNOT Get the output as I want. I know where the error lays I just can't seem...Java I/O Assistance + Loop  I'm trying to make this program write... my loop I believe I just cant wrap my head around how to get a proper display 

Java Beginners

jvm work
jvm work  wht is the work of jvm? deaply.   Hi Friend, Java Virtual Machine or JVM for short is a software execution engine to run the java programs. Java Virtual Machine is also known as "Java Interpreter" which 

JDBC Questions

can't connect to MySQL Server(10060) - JDBC
can't connect to MySQL Server(10060)  Hii Sir, I am working with a jsp project with MySQL as server. Now i want to host my application. I am created a DB in the Hosting MySQL server and now i want to create a table By using 

JavaScript Questions

How I get a variable from java script to use it in the scriptlet of jsp.
How I get a variable from java script to use it in the scriptlet of jsp.  Hi i want to get the tinyUrl value in the scriptlet of jsp. // Bit.ly API var url="http://cplive.com/dealDetail.do?method=displayDealDetail& 

Struts Questions

How to get data from Excel sheet - Struts
How to get data from Excel sheet  Hi, I have an excel sheet.... i am using java, jsp, struts also but not using struts html tags just using... the following links: http://www.roseindia.net/tutorial/java/poi 

Java-Tutorials

Read Simple Excel(.xls) document using Apache POI
Read Simple Excel(.xls) document using Apache POI In this section, you will learn how to read Excel file having .xls extension using Apache POI library..., boolean  as well as text cells. In the below example, i have used Apache 

iPhone

Get An iPad And Change The Way You Work
Get An iPad And Change The Way You Work The iPad is the latest release... of the iPad on their work. Portability Being a business person you probably have to run off to meetings all over town, and try to reply to emails and get your 

JSP Servlet Questions

Apache POI Excel Maximum Row - JSP-Servlet
Apache POI Excel Maximum Row  I am using Apache POI lib for export jsp results to excel file. I am getting error : Row number must be between 0... row value ? and How can I change that ? Thanks in advance Regards 

JSP Servlet Questions

how to get session object in simple java class??
how to get session object in simple java class??  i am fallowing a simple mvc architecture. actually my problem is.... i am using 4 classes in my............................ is.................... now i need to get that session object (GroupPojo 

JDBC Questions

Insert option does not work in my jstl... - JDBC
Insert option does not work in my jstl...  I have problem with this jstl code... This will extract and displays details from xml... But i cant able... java herbert 

Development process Questions

Excel Created using POI and HSSF - Development process
Excel Created using POI and HSSF  Hi i ceated excel file using jakarta poi library i want to add Percentage formula to cell i am not able to do that can you please suggest me how do i add formula c3.setCellValue("Percentage 

Java Beginners

How to get Java SDK
How to get Java SDK  Hi, I have purchased a new computer and installed windows 7. Now I have to get the Java SDK and install on my computer for developing and testing Java programs. So, can anyone tell me How to get Java SDK 

General

Find String Values of Cell Using POI
). getString(int i): This method is used to get the string  value from... Find String Values of Cell Using POI   ...: getSSTIndex(): The method is used to get the index to the string in the SSTRecord 

Java Beginners

I/O Program output error
the total. I also need the pValues to be in decimal format like(#.##), but I can't seem to get that to work either. Can anyone offer some suggestions? I thank you...I/O Program output error  Hello All, I am working on a program 

Java Magazine Questions

get median in java
get median in java  How to get the median value in Java from...("Enter Numbers:"); for ( int i = 0; i < ranNum.length; i++) { ranNum[i] = (int)(Math.random() * (max - min + 1) ) + min; System.out.println(ranNum[i]); } int 

Java Beginners

Using poi hwpf,how to create table in word document. - Java Beginners
Using poi hwpf,how to create table in word document.  Can you please tell me how to create a table in the word document in java using Apache poi hwpf.its very urgent.Please send some sample code.Thanks in advance 

General

Overview of the POI APIs
. In future  Jakarta POI (Java API To Access Microsoft Format Files) will be able... Overview of the POI APIs       Jakarta POI Jakarta provides Jakarta POI APIs 

Java-Tutorials

Java I/O Byte Streams
Java I/O Byte Streams In this section we will discussed the I/O Byte Streams... are used where the program needs to work with the raw binary data. In Java to handle I/O raw binary data the byte stream classes are defined. For all of the byte 

Job Tips

Improve Your Assertiveness at Work
Improve Your Assertiveness at Work   ... is the key to success at the workplace. They think that they can get to the top... not work in team environments where interpersonal relationships are very important 

Java-Tutorials

Java I/O Character Streams
Java I/O Character Streams In this section we will discuss the I/O Character... and for this Java provides the Character stream I/O. Character stream I/O... is used for output (write to). To work with the file I/O specialized classes 

General

Java I/O Examples
; What is Java I/O? The Java I/O means... In this section we will discussed about How files can be handled in Java. Java I/O Byte Streams In this section we will discussed the I/O Byte Streams. Java 

Security Questions

Will i be able to get the content of a webpage in a word document (Note:i don t have access to the source code)through java code?
Will i be able to get the content of a webpage in a word document (Note:i don t have access to the source code)through java code?  public class... += rd.readLine(); } System.out.println(line); } } I 

Ajax Questions

How to work with Ajax in spring
How to work with Ajax in spring  give some sample code for ajax with spring (example like if i select a state from one drop down in another drop down related districts should come 

Java Interview Questions

why this can't
why this can't  import java.util.*; class Dash{ public static void main(String args[]){ int x0=100; int[] x1=new int[3]; int[][] x2=new int[3][3]; int[][][] x3=new int[3][3][3 

Java Server Faces Questions

JSP Parse did not work - Java Server Faces Questions
JSP Parse did not work  I have these codes...("Feedback"); out.print("Selected Values are: "); for(int i=0;i DropDown DropDown... ========================================================================== Then, I want to use another.jsp file say output.jsp 

General

Submit project to get developed
and presented here as questions. How do I Submit... of projects can i submit ? What is the Payment Mode ? What is the Price of the Project ? How does the whole process work 

Java Beginners

pdf from i report
pdf from i report  I have a problem again with my report, i use I Report to make pdf file. but when the application running in java, pdf can't view. but in rtf format data can view. or can icon save like this to be dissapear 

Java Beginners

How java work on Unicode machanish
How java work on Unicode machanish   How the data are stored in java as unicode, how the conversions is done for input/output stream. Please describe in detail with memory aspect 

WebSevices Questions

how to get data from sap - WebSevices
how to get data from sap   Hi all, I am new to java family. I am into sap. currently i need to work on java. My requirement is asbelow: I need to buils a system with few fields from sap and few fields from other 

General

Matrix Example in Java
Matrix Example in Java       This Java programming tutorial you how you can work... values. It can't store other than int data type. In this program we are going 

Java Beginners

i cNT GET ANSWER FOR THIS QUESTION
i cNT GET ANSWER FOR THIS QUESTION  The roots of the quadratic equation ax2+bx+c=0, aï??¹0 are given by the following formula: x=(-b?±â?š(b^2-4ac))/2a In this formula. The term b2-4ac is called 

Java Beginners

How to get the current date in Java?
How to get the current date in Java?  Hi, I am new to Java... in Java? Thanks   Hi, Check the tutorial: Java program to get current date. Thanks   Hi, To get the current date and time in Java you can use 

Java Beginners

How to hide text in Word Document using Apache POI library
How to hide text in Word Document using Apache POI library  Is it possible to hide text in MS Word Document using Apache POI library? If yes, please let me know how. I am able to create and read the document using POI library 

Java Beginners

How to get enum value in Java
How to get enum value in Java  Hi all, i am looking for a solution to get an enum value from index in Java. Please suggest. Thanks 

Java Beginners

java i/o - Java Beginners
java i/o  Dear sir, i wrote a program where program asks "Enter your... gets closed. when i open the program again and enter text in this case previous texts get replaced with new text. i tried my best but got failed plz tell me 

Java Beginners

Need to remove duplicated rows from excel using apache POI API
Need to remove duplicated rows from excel using apache POI API  Hi, Need help from you. I am able to generate excel sheet with data also... to remove duplicated rows from excel sheet by using apache poi api oe jxl api 

Java Beginners

import package.subpackage.* does not work
import package.subpackage.* does not work  I have 3 class files...(); } } When i am compiling the above 3 class, i am getting an error message like... com.test.* i write import com.test.A; it works. kindly explain me. I am a new user 

Framework Questions

zend2 frame work
zend2 frame work  Hi can you please detail about Zend framework 2 latest folder structure and related things in details . I already seen zend website am confused with two old and new folder structures which one has to use 

Java Beginners

When i click on Monitor Tomcat, it shows
://localhost/ then i get the Apache tomcat page, but when i finally want to see my class output finally , Then i get HTTP Status 404 and can't get my result... installed java 7 and tomcat 7, when i click on Monitor Tomcat it shows 

Java Beginners

When i click on Monitor Tomcat, it shows
://localhost/ then i get the Apache tomcat page, but when i finally want to see my class output finally , Then i get HTTP Status 404 and can't get my result... installed java 7 and tomcat 7, when i click on Monitor Tomcat it shows 

General

Find Records of The Rows Using POI
Find Records of The Rows Using POI  ... to get the first column number for the sheet.  getLastCol(): This method is used to get the last col number for the sheet. The code of the program is given 

Java Beginners

How does the Java for each loop work?
How does the Java for each loop work?  How does the Java for each loop work 

Java Beginners

Collection frame work - Java Beginners
 

Swing AWT

please modify this so that it can work better - Swing AWT
please modify this so that it can work better   this program is about opening a savings account, i need any one to modify it and add new features to it to make i more better.no database is needed. the codes are; // class 

Ajax Questions

how i can get jqfade.js library
how i can get jqfade.js library  how i can get jqfade.j script library 

Java Beginners

hi .. need help ASAP ..i have a project buit in eclipse , i have installed jasper. i want the steps to work on it ..
hi .. need help ASAP ..i have a project buit in eclipse , i have installed jasper. i want the steps to work on it ..   hi .. need help ASAP ..i have a project buit in eclipse , i have installed jasper. i want the steps to work 

JDBC Questions

Not get ans properly
Not get ans properly  I create db on my system using MS-acess,then I create DSN for program but I still not get answer It throws an Exception "java.lang.classNotFoundException",what is this I don't get plz help me.    

Java Beginners

Get and Display using JOptionPane
Get and Display using JOptionPane  Hello everyone, I have been asked by my lecturer to do a simple program. But, I don't have the idea how to start on in because this is my first time handling java. She ask to get some data 

Java Tips and Examples

Programming: Hammurabi I - Project start
Java: Programming: Hammurabi I - Project start Copy these files to start your project The Hammurabi I program may require a number of things that you... the Kingdom class doesn't have any code to work the the population. Some areas 

Java-Tutorials

Create Excel(.xlsx) document using Apache POI
, i have used Apache POI version 3.7. For downloading the above library...Create Excel(.xlsx) document using Apache POI In this section, you will learn how to create a Excel sheet having .xlsx extension using Apache POI library 

General

Java Get Example
Java Get Example      ... examples to get the things fast and practice these code at your end to learn java.... Java Get Examples.. Get host name in Java: This example 

Java Tips and Examples

JLabel text alignment
Java: JLabel text alignment What tabs don't work The basic problem... the carriage). In MS Word you can also move the tabs wherever you want. I use tab setting of 4 in the editor I use most frequently, but it used to be set 

PHP Questions

Jquery form validation does not work
Jquery form validation does not work  I want to use jquery validation for my Forms tags. I also imported necessary javascript files e.g. jquery.validate.min.js I called the functions (validate function) properly. But jquery 

PHP Questions

Jquery form validation does not work
Jquery form validation does not work  I want to use jquery validation for my Forms tags. I also imported necessary javascript files e.g. jquery.validate.min.js I called the functions (validate function) properly. But jquery 

JDBC Questions

I am getting error.How can i get details
I am getting error.How can i get details  Exception in thread "main" java.sql.SQLException: Listener refused the connecti n with the following error: ORA-12505, TNS:listener does not currently know of SID given in connect 

Struts Questions

Struts validation not work properly - Struts
Struts validation not work properly  hi... i have a problem with my struts validation framework. i using struts 1.0... i have 2 page which... add.jsp (form). in this add.jsp i have several fields which requires some validation 

JSP Servlet Questions

POST AND GET METHOD - JSP-Servlet
POST AND GET METHOD  I AM LITTLE BIT CONFUSED IN GET() AND POST() METHODS. PLZ GIVE ME BREIF INTRODUCTION ABOUT THESE ??:)  Hi Friend...://www.roseindia.net/jsp/how-work-post.shtml http://www.roseindia.net/html/html-get 

Java Beginners

NoughtsAndCrossesGame play button doesn't work
NoughtsAndCrossesGame play button doesn't work   /* * To change...); // Create the buttons and add them to the JFrame for (int i = 0; i < 9; i++) { btnKeypad[i] = new JButton(" "); this.add(btnKeypad[i 

Java Beginners

NoughtsAndCrossesGame play button doesn't work
NoughtsAndCrossesGame play button doesn't work   /* * To change...); // Create the buttons and add them to the JFrame for (int i = 0; i < 9; i++) { btnKeypad[i] = new JButton(" "); this.add(btnKeypad[i 

JSP Servlet Questions

Can JSP using apachi POI handle the very complicated JSP?
Can JSP using apachi POI handle the very complicated JSP?  Can...; int i=0; String value1="", value2="",value3=" ", value4...); for(int k = 0; k < wb.getNumberOfSheets(); k++){ int j=i 

Java Beginners

java code to get the internet explorer version
java code to get the internet explorer version  Hi, Could u plz help me in finding the internet explorer version using java code...i have the javascript but i want this in java code... Thanks, Pawan 

Java-Tutorials

Java JComboBox Get Selected Item Value
Java JComboBox Get Selected Item Value In this section we will discuss about how to get the selected item value form JComboBox. javax.swing.JComboBox... example into which I shall get the combo box selected item value and stored 

Java Beginners

How to get the unicode of japanese character input in java
How to get the unicode of japanese character input in java  Good Evening sir/madam; I am trying to create an application in java which needs to show... a function,method or something through which i can get the unicode of japanese 

Java Beginners

Need to remove duplicate rows from the Excel Sheet using the Apache POI API
Need to remove duplicate rows from the Excel Sheet using the Apache POI API   Hi There, Is any one aware of java code on how to find the duplicate rows in excel.I am using the Apache POI API to achieve the same have googled 

Java Beginners

java get all ip addresses in a lan
java get all ip addresses in a lan  Anybody have any idea on using java or cpp on how to get the ip addresses of all the machines[win or linux... to know that a given ip address computer is connected in a LAN?. I could supply 

Framework Questions

i need a school appication using struts frame work with oracle 10g using myeclipse6.0
i need a school appication using struts frame work with oracle 10g using myeclipse6.0   hi i need a school apllication using struts frame work backend 10g xe using myeclipse 6.0 

Advertisements Advertisements
 

 

 

DMCA.com