- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 0
- Posts with Upvotes
- 0
- Upvoting Members
- 0
- Downvotes Received
- 1
- Posts with Downvotes
- 1
- Downvoting Members
- 1
6 Posted Topics
i have a jtextpane now, i want that some text on it become bold, and not all how can i possibly do this, for exmple, i want to bold all the word "cool" found in my textpane.. i know that i should use a DocumentListener(Do I need??) but i really … | |
i face a problem here.. i am creating a compiler for java, the compilation part is done,and now i have a problem in the running the class compiled.. i use the runtime.getruntime().exec() method to run the class.. and what happen is, for example, i have a simple java file like … | |
i want to do a compiler but, now i am stuck in the compilation part, suppose that i want to compile "cool.java" that is located in the bin directory, what shold i do?? help please | |
this is my code.. [code]class NewAction implements ActionListener { public void actionPerformed(ActionEvent e) { TArea2.setDocument(new PlainDocument()); } } void confirmation() { int ReturnValue=JOptionPane.showConfirmDialog(null,"Do you want to open a new file? ","Confirmation ", JOptionPane.YES_NO_CANCEL_OPTION ); if(ReturnValue==JOptionPane.YES_OPTION) { //HOW CAN I POSSIBLY CALL THE METHOD IN THE NewAction class?? } else if(ReturnValue==JOptionPane.CANCEL_OPTION) … | |
Re: problem in main should be public static void main(String[]args) { gui2 myprogram=new gui2(); myprogram.setVisible(true); myprogram.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); myprogram.setSize(blah2,blah2); } | |
ok, i wanna ask about layouting 2 textareas.. i have 2 text areas, the problem is i want to put 1 in the top 1 and the second 1 in the bottom, but i want to set the height of the top textarea become 2/3 of the window while the … |
The End.