jDateChooser未显示日期编号

时间:2016-07-04 20:23:04

标签: java swing netbeans jdatechooser

我正在使用jDateChooser库开发Java应用程序。我使用NetBeans作为我的IDE。当我通过组件面板包含jDateChooser组合时。我没有告诉我当天的电话号码。而是显示...。我在下面附上我的问题图片。 enter image description here

我试图让JFrame更大,但它不起作用。有什么想法吗?

1 个答案:

答案 0 :(得分:0)

var app = angular.module('marks', ['uiSlider']);

app.controller('TestCtrl', function ($scope){
  $scope.items = [{name: "name1", "minmarks": "35",
                  "maxmarks": "100", "value1": "50", "value2": "100"},
                  {name: "name2", "minmarks": "50",
                  "maxmarks": "80", "value1": "100", "value2": "150"},
                  {name: "name3", "minmarks": "70",
                  "maxmarks": "90", "value1": "25", "value2": "50"}];

  $scope.low_marks = 0;
  $scope.high_marks = 100;

  $scope.marksrange = function(item) {
    return (parseInt(item['minmarks']) >= $scope.low_marks && parseInt(item['maxmarks']) <= $scope.high_marks);
  };
});

将Date值格式化为String

Date date = jDateChooser1.getDate();

将该值设置为标签的文本...

String strDate = DateFormat.getDateInstance().format(date);