473,797 Members | 2,934 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Converting Java Applet to C#

Hi,
i have an applet java applet which basically serves as a stock
streamer..it connects to a data feed and show the bid/ask/last/etc info
for a portfolio of stocks in real time. I would like to convert this
to a C# application, but one that can be run/launched from a web
browser much like it was an applet.
I have some questions regarding how to do this

1. To begin with, is there such a thing as a c# applet?

2. My understanding from some research is that there is no such thing
as a c# applet, , but that one can create a windows form control which
can be run in the browser. Is this correct? What exactly is a Windows
Form Control? Are there any simple examples out there you can turn me
on to to study? Will this form control run in any browser and any OS?

3. I understand that the CLR must be present for this to run. Does
windows ship with the CLR by default? How difficult is it to prompt
the user to install the clr if it is not present? is that packaged
already by microsoft?

4. Are there any limitations to what can and can't be done with this
form control? For instance, can it run outside the browser (i.e. not
embedded, but popped out of the browser)? Can i have multiple forms
open or can i have one form open other pop up forms?

thanks much.

Dec 28 '06 #1
5 5840
On 27 Dec 2006 21:29:18 -0800, farseer wrote:
Hi,
i have an applet java applet which basically serves as a stock
streamer..it connects to a data feed and show the bid/ask/last/etc info
for a portfolio of stocks in real time. I would like to convert this
to a C# application, but one that can be run/launched from a web
browser much like it was an applet.
I have some questions regarding how to do this

1. To begin with, is there such a thing as a c# applet?

2. My understanding from some research is that there is no such thing
as a c# applet, , but that one can create a windows form control which
can be run in the browser. Is this correct? What exactly is a Windows
Form Control? Are there any simple examples out there you can turn me
on to to study? Will this form control run in any browser and any OS?

3. I understand that the CLR must be present for this to run. Does
windows ship with the CLR by default? How difficult is it to prompt
the user to install the clr if it is not present? is that packaged
already by microsoft?

4. Are there any limitations to what can and can't be done with this
form control? For instance, can it run outside the browser (i.e. not
embedded, but popped out of the browser)? Can i have multiple forms
open or can i have one form open other pop up forms?

thanks much.
If you want to recreate the applet then I suggest you take a look at J#
which will allow you to do that. J# supports development of applets. The
client will however require the .NET framework, and in particular the
Visual J# Redistributable Package version 2.0.

Reading through the J# documentatation ought to answer the rest of your
questions, especially about the security (Running outside the browser, etc)

--
Bits.Bytes
http://bytes.thinkersroom.com
Dec 28 '06 #2
I'm actually looking for a solution in C#, as the company has
standardized on that language.
I while back i read something about hot deployment that could allow me
to launch a winform app via the web...i can't find much on it though.
i think that might be close to what i am looking for..

