Posts

Showing posts with the label NetBeans

New blog domain: kula.blog

It's still work in progress but new posts will be published on  https://kula.blog/ Thanks to 11ty base blog RSS is working from the start so it should be easy to add to your reader if you still use any :) If now then I hope you can sign up to the newsletter where I'll be publishing new posts and interesting articles to it from time to time. Please use  kula.blog  from now on.

netbeans.conf - How to make NetBeans faster

I've started to experimenting with NetBeans again, but for that I need to make NetBeans faster... Consider adding to your /etc/netbeans.conf minimal and maximal Heap sizes (larger than default). -J-Xms256m  start level  -J-Xmx1024m maximum Adjust it to your RAM, and current memory usage. on Windows 7: netbeans_default_options="-J-client -J-Xss2m -J-Xms128m -J-XX:PermSize=32m -J-Dapple.laf.useScreenMenuBar=true -J-Dapple.awt.graphics.UseQuartz=true -J-Dsun.java2d.noddraw=true -J-Dsun.zip.disableMemoryMapping=true -J-Xverify:none -J-Xmx512m -J-XX:CompileThreshold=100 -J-XX:+UseConcMarkSweepGC -J-XX:+CMSClassUnloadingEnabled -J-XX:+CMSPermGenSweepingEnabled " Ideas from:  http://performance.netbeans.org/howto/jvmswitches/ Beware that on LinuxMint I used only -J-Xms512  -J-Xmx2048m without GC and CompileTreshold due to slowdown of IDE and whole system (100% CPU without reason). The best idea is to experiment and try on your machine. Furt...

Book Review: NetBeans IDE 7 Cookbook

NetBeans IDE 7 Cookbook  by  Rhawi Dantas  is book for developers who want to start using NetBeans. Book can be both for students and those more experienced but not familiar with NetBeans. Most chapters are specific to Java, but there are couple more language agnostic, like using version control systems. I read this book from beginning to end, but this book was created to user when needed. I want to create JavaEE project, check out index, find chapter about it, read while creating and done! Tips for other readers: Do not read chapter about JavaFX - this is about 1.3 version, even Oracle created version 2.0 for Java.  Creating JavaME application is supported only on Windows. Feel free to start reading wherever You want.  Links to book: Book:  http://www.packtpub.com/netbeans-ide-7-cookbook/book Table of contents:  http://www.packtpub.com/toc/netbeans-ide-7-cookbook-table-contents Sample chapter:  http://www.pac...

Book Review: NetBeans Platform 6.9 Developers Guide

NetBeans Platform 6.9 Developers Guide written by Jürgen Petri to be honest can have "for beginners" at the end of title. This book is designated for newbies to help them with basic tasks and in my opinion author was successful in that task. The chapters have gently increasing difficulty, so chapters 1-4 mostly explain some concepts to the readers. What is interesting is that book takes the form of one big tutorial so even when I was creating my first project, that project was used to the end of book for creating TaskManager application. I really like style of a book, in every chapter I was learning one of main concepts of Platform and my application gets more and more powerful. Constantly refactoring my modules makes me see better advantages of using NetBeans Platform. It is obvious that author knows much about NetBeans and knows how to teach. Despite great examples. the author is always explaining them in depth. He has included many tips about real use cases an...

End of Book! Closing chapters review.

After 3 weeks I've ended NetBeans Platform 6.9 Developers Guide Book, and as previous quick summary of read chapters. Chapter 7: File System How to access File System of operating system without knowing which system is it. This chapter is mostly about low-level access. But for me it is already pretty good abstraction! Chapter 8: Data System Creating additional abstraction on top of objects from previous chapter and create actions to create actions to save data of active model object. This chapter is also about using files in explorer which we all know from using NetBeans itself. Chapter 9: Dialogs This is last long chapter (28pages), which comparing to next four (sum 36 pages) is last "big" topic. Dialogs are not only simple notifications but also Wizards! We all know how wizard can make friendly some complex actions, especially when user do know know "Everything" about what and How he or she can do it. The best thing about wizards is that there is alre...

After chapter 6: Nodes and Explorer Views

