Note that there are some explanatory texts on larger screens.

plurals
  1. POJava - opening program, website or folder from one same methode/class
    primarykey
    data
    text
    <p>right now, i have nearly experience for one year with JAVA, but encountered a (large) problem!</p> <p>I'm busy with a program that is a sort of alternative start-menu of Windows. It wil look like this:</p> <blockquote> <p><strong>Tab 1</strong></p> <p><em>JButton</em>: Google.com <em>JButton</em>: GMail.com <em>JButton</em>: Google Agenda etc...</p> <p><strong>Tab 2</strong></p> <p><em>JButton</em>: Word <em>JButton</em>: OneNote</p> <p><strong>Tab 3</strong></p> <p><em>JButton</em>: World of Tanks <em>JButton</em>: BeGone</p> <p><strong>Tab 4</strong> <em>JButton</em>: Xampp <em>JButton</em>: Documents</p> </blockquote> <hr> <p>As you can see, i have filled all tabs with all buttons. These buttons are from the class ShortCut and that class extends JButton (of course :) ). The ShortCut-class has an String witch is the URL, like <a href="http://www.google.com/" rel="nofollow">http://www.google.com/</a>.</p> <p><strong>My problem</strong></p> <p>I want, if the button is clicked, the saved url witch in it, will be opened. But i have 2/3 different url's:</p> <ol> <li>Website links (like "http://www.google.nl/")</li> <li>Program links (like "c:\myProgram.jar")</li> <li>Folder links (like "c:\Users")</li> </ol> <p>--> What i really, really want is to get a function or class, that could open all those 3 kinds of links! Does somebody have such an function?</p> <p>--> If that's not possible, could somebody give me advise how to realise the opening of those 3 kinds of url's?</p> <p>You can really help me, because i stuck with this!</p> <p>thanks in advance,</p> <p>Dave</p> <p>ps: sorry for my bad english! :)</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload