Java-2 2016 Hafta-5 Örnek-1
import javax.swing.*; import java.awt.*; import java.awt.event.*; public class secimkutusu implements ActionListener { JLabel jlab; JComboBox jcb; public secimkutusu() { String[]
Okumaya devam etimport javax.swing.*; import java.awt.*; import java.awt.event.*; public class secimkutusu implements ActionListener { JLabel jlab; JComboBox jcb; public secimkutusu() { String[]
Okumaya devam etimport javax.swing.*; import java.awt.*; public class panelornegi1 { public panelornegi1() { JFrame jfrm = new JFrame(“ornek2”); jfrm.setSize(200,200); jfrm.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); jfrm.setLayout(new
Okumaya devam etimport javax.swing.*; import java.awt.*; import java.awt.event.*; public class nothesaplama implements ActionListener { JLabel jlab_sonuc; JTextField jtf_vize, jtf_final; public nothesaplama()
Okumaya devam etclass ogrenci{ static int[] sinir={90,80,70,65,60,55,50,40}; static String[] harfler={“AA”,”BA”,”BB”,”CB”,”CC”,”DC”,”DD”,”FD”}; String adsoyad, no; int vizenotu, finalnotu; public static void sinirdegistir() {
Okumaya devam etimport java.awt.event.*; import javax.swing.*; import java.awt.*; import java.sql.*; public class ornek1 implements ActionListener { JList[] jls; DefaultListModel<String>[] dlm_str; //
Okumaya devam etimport java.awt.event.*; import javax.swing.*; import java.awt.*; import java.sql.*; public class ornek1 implements ActionListener { JTextField jtf; DefaultListModel<String> lm; public
Okumaya devam etpackage main; public class calistir { public calistir() { int sayi1=0,sayi2=0,secim=0; do{ do{ try{ System.out.println(“..::Menu::..”); System.out.println(“1) Sayıları Topla\n2) Sayıları Çıkar\n3)
Okumaya devam etclass ortalamabul{ ortalamabul(int[] sayilar) { if(sayilar!=null) { // ortalama hesabi yapan kod double ort=0; for(int i=0;i<sayilar.length;i++) ort+=sayilar[i]; ort/=sayilar.length; System.out.println(sayilar.length+” adet
Okumaya devam etimport javax.swing.*; import java.awt.*; import java.awt.event.*; public class ornek1 implements ActionListener { DefaultListModel<String> lad, lvize, lfinal, lort, lharf; JList<String>
Okumaya devam etimport java.awt.*; import java.awt.event.*; import javax.swing.*; class soru { String soru; String[] cevaplar; int dogrucevap; } public class ornek1 implements
Okumaya devam etimport java.awt.GridLayout; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import javax.swing.*; import java.util.*; public class lamba implements ActionListener { JTextField[] jtf; JLabel
Okumaya devam etimport java.awt.*; import java.awt.event.*; import javax.swing.*; public class soru1 implements ActionListener { JTextField jtf; soru1() { JFrame jfrm =
Okumaya devam etimport java.awt.*; import java.awt.event.*; import javax.swing.*; import javax.media.opengl.*; import javax.media.opengl.awt.GLCanvas; import javax.media.opengl.glu.*; import com.jogamp.opengl.util.FPSAnimator; import static javax.media.opengl.GL.*; // GL sabitlerini
Okumaya devam etimport java.awt.*; import java.awt.event.*; import javax.swing.*; public class oyun implements ActionListener { JButton[] jbtns; JLabel jlab; String oyunsirasi=”X”; JButton
Okumaya devam etimport java.awt.*; import java.awt.event.*; import javax.swing.*; import javax.media.opengl.*; import javax.media.opengl.awt.GLCanvas; import javax.media.opengl.glu.GLU; import com.jogamp.opengl.util.FPSAnimator; import static javax.media.opengl.GL.*; // GL
Okumaya devam etDaha önce Linux dağıtımları için OpenGL ve Java konfigürasyonundan bahsetmiştim(https://oflazoglu.org/2015/03/ubuntu-icin-opengl-ve-java-konfigurasyonu/). Fakat Windows kullanıcısı öğrencilerimden gelen talepler üzerine ayrıntılı bir anlatım
Okumaya devam etimport java.awt.*; import java.awt.event.*; import javax.swing.*; import javax.media.opengl.*; import javax.media.opengl.awt.GLCanvas; import javax.media.opengl.glu.GLU; import com.jogamp.opengl.util.FPSAnimator; import static javax.media.opengl.GL.*; import static
Okumaya devam et
Son yorumlar