본문 바로가기 메뉴 바로가기

CRUISEWEB

CRUISEWEB
  • WRITE
  • ADMIN
  • TAG
  • GUEST
  • RSS

CRUISEWEB의 팀블로그입니다.
모르는 것을 부끄러워하지 말라!
웃으면 복이 와요 😀

  • CRUISEWEB (118)
    • DRAWER (19)
    • DESIGN (13)
    • A11Y (3)
    • HTML (4)
    • CSS (19)
      • DOCUMENT (13)
      • SNIPPET (4)
      • MINING (1)
    • GULP (0)
    • JAVASCRIPT (0)
    • CROSS (4)
    • ETC (3)
    • · (0)
    • 웹 개발 (0)
    • Spring (0)
    • Design Pattern (0)
    • ALGORITHM (1)
    • JAVA (48)
      • PRIMER (47)
      • JSP (1)
    • 데이터베이스 (1)
      • Oracle (0)
    • 네트워크 (0)
    • 정리중 (0)
    • · 2 (0)
    • 뻘글 (3)
  • 방명록
검색하기 폼

JAVA (48)
자바 입출력 > 이스케이프 문자(escape character)

public class 표준출력7 { public static void main(String[] args) { // " " : 문자열을 구분하기 위한 기호 // ' ' : 문자를 구분하기 위한 기호 // \ : 이스케이프문자를 구분하기 위한 기호 System.out.println("\"\""); // 큰따옴표 자체를 출력하고 싶을때, 큰따옴표 앞에 \ 붙임 System.out.println("\'"); // 작은 따옴표 System.out.println("\\"); // 백슬래쉬 System.out.println(); System.out.println("\"갤럭시S\""); System.out.println("\\50,000"); System.out.println("\'특가할인\'"); System.ou..

JAVA/PRIMER 2018. 11. 8. 13:05
Several ports (8005, 8080, 8009) required by Tomcat v7.0 Server at localhost are already in use.

이미 사용중인 포트 Several ports (8005, 8080, 8009) required by Tomcat v7.0 Server at localhost are already in use. The server may already be running in another process, or a system process may be using the port. To start this server you will need to stop the other process or change the port number(s). 해결 방법 1. 포트를 사용하고 있는 pid 확인하기 netstat -a -n -o -p tcp 2. 프로세스 종료시키기 taskkill /f /pid 참고 : http://myblo..

JAVA/JSP 2018. 6. 1. 18:10
[JAVA] Color 클래스

import java.awt.Color; import java.awt.Graphics; import javax.swing.JFrame; import javax.swing.JPanel; class MyPanel7 extends JPanel{ Color c1 = new Color(240,140,140);// RGB를 int타입으로 지정 Color c2 = new Color(0.5f,0.7f,1f); Color c3 = new Color(0x00CCCCCC);// 헥사코드값으로 지정 public void paintComponent(Graphics g){ g.setColor(c2); g.fillArc(10,10,50,50,0,180); g.fillArc(59,10,50,50,0,180); int[] x1 = {..

JAVA/PRIMER 2018. 4. 19. 14:21
[JAVA] JPanel - paintComponent

import java.awt.Color; import java.awt.Graphics; import javax.swing.JFrame; import javax.swing.JPanel; class MyPanel5 extends JPanel{ @Override public void paintComponent(Graphics g){ g.drawOval(150, 100, 300, 300); g.drawLine(300, 400, 300, 600); g.drawLine(300, 400, 200, 550); g.drawLine(300, 400, 400, 550); g.drawLine(200, 230, 250, 230); g.drawLine(350, 230, 400, 230); g.drawLine(250, 330, 3..

JAVA/PRIMER 2018. 4. 19. 14:21
[JAVA] GUI - 마우스 이벤트

import java.awt.Color; import java.awt.event.MouseEvent; import java.awt.event.MouseListener; import javax.swing.JFrame; import javax.swing.JPanel; class MyFrame7 extends JFrame implements MouseListener{ JPanel p = new JPanel(); int x=0, y=0; public MyFrame7(){ setLayout(null); p.setBounds(x, y, 50, 50); p.setBackground(Color.RED); addMouseListener(this); add(p); setSize(600,600); setDefaultClos..

JAVA/PRIMER 2018. 4. 19. 14:20
[JAVA] GUI - 키 이벤트

import java.awt.event.KeyEvent; import java.awt.event.KeyListener; import javax.swing.JFrame; import javax.swing.JTextArea; // ActionEvenct 처리 -> ActionListener // KeyEvent 처리-> KeyListener // MouseEvent 처리-> MouseListenera // 키 입력 이벤트 처리 인터페이스 KeyListener 구현 class MyFrame5 extends JFrame implements KeyListener{ JTextArea ta = new JTextArea(); public MyFrame5(){ ta.addKeyListener(this); add(ta);..

JAVA/PRIMER 2018. 4. 19. 14:19
[JAVA] GUI - JTextField, JTextArea

JTextField : 한 줄 입력JTextArea : 여러 줄 입력import java.awt.FlowLayout; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import javax.swing.JFrame; import javax.swing.JTextArea; import javax.swing.JTextField; class MyFrame14 extends JFrame implements ActionListener{ JTextField tf = new JTextField(25);// JTextArea(행, 열) JTextArea ta = new JTextArea(18,25); String s = ""; public ..

JAVA/PRIMER 2018. 4. 19. 14:19
[JAVA] GUI - 이벤트

import java.awt.Color; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import javax.swing.JButton; import javax.swing.JFrame; import javax.swing.JPanel; // 이벤트를 처리하는 방법 1 - 이벤트 리스터 클래스를 내부에 정의 (추천) // 1) 클래스 내부에 ActionLister 인터페이스를 상속하는 리스너클래스를 만든다. // 2) 리스너 클래스 안에 actionPerformed 메소드를 오버라이딩 한다. // 3) 버튼에 addActionListener 메소드로 리스너 인스턴스를 추가한다. class MyFrame13 extends JF..

JAVA/PRIMER 2018. 4. 19. 14:18
[JAVA] GUI - 배치관리자

BorderLayoutimport java.awt.BorderLayout; import javax.swing.JButton; import javax.swing.JFrame; class MyFrame6 extends JFrame{ JButton b1 = new JButton("버튼1"); JButton b2 = new JButton("버튼2"); JButton b3 = new JButton("버튼3"); JButton b4 = new JButton("버튼4"); JButton b5 = new JButton("버튼5"); public MyFrame6(){ // 배치관리자 BorderLayout : 컴포넌트를 동,서,남,북,중앙에 배치 // 컨테이너에 add를 할 때, 위치를 지정해야함 // 프레임의 기본 배..

JAVA/PRIMER 2018. 4. 19. 14:18
[JAVA] GUI - JPanel, JLabel, JButton

import java.awt.Color; import javax.swing.JFrame; import javax.swing.JPanel; class MyFrame3 extends JFrame{ JPanel panel = new JPanel(); public MyFrame3() { add(panel); panel.setBackground(Color.BLUE); setSize(300,300); setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); setVisible(true); } } public class 패널1 { public static void main(String[] args) { new MyFrame3(); } } import java.awt.FlowLayout; ..

JAVA/PRIMER 2018. 4. 19. 14:17
이전 1 2 3 4 5 다음
이전 다음
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
  • css_sapjil
  • js_perfectacle
  • js_bsidesoft
  • js_chanlee
  • 서민의 기생충같은 이야기
TAG
  • border-radius
  • border-image-source
  • transition-timing-function
  • border-style
  • transform-origin
  • box-sizing
  • repeating-linear-gradient
  • background-color
  • transition-duration
  • radial-gradient
  • background-position
  • linear-gradient
  • background-repeat
  • border-color
  • RGBA
  • border-image
  • background-size
  • background-attachment
  • border-image-slice
  • repeating-radial-gradient
  • background-origin
  • background-image
  • transition-delay
  • Opacity
  • float
  • transition-property
  • Transition
  • content
  • Clear
  • background-clip
more

Copyright 2017 ⓒ CRUISEWEB. All Right Reserved

티스토리툴바