1. Drawing diagonal lines over a textbox in Java stackoverflow.comIs it possible to draw diagonal lines over a JTextField (or any other Swing control as well) without just putting a panel over the textbox? |
2. How to set a custom background color on a line in a JTextPane stackoverflow.comI would like to alternate between gray and white as background from one line of my JTextPane to the next. I tried to do this by overloading the paintComponent() method and drawing ... |
3. A Swing component to display separate, selectable strings on different lines? stackoverflow.comI'm looking for a Swing component that displays several separate strings (probably from a string array or list) on separate lines within a pane or field (scrollable if there's too many ... |
4. Find current line number in JTextField coderanch.com |
5. How do I add Text fields on seperate lines coderanch.comHello, How do i add text fields so that they dont look so cramped? I want them on seperate lines.... code: public void init () { Label title1, title2, title3, title4; c = new CheckboxGroup (); title1 = new Label ("Check for option: "); add (title1); miles = new Checkbox ("Miles", c, false); add (miles); miles.addItemListener(this); kilometers = new Checkbox ("Kilometers", ... |
6. How can i check for empty JTextfield and get one line at a time from a JTextArea? coderanch.compublic void actionPerformed(ActionEvent e) { String actionName = e.getActionCommand(); if(actionName == "Save"){ string s = filename.getTextField() if( s.trim() == "" || s.trim() == null ) { //It does not go through here, why? :confused: I need to System.out.println("Filename not enterered"); } else { ArrayList line[] = new line[100]; System.out.println("Filename is "+ s); int count = content.getLineCount(); //<--Java says cannot find symbol ... |
7. How to add lines to a JFrame full of JTextFields java-forums.orgI'm trying to create an interface for the script i wrote to solve sudoku(i know i should use an allready made applet) but i need to do something to keep myself busy so i won't play WoW like a mad man so here is what i have made Java Code: import static choco.Choco.*; import choco.cp.model.CPModel; import choco.cp.solver.CPSolver; import choco.kernel.model.Model; import choco.kernel.model.constraints.Constraint; ... |
8. Adding a new line in JTextField forums.oracle.com |