Java Code Examples for com.alee.laf.label.WebLabel#setDrawShade()
The following examples show how to use
com.alee.laf.label.WebLabel#setDrawShade() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: ContactListView.java From desktopclient-java with GNU General Public License v3.0 | 6 votes |
FlyweightContactItem() { //this.setPaintFocus(true); this.setLayout(new BorderLayout(View.GAP_DEFAULT, 0)); this.setMargin(View.MARGIN_SMALL); mAvatar = new ComponentUtils.AvatarImage(View.AVATAR_LIST_SIZE); this.add(mAvatar, BorderLayout.WEST); mNameLabel = new WebLabel(); mNameLabel.setFontSize(View.FONT_SIZE_BIG); mNameLabel.setDrawShade(true); mStatusLabel = new WebLabel(); mStatusLabel.setForeground(Color.GRAY); mStatusLabel.setFontSize(View.FONT_SIZE_TINY); this.add( new GroupPanel(View.GAP_SMALL, false, mNameLabel, new GroupPanel(GroupingType.fillFirst, Box.createGlue(), mStatusLabel) ), BorderLayout.CENTER); }
Example 2
Source File: ChatListView.java From desktopclient-java with GNU General Public License v3.0 | 5 votes |
FlyweightChatItem() { this.setLayout(new BorderLayout(View.GAP_DEFAULT, 0)); this.setMargin(View.MARGIN_DEFAULT); mAvatar = new ComponentUtils.AvatarImage(View.AVATAR_LIST_SIZE); this.add(mAvatar, BorderLayout.WEST); mTitleLabel = new WebLabel(); mTitleLabel.setFontSize(View.FONT_SIZE_BIG); mTitleLabel.setDrawShade(true); mStatusLabel = new WebLabel(); mStatusLabel.setForeground(Color.GRAY); mStatusLabel.setFontSize(View.FONT_SIZE_TINY); this.add(mStatusLabel, BorderLayout.EAST); mChatStateLabel = new WebLabel(); mChatStateLabel.setForeground(View.DARK_RED); mChatStateLabel.setFontSize(View.FONT_SIZE_TINY); mChatStateLabel.setBoldFont(); //mChatStateLabel.setMargin(0, 5, 0, 5); this.add( new GroupPanel(View.GAP_SMALL, false, mTitleLabel, new GroupPanel(GroupingType.fillFirst, Box.createGlue(), mStatusLabel, mChatStateLabel) ), BorderLayout.CENTER); }