Page 1 of 2 12 LastLast
Results 1 to 20 of 21

Thread: Browser

  1. #1
    Jessie Madman is offline Member
    Join Date
    May 2008
    Posts
    8
    Rep Power
    0

    Default Browser

    Hello, I just joined this place because I have 2 tasks to be figured out with, in the UF my teacher told me to make a java browser...... any help?

  2. #2
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,371
    Blog Entries
    1
    Rep Power
    20

    Default


    Welcome to our community. :)

    You really wants to build a Java browser or a kind of browser display window? Because it's not much easy pal.

  3. #3
    sukatoa's Avatar
    sukatoa is offline Senior Member
    Join Date
    Jan 2008
    Location
    Cebu City, Philippines
    Posts
    556
    Rep Power
    7

    Default

    Hello, I just joined this place because I have 2 tasks to be figured out with, in the UF my teacher told me to make a java browser...... any help?
    Java Browser like what?

    To browse Java files? classes?

    Or like A Java Navigator/Explorer?(like windows explorer)

    Or a Java Web Browser?

    and what is UF by the way?
    freedom exists in the world of ideas

  4. #4
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,371
    Blog Entries
    1
    Rep Power
    20

    Default

    Yep, what he meant is not clear. Working on a Java browser. Interesting. So in near future we have another browser. ;)

    Please explain your question much clearly.

  5. #5
    Jessie Madman is offline Member
    Join Date
    May 2008
    Posts
    8
    Rep Power
    0

    Default

    I meant like a java web browser :D that could surf the internet? or maybe theres a way to load like idk internet expolrer through java and only show the browser part? and then design the rest of GUI by yourself? Idk.... :confused:

    UF stands for (University of Florida)

  6. #6
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,371
    Blog Entries
    1
    Rep Power
    20

    Default

    Quote Originally Posted by Jessie Madman View Post
    I meant like a java web browser :D that could surf the internet?
    Still I'm confusing. Do you want to make a browser like Java GUI?

  7. #7
    sukatoa's Avatar
    sukatoa is offline Senior Member
    Join Date
    Jan 2008
    Location
    Cebu City, Philippines
    Posts
    556
    Rep Power
    7

    Default

    @OP.
    You can google it on the net....

    Here is an example,
    A very simple Java Web Browser...

    Eranga,
    Maybe he wants first to create a basic gui just to test the code. Implement the purpose( Browsing ) maybe using JEditorPane or JTextPane, and redesign the GUI to finalize....
    (Im not sure) :)
    Last edited by sukatoa; 05-13-2008 at 05:11 AM.
    freedom exists in the world of ideas

  8. #8
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,371
    Blog Entries
    1
    Rep Power
    20

  9. #9
    Jesdisciple is offline Member
    Join Date
    May 2008
    Posts
    22
    Rep Power
    0

  10. #10
    sukatoa's Avatar
    sukatoa is offline Senior Member
    Join Date
    Jan 2008
    Location
    Cebu City, Philippines
    Posts
    556
    Rep Power
    7

    Default

    That's a big project....

    I hope he may understand it well.
    freedom exists in the world of ideas

  11. #11
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,371
    Blog Entries
    1
    Rep Power
    20

    Default

    Ya, seems to me there are all informations are available. But I don't know how far practicable to him it is. :)

  12. #12
    Jessie Madman is offline Member
    Join Date
    May 2008
    Posts
    8
    Rep Power
    0

    Default

    sukatio my compiler gets an error on your code at "LinkFollower"

  13. #13
    Jessie Madman is offline Member
    Join Date
    May 2008
    Posts
    8
    Rep Power
    0

    Default

    Jesdiesciple you gave me a link to a jarred java web browser... i acctually want code... but ill try google

  14. #14
    Jesdisciple is offline Member
    Join Date
    May 2008
    Posts
    22
    Rep Power
    0

    Default

    The source is also available; see Lobo Project Java Source Code

    EDIT: Also see SourceForge.net: Open Discussion

  15. #15
    Jessie Madman is offline Member
    Join Date
    May 2008
    Posts
    8
    Rep Power
    0

    Default

    Quote Originally Posted by Jesdisciple View Post
    The source is also available; see Lobo Project Java Source Code

    EDIT: Also see SourceForge.net: Open Discussion
    hmm? the first link doesnt work :confused:

  16. #16
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,371
    Blog Entries
    1
    Rep Power
    20

    Default

    What you mean? You can't see the page what he linked there? I don't think so. It's work for me well.

  17. #17
    hanizainol is offline Member
    Join Date
    Jun 2008
    Posts
    4
    Rep Power
    0

    Default hi

    u just used JEditorPane if you want to display web page. if it is in wml or xhtml. u need to move the wml part and set the mime type to text/html
    it should display the web page.

    you might try below.


    JEditorPane editorPane;
    String url = your web address
    java.net.URL helpURL = new java.net.URL(url);
    editorPane.setPage(helpURL);

  18. #18
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,371
    Blog Entries
    1
    Rep Power
    20

    Default

    Working on the JEditorPane for this is not a good idea. Just set a URL, which is full of more graphics. Your window freeze in few seconds. JEditorPane still not that much advanced still.

  19. #19
    nanaji is offline Member
    Join Date
    May 2008
    Posts
    31
    Rep Power
    0

    Default

    final JFrame frame = new JFrame("Browser");
    frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOS E);
    frame.setLocationByPlatform(true);
    final JPanel panel = new JPanel();
    panel.setLayout(new BorderLayout());
    panel.setPreferredSize(new Dimension(400, 300));
    Dimension dim = Toolkit.getDefaultToolkit().getScreenSize();
    frame.setLocation((dim.width - 400) / 2, (dim.height - 300) / 2);
    // frame.setResizable(false);
    final WebBrowser webBrowser = new WebBrowser();
    try {
    webBrowser.setURL(new URL("some url"));
    panel.add(webBrowser, BorderLayout.CENTER);
    frame.getContentPane().add(panel, BorderLayout.CENTER);
    frame.pack();
    frame.setVisible(true);

  20. #20
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,371
    Blog Entries
    1
    Rep Power
    20

Page 1 of 2 12 LastLast

Similar Threads

  1. Need Help! swt/Browser
    By sealyu in forum SWT / JFace
    Replies: 4
    Last Post: 07-09-2008, 09:16 PM
  2. how to get url from browser
    By srinivas reddy in forum New To Java
    Replies: 0
    Last Post: 02-08-2008, 08:46 AM
  3. Lobo Browser 0.97.5
    By lobochief in forum Java Software
    Replies: 2
    Last Post: 01-14-2008, 04:14 PM
  4. how to redirect the browser
    By simon in forum Java Applets
    Replies: 1
    Last Post: 08-02-2007, 06:24 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •