This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Swing  RSS feed

Ranch Hand
Posts: 67
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It will be a greate help for me if you give a solution for my problem.
It is an area reservation problem. For this I am using swing components i.e., TextPane,InternalFrame. Using this InternalFrame (by dragging and resizing) ,the resrving area will be painted. And the points of reserving area will be stored in the database. Another person wants to reserve an area. He place the InternalFrame where another person already booked. When he place the InternalFrame there the pionts of that area will be checked with the database .
My problem is the checking problem. When he place the internalFrame anywhere on the painted area, there should not be painted. There are so many cases related to this checking. I cannot find a solution mainly to this case i.e., when the InternalFrame(by resizing the InternalFrame) cover the painted area, how the co-ordinates will be checked?
If you cannot give me the solution or you want a much more clear idea please inform me.
If it not your part of answering this type of questions please write to me from where I get a solution to this type problems?
Thank you.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!