retireresources.java

来自「sun公司开发的,java2核心技术,卷II:高级性能,包括一系列的高级java」· Java 代码 · 共 27 行

JAVA
27
字号
import java.util.*;
import java.awt.*;

public class RetireResources
   extends java.util.ListResourceBundle 
{  public Object[][] getContents() { return contents; }
   static final Object[][] contents = 
   {  // BEGIN LOCALIZE
      { "language", "Language" },
      { "computeButton", "Compute" },
      { "savings", "Prior Savings" },
      { "contrib", "Annual Contribution" },
      { "income", "Retirement Income" },
      { "currentAge", "Current Age" },
      { "retireAge", "Retirement Age" },
      { "deathAge", "Life Expectancy" },
      { "inflationPercent", "Inflation" },
      { "investPercent", "Investment Return" },
      { "retire", "Age: {0,number} Balance: {1,number,currency}" },
      { "colorPre", Color.blue },
      { "colorGain", Color.white },
      { "colorLoss", Color.red }
      // END LOCALIZE
   };
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?