Re: Open html file in Clojure
This seems to be what Fluid is talking about: https://docs.oracle.com/javase/tutorial/uiswing/components/html.html I wiuld be a bit wary, however: I doubt this is a complete implementation of an HTML5-compatible browser with state of the art JavaScript interpreter. It's worth trying, but I would not really bet on that being able to display a Google Maps widget. On Monday, 8 December 2014, Fluid Dynamics a2093...@trbvm.com wrote: On Sunday, December 7, 2014 6:50:54 PM UTC-5, juan.facorro wrote: Hi Priyanka, I don't think there's enough information for someone to be able to help you. When you say .html do you mean JavaScript or ClojureScript code? It will be a lot easier to help you, if you share the code from the desktop app and the code you are using to get the location information. It sounds like he just wants to display a web page in his app, and has its URL. I think there may be Java Swing components that can do that. -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email to clojure@googlegroups.com javascript:_e(%7B%7D,'cvml','clojure@googlegroups.com'); Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com javascript:_e(%7B%7D,'cvml','clojure%2bunsubscr...@googlegroups.com'); For more options, visit this group at http://groups.google.com/group/clojure?hl=en --- You received this message because you are subscribed to the Google Groups Clojure group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com javascript:_e(%7B%7D,'cvml','clojure%2bunsubscr...@googlegroups.com');. For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en --- You received this message because you are subscribed to the Google Groups Clojure group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: Open html file in Clojure
Nope. It barely renders HTML3. JavaFX, I think, has a real embedded browser component. And, of course, it's always easy to just launch a browser: http://docs.oracle.com/javase/6/docs/api/java/awt/Desktop.html#browse%28java.net.URI%29 Dave On Mon, Dec 8, 2014 at 4:23 AM, Gary Verhaegen gary.verhae...@gmail.com wrote: This seems to be what Fluid is talking about: https://docs.oracle.com/javase/tutorial/uiswing/components/html.html I wiuld be a bit wary, however: I doubt this is a complete implementation of an HTML5-compatible browser with state of the art JavaScript interpreter. It's worth trying, but I would not really bet on that being able to display a Google Maps widget. On Monday, 8 December 2014, Fluid Dynamics a2093...@trbvm.com wrote: On Sunday, December 7, 2014 6:50:54 PM UTC-5, juan.facorro wrote: Hi Priyanka, I don't think there's enough information for someone to be able to help you. When you say .html do you mean JavaScript or ClojureScript code? It will be a lot easier to help you, if you share the code from the desktop app and the code you are using to get the location information. It sounds like he just wants to display a web page in his app, and has its URL. I think there may be Java Swing components that can do that. -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en --- You received this message because you are subscribed to the Google Groups Clojure group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en --- You received this message because you are subscribed to the Google Groups Clojure group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en --- You received this message because you are subscribed to the Google Groups Clojure group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: Open html file in Clojure
Perhaps it could be as simple as browse-url http://clojuredocs.org/clojure.java.browse/browse-url .. On Monday, December 8, 2014 5:44:10 PM UTC+1, daveray wrote: Nope. It barely renders HTML3. JavaFX, I think, has a real embedded browser component. And, of course, it's always easy to just launch a browser: http://docs.oracle.com/javase/6/docs/api/java/awt/Desktop.html#browse%28java.net.URI%29 Dave On Mon, Dec 8, 2014 at 4:23 AM, Gary Verhaegen gary.ve...@gmail.com javascript: wrote: This seems to be what Fluid is talking about: https://docs.oracle.com/javase/tutorial/uiswing/components/html.html I wiuld be a bit wary, however: I doubt this is a complete implementation of an HTML5-compatible browser with state of the art JavaScript interpreter. It's worth trying, but I would not really bet on that being able to display a Google Maps widget. On Monday, 8 December 2014, Fluid Dynamics a209...@trbvm.com javascript: wrote: On Sunday, December 7, 2014 6:50:54 PM UTC-5, juan.facorro wrote: Hi Priyanka, I don't think there's enough information for someone to be able to help you. When you say .html do you mean JavaScript or ClojureScript code? It will be a lot easier to help you, if you share the code from the desktop app and the code you are using to get the location information. It sounds like he just wants to display a web page in his app, and has its URL. I think there may be Java Swing components that can do that. -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en --- You received this message because you are subscribed to the Google Groups Clojure group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email to clo...@googlegroups.com javascript: Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+u...@googlegroups.com javascript: For more options, visit this group at http://groups.google.com/group/clojure?hl=en --- You received this message because you are subscribed to the Google Groups Clojure group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+u...@googlegroups.com javascript:. For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en --- You received this message because you are subscribed to the Google Groups Clojure group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: Open html file in Clojure
On Monday, December 8, 2014 11:44:10 AM UTC-5, daveray wrote: Nope. It barely renders HTML3. JavaFX, I think, has a real embedded browser component. That's what I meant. And, of course, it's always easy to just launch a browser: http://docs.oracle.com/javase/6/docs/api/java/awt/Desktop.html#browse%28java.net.URI%29 That's platform-neutral? The main way I'm familiar with for launching an external process with ProcessBuilder sure isn't. This will launch the user's default browser to a specified site in Windows: (.start (ProcessBuilder. [cmd /c \start http://www.example.com\;])) and I haven't the foggiest how to do something analogous with any of the popular Unix WMs, though spawning a console Lynx process with ProcessBuilder will usually work if the site only needs to display text, and the resulting Process's input and output streams can be manipulated from inside Clojure, so you can even provide your own in-app terminal emulation wrapping the Lynx instance. Needless to say, though, Lynx isn't an option if you want to display Google Maps. :) *checking* Well, (.browse (java.awt.Desktop/getDesktop) (java.net.URI. http://www.example.com;)) works on Windoze, which is all I can test on ATM. Looks like this class can also be used to open documents with native file associations. I just got it to pop up a jpg in the Windows picture previewer. I wonder why they tucked this thing away in awt when it has nothing to do with implementing your own program GUI, instead of it being in java.lang right next to ProcessBuilder. And didn't mention it in the Java Tutorial back in the day when I was still new to the JVM and its class library. -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en --- You received this message because you are subscribed to the Google Groups Clojure group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: Open html file in Clojure
Hi Priyanka, I don't think there's enough information for someone to be able to help you. When you say .html do you mean JavaScript or ClojureScript code? It will be a lot easier to help you, if you share the code from the desktop app and the code you are using to get the location information. Hope this helps, Juan On Saturday, December 6, 2014 9:40:16 PM UTC-3, Priyanka Goel wrote: I created a desktop application with Clojure showig different places of the world. I want to include google maps to show the location and to make it more interactive. I wrote down the .html code which works in the web browser and shows the location correctly. I want to use that .html file in my clojure code but I am not able to figure out how! Can someone here help? -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en --- You received this message because you are subscribed to the Google Groups Clojure group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: Open html file in Clojure
On Sunday, December 7, 2014 6:50:54 PM UTC-5, juan.facorro wrote: Hi Priyanka, I don't think there's enough information for someone to be able to help you. When you say .html do you mean JavaScript or ClojureScript code? It will be a lot easier to help you, if you share the code from the desktop app and the code you are using to get the location information. It sounds like he just wants to display a web page in his app, and has its URL. I think there may be Java Swing components that can do that. -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en --- You received this message because you are subscribed to the Google Groups Clojure group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.