| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 1 | 2 | 3 | 4 | 5 | 6 | |
| 7 | 8 | 9 | 10 | 11 | 12 | 13 |
| 14 | 15 | 16 | 17 | 18 | 19 | 20 |
| 21 | 22 | 23 | 24 | 25 | 26 | 27 |
| 28 | 29 | 30 |
- inline
- 반응형 웹 프로젝트
- 상속
- 메서드
- CSS
- 푸리에 변환
- BorderLayout
- g검정
- 파이썬
- 미디어쿼리
- iframe 태그
- Database
- Position
- 반응형웹
- css 기초
- oracle
- 퍼셉트론
- Codility
- html 기초
- ObjectOutputStream
- 예제
- GridLayout
- java
- FileWriter
- FlowLayout
- rnn
- FFT
- HTML
- 사전학습
- html 프로젝트
- Today
- Total
목록java (62)
도라에몽주머니
JOptionPane : 사용자에게 값을 묻거나 정보를 알려주는 표준 대화 상자를 쉽게 팝업해서 이용할 수 있게 해줌. showConfirmDialog() : 정보와 함께 선택지를 옵션으로 같이 제공하는 대화 상자를 팝업 showInputDialog() : 사용자에게 직접 입력을 받아오는 팝업 showInternalConfirmDialog() : showConfirmDialog()와 동일하지만 팝업이 컴포넌트 화면 내부에서만 움직임 showInternalInputDialog() : showInputDialog()와 동일하지만 팝업이 컴포넌트 화면 내부에서만 움직임 showMessageDialog() : 단순한 정보를 알려주는 대화상자를 팝업 showOptionDialog() : 직접 정의한 옵션을 모두 ..
JTextArea : AWT의 TextArea와 유사한 기능. 스크롤 기능이 없음 JScrollPane : JTextArea에 스크롤 기능을 넣을 때 사용. 컨테이너에 추가할 때, JTextArea를 넣는게 아니라 JScrollPane을 넣어야 함. JTextArea textArea = new JTextArea(); JScrollPane scrollPane = new JScrollPane(textArea); container.add("Center", scrollPane); JComboBox : 리스트처럼 여러 항목 중에서 하나를 선택할 때 사용. addItem() : 항목 추가 setEditable() : 수정 가능 setMaximumRowCount() : 보여지는 행의 개수 설정 String[] str..
Task An array A consisting of N different integers is given. The array contains integers in the range [1..(N + 1)], which means that exactly one element is missing. Your goal is to find that missing element. Write a function: class Solution { public int solution(int[] A); } that, given an array A, returns the value of the missing element. For example, given array A such that: A[0] = 2 A[1] = 3 A..
JMenu : 여러개의 메뉴 아이템을 가짐 setArmed() : 메뉴가 열릴 때, 자동 선택 위치 설정 Box : 행이나 열 방향으로 일렬로 배치하는 레이아웃. JColorChooser : 사용자가 색상 팔레트에서 하나의 색상을 선택할 수 있는 색상 선택기 컴포넌트 JFileChooser : 파일 시스템을 탐색하여 파일이나 디렉토리를 선택하는 파일 선택기 컴포넌트
Task A small frog wants to get to the other side of the road. The frog is currently located at position X and wants to get to a position greater than or equal to Y. The small frog always jumps a fixed distance, D. Count the minimal number of jumps that the small frog must perform to reach its target. Write a function: class Solution { public int solution(int X, int Y, int D); } that, given three..
JFrame : Java Swing 클래스의 일부. border 설정, radio button 설정 등 다양한 기능 제공 setBorder() EmptyBorder(top, left, bottom, right) : 컴포넌트 테두리 없앰 LineBorder : 컴포넌트 테두리에 선 추가. 동서남북 모두 같은 굵기 EtchedBorder : 컴포넌트 테두리에 홈 추가 BevelBorder : 컴포넌트에 양각, 음각 설정 SoftBevelBorder : 컴포넌트에 양각, 음각 설정 MatteBorder : 컴포넌트 테두리에 선 추가. 동서남북 다른 굵기 TitledBorder : 컴포넌트 테두리에 제목 추가 CompoundBorder : Border를 여러개 결합시켜 테두리 결정 JToggleButton : ..
Task A non-empty array A consisting of N integers is given. The array contains an odd number of elements, and each element of the array can be paired with another element that has the same value, except for one element that is left unpaired. For example, in array A such that: A[0] = 9 A[1] = 3 A[2] = 9 A[3] = 3 A[4] = 9 A[5] = 7 A[6] = 9 the elements at indexes 0 and 2 have value 9, the elements..
람다표현식 : 메소드가 1개로 구성된 인터페이스를 익명함수로 사용할 때 단순하게 표현하는 방법 @FunctionalInterface : interface에 함수가 1개인지를 검사하는 어노테이션(annotation). 인터페이스를 람다표현식으로 사용할 때, 실수로 함수를 추가시키게 되는 경우를 방지하기 위해 사용. Swing : AWT를 개선한 클래스 setIconImage() : 타이틀바의 이미지 설정 setDefaultCloseOperation(EXIT_ON_CLOSE) : 창 닫기 ImageIcon : 버튼의 이미지 설정 시 사용 button.setEnabled(false) : 버튼 비활성화 button.setMnemonic('a') : 버튼 단축키 설정 (alt + a) button.setPress..
setResizable : 창의 크기를 고정할 때 사용하는 명령어(true: 크기 조절 가능, false: 크기 조절 불가능) TextArea : 여러 줄의 텍스트를 입력하거나 보여줄 수 있는 편집 가능한 컴포넌트. 많은 양의 텍스트를 담을 때 사용. 예제 27-File 성적관리 프로그램을 아래와 같이 윈도우 화면으로 꾸민 후, 학생들 성적을 출력하도록 프로그램을 작성하세요. Class Name : score/ScoreForm.java (Frame 클래스 상속) score/Prac4.java (main) score/ScoreVO.java (27-File) score/Score.java (27-File) → (수정) score/ScoreImpl.java (27-File) → (수정) score/Object..
Task An array A consisting of N integers is given. Rotation of the array means that each element is shifted right by one index, and the last element of the array is moved to the first place. For example, the rotation of array A = [3, 8, 9, 7, 6] is [6, 3, 8, 9, 7] (elements are shifted right by one index and 6 is moved to the first place). The goal is to rotate array A K times; that is, each ele..