JFace « Interoperability « Java Swing Q&A





1. How do you make a Swing/JFace/SWT GUI addressable?    stackoverflow.com

I have a "fat" GUI that it getting fairly complex, and I would like to add links from a place to an other, and add back/forward buttons to ease navigation. It ...

2. Saving TreeViewer state before setInput()    stackoverflow.com

I'm trying to save jface TreeViewer expansion state to refresh it after calling setInput() method. I tried getExpandedElements, setExpandedElements, getExpandedTreePaths, setExpandedTreePaths methods of TreeViewer bu it doesn't work.

Object[] expandedElements = viewer.getExpandedElements();
TreePath[] ...

3. Does using JFace's Viewers preclude good MVC separation?    stackoverflow.com

I'm writing a GUI app that I want to use Swing and SWT. The end-user will specify somehow which should be used (it won't use both at the same time!). SWT ...

4. How to dynamicly build up a gui    stackoverflow.com

currently im building an application which is supposed for some sound processing. I'm doing this in java/eclipse with swt/jface. The processing itself need some options/properties for the algorithem inside. At this ...

5. File Explorer using Java - how to go about it?    stackoverflow.com

I am set to create a file explorer using Java. The aim is to emulate the behavior of the default explorer as closely as possible, whatever may be the underlying OS. I ...

6. How to update a view from code in an Eclipse RCP app    stackoverflow.com

I have a View class (extends ViewPart) that contains a ScrolledForm created from a FormToolkit. When certain events happen in other views in the app I want to change the form ...

7. Swing or SWT/JFace - for integration with MS Office    stackoverflow.com

I 've read a lot of discussions about Swing vs SWT/Jface. Yet, I have a particular need in mind and I wonder people with experiences here sould kind share your ...

8. Make a JFace TableViewer resize with it's surrounding composite?    stackoverflow.com

Using the WindowBuilder for Eclipse, I have created a TableViewer which I have placed inside a composite. (The TableViewer creates an SWT Table, in which the TableViewer itself is inserted). I ...

9. What is the relationship between AWT, SWT, Swing, SAF/JSR-296, JFace, the NetBeans Platform and the Eclipse RCP    stackoverflow.com

I am looking for something that puts this alphabet soup into perspective. It would be nice if it were light on the politics of the differences and tries to illuminate ...





10. Java/SWT/JFace forcefull reload of GUI?    stackoverflow.com

I have an app that is supposed to change its language without having to restart. It already uses Resourcebundles for different languages, but since the Menu-Items and other GUI-stuf gets ...

11. SWT JFace TableViewer selection problem in Windows 7    stackoverflow.com

I am using the SWT JFace TableViewer component to display a list of data. I have implemented the IColorProvider to provide a custom foreground and background colour. I provide ...

12. Java: theater seating chart    stackoverflow.com

I'm looking for a solution (library) to generate and/or display a dynamic seating chart using Java (and Swing/JFace). There should be possibilities to add color to single seats and for defining events. Is ...

13. Is "The Definitive Guide to SWT and JFACE" just a guide?    coderanch.com

As the title suggests, The Definitive Guide to SWT and JFace aims to address the totality of the SWT and JFace libraries. Since our goal was addressing cross-platform GUI applications, we left out platform-specific stuff (read: ActiveX embedding), and some late additions didn't make it in (e.g. adding icons to the system tray). It covers beginning through advanced SWT and JFace, ...

14. The Definitive Guide to SWT and JFace book :- Reader question    coderanch.com

hi, i have some experience on swing, can i easily to catch up SWT and Jface comcept? is this book cover for advanced reader or novice ? can someone please explain what is SWT and Jface ? what is the good points to have SWT anf Jface ....thank you very much for your time !

15. Is The Definitive Guide to SWT and JFace example driven?    coderanch.com

The following is extracted from the TOC of the book Chapter 2 Getting Started with Eclipse . . . . . . . . . . . . . . . . . 7 Installing Eclipse . . . . . . . . . . . . . . . . . . . . . . . . . ...

16. "The Definitive Guide to SWT and JFACE" is it apt as a guide for an IDE development    coderanch.com

Chapter 18 focuses on the text editor, but no, this book isn't about how to develop an IDE. It also isn't about how to develop Eclipse plug-ins, though you can use the SWT/JFace knowledge this book provides to write Eclipse plug-ins. We didn't write this book for the Eclipse community specifically. We use and enjoy Eclipse, as well as its commercial ...





