oh god your client
|
hey guy's i was wondering how to remove Resize client cause when i resize it
the stuff is going white
PIC;
oh god your client
You cant stretch your client however two possible methods you might like:
- Making the client fullscreen (or option to fullscreen)
- Making the background black
Jframe class (.java, client-sided)
Search for "public void initUI() {"
You should see something like this;
Above the init();, add;Code:init(); } catch (Exception e) { e.printStackTrace(); } }
Btw, your server is not 474, it's 317, just sayin'..Code:frame.setResizable(false);
doesnt work i got this
private void initUI() {
try {
JFrame.setDefaultLookAndFeelDecorated(true);
JPopupMenu.setDefaultLightWeightPopupEnabled(false );
frame = new JFrame(frameTitle);
frame.setLayout(new BorderLayout());
frame.setResizable(false);
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOS E);
JPanel gamePanel = new JPanel();
gamePanel.setLayout(new BorderLayout());
gamePanel.add(this);
gamePanel.setPreferredSize(new Dimension(765, 503));
JCheckBox CheckButton;
/*String[] mainButtons = new String[]
{
"Item list", "Vote", "Donate", "Forums", "-", "Exit"
};*/
/*for (String name : mainButtons)
{
JMenuItem menuItem = new JMenuItem(name);
if (name.equalsIgnoreCase("-"))
//fileMenu.addSeparator();
else
{
menuItem.addActionListener(this);
//fileMenu.add(menuItem);
}
}*/
//JMenuBar menuBar = new JMenuBar();
//JMenuBar jmenubar = new JMenuBar();
//frame.add(jmenubar);
//frame.getContentPane().add(jmenubar, "South");
// menuBar.add(fileMenu);
//frame.getContentPane().add(menuBar, BorderLayout.NORTH);
Toolkit toolkit = Toolkit.getDefaultToolkit();
frame.getContentPane().add(gamePanel, BorderLayout.CENTER);
frame.pack();
frame.setVisible(true);
frame.setResizable(false);
init();
}
catch (Exception e)
{
e.printStackTrace();
}
}
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |