look-and-feel

How to use custom look and feel for Swing application?

耗尽温柔 提交于 2020-01-25 03:05:32
问题 How to use custom look and feel jar files in Java project For Ex: Seaglass look and feel? What are the required steps to successfully use any look and feel jar our project and how to add jar file to class path ? 回答1: I am gonna use seaglass look and feel jar file to explain the answer, you can download the same here Step 1: First add the downloaded look and feel to your project classpath Right click on your project in eclipse, go to Build path and select configure build path, Under Libraries

Report Design Templates

旧城冷巷雨未停 提交于 2020-01-24 20:52:25
问题 We are using DevExpress XtraReports 2009v3.3 and although I can achieve what I want through various formatting objects in code, there must be a (better/less painless/maintainable/visual) way of achieving what I require... I need to produce a report, designed to end-user 'look & feel'. We have many companies which use our software and they all require different design schema's/templates for their reports. For example - a single report, depending on who logs on (we know what company they belong

How to change the default font size in the Swing GTK LookAndFeel?

不想你离开。 提交于 2020-01-21 07:17:42
问题 Is there a way to change the default font size in the Swing GTK LaF? The GTK LaF seems to assume 72dpi, so all the fonts are only 3/4 of the size they should be when using a 96dpi screen. See this Fedora bug for details. I'd like to find a workaround in the meantime, while I wait for the fix. I've already tried resetting the font size via UIDefaults , as recommended here, for example, but (as also noted there) the GTK LaF appears to ignore this. I could build a widget factory that would also

How to create a custom look and feel for Java Swing? [closed]

…衆ロ難τιáo~ 提交于 2020-01-10 02:29:49
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 3 years ago . I want to create my own look and feel in Swing. Can anyone give me succinct knowledge about how to do this? 回答1: Have a look at Ralph Kar's explanation of how to subclass Swing's Basic L&F, or perhaps the Swing tutorial: Modifying the Look and Feel. 来源: https://stackoverflow.com

SwingUtilities.updateComponentTreeUI() not changing JFrames titlebar

吃可爱长大的小学妹 提交于 2020-01-06 05:34:27
问题 Environment: Using Netbeans 8.1 Oracle JDK 1.8 Win 10 pro Context: A GUI with a JCheckBoxMenuItem to change LookAndFeel(LAF) at runtime. darkLAF=JTattoo's HiFi LAF defaultLAF=Sun's Windows LAF(com.sun.java.swing.plaf.windows.WindowsLookAndFeel) Problem: GUI launches(in EDT) with defaultLAF. User changes to darkLAF..the title bar should have changed..it doesn't. When the user switches back to defaultLAF, the JMenuItems(File and Edit) show greyer backgrounds not the defaultLAF style.

Change look and feel in WPF application?

夙愿已清 提交于 2020-01-06 01:18:06
问题 Is there easy way to change look and feel of your WPF app, just like in Java Swing? I can change it manually, by adopting manually crated styles on various controls... 回答1: I don't know if I have well understood the question but in WPF Toolkit there are some themes that allows you to change quickly your application interface. 回答2: I can change it manually, by adopting manually crated styles on various controls... Depends how smart you were developing it. Normal WPF controls have no look at

Change look and feel in WPF application?

拜拜、爱过 提交于 2020-01-06 01:17:52
问题 Is there easy way to change look and feel of your WPF app, just like in Java Swing? I can change it manually, by adopting manually crated styles on various controls... 回答1: I don't know if I have well understood the question but in WPF Toolkit there are some themes that allows you to change quickly your application interface. 回答2: I can change it manually, by adopting manually crated styles on various controls... Depends how smart you were developing it. Normal WPF controls have no look at

Java - How to fill a Windows L&F button with color instead of just the border?

元气小坏坏 提交于 2020-01-05 08:40:41
问题 I'm doing a few GUI tests with Java on Windows 7. I would like to use the Windows Look & Feel because Java's default "Metal" UI is really ugly IMO. When I set the background color of a button, it just colors the border around the button rather than fill its whole background. public class GUITest { public static void main(String[] args) { try { UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName()); } catch(Exception e) {} // I know, not a good idea, but it's just a test JFrame

How to get device colors?

≡放荡痞女 提交于 2020-01-05 03:26:08
问题 I have a spinner which is in the Emulator light gray with black text also on HTC devices. On the Motorola Defy the control is dark-gray and the text is white. How can I get the default text color of the currient device? 回答1: All the customizations done by carries/manufactures are inside: android:colors android:styles android:themes If you are using a TextView you can check the default text color by creating a TextView object and calling getTextColors(). Another possibility is checking how the