rama krishnan

Ranch Hand
+ Follow
since Mar 14, 2008
Merit badge: grant badges
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by rama krishnan

I'm Using Linux OS for Java Project

I can able to complie and run the application

After run the application I got the Screen (JFrame)

But none of the action is not happening (like JButton action, accepting the keyboard values)

and also I didn't get any exception

anyone please guide me
15 years ago
This is following code



public class TestcmbBx {
.....
......

CmbBx = new javax.swing.JComboBox();

CmbBx.setEditable(true);
CmbBx.setFont(new java.awt.Font("Arial", 0, 12));
CmbBx.setName("departNameCmbBx");
Setup_mainPanel.add(departNameCmbBx, new org.netbeans.lib.awtextra.AbsoluteConstraints(150, 40, 320, -1));


in constructor i'm calling like

public TestCmbBx() {

....
.....
cmbBx.requestDefaultFocus();
cmbBx.requestFocus(true);

}
...
....
(+ Generate code) private javax.swing.JComboBox CmbBx;

}
15 years ago
How to get the Focus for JComboBox (Text cursor symbol should have to come in place of Combobox)
I tried the method like requestDefaultfocus(), & requestfocus(true)
but i did not get the focus on JComboBox

For JTextField I'm using the method getCaret(), its working

can any one help me


15 years ago
Using JavaScript and HTML how to do the vertical folder menu
Thanks for your reply

15 years ago
How to append the jpg extension with JFileChooser while saving the file
15 years ago
yes karthick your correct
i want like that only
15 years ago
Using the date format i did the date time function

but i want automatic change date format based on the Regional

example

if regional is us it should display us date format
if its japan it should diplay japan date format
15 years ago
how to display the date format based on the Regional in the JTable
15 years ago
I have the problem with screen capturing.

Inside the HTml Page, I calling my JApplet Page.
To capture the Whole screen,I wrote code, below

screencapture = new BufferedImage(this.getWidth(), this.getHeight(), BufferedImage.TYPE_INT_RGB);
Graphics g = screencapture.getGraphics();
g.setColor(this.getBackground());
g.fillRect(0, 0, screencapture.getWidth(), screencapture.getHeight());
this.print(g);
g.dispose();

/*ImageIO.write(screencapture, "JPG", new File("screencapture.jpg")); */

But i can able to capture JApplet area, not with Html area,

Here this.getwidth, this.getHeight refer JApplet

can any give the solution to capture the whole screen
[ December 14, 2008: Message edited by: muthurama krishnan ]
15 years ago
its possible to do the mouse click event in HTML Page?
While mouse is focusing on some images like "jpg"
how to do Image drop down menu in html page?
Thank you very much
now I got the solution
its working properly

Thanks once more
15 years ago
Using the BufferdImage, Robot, and Rectangle class, I'm capturing the screen shot, but I cann't capture whole part of screen, because some part is hide by scrollbar

How can I capture the whole part of screen?
15 years ago
Hi Rob, thanks for replying,
I'm using this code only to print the JInternalFrame screen
but i get only empty page as printout

PrinterJob printJob = PrinterJob.getPrinterJob();
printJob.setPrintable(this);
if (printJob.printDialog()) {
try {
printJob.print();
} catch (Exception ex) {
ex.printStackTrace();
}
}

public int print(Graphics g, PageFormat pf, int page) throws PrinterException {

if (page > 0) {
return NO_SUCH_PAGE;
}


Graphics2D g2d = (Graphics2D)g;
g2d.translate(pf.getImageableX(), pf.getImageableY());

//g.drawString("Hello World", 100, 100);

return PAGE_EXISTS;
}

[ November 26, 2008: Message edited by: muthurama krishnan ]
[ November 26, 2008: Message edited by: muthurama krishnan ]
15 years ago