惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

C
CXSECURITY Database RSS Feed - CXSecurity.com
Stack Overflow Blog
Stack Overflow Blog
月光博客
月光博客
T
Threat Research - Cisco Blogs
小众软件
小众软件
有赞技术团队
有赞技术团队
酷 壳 – CoolShell
酷 壳 – CoolShell
Apple Machine Learning Research
Apple Machine Learning Research
C
Cyber Attacks, Cyber Crime and Cyber Security
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
T
Tailwind CSS Blog
Cisco Talos Blog
Cisco Talos Blog
V
V2EX
博客园 - 【当耐特】
C
Cybersecurity and Infrastructure Security Agency CISA
Hugging Face - Blog
Hugging Face - Blog
The Cloudflare Blog
The Last Watchdog
The Last Watchdog
Simon Willison's Weblog
Simon Willison's Weblog
T
Threatpost
S
Secure Thoughts
O
OpenAI News
P
Proofpoint News Feed
S
SegmentFault 最新的问题
Forbes - Security
Forbes - Security
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
Application and Cybersecurity Blog
Application and Cybersecurity Blog
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
Last Week in AI
Last Week in AI
宝玉的分享
宝玉的分享
Scott Helme
Scott Helme
T
Tenable Blog
A
Arctic Wolf
L
LINUX DO - 热门话题
爱范儿
爱范儿
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
www.infosecurity-magazine.com
www.infosecurity-magazine.com
V
Visual Studio Blog
Hacker News: Ask HN
Hacker News: Ask HN
Hacker News - Newest:
Hacker News - Newest: "LLM"
腾讯CDC
博客园 - Franky
WordPress大学
WordPress大学
Know Your Adversary
Know Your Adversary
博客园_首页
雷峰网
雷峰网
IT之家
IT之家
PCI Perspectives
PCI Perspectives
L
LINUX DO - 最新话题
H
Heimdal Security Blog

博客园 - tatung zhang

全屏显示问题 sun发布lwuit1.4 深入理解 LWUIT 框架的 MVC lwuit控件关系模式图,Padding和Margin关系图 eclipse rcp 获取工程项目路径 eclipse content assist 代码提示功能失效解决办法 LWUIT 1.3 发布了 Eclipse RCP中添加第三方jar包的办法 lwuit---调整滚动条灵敏度值 j2me获取手机IMEI保证软件信息安全解决方案 show一下最新项目的界面图 谈谈移动开发 lwuit ---一些细节疑难杂症整理笔记 lwuit-list 困扰我的列颜色改变 lwuit-tab与list配合使用 lwuit-List控件使用 lwuit控件布局定位 VS2005创建智能设备项目失败 wince嵌入式应用程序开发环境搭建
lwuit---更改字体大小
tatung zhang · 2009-08-10 · via 博客园 - tatung zhang

lwuit默认的字体是比较小的,所以我们可以在系统上做个设置字体大小的。
首先在Midlet上设置字体大小,
   Font.setDefaultFont(Font.createSystemFont(Font.FACE_SYSTEM,
       Font.STYLE_PLAIN, Font.SIZE_MEDIUM));
 Font.SIZE_MEDIUM这个值改成读变量的,
然后就是读取了,在 UIManager类上:

    public Style getComponentStyle(String id){
        Style style 
= null;
        
        
if(id == null || id.length() ==0){
            
//if no id return the default style
            id = "";
        }
else{
            id 
= id + ".";
        }
        
        style 
= (Style)styles.get(id);
        
        
if(style == null){
            style 
= createStyle(id);
            styles.put(id, style);
        }
//设置系统字体(读取)
        style.setFont(Font.getDefaultFont());
        
        
return new Style(style);
    }

更改的时候只有对未初始化的窗体更改能够马上生效,其他的需要退出程序才能生效。