Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
作为 MPS 的新手,我尝试在一个小的待办事项列表中为完成的项目设置不同的颜色。我有一个布尔属性属性“完成”并且想要返回颜色值 - 但我不能使用命名颜色或 java Color 类。我肯定忘记了什么——谁能告诉我该怎么做?
非常感谢您的任何回答!
只需返回 java.awt.Color 中定义的常量。您需要先导入 java.awt@stub 模型(Control + M)。