31. YusukeYamamoto デザインパターンを適用しない Twitter twitter = new Twitter(); List<Status> statuses = twitter.getPublicTimeline(); for(Status status : statuses){ System.out.println(status.getText()); } 多くのプログラマはFactoryとかわからない まずはコンクリートコンストラクタで。
米Twitterは2月28日、Twitterの公開API「Streaming API」を利用するためのJavaライブラリ「Hosebird Client(hbc)」をオープンソースで公開した。これを利用することで、Streaming APIを含むTwitter APIを利用するJavaアプリケーションを容易に構築できる。 TwitterのStreaming APIは、ユーザーの投稿をほぼリアルタイムで受け取ることができるAPI。公開されたHosebird Clientはこれを利用するためのJavaライブラリで、Twitterが開発し実際に利用しているという。同社が社内で開発したAPIクライアントライブラリをオープンソースにするのは初めてという。 Hosebird Clientは、「hbc-core」および「hbc-twitter4j」という2つのモジュールで構成される。hbc-coreはメ
import javax.swing.*; import java.awt.event.ActionListener; import java.awt.event.ActionEvent; import java.awt.*; class LoginDialog extends JDialog implements ActionListener { JLabel labelName; JLabel labelPass; JTextField textName; JPasswordField passField; JButton okButton; JButton cancelButton; JDialog dialog; public LoginDialog() { JPanel panelOne = new JPanel(); labelName = new JLabel("Name")
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く