473,767 Members | 2,198 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

gui design

Hi
I am an os developer, i am developing a gui library. I found that
java swing is the most easiest to use gui library , am i correct?
I am trying to port swing to c++, is there any thing i should be
careful?
thanks
from Peter (cm****@hotmail .com)

Sep 25 '06 #1
12 2797
cm****@hotmail. com wrote:
I am an os developer, i am developing a gui library. I found that
java swing is the most easiest to use gui library , am i correct?
Correct in what? That you found it? Probably not. Other folks had
probably "found" the same thing before you. That it is "the most
easiest to use"? Probably not. "Ease" is part of perception, so it
cannot be objectively "the most".
I am trying to port swing to c++, is there any thing i should be
careful?
Be careful not to waste your time on something that nobody needs.

V
--
Please remove capital 'A's when replying by e-mail
I do not respond to top-posted replies, please don't ask
Sep 25 '06 #2
cmk128 wrote:
I am an os developer, i am developing a gui library. I found that
java swing is the most easiest to use gui library , am i correct?
Swing is a very poor architecture, and Java is not a good library for GUIs
in general.

Why are you developing a new GUI library? What's wrong with the dozens of
existing ones?
I am trying to port swing to c++, is there any thing i should be
careful?
I would research Qt or wxWidgets, in C++. But I would also investigate using
a softer language. C++ is for high-performance situations, and GUIs only
need to respond in user-time. And softer languages like Python, Ruby,
Smalltalk, etc. support "block closures". They make GUI events absurdly easy
to code, whereas C++ makes them absurdly hard.

That's the main reason Java is a poor language for GUIs. To compete with
C++, Java did not start with any advanced OO concepts, just _some_ aspects
of C++-style static typing. So yet another irony of our industry is the
majority of GUI projects are written in languages promoted as being good for
GUIs when they are actually very bad!

--
Phlip
http://www.greencheese.us/ZeekLand <-- NOT a blog!!!
Sep 25 '06 #3

cm****@hotmail. com wrote:
Hi
I am an os developer, i am developing a gui library. I found that
java swing is the most easiest to use gui library , am i correct?
'Overdesigned' would probably be a better term.

Regards,
Bart.

Sep 25 '06 #4

Phlip wrote:
cmk128 wrote:
I am an os developer, i am developing a gui library. I found that
java swing is the most easiest to use gui library , am i correct?

Swing is a very poor architecture, and Java is not a good library for GUIs
in general.

Why are you developing a new GUI library? What's wrong with the dozens of
existing ones?
Given that he's an OS developer, perhaps he really meant that he is
implementing a GUI library, not developing one.
I am trying to port swing to c++, is there any thing i should be
careful?

I would research Qt or wxWidgets, in C++. But I would also investigate using
a softer language. C++ is for high-performance situations, and GUIs only
need to respond in user-time. And softer languages like Python, Ruby,
Smalltalk, etc. support "block closures". They make GUI events absurdly easy
to code, whereas C++ makes them absurdly hard.

That's the main reason Java is a poor language for GUIs. To compete with
C++, Java did not start with any advanced OO concepts, just _some_ aspects
of C++-style static typing. So yet another irony of our industry is the
majority of GUI projects are written in languages promoted as being good for
GUIs when they are actually very bad!
I have to agree here. You can use C++ or Java for application
infrastructure and a scripting language for the UI. It's a very
flexible approach that has merits. However, given the note about OS
development perhaps the intent is to provide the actual low-level GUI
support of the OS, like the Win32 API in Windows.

Regards,
Bart.

Sep 25 '06 #5
"Phlip" <ph******@yahoo .comwrites:
C++ is for high-performance situations, and GUIs only
need to respond in user-time.
Now I realise why most UI applications take ages to respond! They
respond in user time!

Apparantly this is even possible in C++.

Regards,

Jens
Sep 25 '06 #6

Phlip 寫道:
cmk128 wrote:
I am an os developer, i am developing a gui library. I found that
java swing is the most easiest to use gui library , am i correct?

Swing is a very poor architecture, and Java is not a good library for GUIs
in general.

Why are you developing a new GUI library? What's wrong with the dozens of
existing ones?
I am trying to port swing to c++, is there any thing i should be
careful?

I would research Qt or wxWidgets, in C++. But I would also investigate using
a softer language. C++ is for high-performance situations, and GUIs only
need to respond in user-time. And softer languages like Python, Ruby,
Smalltalk, etc. support "block closures". They make GUI events absurdly easy
to code, whereas C++ makes them absurdly hard.

