Skip to main content


Showing posts from September, 2009

Code Snippet Manager in Java and Swing

Today I've try to create code snippet manager using Java and Swing. In my previous post I try to done this using WPF and C# ( ) I've just wanted to see how harder is to create the same app using Java and Swing. First lets make some compare about the WPF and Swing version of the app. The WPF version consists of 5 files (2 XAML files and 3 cs files with classes) The WPF version uses XAML for the view (only 30 lines ) and 8 lines in file called App.xaml. The C# class with the logic is 208 lines of code . The Snippet model class is not 62 lines of code using C# properties and etc. The Java version have 3 classes. One is the main class, the snippet model class 54 lines (most of them created automatically by eclipse like getters setters in C# YOU HAVE TO WRITE THEM MANUALLY) and the Logic + View class is 290 lines of code . So in conclusion I can say that Java version is 40 lines of code more but this is bec

Java2Days conference in Bulgaria, Europe 8-9/10/09

Java2Days conference is a brand new event in Eastern Europe to present the latest trends in Java development. Java2Days will be held at the Inter Expo Center on 8-9 October in Sofia, Bulgaria. The conference is hosted by Insight_technologies and the Bulgarian National Academy for Software Development . The conference is the first of its kind to be held in Eastern Europe, focused to highlight today’s cutting edge trends in building software applications with Java development tools. Over two days, more than 600 attendees will meet world famous lecturers, engaged all year round in such events as JavaOne, The ServerSide Java Symposium, Jazoon showcasing their latest knowledge in creating more reliable, scalable and secure solutions using Java technologies in more than 20 technical sessions. The major purpose of the event is to become a place for passionate Java developers to get in touch with the latest technologies, to become a significant part of the global Java community and to learn f

XMLSerialization with C#

When I first hear about XML serialization in C# I thought that it is like Java serialization but the result is XML character stream instead of the default serialization in Java/.net. But the things are not so great. The XML serialization in C# is good but it is not the best. In Java the easiest way to make normal serialization is to implement interface Serializable and to be sure that all fields in your custom class are serializable. If you want to Serialize ArrayList of this objects you dont have problems because ArrayList implements Serializable. But when you use XML serialization you dont care about Serializable interface. In Java you can make XML serialization this way : . You can see that it is simple I thought that in C# the situation is the same but it is not. To read about serialiization in C# there is tones of info but I didn't found answer like this one in this post: I will notice only some important aspects of this becaus

Code Snippet Manager in C# and WPF

Hello all, today I will post a simple code snippet manager created using C# and WPF. The idea of the app is to be used when making presentations and you need to paste all kind of code snippets (html, xaml, C#, java ). The similar tool is used by Karen Corby in MIX09 presentation about creating silverlight controls. This is my first .net application so you will see all kind of C# strangeness like using "Object" instead of "object" and String instead of "string". Because this was my first application I choose to use WPF not WinForms because WinForms is a lot like Swing and I've wanted to see "how declarative XML for the UI is better" and I can say: "hmm ok there is some big pluses". Anyway I have little experience with Flex's MXML too and if you ask me the MXML is a lot than XAML. The code snipper manager application lokks like this : The view is very simple and I can say that XAML is perfect for creating a simple views and there

Real Ajax for Real Java Developers: GWT & jQUERY

In this days every Ajax application uses jQuery or Dojo or something like this. If you ask me jQuery is the most often framework because it is small, it helps a lot, it has cool features and it is promoted by Microsoft (we live in strange days). jQuery can be used for many things one of them is effects. We all know how Flash, Silverilght and JavaFX “Rich UI” look and often with CSS and JavaScript it’s very hard to make things that can be done in easy in flash. The jQuery helps a lot with it fade effects slideUp/slideDown and etc. I as a Java Developer I like GWT but often I use JSF too. When I use JSF I’ve always add JQuery because at certain point I’ve always  need to type some javascript and with jquery its easier. When I use GWT I’ve wanted to be able to use JQuery the same way like I’ve use it in JSF app or even better. The solution is GWTQuery or GQuery: . From the website we can see That Gwt Query is a jQuery-like API written in GWT, which allo

Real Ajax for Real Java developers: GWT

Everyone know about GWT right ? This is Java framework for creating real rich ajax applications using the Java language and not using JavaScript. The idea is that your project have two parts : client side and server side. The server side is Java and is compiled to Java using javac and putted in the web server the client side is compiled to JavaScript using GWT Java2JavaScript compiler, the communication between server side and client side is using async call, the result is : real AJAX. First why I call it real ajax ? The common way to make rich applications this days ( or maybe from 2005 till now) is to use non ajax web framework and use custom ajax controls that uses UpdatePanel or AjaxPanel that makes “partial rendering”. In typical Non Ajax application (lets use or JSF) when we submit the form or make a call using a button server creates the HTML result and send it to the browser. The browser just visualized the HTML and “voala” we have regular page. To create the view