Rad [Visual C# MVP] wrote:
On 27 Dec 2006 21:29:18 -0800, farseer wrote:
Hi,
i have an applet java applet which basically serves as a stock
streamer..it connects to a data feed and show the bid/ask/last/etc info
for a portfolio of stocks in real time. I would like to convert this
to a C# application, but one that can be run/launched from a web
browser much like it was an applet.
I have some questions regarding how to do this

1. To begin with, is there such a thing as a c# applet?

2. My understanding from some research is that there is no such thing
as a c# applet, , but that one can create a windows form control which
can be run in the browser. Is this correct? What exactly is a Windows
Form Control? Are there any simple examples out there you can turn me
on to to study? Will this form control run in any browser and any OS?

3. I understand that the CLR must be present for this to run. Does
windows ship with the CLR by default? How difficult is it to prompt
the user to install the clr if it is not present? is that packaged
already by microsoft?

4. Are there any limitations to what can and can't be done with this
form control? For instance, can it run outside the browser (i.e. not
embedded, but popped out of the browser)? Can i have multiple forms
open or can i have one form open other pop up forms?

thanks much.

If you want to recreate the applet then I suggest you take a look at J#
which will allow you to do that. J# supports development of applets. The
client will however require the .NET framework, and in particular the
Visual J# Redistributable Package version 2.0.

Reading through the J# documentatation ought to answer the rest of your
questions, especially about the security (Running outside the browser, etc)

--
Bits.Bytes
http://bytes.thinkersroom.com
Dec 28 '06 #3
On 28 Dec 2006 12:15:18 -0800, farseer wrote:
I'm actually looking for a solution in C#, as the company has
standardized on that language.
I while back i read something about hot deployment that could allow me
to launch a winform app via the web...i can't find much on it though.
i think that might be close to what i am looking for..

Rad [Visual C# MVP] wrote:
Well, if it's C# then you'll have to sacrifice the "applet" like behaviour.
What version of visual studio do you have? If you have VS 2005 then I
highly recommend you look at ClickOnce Deployment that will allow you to
deploy and update applications over the web browser, as well as
automatically installing any prerequisites.

Have a look at this link an see if it is the sort of functionality that you
are looking for :

http://msdn2.microsoft.com/en-us/net.../aa497348.aspx

A step by step sample is here :

http://www.15seconds.com/issue/041229.htm
--
Bits.Bytes
http://bytes.thinkersroom.com
Dec 28 '06 #4
Thanks...It doesn't seem like that would be something that would be
cross platform supported. I wonder why MS never created an applet
equivalent. it's just so convenient to be able to have af full blown
app run via a browser with just the CLR installed.

Rad [Visual C# MVP] wrote:
On 28 Dec 2006 12:15:18 -0800, farseer wrote:
I'm actually looking for a solution in C#, as the company has
standardized on that language.
I while back i read something about hot deployment that could allow me
to launch a winform app via the web...i can't find much on it though.
i think that might be close to what i am looking for..

Rad [Visual C# MVP] wrote:

Well, if it's C# then you'll have to sacrifice the "applet" like behaviour.
What version of visual studio do you have? If you have VS 2005 then I
highly recommend you look at ClickOnce Deployment that will allow you to
deploy and update applications over the web browser, as well as
automatically installing any prerequisites.

Have a look at this link an see if it is the sort of functionality that you
are looking for :

http://msdn2.microsoft.com/en-us/net.../aa497348.aspx

A step by step sample is here :

http://www.15seconds.com/issue/041229.htm
--
Bits.Bytes
http://bytes.thinkersroom.com
Dec 28 '06 #5
On 28 Dec 2006 13:49:13 -0800, farseer wrote:
Thanks...It doesn't seem like that would be something that would be
cross platform supported. I wonder why MS never created an applet
equivalent. it's just so convenient to be able to have af full blown
app run via a browser with just the CLR installed.
Cross platform? Alas, not that I know of. As far as I know the Mono people
are yet to implement ClickOnce to the level of Microsoft. Much of the
underlying technology to support ClickOnce i would imagine is very platform
specific.

But you can keep an eye on their progress here:
http://www.mono-project.com/Main_Page

--
Bits.Bytes
http://bytes.thinkersroom.com
Dec 28 '06 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
3388
by: apchar | last post by:
I am trying to use php as a kind of servlet to act as a middle man between a java applet and mysql. I know java has jdbc but it's flakey and painful. php access to mysql is much nicer. So I have: 1. An html page that holds the applet. 2. a php page that accepts data submitted to it by the applet via the $_POST array and writes it to the mysql database. This page never makes it to the browser window. 3. a simple Thank you page that shows...
0
9876
by: James Hong | last post by:
Help please, I try to sending an email from my html page using the java applet. but it give error on most of the PC only very few work, what is the error i make the java applet show as below ********************************** package Celcom.Client;
1
5700
by: polilop | last post by:
i have an java applet, and when i start it it shows a gray win with x. the console shows java.lang.NoClassDefFoundError: GeomApplet (wrong name: vj3/GeomApplet) at java.lang.ClassLoader.defineClass0(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:502) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123) at sun.applet.AppletClassLoader.findClass(AppletClassLoader.java:148) at...
3
3526
by: Larry Martin | last post by:
I am trying to run a Java Applet on my ascx page and am getting an IO exception when IE6 tries to load the applet. It seems a lot of others are getting the same problem but a search of the web did not turn up any sort of solution. I have tried most of the suggestions but none of them seem to have helped with the problem. My error is below and the most significant part of it is the HTTP connection failure. load: class...
2
13521
by: Tim Murray | last post by:
First of all, I don't know much about Java, even its naming and version numbering nomenclature, and second, if there is a better group to ask this in, please let me know. System is Mac with 10.4.4. I have Java 1.3.1 and 1.4.2 plug-ins, and J2SE 5.0 (1.5.0) installed. The Java preferences application lets me choose J2SE 5 or 1.4.2 to run applets via a browser. The problem happens in both settings. The problem is that we have a...
1
6644
by: dishal | last post by:
Can anyone help me please? How do I convert these codes to launch from a JFrame instead of a Java Applet? A simple program where the user can sketch curves and shapes in a variety of colors on a variety of background colors. The user selects a drawing color form a pop-up menu at the top of the applet. If the user clicks "Set Background", the background color is set to the current drawing color and the drawing ...
4
4034
by: JNeko | last post by:
hello all, I have tried my hand at this for a couple hours but no luck. I am using JCreator. I used these two links for reference: http://www.tech-recipes.com/java_programming_tips1265.html http://forum.java.sun.com/thread.jspa?threadID=441336&start=15&tstart=0 Here is my situation: trying to turn a 3000 line main class into an applet, or create an applet that calls it. whatever works. in a nut shell, here is the structure:
2
2663
by: pssraju | last post by:
Hi, I am having applet display problem on my PC and the same thing working fine on some of my colleagues PC's. When I cross checked content through view source its exactly same on both the PC's. Something related to JRE is not allowing to display this applet through browser. Even I tried by uninstalling & reinstalling JRE and ended up with same problem. Can anyone tell whats problem on my PC. Here is the error which I am getting in java...
0
9685
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9536
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10468
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10205
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10021
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9063
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6802
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5458
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5582
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.