That's the main reason Java is a poor language for GUIs. To compete with
C++, Java did not start with any advanced OO concepts, just _some_ aspects
of C++-style static typing. So yet another irony of our industry is the
majority of GUI projects are written in languages promoted as being good for
GUIs when they are actually very bad!

--
Phlip
http://www.greencheese.us/ZeekLand <-- NOT a blog!!!
Hi Phlip
What is "block closures"?
thanks
from Peter

Sep 26 '06 #7

Phlip 寫道:
cmk128 wrote:
I am an os developer, i am developing a gui library. I found that
java swing is the most easiest to use gui library , am i correct?

Swing is a very poor architecture, and Java is not a good library for GUIs
in general.

Why are you developing a new GUI library? What's wrong with the dozens of
existing ones?
I am trying to port swing to c++, is there any thing i should be
careful?

I would research Qt or wxWidgets, in C++. But I would also investigate using
a softer language. C++ is for high-performance situations, and GUIs only
need to respond in user-time. And softer languages like Python, Ruby,
Smalltalk, etc. support "block closures". They make GUI events absurdly easy
to code, whereas C++ makes them absurdly hard.

That's the main reason Java is a poor language for GUIs. To compete with
C++, Java did not start with any advanced OO concepts, just _some_ aspects
of C++-style static typing. So yet another irony of our industry is the
majority of GUI projects are written in languages promoted as being good for
GUIs when they are actually very bad!

--
Phlip
http://www.greencheese.us/ZeekLand <-- NOT a blog!!!
Why swing is poor architecture? i think swing is very easy to use, and
all its components are OO concept. I know some people saying swing is
slow, but it is nothing to do with swing, it is the performance problem
of the VM, not the problem of the GUI library itself.

In swing, you will never get a segmentation fault, everything is
neither working or not-working. Java is a very safety langauge, unlike
c++, some code look like working, but will generate a segmentation
fault after running a long time.