17. Different between SWT and JFace??    coderanch.com

In a nutshell, SWT is a widget toolkit (buttons, menus, tables, trees, et al.), that uses native widgets to ensure precise desktop integration and best performance. JFace is an abstraction layer that rides on top of SWT--sort of an MVC layer. You can use SWT without using JFace, but in many cases JFace makes development easier.

18. "The Definitive Guide to SWT and JFACE".. just another SWT/JFACE book?    coderanch.com

The quick answer is that this book CAN'T be "just another SWT/JFACE book" because there aren't any others . . . yet. SWTworkbench is a GUI building tool, and Professional Java Interfaces with SWT/JFace (Wiley Europe lists it as Professional Java Native Interfaces with SWT/JFace) isn't out yet--it's listed for publication 11/2004. A couple of other SWT/JFace books are on the ...

19. SWT/JFace advantages?    coderanch.com

I think the "native libraries" objection is far overblown; the JVM itself is a collection of native libraries, and Java apps use JNI in many places. The beauty of Java is that the JNI calls are all transparent to you, the programmer, and your Java code works on all platforms. SWT adheres to that model: you don't explicitly call any native ...

20. SWT/JFace and Sun    coderanch.com

I'm not sure what you mean by "Netbeans support SWT" unless you are talking about the GUI builder. Any IDE can support developing SWT apps because it's just a matter of including the JAR file and the native library when executing. Unless Sun adopts SWT I don't see Netbeans supporting it in the GUI builder any time soon. But there are ...

22. Download Just JFace    coderanch.com

24. swt + jface == swing ?    coderanch.com

25. why we need SWT, JFace ?    coderanch.com

26. [The Definitive Guide to SWT and JFace]    coderanch.com

27. how to open a *.chm file in swt&jface?    coderanch.com

28. JFace....Task Bar display    coderanch.com

