Sign up to connect with ali11 and gain access to their complete profile
  • Member Avatar
    ali11

    Replied To a Post in can't figure out how to move JTabPane down

    I fix that. I just want to reduce the size of JTabbedPane. How can i do that.I mean the JTabbedPane box size.
  • Member Avatar
    ali11

    Replied To a Post in can't figure out how to move JTabPane down

    Thanks I fix that.One more issue. I want to move bottom panel little more up. import java.awt.*; import javax.swing.*; public class GridBagLayoutTest { JPanel bottomPanel; JPanel topPanel; public GridBagLayoutTest() { …
  • Member Avatar
    ali11

    Created can't figure out how to move JTabPane down

    Hi I am trying to move JTabbedPane down below top panel.I want it where the bottom panel begin.Thanks. import java.awt.*; import javax.swing.*; public class GridBagLayoutTest { JPanel bottomPanel; JPanel topPanel; …
  • Member Avatar
    ali11

    Replied To a Post in how to make tabs bigger in size

    I give that number just an example I try bigger too but the result is same.
  • Member Avatar
    ali11

    Replied To a Post in how to make tabs bigger in size

    thanks i already use tabbed.setBounds(0, 20, 80, 40); but nothing change
  • Member Avatar
    ali11

    Edited how to make tabs bigger in size

    Hi I am creating a program in which I have 2 tabs. I want to make my tabs bigger in size so they can take whole panel space. Is there …
  • Member Avatar
    ali11

    Created how to make tabs bigger in size

    Hi I am creating a program in which I have 2 tabs. I want to make my tabs bigger in size so they can take whole panel space. Is there …
  • Member Avatar
    ali11

    Created need help in setting timer

    Hi i am trying to make taxi meter which shows the current price.Rightnow I have to click startmeter afterevery 1 minute than it's update the new price but I want …
  • Member Avatar
    ali11

    Replied To a Post in can somebody explain this line of code to me

    thanks but what does '.' mean
  • Member Avatar
    ali11

    Created can somebody explain this line of code to me

    File f=new File("c:/'.'"); // I know about file class just didn't understand what kind of file "c:/'.'" is. File strRoot[]=f.listRoots();
  • Member Avatar
    ali11

    Created can somebody explain these codes to me

    GregorianCalendar cal = new GregorianCalendar(year, month, 1); nod = cal.getActualMaximum(GregorianCalendar.DAY_OF_MONTH); som = cal.get(GregorianCalendar.DAY_OF_WEEK); for (int i=1; i<=nod; i++){// plz explain this line int row = new Integer((i+som-2)/7); // plz explain …
  • Member Avatar
    ali11

    Replied To a Post in Encryption button is not working

    As i said before all buttons are working fine (clear, decrypted, exit)except encrypted button and when i debug i don't get any error.
  • Member Avatar
    ali11

    Replied To a Post in Encryption button is not working

    even if you change that.It's still not working
  • Member Avatar
    ali11

    Replied To a Post in Encryption button is not working

    when i type something and click at Encryption button. I don't get encrypted text.other buttons are working fine except this one.
  • Member Avatar
    ali11

    Created Encryption button is not working

    everything is working fine except Encryption button. import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import javax.swing.JButton; import javax.swing.JFrame; import javax.swing.JLabel; import javax.swing.JOptionPane; import javax.swing.JPanel; import javax.swing.JTextField; public class encryption extends JPanel implements ActionListener …
  • Member Avatar
    ali11

    Created can somebody explain these codes to me

    JMenuItem mItem[] ={copy,paste}; for(int b=0;b<mItem.length;b++) { mItem[b].addActionListener(new ActionListener(){ public void actionPerformed(ActionEvent e) { String mItemCommand = e.getActionCommand(); JTextArea copypaste = new JTextArea(scr.getText()); if(mItemCommand=="Copy"){ copypaste.select(0,scr.getText().length()); copypaste.copy(); } if(mItemCommand=="Paste"){ copypaste.setText(""); copypaste.paste(); String …
  • Member Avatar
    ali11

    Replied To a Post in GUI program only show blank window

    i fix that but why only exit button is working in my whole program. everything looks fine to me.thanks import java.awt.*; import java.awt.GridBagLayout; import java.awt.event.ActionEvent; import java.awt.event.WindowAdapter; import java.awt.event.WindowEvent; import …
  • Member Avatar
    ali11

    Created GUI program only show blank window

    Can someobody tell me why i only see blank window. import java.awt.*; import java.awt.GridBagLayout; import java.awt.event.ActionEvent; import javax.swing.ImageIcon; import javax.swing.JButton; import javax.swing.JFrame; import javax.swing.JLabel; import javax.swing.JPanel; import javax.swing.JScrollPane; import javax.swing.JTabbedPane; …
  • Member Avatar
    ali11

    Created gui vendingmachine program doesn't work

    getting following error: incompatible types: vmpr cannot be converted to JFrame JFrame VendingMachine = new vmpr(); import java.awt.Container; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import javax.swing.JButton; import javax.swing.JLabel; import java.awt.*; import javax.swing.*; …
  • Member Avatar
    ali11

    Created getting error in my program

    import java.util.ArrayList; import javax.swing.JOptionPane; public class ClientList { private ArrayList<Client> clientData; private final String NEW_LINE = "\n"; private int cursor; //manager mode public ClientList ( ) { clientData = new …
  • Member Avatar
    ali11

    Edited Help with the error "no suitable method found for toArray"

    error: no suitable method found for toArray(int[]) return intList.toArray(new int[intList.size()]); ^ method Collection.<T#1>toArray(T#1[]) is not applicable (inference variable T#1 has incompatible bounds equality constraints: int upper bounds: Object) method List.<T#2>toArray(T#2[]) …
  • Member Avatar
    ali11

    Created Help with the error "no suitable method found for toArray"

    error: no suitable method found for toArray(int[]) return intList.toArray(new int[intList.size()]); ^ method Collection.<T#1>toArray(T#1[]) is not applicable (inference variable T#1 has incompatible bounds equality constraints: int upper bounds: Object) method List.<T#2>toArray(T#2[]) …
  • Member Avatar
    ali11

    Created getting error in generic binary search tree

    *getting following error. duplicate found Exception in thread "main" java.lang.NullPointerException at binarysearchtree.main(binarysearchtree.java:185) Java Result: 1 here is my code* public class node<T> { public node<T> root ; public T data; …
  • Member Avatar
    ali11

    Began Watching get position of the maximum number in a singly linked linked list

    //here's a singly linked list program with functions. However, I don't kbow how to add function #7 wherein //the position of the maximum number in the list should be displayed.. …
  • Member Avatar
    ali11

    Replied To a Post in Linkedlist program doesn't work

    Thanks now i am getting following error C:\Users\sher\Documents\Bluetooth Folder\LinkList1.java:20: error: unreachable statement Link current=head; ^ 1 error
  • Member Avatar
    ali11

    Replied To a Post in Linkedlist program doesn't work

    > > > > > > i am getting following errors > > C:\Users\sher\Documents\Bluetooth Folder\LinkList1.java:12: error: constructor Link in class Link cannot be applied to given types; > > Link …
  • Member Avatar
    ali11

    Replied To a Post in Linkedlist program doesn't work

    class LinkList1 { private Link head; public LinkList1(){ head=null; } public void insertfirst(int data){ Link newLink= new Link(data, head); head=newLink; } public Link search (int key){ if (head==null); System.out.println("empty list"); …
  • Member Avatar
    ali11

    Replied To a Post in Linkedlist program doesn't work

    ` class LinkList1 { private Link head; public LinkList1(){ head=null; } public void insertfirst(int data){ Link newLink= new Link(data, head); head=newLink; } public Link search (int key){ if (head=null); System.out.println("empty …
  • Member Avatar
    ali11

    Replied To a Post in Linkedlist program doesn't work

    i update my code
  • Member Avatar
    ali11

    Created Linkedlist program doesn't work

    i just learn about single linkedlist and i am trying to create a program. public class linklis { public static void main(String[] args) { LinkedList ab= new LinkedList(); ab.add("1"); ab.add("2"); …

The End.