Swing

Extends DefaultTableModel to create your own table model and build table from that.

Using Swing Components: Examples

http://docs.oracle.com/javase/tutorial/uiswing/index.html

http://www.java2s.com/Code/Java/Swing-JFC/CatalogSwing-JFC.htm

Java » Swing JFC

http://docs.oracle.com/javase/7/docs/api/javax/swing/JScrollPane.html

http://stackoverflow.com/questions/8669350/jlabel-hyperlink-to-open-browser-at-correct-url


    private void goWebsite(JLabel website, final String url, String text) {
        website.setText("<html> Website : <a href=\"\">"+text+"</a></html>");
        website.setCursor(new Cursor(Cursor.HAND_CURSOR));
        website.addMouseListener(new MouseAdapter() {
            @Override
            public void mouseClicked(MouseEvent e) {
                    try {
                            Desktop.getDesktop().browse(new URI(url));
                    } catch (URISyntaxException | IOException ex) {
                            //It looks like there's a problem
                    }
            }
        });
    }
Advertisements
This entry was posted in Uncategorized. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s