1. Lobo Cobra HtmlPanel does not update GUI after JavaScript action stackoverflow.comHI, I started implementing a HTML Browser in Swing. I want to use the Lobo Cobra toolkit because this toolkit inclused a renderer and parser for CSS and JavaScript. ... |
2. How to link to a package but only optionaly execute an action based on existence/availability of package at runtime? stackoverflow.comFrom the perspective of a cross application/applet java accessibility service, how would you link to a package but only optionally execute an action based on existence/availability of a package (being already ... |
3. Swing Application Framework @Action annotation ? what for? stackoverflow.comI'm actually using the Swing Application Framework on a desktop application and make good use of the session state persistence and resource manager (great for globalization) Now I have been testing the ... |
4. Java Swing - Can i run 2 GUI actions in the EDT? stackoverflow.comIn a JDialog, when user clicks a JButton i want to execute 2 GUI actions in the EDT :
|
5. Elegant way to log actions? stackoverflow.comSay you have an application with a series of actions. How would you write it such that actions are logged when they are triggered?
|
6. "Actions" alternative in Java (Eclipse) & GUI Reccomendation stackoverflow.comI have recently switched from C# to JAVA, although I have a few questions. I love how Visual Studio's GUI builder is laid out, is there a similar style one for JAVA? Also ... |
7. C# .NET equivalent of Java Swing Actions stackoverflow.comWhilst programming Java GUis I made heavy use of the Action class. The instantiated action class was passed to numerous button or menu item constructors so that you ... |
8. Swing App Framwork @Action problem forums.netbeans.orgIm trying to get some data to my action methods. The @Action docs say that you can have the ActionEvent passed to the action method like this: @Action(block = Task.BlockingScope.APPLICATION) public Task actionGetAllCustomers(ActionEvent evt) { // do stuff } The problem is that when this is run I get this exception: java.lang.IllegalArgumentException: unrecognized @Action method parameter Is this a known bug, ... |
9. Swing Application - unable to use "set Action" forums.netbeans.orgHello, I am to develop a swing application using the Swing Application Framework and NB 6.5. I started creating a new Desktop Application and chose Basic Application. The generated code contains menu items that are attached to a method annotated with @Action. It is possible to choose "set Action" from the contextual menu of this item and get the "Set Action ... |
10. Reusing GUI and Actions struts.1045723.n5.nabble.comI have a form in my web application that can be accessd from different places (Namespaces) in the web app. It looks something like this /Admin/EditSchedule.action /MySchedules/NewSchedule.action /Create/NewSchedule.action /Create/EditSchedule.action The are subtle differences in how the data is handled each time. For example, in Admin all data can be updated, in Create and MySchedules the data can be added. Also ... |
11. GUI Action Strategy coderanch.comHi. I have an application where almost anything can be invoked by an Action. For actions that can be invoked from multiple places (i.e a toolbar and a menu), I use the same Action object to allow for enabling/disabling the actions. My question is really about how to develop a strategy for which actions to enable and disable when. Every one ... |
12. action performed coderanch.comhey guys, can u kindly tell me how to do this. say i want to perform an action like this. when i press the enter button from the keyboard it should activate my search button in the program. i know this is some thing to do with rootpane... please let me know the setps i have a jpanel which i have ... |
13. action coderanch.comhey world, could you please tell how to do this. say i when i press the "enter" from the key board it should activate the "search button" i know it is something to do with the jrootpane. i am using a jpanel to add the buttons and stuff.please send a step by step reply.thanks cheers |
14. No action detected coderanch.com |
15. how can i communicate between server action and client action coderanch.com |
16. Linking an Action to a view(Eclipse PDE) coderanch.comHi all, I am working on a plugin project where I am faced with the following problem. I have an Action(with button on the toolbar) and a view with a few butons and a text field. When I press the button(Action) on the Tool Bar one of the buttons in the View must get disabled.How do I do that? Please help... ... |
17. Issue with an javax.swing.Action class and encapsulation/OO design. coderanch.comHi everyone - I've created a stand-alone class which extends javax.swing.AbstractAction, whose purpose is to allow a user to choose a file. In the actionPerformed() method, having chosen a file, I want to set the value of a JTextField to the filename selected. The reason why I've created a stand-alone action class rather than as an inner class of another object, ... |
18. Action Adapter coderanch.comThis sort of question comes up all the time. Beware of Adapters. Apart from the fact they have peciluar spelling, you have to be very careful with the method names. One capital letter out of place, and you end up with a Listener whihc doesn't do anything. I am assuming that you have got all our import statements in place already. ... |
19. Zoom Action coderanch.com// member variables BufferedImage source = loadImage(); JLabel label = new JLabel(new ImageIcon(source)); ... frame.getContentPane().add(label); ... public void someEvent_Action(... BufferedImage scaled = getScaledImage(source, scale); label.setIcon(new ImageIcon(scaled)); label.repaint(); // maybe //label.revalidate(); // if image size changed ... private BufferedImage getScaledImage(BufferedImage src, double scale) { int w = (int)(scale*src.getWidth()); int h = (int)(scale*src.getHeight()); BufferedImage scaled = new BufferedImage(w, h, src.getType()); Graphics2D g2 = ... |
20. Redefining behavior of ActionFactory actions coderanch.comThe soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - ... |
21. Actions: Rules of Thumb coderanch.comI asked kind of this question maybe one month ago without replies. Glad to see someone else ask it. I'm working on my first Java project right now. The forms are rather complicated. And I think the code is made far more complicated by the use of inner classes. I think it makes it far more complicated to debug the app, ... |
22. Usability: D&D v/s Actions coderanch.comCurrently I am working on an application where the user can select various components from the "pallette" and drop them into a box where the relationship between the components can be defined. It is possible to provide this functionality using either the D&D feature. Or the components can have menus like "Add to Box", "Remove From Box", "Map to" etc. Since ... |
23. Java swing library for svg like action coderanch.comI am trying to build a java application which needs to do drag and drop some elements in to the canvas and connect them with different types of connectors depending on selection etc. In one line something like what MS Visio does, but at the very basic form. So my question is does Java Swing has any built in library/component to ... |
24. actions performed coderanch.comOriginally posted by James Jiang: you also make class ButtonTest implement java.awt.event.ActionListener to get it working. That's just what Campbell discourages, and I agree with him. In fact, I support the use of anonymous listeners just like Campbell has shown. However, I tend to use Action instead of ActionListener, and create my buttons with an Action object instead. That allows me ... |
25. GUI Action Strategy coderanch.comHi. I have an application where almost anything can be invoked by an Action. For actions that can be invoked from multiple places (i.e a toolbar and a menu), I use the same Action object to allow for enabling/disabling the actions. My question is really about how to develop a strategy for which actions to enable and disable when. Every one ... |
26. good way to do action coderanch.comhi i begin in swing and i would like to do a simple drawing program for my little kid. public static void main(String[] args) { JPanel jc = new JPanel(); ... ... IShape square = new SquareDrawable(Color.RED,new Point(10,10),new Dimension(40,40)); jc.addShapeDrawable(square); ... ... } that work fine... now i would like to be able to use a toolbar to draw a shape... ... |
27. Swing application being refreshed by server actions ? coderanch.comHi Hatem, There are a couple of ways to handle this. The way you suggested about the checking every 2 seconds is known as "polling" or a "pull" system, where the client asks the server what has changed. As you said, this can lead to extra network traffic. Another simple way to accomplish this is using the Observer pattern (a "push" ... |
28. Exiting on menuSelected action coderanch.comHi all I'm writing a simple swing screen for my Dad. He's a bit of a technophobe (by that I mean a lot of a technophobe), so I'm trying to keep it really, really simple. I've added some click options as menus, such that when he clicks the menu the event springs into life. I could go down the whole menu ... |
29. Caps Action problem coderanch.comi've this swing aplication that has a label inside a jPanel; i want this label to get enabled if caps lock is on some code i'm using: //invoked inside aplication constructor capsAction = new AbstractAction() { private static final long serialVersionUID = 1L; public void actionPerformed(ActionEvent e) { JPanel rodape = (PanelRodape)e.getSource(); JLabel labelCaps = (JLabel)rodape.getComponent(0); Toolkit toolkit = Toolkit.getDefaultToolkit(); labelCaps.setEnabled(toolkit.getLockingKeyState(KeyEvent.VK_CAPS_LOCK)); ... |
30. Separate Actions and GUI coderanch.comHey guys, I've been battling with this problem for a while now, and I'm wondering what the people here usually do. I have a GUI, and I want to separate the Actions from it. I'm not quite sure how to go about it. The actions will be added to a JMenuBar, and some of them to a JToolBar as well. Performing ... |
31. Create an Action coderanch.comi got a problem, i have created my image processing application. the user can acquire information about some colors of the image(Red-white-etc). i give him the option to get the information for each color with for JMenuItems (red - white etc) whiteEl3 is a JMenuItem. so when the user click it he gets some information (i cut some code because i ... |
32. * Winners: Griffon in Action coderanch.com |
33. login action to anotherform java-forums.orgimport javax.swing.*; import java.awt.*; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; public abstract class login extends JFrame implements ActionListener { public static void main(String[] args) { JTextField firstField = new JTextField(10); JPasswordField middleField = new JPasswordField(10); JButton b1=new JButton("ok"); JLabel firstLabel = new JLabel("username", JLabel.RIGHT); firstLabel.setDisplayedMnemonic('F'); firstLabel.setLabelFor(firstField); JLabel middleLabel = new JLabel("password", JLabel.RIGHT); middleLabel.setDisplayedMnemonic('I'); middleLabel.setLabelFor(middleField); JPanel p = new JPanel( ); p.setLayout(new GridLayout(3, 2, ... |
34. login action to anotherform swing java-forums.orgin swing i want to create login form whenerver i click button it should to go to another form please give a coding for this or please look at the view of my coding that is below Java Code: import javax.swing.*; import java.awt.*; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; public abstract class login extends JFrame implements ActionListener { public static void main(String[] args) ... |
35. login action to anotherform swing help java-forums.orghello please view my code and say what mistake i have done import javax.swing.*; import java.awt.*; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; public abstract class login extends JFrame implements ActionListener { public static void main(String[] args) { JTextField firstField = new JTextField(10); JPasswordField middleField = new JPasswordField(10); JButton b1=new JButton("ok"); JLabel firstLabel = new JLabel("username", JLabel.RIGHT); firstLabel.setDisplayedMnemonic('F'); firstLabel.setLabelFor(firstField); JLabel middleLabel = new JLabel("password", ... |
36. JXTaskPane Action performed java-forums.org |
37. Actions java-forums.orgGood afternoon, I have a query about a frame with 2 panels. I want to put some buttons inside the bottom panel, but I need the actions (ActionListener) to occur inside the top panel. Can you guide me how to connect the panels to be able to do this? Thanks for your help! |