Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8916361
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T05:13:33+00:00 2026-06-15T05:13:33+00:00

In .NET a UserControl may be composed of Controls and it may be part

  • 0
  • In .NET a UserControl may be composed of Controls and it may be part of a Form or part of a bigger UserControl. One can design UserControls with a Visual Designer using the ToolBox Palette.

  • I have found out that a java BeanForm is the analouge for a .NET UserControl.

  • I can design a BeanForm with a visual Designer in NetBeans

  • In my Library I can extend a BeanForm from any other Library and I can design the extended BeanForm with a visual Designer in NetBeans.

  • In my main Project I can pick all my BeanForms from the Palette onto my frames.

So “BeanForm” is the java pendant for the “UserControl”.


In .Net I can easily shape my UserControl to a Fish or to a Star or to whatever I like
by simply setting this.Region = new Region(graphicsPath).


I know that Java is not as easy as C# and I have found Java Samples that partly describe the necessary steps BUT
I did not find a Shaped non-rectangular BeanForm Sample.


Of course extending the MouseAdapter with a new special mouseClicked(MouseEvent e) — as many Samples do suggest — isnt enough – this is only a first step.

  • Did they all forget about the Dragged-Event and the Focus Events and the Mouse-Entered Event and Mouse-Up Event and Mouse-Leave Event and all the other typical JComponent Events ??? – Such Component will SURELY NOT BEHAVE like a real Shaped JComponent should behave.

Please give me a Sample for a OvalComponent-BeanForm that can be taken from the Palette onto my frame and that will behave like a REAL Shaped JComponent

It should cover All the necessary Mouse Events and all the necessary MouseMotion Events and all the Drag-Drop Events and all the Key-Events in case the Oval has the focus or in case the Mouse is over the Oval.

(e.g I should be enabled to use the Oval’s Mouse Events and to extend the Oval Component to a MovingOval Component that can be moved around within the frame …)


If this is too much work for you then, please, outline and describe the steps I would have to implement – like MouseAdapter, KeyAdapter, maybe DragDropAdapter or whatever is necessary.

please, point me what to do!

many thanks in advance.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T05:13:34+00:00Added an answer on June 15, 2026 at 5:13 am

    Every java.awt.Shape has a contains() method that you can use for hit testing in your MouseListener or Mouseadapter.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm creating custom UserControl in ASP.NET and I'm using System.ComponentModel.Attributes to decorate properties with
I've created a usercontrol in the C# (ASP.NET) designer. It works fine (when I
I am using the Asp.net OutputCache on a page containing a usercontrol that in
I'm building an ASP.NET UserControl where users of the website can upload several pictures
I have a for which is built within an ASP.net usercontrol. This form is
I have an asp.net usercontrol that I'm using to put a bunch of HTML
How does one actually expose a abstracted event from asp.net usercontrol[ascx file] to the
Is there a way of using ASP.NET user-controls (.ascx files) to fill my own
I have a .NET UserControl (FFX 3.5). This control contains several child Controls -
I've got an ASP.NET usercontrol with a panel that I'm using to hide and

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.