Skip to content
小飞侠
  • 首页
  • 小程序
  • uniapp
  • vue
  • APICloud
  • 其他
菜单

博客

  1. 首页>
  2. 其他>
  3. 简单判断颜色

简单判断颜色

  • Post author:xfxia
  • Post published:2023年7月23日
  • Post category:其他


 		txtOutput.setBackground(Color.WHITE); 
         double score; 
         String output=""; 
         score=Double.parseDouble(txtScore.getText()); 
        if(score>=60){
           output="考试通过"; 
           txtOutput.setBackground(Color.green);
            txtOutput.setText(output); 
        }else{
            output="考试未通过"; 
            txtOutput.setBackground(Color.red);
            txtOutput.setText(output); 
        }



版权声明:本文为weixin_49015157原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。
原文链接:https://blog.csdn.net/weixin_49015157/article/details/108849595

你可能也喜欢

.bat 文件启动Jar包

.NET CORE添加引用包

SQLSERVER行转列 列转行

QT信号与槽函数

缓冲区溢出(栈溢出)实验 之 JMP ESP

为什么会造成跨域?简述同源策略

vim配置全攻略(2)——vim的简单配置

VSCode配置C/C++环境

VTK 常见错误 vtkRenderingOpenGL_AutoInit_Construct

分布式事务(1)消息发送一致性解决方案

nginx 图片缓存

1+x认证云计算(初级)选择题汇总

莫比乌斯反演—详解

【Docker】redis分片集群搭建:3主3从,容错迁移,扩缩容

计算机cad的概念,【2人回答】什么是CAD?CAD的含义是什么?-3D溜溜网

Windows操作系统基础-第02课-基本配置

Pytest常用装饰器使用

使用 PowerShell 执行 Exchange 2010 安装前准备工作

mac修改终端显示前缀

Nginx –高阶

目录

  • APICloud (3)
  • golang (45)
  • java (1,928)
  • linux (804)
  • mysql (603)
  • php (200)
  • python (1,109)
  • solidity (5)
  • uniapp (59)
  • vue (516)
  • 其他 (18,837)
  • 小程序 (197)

文章归档

  • 2023年八月 (1864)
  • 2023年七月 (14793)
  • 2023年六月 (1)
  • 2023年五月 (2186)
  • 2023年四月 (3838)
  • 2023年三月 (1544)
  • 2023年二月 (3)
  • 2023年一月 (4)
  • 2022年十二月 (3)
  • 2022年十一月 (36)
  • 2022年十月 (16)
  • 2022年九月 (8)
  • 2021年九月 (1)
  • 2020年九月 (6)
  • 2020年八月 (5)

标签

Aave (1) cosmos (6) defi (60) flag (7) gitee (1) github (1) golang (51) java (1926) linux命令 (19) List (1) map (229) mysql (666) npm (47) tendermint (6) uuid (12) vant (15) vmware (63) 区块链 (21) 合约 (7) 小程序版本更新 (1)
  • 首页
  • 小程序
  • uniapp
  • vue
  • APICloud
  • 其他
Copyright xfxia.com 鲁ICP备19024253号-2
关闭菜单