Tag Archives: java
Bingo Game in JAVA Working with vectors

Bingo Game in JAVA Working with vectors

Good night today i bring to you very funny java program called (Bingo) it is some kind of luck games the idea of game is to generate random ( 0 or 1 ) if there is three ones ( the same row, column, diagonal ) then BINGO else NOT BINGO the game done using Vectors [...]

2 Comments Continue Reading →

Read text file in java, index in by lines then write it again

Good night My fiend asked me a question in java she want to read an article from text file (for example eadokingInputFile.txt ) then manipulate it (read all word in each line an index it ) put each word with the line number and output them to text file (for example eadokingOutputFile.txt) input examples : [...]

12 Comments Continue Reading →

Printscreen (screen shot) in java

مسا الخير اليوم جايبلكون كود جافا بيقوم باخد صورة للشاشة ويحفظها على الهارد ديسك يمكن انا نحدد حجم الصورة – مكان الصورة – نوع الصورة الكود مو صعب ابدا وهو بالاعتماد بشكل اساسي على الصف java.aw.Robot واللي هوي بشكل اساسي عبارة عن صف للتعامل مع اجهزة الادخال مثل لوحة المفاتيح – الفارة بشكل تلقائي وذلك [...]

2 Comments Continue Reading →

Java Development Kit JDK1.6u15 final with Documentation

مرحبا جميعا بناء على طلب بعض الاصدقاء الغاليين كتير عليي واللي مافيني قلون لاء والذين صادفوا الكثير من المشاكل في تحميل بيئة تطوير جافا Java Development Kit or JDK وخاصة بان الموقع محجوب عن سوريا لذلك قررت ان افوم بتحميل البرنامج + التوثيق باحدث اصدار وغصبا عنون والمتوافق بشكل كامل مع Microsoft Windows 7 + [...]

4 Comments Continue Reading →
How to add colored text to the document JAVA

How to add colored text to the document JAVA

This code generate a colored text in JTextPane like this image <br /> <p>import javax.swing.*;</p><br /> <p>import javax.swing.text.*;</p><br /> <p>import java.awt.Color;</p><br /> <p>public class ColorPane extends JTextPane {</p><br /> <p>public void appendNaive(Color c, String s) { // naive implementation</p><br /> <p>// bad: instiantiates a new AttributeSet object on each call</p><br /> <p>SimpleAttributeSet aset = new [...]

6 Comments Continue Reading →