Java Forums

Main Menu
Home
Today's Posts
FAQ
Search
Contact Us

Java Network
Linux Archive
Java Tips
Java Tips Blog

Sponsored Links





Welcome to the Java Forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community, you will:

  • have access to post topics
  • communicate privately with other members (PM)
  • not see advertisements between posts
  • have the possibility to earn one of our surprises if you are an active member
  • access many other special features that will be introduced later.

Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 01-17-2008, 09:18 PM
Member
 
Join Date: Jan 2008
Posts: 2
shinojkk is on a distinguished road
Developing HTML Parser in JAVA
Hai frndz... I wnat to develop a web extractor that an information site in to a document or txt file with proper format... so i face the following problems. plz help me..
1. javax.swing.text.html.parser Package
this package provides Parsing functions.. replay with some examples..
2. How to add userdefined toolbar to FIREFOX or IE so that to run my application?
3. how to read the HTML source code into a temperory file so that to give as input to the PARSER

4.How to download images using JAVA
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 01-18-2008, 10:07 PM
Senior Member
 
Join Date: Jul 2007
Posts: 1,222
hardwired is on a distinguished road
How to download images using Java
Code:
import java.awt.image.BufferedImage; import java.io.*; import java.net.URL; import javax.imageio.ImageIO; import javax.swing.*; public class DownloadImage { public static void main(String[] args) throws IOException { String path = "http://www.java-forums.org/images/ca_evo/misc/logo.gif"; URL url = new URL(path); InputStream stream = url.openConnection().getInputStream(); BufferedImage image = ImageIO.read(stream); JFrame f = new JFrame(); f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); f.add(new JLabel(new ImageIcon(image), JLabel.CENTER)); f.pack(); f.setLocationRelativeTo(null); f.setVisible(true); } }
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Developing a complete application in java, help needed omaradib New To Java 2 03-10-2008 02:24 PM
Developing a new game - looking for Java programmers DeadlyAK Jobs Offered 0 01-17-2008 08:39 PM
Developing simple MP3 player in Java.... JavaEmpires New To Java 0 01-16-2008 12:22 PM
Java Mozilla Html Parser 0.1.7 levent Java Announcements 0 07-30-2007 06:30 PM
Jericho HTML Parser 2.4 levent Java Announcements 0 05-21-2007 12:05 PM


All times are GMT +3. The time now is 11:32 PM.


VBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org