Java AWT Swing不会绘制我的框架

时间:2018-04-26 06:00:58

标签: java swing awt

我正在尝试在Eclipse上构建Java游戏。但我在NetBeans上做了一些工作。我的问题是,每当我进入它绘制的页面时,我在NetBeans中创建的页面都会正确显示。但我自己在Eclipse上做了游戏页面并且没有绘制它。然而,当我移动面板时,它闪烁我的角色,然后项目消失。我认为这个问题与我的代码有关,所以这里是:

<link href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet" />
<link href="https://cdnjs.cloudflare.com/ajax/libs/multi-select/0.9.12/css/multi-select.css" rel="stylesheet" />
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/js/bootstrap.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/multi-select/0.9.12/js/jquery.multi-select.js"></script>
<select id='optgroup' class="searchable" multiple='multiple'>
  <option value='11'>Maths</option>
  <option value='12'>Physics</option>
  <option value='13'>Chemistry</option>
  <option value='14'>Biology</option>
  <option value='15'>Computer Science</option>
  <option value='16'>Accounts</option>
  <option value='17'>Commerce</option>
  <option value='18'>Business Maths</option>
  <option value='19'>Economics</option>
  <option value='20'>History</option>
</select>

提前致谢

0 个答案:

没有答案