Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
~433 People Reached
Favorite Forums
Favorite Tags
Member Avatar for stikku

Is it possible to call repaint() inside the main()?I have tried the code below.But its not working public mypanel() { initComponents(); repaint(100,150,40,40); } protected void paintComponent(final Graphics g) { final Graphics2D g2 = (Graphics2D)jLabel2.getGraphics(); g2.drawRect(100,150,40,40); } //above code doesnt provide any output private void formMouseClicked(java.awt.event.MouseEvent evt) { repaint(100,150,40,40) } this …

Member Avatar for JamesCherrill
0
255
Member Avatar for stikku

hi, My project contains a folder images.One Frame contain Jlabel.I want to display the images (at a time one image) from the folder images to the jlabel.could you please answer how to solve this? I have loaded a single image using the following query Image im=new ImageIcon(this.getClass().getResource("/images/a1.jpg")).getImage(); But I need …

Member Avatar for JamesCherrill
0
84
Member Avatar for stikku

I`m making a GUI for my java program using Swing Components and Netbeans IDE. My problem is that when loading a frame from another frame then newly loaded frame shows the contents of the old frame when moving mouse over the new frame.Please help me o avoid this.Am using drag …

Member Avatar for stultuske
0
94