[jEdit-Syntax-users] user problem
Brought to you by:
marcel-boehme,
oliverhe
From: Andreas H. <and...@te...> - 2003-10-13 09:15:53
|
hi! I have got some questions about Jedit-syntax package. Question1: I made a small editor that used JTextArea. I added some menus like this. menuItem = new JMenuItem("new file"); menuItem.addActionListener( new NewListener() ); menuItem.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_N,ActionEvent.CTRL_MASK)); menu.add(menuItem); ... Then I replaced my JTextArea with a JEeditTextArea and then all my menu shortcut's stoped working. Seems somewhat like the JEeditTextArea steal the focus becouse if I select a menu then the keyshortcut work. Should it be like that? what can I do about it? shoule keyshortcuts be handeld diffrently with JEditTextArea? Question2: how do I insert text to a specific line/pos in the file? /Andreas |