1. Portability issue in Swing coderanch.comI have developed an application in swings with lot of components and Text on Windows NT platform. That application has to run on various platforms including Linux. Though the Swing components are rendering well on both platforms but the problem is with Fonts. Fonts gets change on both platforms and due to it they are not showing in Buttons etc as ... |
2. ButtonHandler issue coderanch.com>What should we do? Hard to say without seeing any code. Here's something to play around with - it's rough - but it might give you a couple of ideas import javax.swing.*; import java.awt.*; import java.awt.event.*; class Testing extends JFrame { JFrame mainFrame; JLabel lbl = new JLabel("Please Login"); public Testing() { mainFrame = this; setLocation(400,300); setSize(250,100); setDefaultCloseOperation(EXIT_ON_CLOSE); JPanel jp = ... |
3. DefaultTreeModel related issue coderanch.comimport java.awt.*; import java.awt.event.*; import javax.swing.*; public class TreeExample { public static void main(String[] args) { final JTree tree = new JTree(); final JCheckBox rootVisible = new JCheckBox("rootVisible", tree.isRootVisible()); final JCheckBox showsRootHandles = new JCheckBox("showsRootHandles", tree.getShowsRootHandles()); rootVisible.addActionListener(new ActionListener(){ public void actionPerformed(ActionEvent evt) { tree.setRootVisible(rootVisible.isSelected()); } }); showsRootHandles.addActionListener(new ActionListener(){ public void actionPerformed(ActionEvent evt) { tree.setShowsRootHandles(showsRootHandles.isSelected()); } }); JPanel buttons = new JPanel(); ... |
4. Function Issue coderanch.com |
5. XP 64-bit Swing issue coderanch.com |
6. Eclipse GMF issue discussion coderanch.com |
7. Highlighter Issues coderanch.comWith the below code, whenever I click find, it is supposed to highlight the text that is in the search box. I have looked through some other examples online and it looks like it should work, but it does not. Can anyone explain why? package gui; import error.Error; import java.awt.Color; import java.awt.Dimension; import java.awt.FlowLayout; import java.awt.GridLayout; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import ... |
8. Java 1.5 Swing issue coderanch.comOur Application was running in Java1.3 and it was working fine when we maximize the application. but in Java1.5 when we maximize it, displaying empty taskbar space if it is already in hidden. Use case is 1. Hiding the taskbar 2. maximizing the application (which displays taskbar portion empty where as in the java1.3, it is working fine) Anybody knows solution, ... |
9. Issue with SliderBar coderanch.comI am using JSliderBar to control speed of ball.When i increase or decrease speed from sliderBar,the ball goes to out of bound.If i change speed at the moment when ball move in the down,left direction it is working well.Where is mistake??? import java.awt.*; import javax.swing.*; import javax.swing.event.*; public class Ball extends JPanel implements Runnable { private int xx, yy; private int ... |
10. Dont understand this initialization issue coderanch.complaying around with alignning (bottom's) components with BoxLayout layout i came to the following code (which met my needs) i created three panels and then tried to bottom align them, succeeding: import java.awt.*; import javax.swing.*; public class TesteParaAlinharBottom { public TesteParaAlinharBottom() { JFrame frame = new JFrame("Aligning bottoms"); frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); JPanel textPanel = getTextPanel(); JPanel tablePanel = getTablePanel(); JPanel buttonPanel = getButtonPanel(); ... |
11. ScrolledComposite issue coderanch.comHi All, can anybody run this sample code below...and let me know why am not getting the scroll bars for the scrolledcomposite... import org.eclipse.swt.SWT; import org.eclipse.swt.custom.ScrolledComposite; import org.eclipse.swt.graphics.Point; import org.eclipse.swt.graphics.Rectangle; import org.eclipse.swt.layout.FillLayout; import org.eclipse.swt.layout.GridData; import org.eclipse.swt.layout.GridLayout; import org.eclipse.swt.widgets.Composite; import org.eclipse.swt.widgets.Display; import org.eclipse.swt.widgets.Label; import org.eclipse.swt.widgets.Shell; import org.eclipse.swt.widgets.Text; public class ScrolledCompTest extends org.eclipse.swt.widgets.Composite { public static void main(String[] args) { showGUI(); } protected ... |
12. JSrollbar issue coderanch.com |
13. LWJGL/Slick TextureLoader issue coderanch.comI'm trying to load an image for use with OpenGL via LWJGL and its helper library Slick. I know, for sure, it has selected the correct image. When it displays the image, it appears to be fractured slightly. A more obvious issue would be that when I run the code: //texture is declared earlier in the code texture = TextureLoader.getTexture("PNG", new ... |
14. Smack App GUI Issue Help java-forums.orgI have written the code for gtalk chat client using Smack API . This code displays a frame which contains 2 textarea 1 for sending message and other which contains received and sent messages. My code sends the message to the particular email and it also shows on the 2nd textarea but when the message is received from the other person ... |
15. [GUI] BroderLayout Center Issues java-forums.orgI have a problem with trying to add a JPanel to the center of my Gui. I have a JFrame we will call Main. I also have a JPanel we will call Login. Main extends JFrame. Main is laid out with a BorderLayout. Main then instatiates Login that extends JPanel and adds them to the CENTER of Main. I Have other ... |
16. Having issues with GUI while loops java-forums.orgThe goal of this code is to make a ball go from right to left on a panel in a GUI, and then when it reaches the end of the window to go from left to right and continue to alternate like this infinitely. My real issue is getting the functions to work with while loops. Here is the part of ... |
17. GUI issues, finishing touches forums.oracle.com |
18. swing gui issue: forums.oracle.com |
19. GUI loading issue forums.oracle.comHello everyone. I have recently developed a fairly large GUI with Java (and Netbeans). Anyhow, for some reason it doesn't seem to load correctly on another computer at work (which I currently don't have access). I have been told that it takes multiple attempts of "opening the .jar file" before it actually loads on the machine. I have tried my GUI ... |
20. Java Gui issue's forums.oracle.com |
21. GUI and Vector issues forums.oracle.comThe "p.getPartVec().addElement(newP);" that I have in my GUI constructor is what I hardcoded into my program so that I could test to make sure that my sorts and displays actually work. That line of code actually does add the part to the vector. The problem is when I comment those lines of code out, in my gui constructor, the parts that ... |
22. GUI issues - please help. forums.oracle.com |
23. Java GUI issues forums.oracle.comSorry bout that, im certainly not looking for a free ride. Currently I have 2 panels. StartPanel and OptionsPanel. One of the buttons on the StartPanel is labeled "Options" and what i would like it to do on button click is to display the OptionsPanel. How would go about doing that? Ive tried creating a new OptionsPanel object within the event ... |