title: Not able to fire click event programmatically
body: <p>I have below scenario and I am stuck at one place. Can anyone please help me on this?</p>
  
  <p>I have a applet application which is deployed on <code>server1</code> and I am accessing this applet on <code>client1</code>. When I click on the any specific tab of <code>JTabbedPane</code>, request goes to server and it downloads specific classes which are required to load. When I click on any of the tab using Mouse everything works fine. When I do the same thing programmatically (dispatching <code>MouseEvent</code> or using <code>setSelectedIndex()</code> method of <code>JTabbedPane</code>), it doesnt work.</p>
  
  <p><strong>Note:</strong> My code of dispatching event is not on the same domain, I have this code locally only, Please read below for how I am dispatching the event.</p>
  
  <p>I have created a java agent <code>MyAgent.jar</code> which includes a function to click on tab to select particular tab (<code>JTabbedPane</code>). </p>
  
  <p>My java agent (instrumentation agent) is on <code>client1</code> and while running applet I am attaching my java agent with applet and this agent dispatches mouse click event. In this scenario, tab gets selected but it throws <code>ClassNotFoundException</code> and no components gets loaded in this tab because of the exception.</p>
  
  <p>Anyone faced similar kind of issues or anyone aware of anything to tryout, please let me know.</p>