我正在尝试编译并运行这个代码,我只是在swing的教程中找到了.
我使用以下命令编译和运行程序:
编译:
/usr/lib/jvm/java-1.7.0-openjdk.x86_64/bin/javac ComboBoxDemo2.java
Run Code Online (Sandbox Code Playgroud)
跑:
/usr/lib/jvm/java-1.7.0-openjdk.x86_64/bin/java ComboBoxDemo2
Run Code Online (Sandbox Code Playgroud)
该程序:
/*
* Copyright (c) 1995, 2008, Oracle and/or its affiliates. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* - Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* - Redistributions in binary form must reproduce the above …Run Code Online (Sandbox Code Playgroud) java ×1