Hi, created a simple JFace application( a simple dialog application).....once i execute the JFace application i couldn`t find the application name in the Task Bar... icon which appears in the task bar at the bottom of the Windows desktop to show you which applications we have open on your computer is not getting displayed for a JFace application should i have ...

29. SWT n Jface    coderanch.com

Hi All, I have a created a wizard using Jface. One clicking on one of the buttons in the contents area(it is not the buttonBar button like NEXT etc), I display a TitleAreaDialog. Now my problem is that: a.) For this TitleAreaDialog I have created a new Shell, is it okay for me to create a new Shell for this Dialog ...

30. SWT and JFace?    coderanch.com

31. Real big lists: Swing outperforms JFace?    coderanch.com

Hello, I was trying to have a list of a million items. I tried with a simple JList: new JList(new AbstractListModel() { public int getSize() { return 1,000,000; } public String getElementAt(int i) { return "Item #" + i; } }; It takes about 3 seconds for the list to pop up on my computer (P4 2.4GHz, 1G RAM, command: java ...

32. SWT/JFace and testing    coderanch.com

J.B., Steve can probably answer this better, but I'll give it a shot. I've used JUnit and JFCUnit, but I haven't explored SWT testability. Eclipse provides a plug-in called org.eclipse.swt.tests that you can download from their CVS site. This contains many, many JUnit tests for SWT widgets and you can customize them for your use. There's a similar package for org.eclipse.jface.tests. ...

33. SWT / Jface book - IDE question    coderanch.com

Hi, The book is geared toward Eclipse-based development, but we explain how to configure the regular Java environment (javac) to build these applications. You don't need Eclipse for most of the book, but you'll need it to work with the Rich Client Platform, Draw2D, or the Graphical Editor Framework. Hope this helps. Matt

34. SWT/JFace statusline tweaking    coderanch.com

35. JFace Coolbar    coderanch.com

Hi, Does anyone know if there is a way to add text to coolbar buttons along with the image, as done in Internet Explorer for example. That is, having Back/Forward text showing with each button. The text that I set to the Action (that I later add to the menu), shows in the menu item but not in the coolbar item ...

36. SWT/JFace    coderanch.com

HI you can use the setText() method of the TableItem. it can take an array and it knows to place the data correctlly. for example: Table table=new Table(shell/composite/group/whatever, SWT.FULL_SELECTION); table.setBounds(10, 20, 730, 180); table.setLinesVisible(true); TableColumn col_1 = new TableColumn(table, SWT.LEFT); col_1.setResizable(true); col_1.setText("column 1"); col_1.setWidth(200); TableColumn col_2 = new TableColumn(table, SWT.LEFT); col_1.setResizable(true); col_1.setText("column 2"); col_1.setWidth(200); TableColumn col_3 = new TableColumn(table, SWT.LEFT); col_1.setResizable(true); ...

37. AWT, Swing, SWT or JFace?    coderanch.com

Hi. I'm brand new to Java and I'm just reading through some books to get up to speed. I'm wondering if someone could just briefly describe the relative merits of building GUIs under each of these libraries. Apologies if this is a common question - a quick look down the list didn't show me anything that looked like the same exact ...

38. Help for JFace    coderanch.com

Thanks Javi, some more trouble 4 u, i m developing an intranet application, earlier i thought using JFace also, but now only SWT. a Timesheet application, will run on many systems at LAN, DB SQL Server how would i handle database, which would b at one system, but accessible/ updatable by all? i dont hav any idea, can u help me? ...

39. Embedding components in SWT/JFace text    coderanch.com

40. SWT books, JFace criticism    coderanch.com

hi - Im a bioinformatics app developer at Uconn. I have 2 swt 2 questions/thoughts... 1) on books : I got the "swt/jface in action" book - its very poor. There are high level explanations and low level examples, but very little integrative examples...And not a it doesnt have a single sophisticated application whose GUI requires refreshing or is dynamically generated ...

41. SWT - JFACE    coderanch.com

42. Where to download SWT/JFace Javadoc    coderanch.com

Thanks for yr help. I already browse the javadoc from eclipse help, but I wanted to have it separate. I have eclipse 3.1, I tried to find the doc.zip file, what I found in similar folder under plugins is "org.eclipse.jdt.doc.isv_3.1.0" But the contents of the zip folder was not for package starting "org.eclipse.jdt" I'm sure it is found under eclipse as ...

43. JFace/SWT Tables help ?!    coderanch.com

Hi : Does any body know how to find the location of a TableItem, using a point ? Im trying to drag and drop items into a table - but not just add them to the end - that is, drop items directly after the item on the table which the mouse is hovering above at time of the release. Im ...

44. JFace: Formatting control created by ActionContributionItem    coderanch.com

Is there a way to format the control that is generated by the fill() method of the ActionContributionItem? I have an Action which is attached to a ActionContributionItem which in turn is displayed as a button using: actionAci.fill(parent); I'd like to attach a GridData object to the button widget to specify alignments and whether or not it should grab excessive space. ...

45. jface status line sections    coderanch.com

Hi i am using JFace 3.1 , i would like to how to split the status line into different sections : with this : protected StatusLineManager createStatusLineManager() { StatusLineManager slm = new StatusLineManager(); slm.setMessage( "Hello, world!" ); return slm; } it creates a status bar but it only allows to add one message at a time . I would like to ...

46. How to run a SWT / JFace application    coderanch.com

Hi, Can someone point me a web-site that will show me how to deploy a SWT application. I have the screen running fine in Eclipse, but I am unsure of how to build it and run it from a Windows icon. Do I have create a have to create .ear to include my application jar and swt.jar and jface.jar?

47. Jface help    coderanch.com

I just started using jface for a class, and could use a quick hand figuring something out. I'm trying to implement for example an app that displays a login screen, and then for example goes to a administrative or user page. I've figured out how to build my login screen, but I want to be able to change the contents of ...

48. using swing/awt/swt/JFace    coderanch.com

tryint to write a program that will produce an output using the sequential search algorithm and the algorithm is as follows: Assume there's a list of 10,000 tupples(N1,T1)...(N10,000,T10,000)wt filled in values 1.Get value of NAME 2.set the value of i to 1 and the value of FOUND to NO 3.While(FOUND=NO) and (i<=10,000) do step 4 through 9 4.If NAME is equal ...

49. jface or TitleAreaDialog    coderanch.com

50. Collecting information using JFace    coderanch.com

51. Portability of SWT and JFace    coderanch.com

52. shell.addListener(SWT.Close .. using JFace?    coderanch.com

Hi Folks, I setup a SWT based window to capture the close event that clicking the X in the top right corner of the window generates using; shell.addListener(SWT.Close, new ConfirmCloseListener(shell)); where, ConfirmCloseListener's handleEvent looks like this; public void handleEvent(Event event) { int style = SWT.ICON_QUESTION | SWT.APPLICATION_MODAL | SWT.YES | SWT.NO; MessageBox messageBox = new MessageBox(parent.getShell(), style); messageBox.setText("Information"); messageBox.setMessage("Are you sure ...

53. Eclipse 3.2.2 config for SWT / JFace    coderanch.com

Hello, I've almost never build a java application using GUI. Always did Web Application. So I'm trying to do my first java SWT / JFace app using Eclipse. I did find quite a lot of tutorial really helpful but I still have problems configuring my project in Eclipse 3.2.2! Can some one tell which specific jar in need to include in ...

54. JFace imports not recognised!?    coderanch.com

55. SWT/JFace Build Project    coderanch.com

56. SWT/JFace newbie    coderanch.com

57. embedded swt,jface code in jsp    coderanch.com

Hi , I have a new requirement. I have One SWT existing stand alone Application. I need to load this Application in Web browser. More Explanation We have one Stand alone SWT application, I want to call this application from JSP or HTML page. So I can access this existing SWT application from Web? In JSP we have some Tag; from ...

59. SWT/Jface Architecture Questions    coderanch.com

Hi everyone, I'm pretty new when it comes to developing rich clients. I'm getting more and more familiar with SWT and JFace, but I'm not sure I like the code that is resulting. I was wondering a few things. 1. Could anyone point me to a few articles describing architecture best practices and patterns? 2. What is the best way to ...

60. Jface TableViewer and TableCursor    coderanch.com

Hi all, Yet another stumbling block encountered while implementing an Excel-like function using JFace & SWT:-( I have an implementation of ICellModifier, called MyCellModifier (along with MyLabelProvider & MyContentProvider). That setup work all fine - it allows the user to click on a cell, start editing & then press enter to register the new value. I also needed to implement the ...

61. JFace    coderanch.com

JFace is defined by the Eclipse project as "a UI toolkit that provides helper classes for developing UI features that can be tedious to implement."[1] It is a layer that sits on top of the raw widget system, and provides classes for handling common UI programming tasks. It brings model view controller programming to the Standard Widget Toolkit.

62. SWT and JFace?    coderanch.com

63. jface tableviewer navigating    coderanch.com

hi- i am very frustrated that i cant find a solution to navigating a jface table. it seems that some things in swt, java, and hibernate are so cool but sometimes it is hard to come up with an answer. all i'd like to do is be able to let the user navigate a jface table with either a tab key ...

64. JFace RIGHT_TO_LEFT application    coderanch.com

66. jface Treeviewer and StyledText    coderanch.com

I have a jface Treeviewer showing system directories and files and a StyledText on a shell. The goal is to use a bunch of apis such as apache poi, pdfbox, htmlparser to display contents of a file choosen from the Treeviewer on the StyledText. But somehow, the Treeviewer seems to occupy the entire shell , because of which i am not ...

68. Help with JFace Wizard.    coderanch.com

Hello all, I'm developing a JFace wizard plugin. The wizard has a total of 5 pages. The problem is, the buttons, combo boxes on wizard are not receiving clicks. At first execution, it run successfully. Later it stopped working. I can't figure out what's wrong. There's no problem in the code. I used WindowBuilder to design GUI for wizard pages. I ...

69. JFace / SWT Loading Lag    coderanch.com

70. JFace Tableviewer    coderanch.com

I have a requirement to enable both a single and double click function on a JFace Tableviewer. So I used a selectionChangedListener for the single, and doubleClickListener for the double. Problem is that each double click also fires the selectionChangeListener, which I am trying to avoid. Is there anyway to prevent this? Thanks, Kevin..

71. How to Pass value from one one wizard page to the other in JFACE    coderanch.com

Hi All, I am creating a wizard with two wizard pages using JFACE WIZARD. In the first wizard page, i am having a combo box with some items. As i selected one item from the combo box and traverse to the next page, i need the same item which is selected in the first page. I am unable to pass this ...

72. Book for Swing/AWT/SWT/JFace    coderanch.com

I cleared my OCPWCD and want to do a small project, Then I realized I need to know web designing/swing/awt/swt/jface /photoshop etc . I read the head first html and css but it just puts me in a right direction. can some one suggest me a good book with lots of examples on web design and books for swing/awt/swt/jface