Java代码查询站点

1. java2s   http://www.java2s.com/
   这个网站非常好,分成三大类,分别是 ExampleProducts Articles,每个大类下又分别设许多小类,还有搜索功能,这样查找起来非常方便。。比如,如果要学习SWT/JFace,只要把Example下的 SWT JFace Eclipse 研究一下也就可以了。另外,这个网站还有 JavaScript DHTMLC# / C SharpC / ANSI-CSQL / MySQL等类。总之,非常好。
  2. codeZoo http://www.codezoo.com/
   这是O'Reily旗下的,除了Java之外,还有Ruby、Python。
 
  3. Java学习源代码检索系统  http://www.chinaitlab.com/www/school/codesearch/index.html
   难得看见国产的,好歹也要支持一下,分类也算清楚。
 
  4. Koders  http://www.koders.com/
   是个综合查询的网站,不过它好像是从代码中查找关键词,包含的语言挺多的。
 
  5. Resources for Java server-side developers  http://www.java201.com/
   确切的说,它是一个资源收集的网站,代码查询并不多。不过它分类相当细,如Articles、Books、Examples、Extensions、Frameworks等类,你可以输入Spring或Hibernate作为关键词搜索一下看看。


Trackback: http://tb.blog.csdn.net/TrackBack.aspx?PostId=598210

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
以下是JAVA车次查询站点查询相互跳转的主要代码示例: 首先是车次查询界面的代码,包括一个按钮和一个文本框,用户输入车次号后点击按钮可以跳转到站点查询界面。 ```java import java.awt.*; import java.awt.event.*; import javax.swing.*; public class TrainQuery extends JFrame { private JButton button; private JTextField textField; public TrainQuery() { super("车次查询"); setLayout(new FlowLayout()); textField = new JTextField(10); add(textField); button = new JButton("查询"); add(button); button.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { String trainNum = textField.getText(); StationQuery stationQuery = new StationQuery(trainNum); stationQuery.setVisible(true); setVisible(false); dispose(); } }); setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); setSize(300, 100); setLocationRelativeTo(null); setVisible(true); } public static void main(String[] args) { new TrainQuery(); } } ``` 接下来是站点查询界面的代码,其中包括一个标签和一个按钮,用户点击按钮后可以返回到车次查询界面。 ```java import java.awt.*; import java.awt.event.*; import javax.swing.*; public class StationQuery extends JFrame { private JLabel label; public StationQuery(String trainNum) { super("站点查询"); setLayout(new FlowLayout()); label = new JLabel("您查询的车次是:" + trainNum); add(label); JButton button = new JButton("返回"); add(button); button.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { TrainQuery trainQuery = new TrainQuery(); trainQuery.setVisible(true); setVisible(false); dispose(); } }); setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); setSize(300, 100); setLocationRelativeTo(null); setVisible(true); } public static void main(String[] args) { new StationQuery("K1234"); } } ``` 以上就是JAVA车次查询站点查询相互跳转的主要代码示例。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值