Link button in applet to open html file in same window
Hello I am an student in holland.
I am working on a project but can't find a code to make a button what links to an html file practicly just a link
I got a html where i need to implent the applet to the applet only needs 10 buttons who can link to another html file or site.
its not realy difficult i geus but i just cant find the right codes and because i only got 1 day left im asking for help on this forum.
I realy hope you guys can help me.
greets,
Rob
It's hard to tell what you're asking, but you should probably take a look at java.applet.AppletContext.showDocument.
Similar Messages
-
Open html file in new window it is opening in calling browser.
Hi ,
Am using adf 11.1.1.5 jdev.
I have a pop in which pdf,html and rtf file extension are mentioned in drop down list . As i select htlm and fire command button .
The generated html file is opening in the same browser which is replacing the calling page . I want to open in new window .
thanks .Hi,
iff you use ADF Faces, use a goLink with a target to _blank. If you don't use ADF Faces, provide more details to the question
Frank -
Opening .pdf files in same window
I'm new to AA9 but have used AA7 for a long time. In AA7, if I had a .pdf file already open on the desktop, and I opened another file by double-clicking on it, the new file would open in the same window. Then, I could close that file within the window and toggle between numerous files from the "minimize/maximize/close" icons in the window. Since I work with a lot of maps, it was very convenient to have the icons lined up across the bottom of the page, and open and close them as needed. Now, with AA9, when I double-click, it opens a new window, complete with all the toolbar icons etc. This is very inconvenient by comparison, and I don't know how to change it. I've looked through preferences and cannot find an option to fix this. Is this something I won't be able to accomplish in AA9? If so, I will go back to using AA7, but I like some of the other features of AA9, so I hope someone knows how to reset this function. (FYI, I'm using Windows 7, 64-bit, Intel Core 2 Duo, T9600, 6GM RAM, Nvidia GeForce GT230M w/ 1GB DDR memory). My version of AA9 Pro is part of Adobe Creative Suite CS4. Thanks.
Hi misterbill1717,
Using Windows 7, 64-bit and Acrobat 7 will result in problematic performance of Acrobat 7.
Acrobat releases prior to 9.2 are not supported by Adobe in Windows 7.
As to Acrobat 7 and 64-bit, see this TechNote:
http://kb2.adobe.com/cps/331/331732.html
So the fundamental issue will be Acrobat 7 in Windows 7.
As to your other concern.
It sounds like you are describing the Multiple Document Interface (MDI) available in the Adobe Reader/Acrobat 8 release(s).
As the article below (via the link) states, Single Document Interface (SDI) was the default in the Adobe Reader/Acrobat 8 release(s).
Change to MDI, with release 8, requires the user to perform the following:
Edit > Preferences > from the Categories: pane, select "Documents" > in the Open Settings pane >
select/check the first (top) entry "Show each document in its own window (requires restart)
Then "OK", close open appliations and restart the local machine.
Now, when one right clicks a link to access the context menu, they can "Open Link in New Window".
In release 9 of Adobe Reader/Acrobat this is no longer available. The article, at the link below, explains why.
Multiple Document Interface (MDI) was dropped in Acrobat 9. For further information check out this article.
MDI vs SDI in Acrobat
http://blogs.adobe.com/acrobat/2008/09/mdi_vs_sdi_in_acrobat.html
Also:
Preference "Show each document in its own window (requires restart)" no longer available in Acrobat/Reader 9.0
TechNote ID: kb405108
http://kb2.adobe.com/cps/405/kb405108.html
Be well... -
Open quicktime files in same window
Hi there,
as a matter of fact QuickTime is pre-configured to open files in a new window, which get's really annoying when playing a TV series.
Is it possible to configure QuickTime to open new files within the same window, so that I don't have to manually close the old file?
I would really appreciate any help regarding this topic, cause I couldn't find anything about this anywhere else.
Thank you very much!
MaxHi,
In quicktime 7, preferences/deselect "open movies in new player". Quicktime X I don't have so can't help you, but a lot of folks are going back to 7 which should be in your utilities folder.
DM -
Links in Pages document to open other files in same folder
Hi, In Microsoft Word on my PC I can put links in a Word doc to photos, PDFs and other files that sit in the same folder as the Word doc. Can I do the same in Pages on my Mac, and if so how please?
I'm using Pages 5.2 in Mavericks.
Thanks,
NeilJust because you can do these things in MS Word, is no assurance that you can do them in Pages, which is not an MS Word clone.
Pages v5(.2) only supports links to Web pages and Email.
Pages ’09 v4+ supports links to another Pages ’09 document, Web page, Email, or internal Bookmark. -
Hi,
I have an OA page for Travel and expense; it has a button linked with an html page. If we click the button it will open a html page to download “Spreadsheet template”.
My requirement is right now the html page is opening in a separate window, but I want to open in same page. Any help to achieve this.
Thanks
ChandraChandra,
Kindly check the code that is being used to handle the button to download Spreadsheet template. You can get clues. There is a good likelihood that the target frame is set as _blank. I am sure you would get clues.
Regards
Sumit -
Hi,
I need to open html file from applet, the html file is placed in my local system, it is not open. the code is below, please can u tell where i did wrong.
import java.applet.*;
import java.awt.*;
import java.awt.event.*;
import java.net.*;
<applet code="Resource.class" width="400" height="400"></applet>
public class Resource extends Applet implements ActionListener
Button b = null;
public void init(){
b= new Button("Click");
add(b);
b.addActionListener(this);
public void actionPerformed(ActionEvent ae){
try
URL adress = new URL(getDocumentBase(), "html_code.htm");
getAppletContext().showDocument(adress, "_blank");
System.out.println("Execut inside"+adress);
}catch(MalformedURLException e){
System.out.println("Eror in Display");
}Don't cross post
http://forum.java.sun.com/thread.jspa?threadID=633500 -
Opening additional html file in same broswer window
Hi here is what i wasnt to do i will write the whole process in sequence to make it clear.
1. write to html file [accomplished]
2. open html file from GUI in browser window [accomplished]
3. rewrite html file from within GUI [accomplished]
4. reopening the html file in the SAME browser window [the problem]
Any one know if this is possible?
here is the code im using to open the initial window...
Process proc = Runtime.getRuntime().exec("rundll32 url.dll,FileProtocolHandler results.html");Ok heres what im doing...
im using googles api..and in my GUI i have a "Next 10
results" button, i could refresh the page X amount of
seconds but this isnt really ideal.
But looks like that is what im gonna have to to do
...unless anyone else has any better suggestions?
(ps. i dont want to go down the JEditorPane path....
=] )Well then if you dont want to refresh the page, then you can have 2 pages.. The second page would be just this
<body>
</body>And include this HTML in the main one using a iframe like this
<iframe src="XXX.html" width="0" height="0"></iframe>When the user clicks the next button, you have to write 2 HTML this time.. The second one(XXX.html) would have the following code now
<body>
<script>
parent.window.location.reload();
</script>
</body>Just confirm the 'parent' one.. I am not that sure whether its parent or parent_...
Cheers
-P -
How Can i open Html file in a Browser from Jar file
Hi
i am having Html help files inside my Jar file ... if i use
getclass().getRource("\lib\start.html");
it is not opening ... so i have to ship seperate folders for html files along with jar files.... can anyone give the solution to have(open) html files inside the jar file and to open then in a default browser of any OS
Regards
Ganesan Sthe follwing method i have used to open html file ...
so to access html file i am shipping resources folder with jar file ..
private void openHtmlPages(String pageName) {
String cmd[] = new String[2];
String browser = null;
File file = null;
if(System.getProperty("os.name").indexOf("Linux")>-1) {
file = new File("/usr/bin/mozilla");
if(!file.exists() ) {
}else {
browser = "mozilla";
}else {
browser = "<path of iexplore>";
cmd[0] = browser;
File files = new File("");
String metaData = "/resources/Help/Files/"+pageName+".html"; // folder inside jar file
java.net.URL url = this.getClass().getResource(metaData);
String fileName = url.getFile();
fileName = fileName.replaceAll("file:/","");
fileName = fileName.replaceAll("%2520"," ");
fileName = fileName.replaceAll("%20"," ");
fileName = fileName.replaceAll("jarfilename.jar!"," ").trim();
cmd[1] = fileName;
try{
Process p = Runtime.getRuntime().exec(cmd);
}catch(java.io.IOException io){
//Ignore
can anyone give me the solution..???
Regards
Ganesan S -
Can't import/open HTML files in Fireworks CS4
I'm trying to import/open HTML files into Fireworks CS4 to do some redesigning. I inherited the job of redoing my companies website and we believe the person who created our website created the site using Dreamweaver 8. Unfortunatley that person moved on to a new job across the country and we can't ask him exactly how he created our website.
When I try to open some of the HTML files in FW I get the message: "Could not open the file....Fireworks could not find an HTML table in this file". Next I tried creating a new, very simple HTML page in Dreamweaver CS4 that contains just a few lines of text and 1graphic (we just bought the CS4 web suite). Again, I get the same error.
Other files give me a slightly different error message when trying to open them in FW, "The HTML document contains one or more images with absolute web addresses for the source. Fireworks cannot handle these images. --click OK-- (next error message) Could not open the file. Fireworks has encountered a problem with the HTML in this table. Verify that the HTML is valid"... and then it closes and nothing loads into FW. Bummer.
I've searched on these forums and can't find any solutions to this problem although I found a few people experiencing the same problem.
Do I need to do something to the Dreamweaver created HTML's to get them to open in FW? Any help would be appreciated.Fireworks is a graphics editor that can export code; it is not an HTML/code editor.
If you have exported HTML from Fireworks, you ought to be able to re-import that, but I would think most people who use Fireworks exported code would just modify their Fireworks document and re-export. (Fireworks' code is not robust and it is only intended for mockups and prototypes. Fireworks is not intended for developing and maintaining live Web sites; Dreamweaver is.)
If your developer used Dreamweaver, then I really don't expect that Fireworks would be able to import that, nor any code that isn't in exactly the format that it can export. If you know your developer used Fireworks, then you need to look for .png files. Fireworks uses an enhanced version of the PNG format for its native document format.
If you are making small adjustments to your site, then you might be better off working in Dreamweaver. If you're doing a site re-design, then Fireworks is an excellent tool for laying out your design and producing your graphics, but you will, at some point, need to move over to Dreamweaver for coding. -
I Fireworks 8, I was able to save a web page as a complete
document to the local drive and then open it with Fireworks to work
with it. With CS3 all I get is a totally white canvas. I have
checked that my preferences are all set the same, and they are. I
use this feature all the time for a variety of functions, i.e.,
combining slices to make one gif, etc. Am I missing something - or
is that function no longer there?
It shows it can open Html files, but it will not even open
it's own exported html files. Get "internal error." The file is
fine ( and it just created it.)No, it is not a bug at all. It is all about how you do this
and understand the primary functionality of Fw itself, and how it
do for you. If you don't fully understand how it works, then you
have problem trying to understand how it works and what's not.
Then, perhaps that you clearly do not understand the
functionality of Fw CS3, and how it relates to exported HTML files
created by Fw CS3.
It is very common, wide misunderstanding among other,
especially with newbies using Fw app, and they thought that if Fw
could create HTML code. Actually, it was created by side of
pre-scripted coding inside the app itself, and that it does the
rest for you.
As for working with sliced images around Fw CS3, as any
legacy versions of Fw, the concept of sliced images is often up for
the air and debates. Everyone have different opinion about sliced
images, and what not and what's cool.
I personally dislike sliced images. If having lots of sliced
images, means slower downloading time and more codes involved.
I get the feeling that you really not understand how Fw
works, and how it relates to your question about HTML code in Fw.
Please try to understand that FW itself CANNOT edit HTML. It only
just exports html code for you. However, it is important to note,
it is NOT perfect html code.
It is best IF you work with pre-scripted HTML code in
Dreamweaver, or any web authoring app to work with HTML directly.
If you are not taking my advice, so be it. I am out of this
discussion. End of discussion!
And good luck!
quote:
Originally posted by:
lloydtennison
No. I mean for editing the images. The open command even
shows html as an option to open, it just does not open the file at
all. I just creates a new one.
The reasons for opening an html file in Fireworks have
nothing to do with Dreamweaver or coding, just images and image
manipulation. If open html is an option, as it is, it should open
the file. It used to open with all slices intact, and all html code
behind it. Now it just opens a white page.
It is a bug and problem since it does not do as it should. -
Hi there,
I'd love someone giving me a bit of help about this...
AFAIK, Nokia S40 phones can't open an html file stored locally (in the phone's memory or memory card), although they can if that file is accessed through an internet connection.
So... is there a method or piece of software that I could use to open HTML files stored locally? (I've tried some Java browsers, including Opera Mini, but they all seem only fit for online browsing).
Thanks a lot,
Marcosok so i just realized that it doesn't make sense for a program outside the jar, like IE or Firefox, to be able to access and open a file inside of the jar. I am now looking for suggestions on how to work around this problem for my program to be able to have a simple help system located inside the jar that can be loaded during runtime.
Thanks for your suggestions. -
How to open html file in forms6i ?
Hi Guys,
Can anyone help in out in this regards.How to open .html file in forms6i ?
Thanks in advance
rajCheck out WEB.SHOW_DOCUMENT.
Regards
Grant Ronald
Forms Product Management -
How i can write a program can open html file?
Well I dunno what he meant but I'd like to know how
to open a html file on my hard-drive from a java
application.Just like you open any other file on your hard drive. -
Safari 7.0.5 unable to open html file
I used to be able to open HTML files in Safari so I can read the content but now it won't let me. Safari 7.0.5. Is there an issue with this version? I am also unable to see some content in our SalesForce app for work. Would a different version of Safari fix this?
You may have installed "SearchMe" or some other malicious Safari extension.
From the Safari menu bar, select
Safari ▹ Preferences... ▹ Extensions
Remove all extensions with the word "Spigot" in the description. If in doubt, remove all extensions. Do the equivalent in the Chrome and Firefox browsers, if you use either of those.
Maybe you are looking for
-
Problem with Business Logic Services Logic Editor
Hi, I am trying to go to Logic Editor under Business Logic Services. I'm getting error that "Unable to launch xMII" Is there any java related problem in my machine? Regards, Amalesh
-
hi everyone, Just know completed my sap sd course. i would like to know how prepare my self for interview..... i do have Configuration skills in u2022 Sales Process: Expert in Quotation, Sales Order, Delivery, and Billing. u2022 Special Busi
-
Vendor Return w/ replaced part
Hi All: I have situation in the vendor return scenario, customer most of the time return the goods to vendor if the it bad part or part failed and it is still under warranty. in any case vendor never gives the credit back rather he sends the new part
-
Plugging a plasma to my macbook
Hi there I have a Panasonic PlasmaTV 42" screen 1080P PZ700 and when plugging it to my Macbook it seems that the image is bigger then my TV since I can't see the entirely the dock and worse of all is that I can't see the menu bar at the top. the only
-
Hello everyone, I like access to the contacts list in my android device through adobe air in flash CS5. To access for read contacts I check the READ_CONTACTS in the Air permission, now I need to sample or tutorials to do that in FLASH CS5 and Air for