keyevent

search for more blogs here

 

"???????" posted by ~Ray
Posted on 2008-11-13 12:23:46

import java applet.*;import java awt.*;import java awt event.*; public class Cubic extends Applet implementsRunnable. KeyListener{ zt = -x*Math sin(Math. PI/180*b) + z*Math cos(Math. PI/180*b); yt = yt*Math cos(Math. PI/180*a) - zt*Math sin(Math. PI/180*a); xp = xt*Math cos(Math. PI/180*c) - yt*Math sin(Math. PI/180*c) +Xo; yp = -xt*Math sin(Math. PI/180*c) - yt*Math cos(Math. PI/180*c) +Yo;   电话:95105670 提示音后按2键(按当地市话标准计费) 欢迎批评指正 Copyright © 1996 - 2008 SINA Corporation. All Rights Reserved

Forex Groups - Tips on Trading

Related article:
http://blog.sina.com.cn/s/blog_4da452cd01000cvz.html

comments | Add comment | Report as Spam


"JTabbedPane" posted by ~Ray
Posted on 2008-03-12 23:15:12

JTabbedPane allows you to view several JPanels at once in the same screen real estate. The user selects which one he wants to see by clicking a tab. This is similar to an AWT Panel with a CardLayout except the CardLayout does not have the clickable tabs. Oddly JTabbedPane is not a subclass of JPanel. Here is how you use it: // using JTabbedPaneJTabbedPane tabbedPane = new JTabbedPane();ImageIcon icon = createImageIcon("images/tabdecoration gif");tabbedPane addTab("Identification" icon idPanel. "Identification details" );// hit alt-I key to get the 0th panel i e idPaneltabbedPane setMnemonicAt( 0. KeyEvent. VK_I );tabbedPane addTab("Phone" icon phonePanel. "Home and WorK Phone numbers" );tabbedPane setMnemonicAt( 1. KeyEvent. VK_P );// this effectively sets preferredSize for the tabbedPane as a whole webPanel setPreferredSize( new Dimension( 410. 50 ) );tabbedPane addTab("Web" icon webPanel. "telecommunicate and website info");tabbedPane setMnemonicAt( 2. KeyEvent. VK_W );you can follow this document for further information.

Forex Groups - Tips on Trading

Related article:
http://javabooks4u.blogspot.com/2007/11/jtabbedpane.html

comments | Add comment | Report as Spam


"JTabbedPane" posted by ~Ray
Posted on 2008-03-12 23:15:11

JTabbedPane allows you to view several JPanels at once in the same screen real estate. The user selects which one he wants to see by clicking a tab. This is similar to an AWT Panel with a CardLayout except the CardLayout does not have the clickable tabs. Oddly JTabbedPane is not a subclass of JPanel. Here is how you use it: // using JTabbedPaneJTabbedPane tabbedPane = new JTabbedPane();ImageIcon icon = createImageIcon("images/tabdecoration gif");tabbedPane addTab("Identification" icon idPanel. "Identification details" );// hit alt-I key to get the 0th panel i e idPaneltabbedPane setMnemonicAt( 0. KeyEvent. VK_I );tabbedPane addTab("telecommunicate" icon phonePanel. "Home and WorK telecommunicate numbers" );tabbedPane setMnemonicAt( 1. KeyEvent. VK_P );// this effectively sets preferredSize for the tabbedPane as a whole webPanel setPreferredSize( new mark( 410. 50 ) );tabbedPane addTab("Web" icon webPanel. "email and website info");tabbedPane setMnemonicAt( 2. KeyEvent. VK_W );you can follow this enter for advance information.

Forex Groups - Tips on Trading

Related article:
http://javabooks4u.blogspot.com/2007/11/jtabbedpane.html

comments | Add comment | Report as Spam


"20050500174 ?????????" posted by ~Ray
Posted on 2008-01-01 21:19:11

import javax displace.*;import java awt.*;import javax swing border.*;merchandise java awt event. InputEvent;import java awt event. KeyEvent;merchandise java awt event.*;public class Mywindow extends JFrame implementsActionListener{ JMenuBar menubar; JMenu menu1,menu2,menu3; JMenuItemitem10,item11,item12,item13,item14,item20,item21,item22,item23,item24,item25,item251,item252,item253; public Mywindow(String s) { super(s); menubar=new JMenuBar(); menu1=new JMenu("文件"); menu2=new JMenu("编缉"); menu3=new JMenu("其它"); item10=new JMenuItem("页面设置"); item11=new JMenuItem("新建"); item12=new JMenuItem("打开"); item13=new JMenuItem("关闭"); item14=new JMenuItem("保存"); item20=new JMenuItem("复制"); item21=new JMenuItem("撤消"); item22=new JMenuItem("剪切"); item23=new JMenuItem("粘贴"); item24=new JMenuItem("删除"); item251=new JMenuItem("调换位置"); item252=new JMenuItem("创建当前行副本"); item253=new JMenuItem("创建当前位置副本"); item12 setAccelerator(KeyStroke getKeyStroke(KeyEvent. VK_O,InputEvent. CTRL_MASK)); item14 setAccelerator(KeyStroke getKeyStroke(KeyEvent. VK_S,InputEvent. CTRL_MASK)); item20 setAccelerator(KeyStroke getKeyStroke(KeyEvent. VK_C,InputEvent. CTRL_MASK)); item21 setAccelerator(KeyStroke getKeyStroke(KeyEvent. VK_Z,InputEvent. CTRL_MASK)); item22 setAccelerator(KeyStroke getKeyStroke(KeyEvent. VK_X,InputEvent. CTRL_MASK)); item23 setAccelerator(KeyStroke getKeyStroke(KeyEvent. VK_V,InputEvent. CTRL_disguise)); item251 setAccelerator(KeyStroke getKeyStroke(KeyEvent. VK_T,InputEvent. CTRL_disguise)); item252 setAccelerator(KeyStroke getKeyStroke(KeyEvent. VK_J,InputEvent. CTRL_disguise)); item253 setAccelerator(KeyStroke getKeyStroke(KeyEvent. VK_P,InputEvent. CTRL_MASK)); menu1 add(item11); menu1 add(item12); menu1 add(item13); menu1 add(item14); menu2 add(item20); menu2 add(item21); menu2 add(item22); menu2 add(item23); menu2 add(item24); menu3 add(item251); menu3 add(item252); menu3 add(item253); menu3 add(item10); menu2 add(menu3); menubar add(menu1); menubar add(menu2); setJMenuBar(menubar); item10 addActionListener(this); Container con=getContentPane(); con setLayout(new FlowLayout()); setSize(160,170); setLocation(120,120); setBounds(120,125,200,200); setVisible(true); validate(); setDefaultCloseOperation(JFrame. EXIT_ON_change state); } public void actionPerformed(ActionEvent e) { if(e getSource()==item10) { class Window extends JFrame { JTextArea text1,text2; JTextField modelText; BoxbaseBox,box1,box1a,box1b,box2,box2a,box2b,box3,box3a,box3b,box4;.

Forex Groups - Tips on Trading

Related article:
http://blog.sina.com.cn/s/blog_4e9e375101000bdn.html

comments | Add comment | Report as Spam


"Android???????????????" posted by ~Ray
Posted on 2007-11-27 20:06:03

Androidで簡単な画像Viewerを作ってみました。参考にしたのはこちらのコードを参考にしながら、画像の拡大/縮小機能を追加してみました。ほとんど同じですが、追加した部分の色を変えておきます。/***********************************************************/private static categorise SampleView extends View { private create mPaint = new Paint(); private inform mPos = new inform(); private go sca=(go)1.0; private Bitmap mBitmap; private final int MOVE_VALUE = 10; private final manifold measure_VALUE = 0.2; private final int AREA_WIDTH = 320; private final int AREA_HEIGHT = 200; @decree protected cancel onDraw(beg canvas) { Paint create = mPaint; beg drawColor(alter. WHITE); canvas scale(sca sca. 0. 0); canvas drawBitmap(mBitmap mPos x mPos y paint); invalidate(); }@Override public boolean onKeyDown(int keyCode. KeyEvent event) { switch(keyCode) { /*他のKeyEventは省略*/ inspect KeyEvent. KEYCODE_W: sca-=(float)SCALE_VALUE; if(sca<1.0){ sca=(float)1.0; } return adjust;

Forex Groups - Tips on Trading

Related article:
http://jusho-futei-mushoku.blogspot.com/2007/11/android.html

comments | Add comment | Report as Spam


"??20050500193?????" posted by ~Ray
Posted on 2007-11-17 15:58:36

import javax swing.*;merchandise java awt event. InputEvent;merchandise java awt event. KeyEvent;class FirstWindow extends JFrame{JMenuBar menubar;JMenu menu1,menu2;JMenuItem item1,item2,item3,item4,item5;FirstWindow(arrange s){super(s);setSize(160,170);setLocation(120,120);setVisible(true);menubar=new JMenuBar();menu1=new JMenu("文件");item1=new JMenuItem("打开");item2=new JMenuItem("保存");item1 setAccelerator(KeyStroke getKeyStroke('0'));item2 setAccelerator(KeyStroke getKeyStroke(KeyEvent. VK_S,InputEvent. CTRL_disguise));menu1 add(item1);menu1 addSeparator();menu1 add(item2);menubar add(menu1); menu2=new JMenu("编辑");item3=new JMenuItem("剪切");item4=new JMenuItem("复制");item5=new JMenuItem("粘贴");item3 setAccelerator(KeyStroke getKeyStroke(KeyEvent. VK_X,InputEvent. CTRL_MASK));item4 setAccelerator(KeyStroke getKeyStroke(KeyEvent. VK_C,InputEvent. CTRL_disguise));item5 setAccelerator(KeyStroke getKeyStroke(KeyEvent. VK_V,InputEvent. CTRL_MASK));menu2 add(item3);menu2 addSeparator();menu2 add(item4);menu2 add(item5);menubar add(menu2); setJMenuBar(menubar);validate();setDefaultCloseOperation(JFrame. DISPOSE_ON_CLOSE); }}

Forex Groups - Tips on Trading

Related article:
http://blog.sina.com.cn/s/blog_4e9e375101000beu.html

comments | Add comment | Report as Spam


"Problem with KeyEvent" posted by ~Ray
Posted on 2007-11-09 17:21:31

The call of VK_SOMETHING don't work cause of the JBuilder.. he says he needs a constant expression... The use of 0x22 i e works only in some cases.... I be to do some when the user typed the arrow-keys.. but it seems that the switch-call don't receive the enter.. inspect 0x25 : doSomething();break; don't bring home the bacon... Any suggestions?reagards that is alter... The JBuilder(JBuilder 2005) say this :"SQLKeyboardListener java": constant expression required at line 124 column 15The method becharm the char-values from java awt event. KeyEvent works with Escape i e but not with the arrowkeys. Both variants(numpad keys too) this is strange.. both.. the error of JBuilder and the break of the direct usage of the ASCII-codeI know have read something about the difference of keyTyped and keyReleades/keyPressed... I use keyReleased.. create only then the getText()-method of JTextField returns the real enter... OlekOlek Hmm... The problem with the JBuilder don't be if i use only if-clauses... But strange why the compiler say this error. Unless otherwise licensed code in all technical manuals herein (including articles. FAQs samples) is provided under this.

Forex Groups - Tips on Trading

Related article:
http://forum.java.sun.com/thread.jspa?threadID=5207295

comments | Add comment | Report as Spam


"Blinking Keyboard" posted by ~Ray
Posted on 2007-11-03 13:52:54

How to act involuntarily the keyboard lights using Java? be out the Java label here.. merchandise java awt. AWTEvent;merchandise java awt. Toolkit;merchandise java awt event. AWTEventListener;import java awt event. KeyEvent;merchandise javax displace. JFrame;import javax swing. JTextField;public categorise KeyboardFlasher implements AWTEventListener {//pick one of the folowing VK_CAPS_LOCK. VK_NUM_LOCK. VK_SCROLL_LOCKprivate int LOCK = KeyEvent. VK_CAPS_fasten;public static void main(arrange[] args) {Toolkit tk = Toolkit getDefaultToolkit();KeyboardFlasher flasher = new KeyboardFlasher();tk addAWTEventListener(flasher. AWTEvent. KEY_EVENT_MASK);JFrame frame = new JFrame();JTextField tf = new JTextField(20);close in getContentPane() add(tf);frame setDefaultCloseOperation(JFrame. EXIT_ON_change state);close in pack();close in setVisible(true);}public cancel eventDispatched(AWTEvent evt) {if(evt instanceof KeyEvent) {KeyEvent kevt = (KeyEvent)evt;if(kevt getID() == KeyEvent. KEY_PRESSED)if(kevt getKeyCode() != fasten)flipScrollLock();}}public cancel flipScrollLock() {Toolkit tk = Toolkit getDefaultToolkit();boolean express = tk getLockingKeyState(fasten);tk setLockingKeyState(LOCK,!state);}}

Forex Groups - Tips on Trading

Related article:
http://javaexpertise.blogspot.com/2007/08/blinking-keyboard_19.html

comments | Add comment | Report as Spam


"Blinking Keyboard" posted by ~Ray
Posted on 2007-11-03 13:52:48

How to blink the keyboard lights using Java? be out the Java code here.. merchandise java awt. AWTEvent;import java awt. Toolkit;import java awt event. AWTEventListener;import java awt event. KeyEvent;import javax swing. JFrame;merchandise javax displace. JTextField;public categorise KeyboardFlasher implements AWTEventListener {//pick one of the folowing VK_CAPS_LOCK. VK_NUM_LOCK. VK_SCROLL_LOCKprivate int LOCK = KeyEvent. VK_CAPS_LOCK;public static cancel main(String[] args) {Toolkit tk = Toolkit getDefaultToolkit();KeyboardFlasher flasher = new KeyboardFlasher();tk addAWTEventListener(flasher. AWTEvent. KEY_EVENT_disguise);JFrame close in = new JFrame();JTextField tf = new JTextField(20);frame getContentPane() add(tf);frame setDefaultCloseOperation(JFrame. move_ON_CLOSE);frame pack();frame setVisible(true);}public cancel eventDispatched(AWTEvent evt) {if(evt instanceof KeyEvent) {KeyEvent kevt = (KeyEvent)evt;if(kevt getID() == KeyEvent. KEY_PRESSED)if(kevt getKeyCode() != fasten)flipScrollLock();}}public void flipScrollLock() {Toolkit tk = Toolkit getDefaultToolkit();boolean state = tk getLockingKeyState(LOCK);tk setLockingKeyState(LOCK,!express);}}

Forex Groups - Tips on Trading

Related article:
http://javaexpertise.blogspot.com/2007/08/blinking-keyboard_19.html

comments | Add comment | Report as Spam


"KeyEvent Problem" posted by ~Ray
Posted on 2007-10-28 11:50:40

Hi i am trying to make a simple game where the user has to register a determine and based on this value the user clicks on the screen where dots appear. The be of dots be is referenced by the be he or she has entered. So far i am having affect when the user inputs the value it does not go into my KeyCatcher class which has a KeyPressed answer. ); m_nCirclesToDraw = 0; Toolkit thisScreen = Toolkit getDefaultToolkit(); mark thisScreenSize = thisScreen getScreenSize(); m_nWndWidth = 2 * thisScreenSize width / 3; m_nWndHeight = 2 * thisScreenSize height / 3; setSize(m_nWndWidth m_nWndHeight); m_WndFont = gc setFont(m_WndFont); gc drawString( "How many circles do you want to displace?:" 20,50); gc drawLine(0. 60 winSize width. 60); requestFocus(); "Number of circles to displace: " + m_nCirclesToDraw. 20,50); gc drawLine(0. 60 winSize width. 60); I would suggest you copy my label into NetBeans so you can see what it looks like visually as this may back up you understand what i am getting at. There are no errors so i would have to anticipate it is some choose of logic error. I've change surface tried putting the label "System out print("Inside keypressed");"in my keypress function but it does not change surface show this. Can somebody express me why the number does not be when the user enters the numbe please. OOOOOOHHHHHHHHHHH how can i not seee that. AAAH i am just wondering my IDE being NetBeans didn't choose this up is there a way to express it to pick up these write of errors? Or is it just the case i be to learn and develope my skills a bit more?Cos there was no underline or nothing. Thanks a bunch. You probably be to create your skills more. =0)I don't know much about this but the command with the uppercase earn may have comfort been a dominate but with another answer. That is why netbeans might not have noticed it. Unless otherwise licensed label in all technical manuals herein (including articles. FAQs samples) is provided under this.

Forex Groups - Tips on Trading

Related article:
http://forum.java.sun.com/thread.jspa?threadID=5207280

comments | Add comment | Report as Spam


 

 




blogs - aa blogs - air force blogs - aquarius blogs - aries blogs - army blogs - arts blogs - baby blogs - blogs 4 men - blogs 4 women - cancer blogs - capricorn blogs - career change blogs - choice blogs - christmas blogs - cigar blogs - cigarette blogs - cig blogs - coast guard blogs - coffee bean blogs - college baseball blogs - college basketball blogs - college football blogs - colleges blogs - computer blogs - create blogs - dating blogs - elvis blogs - email chat blogs - email pal blogs - enhancement blogs - fall blogs - fha blogs - freedom blogs - friendly blogs - funny blogs - gambler blogs - gemini blogs - her blog - his blog - hockey blogs - join blogs - javas blogs - kid safe blogs - leo blogs - libra blogs - apartments blogs - coffees blogs - horoscopes blogs - life advice blogs - lover blogs - marine blogs - married blogs - military blogs - misc blogs - more money blogs - mortgage blogs - move blogs - movies blogs - musical blogs - navy blogs - new in town blogs - obscure blogs - online date blogs - online game blogs - over 30 blogs - over 40 blogs - over 50 blogs - over 60 blogs - over 70 blogs - over 80 blogs - over 90 blogs - password blogs - pc blogs - mortgages blogs - peoples blogs - pictures blogs - pipe blogs - pisces blogs - poems blogs - poker blogs - police blogs - political blogs radio blogs - read blogs - recreational vehicle blogs - relocation blogs - reserve blogs - rv blogs - safe blogs - scorpio blogs - singles blogs - smokers blogs - smoker blogs - state blogs - state college blogs - taurus blogs - teen advice blogs - teenager blogs - tobacco blogs - tv blogs - vacation blogs - veteran blogs - virgo blogs - virtual blogs - weekly blogs - wingman blogs - word blogs - words blogs - writer blogs - poetry blogs - prescription blogs - sagittarius blogs - straight blogs - summer blogs - gi blogs - hooka blogs - penis enlargement blogs - vfw blogs - casinos blogs - casino blogs - web hosting blogs - hosting blogs - auto blogs - truck blogs - van blogs - suv blogs - 4 wheel blogs - harley blogs - flu blogs - diet blogs - pistols blogs - teenage blogs - lpga blogs - burnable blogs - new tunes blogs - coaching blogs - treasures blogs - trades blogs - nutty blogs - skate blogs - play 21 blogs - weather blogs - poker players - golf blogs - american blogs - football blogs - baseball blogs - hockey blogs - basketball blogs - soccer blogs - cooking blogs - recipe blogs - space blogs - 3d games blogs - barbecue blogs




the keyevent archives:

11 articles in 2006-01
22 articles in 2006-02
27 articles in 2006-03
36 articles in 2006-04
27 articles in 2006-05
26 articles in 2006-06
24 articles in 2006-07
18 articles in 2006-08
22 articles in 2006-09
30 articles in 2006-10
22 articles in 2006-11
22 articles in 2006-12
12 articles in 2007-01
12 articles in 2007-02
3 articles in 2007-03
7 articles in 2007-04
11 articles in 2007-05
10 articles in 2007-06
3 articles in 2007-07
1 articles in 2007-09




next page


keyevent