How to implement hyperlink in java using swing components
hi.....
pls help me to find out solution
how to implement hyperlink in java using swing components
I've got the same problem here.
I want to implement a HyperlinkListener to a JLabel. (Unlike suggested above, it is only supported by JEditorPane and not JLabel)
The goal is, that if a user clicks on a Link in a JLabel, the standard browser opens and displays that page.
Can somebody please help?
My ultimate goal would be to also be able to add clickable HyperLinks in ToolTip texts, but i guess that'd be even more complicated.
Similar Messages
-
I can't use swing components in my applets
When I write an applet without any swing components, my browser never has any trouble finding the classes it needs, whether they're classes I've written or classes that came with Java. However, when I try to use swing components it cannot find them, because it is looking in the wrong place:
On my computer I have a directory called C:\Java, into which I installed my Java Development Kit (so Sun's classes are stored in the default location within that directory, wherever that is), and I store my classes in C:\Java\Files\[path depends on package]. My browser gives an error message along the lines of "Cannot find class JFrame at C:\Java\Files\javax\swing\JFrame.class"; it shouldn't be looking for this non-existent directory, it should find the swing components where it finds, for example, the Applet class and the Graphics class.
Is there any way I can set the classpath on my browser? Are the swing components stored separately from other classes (I'm using the J2SE v1.3)?
Thanks in advance.Without having complete information, it appears that you are running your applets using the browser's VM. Further, I assume you are using either IE or Netscape Navigator pre-v6. In that case, your browser only supports Java 1.1, and Swing was implemented in Java 1.2. You need to use the Java plug-in in order to use the Swing classes (see the Plug-in forum for more information), or else download the Swing classes from Sun and include them in your CLASSPATH.
HTH,
Carl Rapson -
How to implement business rules by using drolls in OSB
Hi
I am new to Drools,can any body tell how to implement drools concept in OSB11,provide any useful links or blogs.
Thanks in Advance
ManiMani,
I have implemented Drools by exposing them over web service call through Business Service of OSB.
As you are using Java Callout, try to set proper return type for the java method called, better to use XMLObjects as the return type.
http://www.xenta.nl/blog/2011/08/29/oracle-service-bus-java-callouts-with-xmlobjects/
http://mazanatti.info/index.php?/archives/63-Oracle-Service-Bus-generating-XML-Objects-from-Java-Callouts.html
http://blog.xebia.com/2009/10/11/java-callout-on-the-alsb/
http://itnewscast.com/middleware/oracle-service-bus-java-callouts-xmlobjects
How to retrieve the java object in a proxy service in osb -- Plz help
Hope it helps !!
Abhinav
Edited by: Abhinav on Dec 12, 2012 4:21 PM -
How to implement login by java integrate with AD LDS?
Hi admin:
Now we have a web project and the customer have an LDAP includes the all system login account. we need to integrate with the LDAP to implement the account login.
First I flow the general implement method, enter the username and password on the login page, summit to one backend controller by post, according to the username to search out the result record, but the userPassword property can not be
returned, I searched and found some message on microsoft forum, the userPassword can not be searched.
Please give me some suggestion that according to the requirement how to implement the account logio .
thanks.I am not a developer but might this helps you - http://www.java-forums.org/advanced-java/28975-ldap-bind-mechanism-java.html.
You do not have to search for the password, because you already used it for the bind, if I understood your post correctly. Plus you have it already from your webform. And last but not least if any directory server or application would give you the passwords
that way it would be a bad security practice.
hth,
Lutz -
How can i connect multiple forms using swings or applets(AWT) & with D-Base
Hello Friends,
I am Sreedhar from Hyderabad. working as a java developer in a small organization. I got a challenge to work on java stand alone (desktop) application. Basically our company is based on SCM(Supply Chain Management), I never work before using swings and AWT. now my present challenge is to develope an application on swings and AWT using Net Beans IDE. but i am unble find the code to connect one form to another form, i want to develop similar application like a web application , suppose if i click on OK button it has to connect next form. in the next for it has to take user name and password should allow me to access main form. please help me about this topic, if anybody interested i can send u the screen shots and i can post to ur mail. please help me as soon as possible,sreedharkommuru wrote:
Hello Friends,
I am Sreedhar from Hyderabad. working as a java developer in a small organization. I got a challenge to work on java stand alone (desktop) application. Basically our company is based on SCM(Supply Chain Management), I never work before using swings and AWT. now my present challenge is to develope an application on swings and AWT using Net Beans IDE. but i am unble find the code to connect one form to another form, i want to develop similar application like a web application , suppose if i click on OK button it has to connect next form. in the next for it has to take user name and password should allow me to access main form. please help me about this topic, if anybody interested i can send u the screen shots and i can post to ur mail. please help me as soon as possible,There is no magic, you need to spend a good amount of time in tutorials, here is a good one to start off with:
[The Really Big Index|http://java.sun.com/docs/books/tutorial/reallybigindex.html]
Here are a few tips:
1 - Do not mix AWT and SWING: it'll just cause you headaches in the long run that you cannot fix without refactoring to properly not mix the 2 together.
2 - You use JDBC to access the database
3 - You make accessors/constructors to pass parameters that you need from one form to another.
Have fun. -
How to implement row level security using external tables
Hi All Gurus/ Masters,
I want to implement row level security using external tables, as I'm not sure how to implement that. and I'm aware of using it by RPD level authentication.
I can use a filter condition in my user level so that he can access his data only.
But when i have 4 tables in external tables
users
groups
usergroups
webgrups
Then in which table I need to give the filter conditions..
Pl let me know this ...You pull the Group into a repository variable using a session variable init block, then reference that variable in the data filters either in the LTS directly or in the security management as Filters. You reference it with the syntax VALUEOF("NQ_SESSION.Variable Name")
Hope this helps -
How to implement for sap system use HADR
hi expert ,
i am a newbie to sap basis, we have a requirement that do HA for our sap using HADR,i want know if there are some good sulotion for my scenario。
our scenaro is we have two window 2008 sever host,one host has a sap system and we want the sap db2 database as a primary,and the other host also has a same the system which is restore from the previous sap system which we implement by system copy using database restore not migration。i want know as our secanrio could i achive SAP application HA by HADR,if we donu2018t have HA software like MSCS。whether we must manual monitor the primary sap when it stop because any issue like hardware failed and then manual start the other sap system in the other host?
our two sap system have different sap profile beacause the hostname are different.
our aim is when one of our host can't use we can immediate start the other sap system in the other host, the less the change the better the solution .
is it possible?
thanx very much,
best regards.hi paul ,
thanx for your information,i have already read the inforamtion about sg247363 once-over and SAMP。 but unfortunately we have a different situation,we only have two windows servers and must installed windows server 2008 OS because some reasons。we also don't have have other host to install sap。as this situation,how could we implement HA beacuse we also don't have shared disk。the window server are isolation。
i also read some pdf which download from sdn , in the book the HA is implemneted as the sap application has a separate host and has two host for DB2 database using HADR,the HA is rely the cluster software 。in this situation the sap application also need HA to avoid single point failure。
as the limited i have said above, is it possible to do HA by MSCS ,can any body tell me if the MSCS is free to install in OS windows 2008? if we can't use it free,have any other solution?in the worst , we must manual monitor the application and when a sap application or database can't work ,we want to restart the other sap which in the other host,we need the database synchronization between two database which using HADR。is it possible ?if it do, whether there are some additional setup for sap application because the two sap application have different sap profile name(a sap is a system copy from the other by database restore)。
any reply will be appreciated。 -
How to use Swing Components in JavaFX
Hi All,
I am new to JavaFx. I am trying to use java swing components in javafx.
I found a sample program in net and tried it. But it shows compile time error.
Code:
MySwingComponent .fx
import javafx.ext.swing.SwingComponent;
import javax.swing.JComponent;
import javax.swing.JButton;
import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;
* @author nandha
class MySwingComponent extends SwingComponent{
var button: JButton;
public var text: String on replace {
button.setText(text);
public var action: function();
override protected function createJComponent () : JComponent {
button = new JButton();
button.addActionListener(ActionListener {
public override function actionPerformed(e:ActionEvent){
action();
return button;
The above code shows no error.
Test SwingButton.fx
import javafx.stage.Stage;
import javafx.scene.Scene;
import swingcomponents.MySwingButton;
* @author nandha
Stage {
title: "Swing Button Example"
scene: Scene {
width: 250
height: 80
content: [
MySwingButton{ // error message: imcompatible type. found MySwingButton. Required javafx.scene.Node[]
text: "Click Me!"
action: function(){
println("Hello World!");
This code which used the MySwingButton shows error: imcompatible type. found MySwingButton. Required javafx.scene.Node[] - where i have added the MySwingButton.
Please help me to fix the error.
Thanks &Regards,
Nandha KHi Sasa,
First thanks for your reply.
I found the problem and have fixed.
Problem:
There is no class MySwingButton in the package swingcomponents. Its MySwingComponent that i should have used, which is a big mistake that i have done. To my surprise i don't know NetBeans didn't show any error message at that line.
Thanks & Regards,
Nandha K -
How to implement the pessimistic locking using toplink with sybase
we want to allocate the unique primary key to each row when many user try to insert the records concurrently..So what we are trying to do is we calculate the maximum of Primary Key and incremented it by 1. Now we want to Apply the locking concept on the so that unique key will be allocated to each newly inserted row
Can you please tell me
1. how we can genrate unique primary key in toplink using sybase?
2.how to implement the pessimistic or optimistic locking ?which one will be preferable?Hi brother
I think that this link can help you
http://download-east.oracle.com/docs/cd/A97688_16/toplink.903/b10064/database.htm#1007986
Good luck -
How to implement Dynamic Context Node Mapping between Components
Hey genuis:
I am looking for how to implement context mapping bwteen two components. I read some threads, and try to use external context mapping. The example works fine. However, my requirement is more than that.
I have a context node in Component B, and the attributes in it are dynamically generated. Component A is the main component which use Component B's function. Both A and B work fine by theirselves.
When I assemble A and B (external mapping), the system gives me a exception:com.sap.tc.webdynpro.progmodel.context.ContextException: MappedNodeInfo(T8UploadCompInterface.data): cannot create nodes, no mapping defined yet.
Please give me some suggestion?
Any responses are appreciated.I miss this thread.
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/6fdae690-0201-0010-a580-d104b459cb44
This is almost the right solution for my problem. -
Hi,
I regret that I do not have a very specific problem here. However, I am wondering if there is a way to display Swing components, such as a panel, on a web page using JSP. If so, are there any tutorials on such a practice? Or would something like this be included in a general tutorial?
Thanks,
DanYou'll have to use a JApplet.
-
Can I Use Swing Components in a JSP Page
Hi,
Can I use Swing Componnents in a JSP Page.If so,Can anybody provide with a sample code.
Thanks.hi,
I wanted to use the JTabbedPane for tab buttons in my
Jsp Page.Is that possible?I am afraid that you can't.
As for GUI (graphics) in the HTML page you can use only the html form elements (but you should simulate other behaviours by dynamically reloading the page).-
Ionel. -
How to implement expand/collapse property for custome components
can any one tell me how to implement the expand/collapse
property for the custom components in flex. i need something like
hierarchy of custom components which on the expand should be able
to show the children of the corresponding component and a line
linking between them and collapsing property too.. can any one help
me out.."hanu106" <[email protected]> wrote in
message
news:gfr2co$biq$[email protected]..
> can any one tell me how to implement the expand/collapse
property for the
> custom components in flex. i need something like
hierarchy of custom
> components
> which on the expand should be able to show the children
of the
> corresponding
> component and a line linking between them and collapsing
property too..
> can any
> one help me out..
Tree?
AdvancedDataGrid?
Nested Acordions -
How to create a scrollable panel using trinidad components?
Hi,
I am developing ADF mobile browser application. Can anyone tell me using trinidad components, how to place multiple images in an horizontally scrollable panel? Each of the images should be clickable.
I tried with tr:panelGroupLayout and setting its layout property to horizontal.. But its not working.
Thanks
NehaHi Shay,
This solution is making the entire screen scrollable. I dont want the screen to be scrollable. I just want to place images inside a component which can be scrolled so that i can have as many number of images i want without disturbing the screen layout. This is what is used.
<tr:panelGroupLayout layout="horizontal" id="pgl1">
<tr:forEach begin="1" end="20">
<tr:image source="/neha.gif" id="i19"
shortDesc="Neha"/>
</tr:forEach>
</tr:panelGroupLayout>
Thanks
Neha -
How to implement single sign-on using java?
I need your help regarding the following task, please go through it and tell me if you have a solution to it.
DSOWeb is a portal which has links to all the reports generated from Microstrategy8.0.1 (MSTR) [it is another tool which generates the BI Reports] and my requirement is like when a report link in DSOWeb is clicked it goes to MSTR and shows a report of MSTR but the user is unaware of all this that the system is entering into some other portal and giving that report to him.
1. User logs into DSOWeb (Implemented using Struts framework) - He is automatically logged into MSTR (Java Spring Architecture) as well.
How to get the session Id of MSTR from DSOWeb and maintain that session within the DSOWeb???
2.User clicks on a report link - He either uses the session created above or a new session is created for him, if the old one no longer exists.
3.When User clicks Logout in DSOWeb the system should also internally invalidate the MSTR Session and logout from MSTR .
Note : Here DSOWeb and MSTR applications are running in different Servers.Hello Meghal,
It is possible to implement social login via Facebook for SAP Enterprise Portal 7.3 by simply using the SAP Cloud Identity offering.
More details about SAP Cloud Identity you will be able to find here:
SAP Cloud Identity Solution Brief: Simplify and Secure Cloud Access to Critical Business Data
SAP Cloud Identity features - latest release: http://scn.sap.com/community/security/blog/2014/12/18/new-capabilities-with-the-latest-release-of-the-sap-cloud-identity
Please, find also the documentation about social login implementation:
Enable or Disable Social Sign-On for an Application
Best regards,
Donka Dimitrova
Maybe you are looking for
-
I recently opened firefox after not using it for a long time. It asked me to update my profile or clean up my profile or something for a "better firefox experience". So I followed the directions and my computer froze stuck on a screen that said that
-
Why call me when i am 9 days late on my monthly payment
i dont understand why vwerizon calls me 4 times a day when i am a couple of days late on my monthly bill considering i am paid a month in advance to start with have been a customer for almost 10 years and have maintained my account not thousands behi
-
TDS was is paid to gov. and after the MIRO Vendor was wrong
Hi, Any one give me solution for the my live issue. we create on P.O and run the MIRO and after TDS also paid to gov. than after we get one of vendor was wrongly post the that p.o we reveres the MIRO but what about TDS posting what we do for anthor v
-
Error message and set cursor field in subscreen
hey , i have a program with main screen 500 and many subscreens 501,502 and so own . when i want to validate wrong input in a field and set message type 'E' in the PAI of the subscreen the program raise the message and exit from the program . if i t
-
How to open a link in a Window NOT a Tab in OS X Mountain Lion
For those of you who Hate having links open in tabs, especially when you have a window open and minimized to your doc. The link will take that minimized window and use it to stick a tab in it and then open the link........WHAT A PAIN! Here's how to