• Post Reply Bookmark Topic Watch Topic
  • New Topic

set start point for dimension  RSS feed

 
suraya ya'acob
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I want to have many dynamic component but I want to start the component from the same point (0,0).
I've tried coding like below but there is an error.
Can someone please help me..
public class try extends JComponent
{
......
setPreferedSize(new Dimension(0,0,piksel,500));
 
Nathan Pruett
Bartender
Posts: 4121
IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It would help if you said what kind of error...
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!