Little misstake on webpage
Háber János <[email protected]> Thu, 26 Aug 2004 11:29:48 +0200
| Newsgroups | gmane.comp.embedded.carlsbad-cubes |
|---|---|
| Message-ID | <[email protected]> |
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi! In the webpage sample section the applet screenshot show the localization screenshot. I created a little modified tabbed pane. (You can set tab-s with title, icon, and tooltip) in xml (I think it's very useful for admin interfaces). I know the xtabbedpane can set Icons,and titles for full tabbedpane, but I think the <ytabbedpane> <ytab> </ytab> ... </tabbedpane> is more beauty :)) (If you not need these "extension" drop it to the trash :))) Cow - -- Háber János mailto:[email protected] ICQ Uin:73963523 http://boci.eminens.hu Fingerprint: EC31 2ABB 041F DA6C AE7C 6B45 7962 5707 C033 1A33 Public Key: http://boci.eminens.hu/boci.asc Key Identifier: 0xC0331A33 Key Server: wwwkeys.eu.pgp.net -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (GNU/Linux) iD8DBQFBLa2NeWJXB8AzGjMRAnUwAJ9qpFrlzIpb1hOHlMktluuOKVFM+gCdG0fV ysCHMz8oVihNgfFmRmQP4Tw= =rcHX -----END PGP SIGNATURE----- _______________________________________________ Forum mailing list [email protected] http://carlsbadcubes.com/mailman/listinfo/forum_carlsbadcubes.com
YTabbedPane.java
(text/x-java, 745 B)
/*
* Created on 2004.08.26.
*
* TODO To change the template for this generated file go to
* Window - Preferences - Java - Code Style - Code Templates
*/
package client.extension;
import java.awt.Component;
import org.swixml.XTabbedPane;
/**
* @author boci
*
* TODO To change the template for this generated type comment go to
* Window - Preferences - Java - Code Style - Code Templates
*/
public class YTabbedPane extends XTabbedPane {
public Component add(Component comp) {
if(comp instanceof YTab) {
YTab tab=(YTab)comp;
this.addTab(tab.getTitle(),tab.getIcon(),tab,tab.getTooltip());
return tab;
}else {
super.add(comp);
}
return comp;
}
}
YTab.java
(text/x-java, 1.3 KB)
/*
* Created on 2004.08.26.
*
* TODO To change the template for this generated file go to
* Window - Preferences - Java - Code Style - Code Templates
*/
package client.extension;
import javax.swing.Icon;
import javax.swing.JPanel;
/**
* @author boci
*
* TODO To change the template for this generated type comment go to Window -
* Preferences - Java - Code Style - Code Templates
*/
public class YTab extends JPanel {
private String title = null;
private Icon icon = null;
private String tooltip = null;
/**
* @return Returns the icon.
*/
public Icon getIcon() {
return icon;
}
/**
* @param icon
* The icon to set.
*/
public void setIcon(Icon icon) {
this.icon = icon;
}
/**
* @return Returns the title.
*/
public String getTitle() {
return title;
}
/**
* @param title
* The title to set.
*/
public void setTitle(String title) {
this.title = title;
}
/**
* @return Returns the tooltip.
*/
public String getTooltip() {
return tooltip;
}
/**
* @param tooltip
* The tooltip to set.
*/
public void setTooltip(String tooltip) {
this.tooltip = tooltip;
}
}