I want to avoid this in the GUI library, but not very clear how i can
do it :(
thanks
from Peter

Sep 26 '06 #8
cmk128 wrote:
Why swing is poor architecture?
Because I have experience with the best OO GUI toolkits, and Swing can't do
what they do, at the level of the language itself.

Beyond that, I have almost no experience with Swing itself, and I do not
doubt that a Java expert can use it elegantly, reliably, and robustly.
In swing, you will never get a segmentation fault, everything is
neither working or not-working. Java is a very safety langauge, unlike
c++, some code look like working, but will generate a segmentation
fault after running a long time.
That's because Sun invented Java by removing the features from C++ that make
it fast. I can easily write programs that never fault (modulo whatever
compiler and platform they use). And I can crash a Java program with one arm
tied behind my back.
I want to avoid this in the GUI library, but not very clear how i can
do it :(
Download and run many GUI libraries, in many languages. You must learn much
more than Swing before you even start your project. Even download Amulet (if
you can find it), Frog, FLTK, and Fox. And run them in different languages.

If you design a library when all you know is Swing and C++, you will make
many mistakes that other libraries show the fixes for.

--
Phlip
http://www.greencheese.us/ZeekLand <-- NOT a blog!!!
Sep 26 '06 #9

<cm****@hotmail .comwrote in message
news:11******** **************@ i3g2000cwc.goog legroups.com...

Phlip ??:
cmk128 wrote:
I am an os developer, i am developing a gui library. I found that
java swing is the most easiest to use gui library , am i correct?

Swing is a very poor architecture, and Java is not a good library for GUIs
in general.

Why are you developing a new GUI library? What's wrong with the dozens of
existing ones?
I am trying to port swing to c++, is there any thing i should be
careful?

I would research Qt or wxWidgets, in C++. But I would also investigate
using
a softer language. C++ is for high-performance situations, and GUIs only
need to respond in user-time. And softer languages like Python, Ruby,
Smalltalk, etc. support "block closures". They make GUI events absurdly
easy
to code, whereas C++ makes them absurdly hard.

That's the main reason Java is a poor language for GUIs. To compete with
C++, Java did not start with any advanced OO concepts, just _some_ aspects
of C++-style static typing. So yet another irony of our industry is the
majority of GUI projects are written in languages promoted as being good
for
GUIs when they are actually very bad!

--
Phlip
http://www.greencheese.us/ZeekLand <-- NOT a blog!!!
Why swing is poor architecture? i think swing is very easy to use, and
all its components are OO concept. I know some people saying swing is
slow, but it is nothing to do with swing, it is the performance problem
of the VM, not the problem of the GUI library itself.

In swing, you will never get a segmentation fault, everything is
neither working or not-working. Java is a very safety langauge, unlike
c++, some code look like working, but will generate a segmentation
fault after running a long time.

I want to avoid this in the GUI library, but not very clear how i can
do it :(
thanks
from Peter

You don't see segmentation faults very much in the Java/SWING environment
because they
are often trapped.. The same thing can be done in C++ to stop segV's
although that's
a bad practice since it hides the underlying problem, resulting in incorrect
behavior.

Sep 26 '06 #10

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

Similar topics

2
2115
by: adb | last post by:
I came up with a replication configuration that is basically the result of all the restrictions of replication as well as the restrictions of allowable software on work PC's and I was curious if anyone would point out any flaws or possible problems with the design. I'm limited to Access 2000 professional edition (Thus I cannot use indirect sync or internet sync) and cannot install anythird party controls (i.e.
3
4141
by: zlst | last post by:
Many technological innovations rely upon User Interface Design to elevate their technical complexity to a usable product. Technology alone may not win user acceptance and subsequent marketability. The User Experience, or how the user experiences the end product, is the key to acceptance. And that is where User Interface Design enters the design process. While product engineers focus on the technology, usability specialists focus on the user...
0
1915
by: Edward Diener | last post by:
In Borland's VCL it was possible to divide a component into design time and run time DLLs. The design time DLL would only be necessary when the programmer was setting a component's properties or events in the Object Inspector, the equivalent to the VS .NET Windows form designer. The run-time DLL would only contain the code necessary at run-time. The design time DLL referenced the run-time DLL, but not vice-versa. This allowed the run-time...
7
3017
by: Shimon Sim | last post by:
I have a custom composite control I have following property
2
2377
by: Paul Cheetham | last post by:
Hi, I have moved an application from VS2003 to VS2005, and I am now unable to view most of my forms in the designer. The majority of the forms in my project are derived from class PACForm, (which itself derives from System.Windows.Forms.Form) Whenever I try to open on of these forms in the designer, I get an error, stating it is unable to load one or more of the requested types. (Full text at the bottom of this message)
1
6341
by: Nogusta123 | last post by:
Hi, I have had a lot of problems getting web pages, master pages and content pages to render in VS2005 design view the same as they would in Internet Explorer. I did a lot of looking on the internet for answers but didn't have much luck. Anyway I believe I have found the causes of the problems and thought I should share them in case any one else is feeling the pain and also to find out what other peoples opinions are, on whether these...
0
2509
by: YellowFin Announcements | last post by:
Introduction Usability and relevance have been identified as the major factors preventing mass adoption of Business Intelligence applications. What we have today are traditional BI tools that don't work nearly as well as they should, even for analysts and power users. The reason they haven't reached the masses is because most of the tools are so difficult to use and reveal so little
19
3174
by: neelsmail | last post by:
Hi, I have been working on C++ for some time now, and I think I have a flair for design (which just might be only my imagination over- stretched.. :) ). So, I tried to find a design certification, possibly that involves C++, but, if not, C++ and UML. All I could find was Java + UML design certifications (one such is detailed on http://www.objectsbydesign.com/tools/certification.html). Although UML is expected to be language independent,...
10
3677
by: vital | last post by:
Hi, I am designing the middle tier of a project. It has 6 classes and microsoft application data access block. The six classes are DBServices, Logger, ProjectServices ... etc. and all these classes talk to front-end directly. Do I need to use any design pattern in this? or what kind of design pattern is this?
4
2468
by: Ken Fine | last post by:
I've been living with a frustrating issue with VS.NET for some months now and I need to figure out what the problem is. Hopefully someone has run into the same issue and can suggest a fix. I suspect some permissions problem. I'm running VS.NET 2008 in Vista. Symptoms and observations: * ASP.NET's native ImageMap and Image controls work just fine and provide a design-time preview of images that are referenced via the ImageUrl property *...
0
9571
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, well explore What is ONU, What Is Router, ONU & Routers main usage, and What is the difference between ONU and Router. Lets take a closer look ! Part I. Meaning of...
0
9404
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
10009
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9959
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,...
1
7381
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupr who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5279
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
5423
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3929
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2806
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.