• Post Reply Bookmark Topic Watch Topic
  • New Topic

Swing vs VB  RSS feed

 
vishal sodani
Ranch Hand
Posts: 127
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
When we are developing an interface in Swing,will it be as responsive in terms
of time, as an interface in
VB,say on Windows98 with 64MB RAM.I hear it is lot slower?
Any comments
thanks
 
Thomas Paul
mister krabs
Ranch Hand
Posts: 13974
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Swing will be slower because Swing is not using the built-in Windows objects.
 
Paul Stevens
Ranch Hand
Posts: 2823
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It is much faster than VB on a unix box.
 
Max Habibi
town drunk
( and author)
Sheriff
Posts: 4118
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
LOL
It should also be pointed out that JDK 1.4 Swing is a faster and more responsive then JDK 1.3 Swing.
M, author
The Sun Certified Java Developer Exam with J2SE 1.4
 
Gregg Bolinger
Ranch Hand
Posts: 15304
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It should also be pointed out that VB and Swing are not comparable in the sense that they are the same type of technology.
SWING is an API for the JAVA Language. VB is a Language that utalizes either MFC or Windows Forms (.NET) API's to draw it's graphics.
But with most responses in this thread, I will concur. Especially with Paul
 
vishal sodani
Ranch Hand
Posts: 127
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for reply.
So,if Swing will be slow,then what factors will lead a software to be developed in Swing rather than in VB,on Windows.
I have to do a project,and I am wondering which technology to use.
thanks
 
Chris Shepherd
Ranch Hand
Posts: 286
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If your project will ever need to run on anything besides M$ windows of some flavor then java is much better. And not knowing VB, I don't know if you can even run the exact same VB code across all windoze platforms (95 to XP).
Also, when you asked about how "responsive" java was, what is you basis of comparison? What are you trying to do? If its just a matter of filling in fields and clicking buttons, java works fine and you won't be able to tell any difference between the two. The only human detectable delays I have seen in java are from displaying(and changing) fairly complex graphics(data plots), some high end complex computations, and some very large database actions. Even those slowdowns can usually be minimized tho if you can fine tune your code or go with a native interface as a last resort.
I guess it really comes down to what exactly are you trying to do with your project? Knowing that, we could probably give you more insight on what delays(if any) you might run across. Well written code in java is very responsive and makes a great User Interface.

<irrelevant>wooo post #100 after 3 years... man have I been slack<still irrelevant>
[ February 24, 2003: Message edited by: Chris Shepherd ]
 
vishal sodani
Ranch Hand
Posts: 127
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks Chris.
Right now I have brief overview of the project.This project involves a company
,which has various production lines of different type of chips(potato etc).Now,for each production line data will be entered,by engineer, in respect of various inputs used for making chips,the number of chips produced etc.Then,the software will have to calculate vaious efficiencies.Also,every two hours
the data will need to be cumulated,and the results shown.Then,at the end of 8 hrs(end of a shift),
all of the data will be combined to produce graphical display in terms of efficiencies.
I hope it gives you some idea.
vishal
 
Gregg Bolinger
Ranch Hand
Posts: 15304
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Build a web application and use J2EE. That would be my suggestion. Your projects sounds perfect for that.
 
vishal sodani
Ranch Hand
Posts: 127
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks greg
But why you are suggesting web app instead of desktop.I hope you will elaborate
thanks
 
Gregg Bolinger
Ranch Hand
Posts: 15304
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The main reason is because your criteria doesn't sound like you need any advanced SWING functions for your application. Also, this sounds like something that would need to be accessed from several locations rather than just one person's PC at any given time. The other 90% is probably because I prefer Web Apps over SWING Apps. You can probably do it just as well either way, I guess it is more preference on my part. But I wouldn't rule out a web app if you know J2EE well enough.
 
Chantal Ackermann
Ranch Hand
Posts: 508
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,
with a server-client solution (EJB for example) you can do both: web app and swing gui.
with JavaWebStart the swing gui can be installed by any person on any computer where JavaWebStart and Java are installed.
A Swing or VB client provides by far the better means for user guidance than a web application: you can disable/enable/add/remove components immediately (!) to show what actions are possible (without having to reload a page over the net). - the client is more "intelligent".
with good multithreading the response time of a swing gui is considerably better than that of a web page. the user doesn't have to wait for a new page after each submit action like when using a web app.
the differences might sometimes not be that obvious, and there might be swing apps where one would see no problems to rebuild them using html and whatever. it's the small things that make life easier - for the user and the programmer.
regards,
Chantal
 
vishal sodani
Ranch Hand
Posts: 127
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can I use Vb to design the user interface,but the
code be written in Java?
 
Ashish Mahajan
Ranch Hand
Posts: 77
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Vishal,
I haven't used VB in my life. But i wanna say that why not to code entirely in java. That would be good for maintenance. Also ur organisations coding standards can be followed by doing this. Any complex GUI can be easily written in swing within very few time. If not at the first time then the nect time should be smaller as it's "Write once.." only
 
Gregg Bolinger
Ranch Hand
Posts: 15304
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by vishal sodani:
Can I use Vb to design the user interface,but the
code be written in Java?

There is not enough seperation in VB between GUI code and event code to really accomplish this. So I would have to just say a flat out NO. You can't mix languages.
Why would you want to do that anyway?
VB is a super RAD langauge. If you want to build a GUI in Windows then VB is probably the way to go. If you need a GUI to be able to run on multiple platforms, use JAVA/SWING.
 
vishal sodani
Ranch Hand
Posts: 127
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I have choice between Vb/DCOM or J2EE,since this will be client-server.I have no knowledge of J2ee,so it could be risky to go for J2EE
thanks
 
Ashish Mahajan
Ranch Hand
Posts: 77
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Vishal,
Don't u think this is a very good opportunity to master J2EE technologies.
 
vishal sodani
Ranch Hand
Posts: 127
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Ashish,
which application server yu suggest,open source will be preferred,or some very cheap priced server
thanks
 
Ashish Mahajan
Ranch Hand
Posts: 77
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Vishal,
I dunno anything about J2EE. So am backing off. But am very pleased that u have given a thought of considering J2EE tech. At the same time am jealous of u, now-a-days am seriously considering doing serious server side project.
It's better to spawn a separate thread in J2EE forum.
May be Nathan can best guide u.
 
Gregg Bolinger
Ranch Hand
Posts: 15304
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
JBoss is a good free Application Server. Resin is better and is free for development use, but not to distribute or use commerially. Tomcat is a good J2EE Container and is free also.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!