Monday, September 14, 2009
Monday, August 3, 2009
Download C++ Complete Reference Free

Click here to download
The File has been uploaded for the sake of sharing the knowledge.
Don't Forget to inform your friends about this page.
Regards,
Vj Ali
SE
SInnovations
Labels:
Book,
C++,
Complete Reference,
Download,
Ebook,
Free,
Third Edition,
Vajahat,
vajahatalee
Download Java2 Complete Refernece Book 5th Edition
Click here to download
The File has been uploaded for the sake of sharing the knowledge.
Don't Forget to inform your friends about this page.
Regards,
Vj Ali
SE
SInnovations
Labels:
Ali Vajahat,
Book,
Complete Reference,
Download,
Ebook,
Free,
J2SE,
Java,
Vajahat
Download J2ME Complete Reference
Click here to download -
The File has been uploaded for the sake of sharing the knowledge.
Don't Forget to inform your friends about this page.
Labels:
Book,
Complete Reference,
Download,
J2ME,
Micro Edition,
Mobile,
Osborne
Tuesday, June 23, 2009
Using Urdu in Java
Other day someone asked me how to use Urdu fonts in Java. So for a sample java program that uses urdu font, you need to do following:
1. Download Nafees Nastaleeq Urdu font from CRULP.
2. Copy the font in C:\WINDOWS\Fonts folder
3. Create following java program. It should display "Usman" in Urdu.
import java.awt.*;
import javax.swing.*;
public class BasicDraw {
public static void main(String[] args) {
new BasicDraw();
}
BasicDraw() {
// Create a frame
JFrame frame = new JFrame();
// Add a component with a custom paint method
frame.getContentPane().add(new MyComponent());
// Display the frame
int frameWidth = 200;
int frameHeight = 200;
frame.setSize(frameWidth, frameHeight);
frame.setVisible(true);
}
class MyComponent extends JComponent {
// This method is called whenever the contents needs to be painted
public void paint(Graphics g) {
int style = Font.PLAIN;
int size = 24;
Font font = null;
font = new Font("Nafees Nastaleeq", style, size);
String text = "\u0639\u062b\u0645\u0627\u0646";
g.setFont(font);
// Draw a string such that its base line is at x, y
int x = 80;
int y = 40;
g.drawString(text, x, y);
}
}
}
4. The resulting image should look like:
1. Download Nafees Nastaleeq Urdu font from CRULP.
2. Copy the font in C:\WINDOWS\Fonts folder
3. Create following java program. It should display "Usman" in Urdu.
import java.awt.*;
import javax.swing.*;
public class BasicDraw {
public static void main(String[] args) {
new BasicDraw();
}
BasicDraw() {
// Create a frame
JFrame frame = new JFrame();
// Add a component with a custom paint method
frame.getContentPane().add(new MyComponent());
// Display the frame
int frameWidth = 200;
int frameHeight = 200;
frame.setSize(frameWidth, frameHeight);
frame.setVisible(true);
}
class MyComponent extends JComponent {
// This method is called whenever the contents needs to be painted
public void paint(Graphics g) {
int style = Font.PLAIN;
int size = 24;
Font font = null;
font = new Font("Nafees Nastaleeq", style, size);
String text = "\u0639\u062b\u0645\u0627\u0646";
g.setFont(font);
// Draw a string such that its base line is at x, y
int x = 80;
int y = 40;
g.drawString(text, x, y);
}
}
}
4. The resulting image should look like:
Thursday, June 11, 2009
Watch Express News Live
The Channel Server may be busy for the maintainance.
Labels:
Best News Cahnnel,
Channel,
Express News,
Free,
Live,
Pakistan,
Pakistan Media,
Tv
Subscribe to:
Posts (Atom)