As in title there is only sixth chapter I ended also earlier ones, but this one was Huge! I can't understand why author make his one big chapter where I can see at leas 2-3 relatively autonomous parts, at least properties and Visual Library can make a separate chapter. I am complaining because I really like small chapters which I can read in one evening or even morning ;) Chapter 4: Lookup Lookups are certainly a heart of modules system in NetBeans. Using scopes Modules can search for public classes(using this developers can add functionalities to existing modules) and communicate with other modules without knowing exactly to which module they are talking Chapter 5: Actions Pretty straight-forward, creating Actions(as global and reusable for toolbar, menu). More advanced is creating actions that are enabled with custom conditions, eg. Task object available in lookup to edit it :) Chapter 6: Nodes and Explorer Views Longest chapter (65 pages), about... everything from Expl...

NetBeans Platform Chapter 3: Window System

Chapter 3: Window System Everything you should now about creating layout in NetBeans applications. Most of it can be done declaratively, and in standard cases Wizards will do the job. But there is more! Despite NetBeans standard layout positions you can create new ones. End even create groups of them(something like perspectives in Eclipse).   If you want even more power about layout window position and even opening and closing of them can be changed programmatically! Of course groups of windows can be managed as well. At the end of the chapter there was example about saving data and about how NetBeans is remembering last state of opened windows. Using writeProperties and readPropertiesInpl we can store some data using key-value pairs. It could be handy for storing some custom configuration, or even last state of edit or whatever user was doing in application. Chapter 4: Lookup - how to use another modules and ensure that they are still loosely coupled... I really want to see ...

NetBeans Platform chapters 1 and 2

Chapter 1: Modules About modules but also a quick introduction to creating NetBeans platform Project and modules. There was some changes between what was expected and what I found after project creation, but nothing important. Great quick start, which ends making me wanting more :) When starting with this book creating NetBeans Platform projects looks pretty easy and very interesting. Yes, this is for newcomers in NetBeans, but it makes me not be discouraged at the beginning. Chapter 2: Forms. All about Matisse and how to use it for creating frontend of your application. Best of it is at the end of chapter: how to add my shiny new form to NetBeans palette! Really nice feature! If you have problems with: org.openide.util not recognized check this link:  http://forums.netbeans.org/ptopic30967.html  To add TaskEditorPanel to pallete add package of  it to public Api of this module in project preferences. Then NetBeans wizard will recognize it. Next: Chapter ...

NetBeans Platform 6.9 Developer's Guide

Yesterday in my gmail appeared Email from Packt Publishing with offer to review NetBeans Platform 6.9 Developer's Guide, ass You might guess I didn't think a long ;) and while writing this post I am downloading it from my account at Packt website. And today or tomorrow I will start reading. Not today becouse in an hour I will have second Taekwondo training, I still have sores but I think that lately I've spended to much time sitting. If you are interested in my review subscribe to my blog ;) It will be available in about two or three weeks ;)

SortTable po przeniesieniu do NetBeans

Image
Click here to download: SortTable.tar.gz (8 KB) W poprzednim poście narzekałem na kłopoty z kodowaniem pliku properties w Eclipse. Postanowiłem przetestować jak ten plik potraktuje NetBeans6.7.1, skopiowałem projekt do folderu z projektami NetBeans, oraz usunąłem folder build(jeśli znajduję się on w projekcie nie można utoworzyć nowego projektu webowego na bazie źródeł z Eclipse(żeby nie było że jest idealnie, import projektu Eclipse nie zadziałał). Pozostało z opcjach projektu dodać biblioteki JSF, oraz JSTL i po 2 minutach uruchomiłem projekt. Chwila, przecież w Eclipse też działał, pora sprawdzić jak tam się miewa mój plik z komunikatami: otóż jest zdrowy i ma się dużo lepiej niż w Eclipse, zamiast znaków ucieczki-Polskie znaki! Właśnie to podoba mi się w NetBeans, to co musi działać, działa. Wiadomo bywa różnie a można mnie posądzić o to że Eclipse szaleje z powodu złej instalacji(tylko że co to za instalacja która wymaga tylko wypakowania plików?) W załączniku projek...