Logo 
Search:

Java Answers

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds
  Question Asked By: Bill Howell   on Jan 06 In Java Category.

  
Question Answered By: Sheryl Morgan   on Jan 06

you should use CrystalReport 10 or above for Java Reporting that adaptive for java and some approach of your problem  is:

here's the code  that sets the display mode


GraphicsDevice dev = GraphicsEnvironment.getLocalGraphicsEnvironment().getDefaultScreenDevice();
GraphicsConfiguration gc = dev.getDefaultConfiguration();
DisplayMode mode = new DisplayMode(800, 600, 32, DisplayMode.REFRESH_RATE_UNKNOWN);
JFrame frame  = new JFrame(gc);
frame.setUndecorated(true);
frame.setIgnoreRepaint(true);

frame.getContentPane().add(new MainPanel(), BorderLayout.CENTER);

frame.show();
dev.setFullScreenWindow(frame);
if(dev.isDisplayChangeSupported()) dev.setDisplayMode(mode);

Share: 

 

This Question has 1 more answer(s). View Complete Question Thread

 
Didn't find what you were looking for? Find more on How to change resoultion ? Or get search suggestion and latest updates.


Tagged: