Blackberry JAVA DEVELOPMENT ENVIRONMENT - - CRYPTOGRAPHIC SMART CARD DRIVER - DEVELOPMENT GUIDE Průvodce řešením problémů Strana 229

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 286
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 228
229
15: Creating push applications
setTitle(java.util.ResourceBundle.getBundle(“com/rim/samples/docs/httppush/
resources”).getString(“HTTPPushServer.title”));
setResizable(false);
addWindowListener(new java.awt.event.WindowAdapter() {
public void windowClosing(java.awt.event.WindowEvent evt) {
exitForm(evt);
}
});
_panel.setLayout(null);
_panel.setPreferredSize(getSize());
_textArea.setToolTipText(java.util.ResourceBundle.getBundle(“com/rim/samples/docs/
httppush/resources”).getString(“HTTPPushServer._textField.toolTipText”));
_panel.add(_textArea);
_textArea.setBounds(10, 50, 270, 100);
_textArea.setBorder(new LineBorder(Color.BLACK));
_pinField.setToolTipText(java.util.ResourceBundle.getBundle(“com/rim/samples/docs/
httppush/resources”).getString(“HTTPPushServer._pinField.toolTipText”));
_panel.add(_pinField);
_pinField.setBounds(10, 170, 150, 30);
_panel.add(_rimButton);
_panel.add(_papButton);
_rimButton.setBounds(170, 170, 50, 30);
_papButton.setBounds(240, 170, 50, 30);
_label.setWrapStyleWord(true);
_label.setLineWrap(true);
_label.setEditable(false);
_label.setText(java.util.ResourceBundle.getBundle(“com/rim/samples/docs/httppush/
resources”).getString(“HTTPPushServer._label.text”));
_label.setBackground((java.awt.Color) javax.swing.UIManager.getDefaults ().get
(“Button.background”));
_panel.add(_label);
_label.setBounds(10, 10, 270, 40);
_sendButton.setLabel(java.util.ResourceBundle.getBundle(“com/rim/samples/docs/
httppush/resources”).getString(“HTTPPushServer._sendButton.label”));
_sendButton.addMouseListener(new java.awt.event.MouseAdapter() {
public void mouseClicked(java.awt.event.MouseEvent evt) {
sendButtonMouseClicked(evt);
}
});
_panel.add(_sendButton);
_sendButton.setLocation(10, 210);
_sendButton.setSize(_sendButton.getPreferredSize());
JScrollPane _scrollPane = new javax.swing.JScrollPane(_notification);
_scrollPane.setVerticalScrollBarPolicy(
JScrollPane.VERTICAL_SCROLLBAR_ALWAYS);
_panel.add(_scrollPane);
_scrollPane.setBounds(10,250,270, 150);
Zobrazit stránku 228
1 2 ... 224 225 226 227 228 229 230 231 232 233 234 ... 285 286

Komentáře k této Příručce

Žádné komentáře