Swing에서 메세지 박스 만드는데 에러가 나네요...
글쓴이: tyolee83 / 작성시간: 월, 2007/09/10 - 10:15오후
스윙에서 메세지박스를 만드려고 코드를 이렇게 집어넣었습니다.
JOptionPane.showMessageDialog(this, "message", "title");
그런데 이런 에러 메세지가 나오네요
The method showMessageDialog(Component, Object, String, int) in the type JOptionPane is not applicable for the arguments (new MouseListener(){}, String, String)
코드를 집어넣은 부분이 MouseListener() 구현 안쪽이긴 한데,
그렇다면 MouseListener() 안에서는 메세지박스를 만들 수 없는건가요??
이상황에선 어떡해야 할지 모르겠네요.
도움 부탁드립니다.
감사합니다. :)
Forums:
댓글 달기