Swing?? ??/??? ?? ??
Swing GUI? ????? ???? ??? ??? ??????? ?? ?? ? ??? ??? ???? ??????. ??. ?? ?? ???? ??? ???? ??? ???? ?? ?????? ??? ??? ? ????. ??????. ? ???? ??? ???? ???? ??? ??? ???? ?? ??? ? ?? ?? ???? ?????.
?? ?? ??:
??? ??? ?? ?? ?? ??? ???? ?? ?? ????? ?????. ? ??(??, ?, ???)? ??? ??? ????? ??? ?? ???? ?????. ??? ? ?? ??? ?? ? ????.
- ???? ??? ??? ???? ???? ?? ???change_display? ??Panels ??? ?????.
- ?????? ????. Forward_display? ForwardPanels ???? ?? ? currentPanel ??.
??? ??? ?? ??? ??? ??? ? ????.
?? ???: CardLayout
Swing?? ?? ? ??? ??? ???? ?? ??? ??? CardLayout? ???? ????. ? ???? ???? ???? ?? ???? ?? ?? ????? ???? ?? ???? ??? ???? ???? ?? ?? ??? ? ????. ??? ?? ??? ????.
import java.awt.*; import java.awt.event.*; import javax.swing.*; public class CardNav extends JPanel { private CardLayout cardLayout; private JPanel cards; private JButton back, forward; public CardNav() { setLayout(new BorderLayout()); // Create a CardLayout to hold the panels cardLayout = new CardLayout(); cards = new JPanel(cardLayout); // Add panels to the CardLayout cards.add(new JPanel(), "Panel 1"); cards.add(new JPanel(), "Panel 2"); cards.add(new JPanel(), "Panel 3"); // Add the CardLayout to the main panel add(cards, BorderLayout.CENTER); // Create back and forward buttons back = new JButton("Back"); forward = new JButton("Forward"); // Add button functionality back.addActionListener(e -> cardLayout.previous(cards)); forward.addActionListener(e -> cardLayout.next(cards)); // Add buttons to the panel JPanel navBar = new JPanel(); navBar.add(back); navBar.add(forward); add(navBar, BorderLayout.SOUTH); } public static void main(String[] args) { SwingUtilities.invokeLater(() -> { JFrame frame = new JFrame(); frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); frame.add(new CardNav(), BorderLayout.CENTER); frame.pack(); frame.setLocationRelativeTo(null); frame.setVisible(true); }); } }
? ???? ?? ??? ???? CardLayout? ?? ??? ????, ??? ??? ???? ?? ??? ?????. ?? ??? ???? ???? ? ????? ??? ??? ??? ?????.
??:
?? ?? ??? ??? ???? ??? ???? ?? ??? ???? , ??? ????? ?? ??? ?? ??? ??? ? ????. CardLayout? ???? Swing?? ?? ? ??? ??? ???? ?? ????? ???? ??? ?????. ? ?? ?? ??? ???? ????? ??? ???? ?? ???? GUI? ??????.
? ??? Swing ???????? ?? ? ??? ??? ????? ????? ??? ?? ????? ?? ?????. ??? ??? PHP ??? ????? ?? ?? ??? ?????!

? AI ??

Undress AI Tool
??? ???? ??

Undresser.AI Undress
???? ?? ??? ??? ?? AI ?? ?

AI Clothes Remover
???? ?? ???? ??? AI ?????.

Clothoff.io
AI ? ???

Video Face Swap
??? ??? AI ?? ?? ??? ???? ?? ???? ??? ?? ????!

?? ??

??? ??

???++7.3.1
???? ?? ?? ?? ???

SublimeText3 ??? ??
??? ??, ???? ?? ????.

???? 13.0.1 ???
??? PHP ?? ?? ??

???? CS6
??? ? ?? ??

SublimeText3 Mac ??
? ??? ?? ?? ?????(SublimeText3)

??? ??











?? ?? ?? ??? ??? ?? ??? ??, ? ? ?? ? ??? ?????. 1. ??? ?? ???? ?? ???? ???-????, ? ??? ??? ??? ? ????, Hashmap? ???-??? ?? ??? ??? ???? ????. 2. NULL ? ?? ???? HashMap? ??? NULL ?? ?? ? ?? ???? ?? HashTable? NULL ?? ?? ???? ??? NullPointerException? ?????. 3. ????? ??? ????? ?? ??? ?? ?? ? ????? HashTable? ? ??? ?? ?? ??? ????. ?? ConcurrenTashMap? ???? ?? ????.

Java? ?? ??? ??? ?? ??? ??? ?? ??? ??? ?? ??? ?? ?? ??? ???? ??? ?? ???? ?????. 1. ??? ???? ??? ?? ?? ? ???? ?? ??? ???? ?? ?? ??? ? ????. 2. ???? ?? ??? ???? ??? ?? ???? ?? ?? ??? ???????. 3. ?? ???? ?? ?? ?? ? ???? ???? ?? NULL ?? ??? ? ????. 4. ?? ???? ??? ?? ?? ? ??? ?????? ?? ??? ??? ?? ?? ??? ????? ??? ??? ??? ??????? ?? ???? ??????.

staticmethodsininterfaceswereIntRectionSelffacesswithinteffaceswithinteffaceswithintintinjava8toallowutilityFunctionswithinterfaceitswithinteffaceswithinterfaceffaces

JIT ????? ??? ???, ??? ?? ? ???, ?? ?? ? ???? ? ? ?? ?? ??? ? ?? ??? ?? ??? ??????. 1. ??? ???? ?? ?? ??? ??? ?? ?? ???? ??? ?? ?????. 2. ??? ?? ? ??? ?? ?? ? ??? ???? ?? ?? ???; 3. ?? ??? ??? ?? ??? ???? ???? ???? ? ?? ?? ??? ?????. 4. ?? ??? ?? ??? ??? ???? ???? ?? ? ??? ???? ?? ??? ?????.

???? ??? ??? Java?? ??? ?? ???? ??? ?? ? ? ??? ??? ???? ? ?????. ?? ???? ??? ??, ??? ?? ??? ?? ?? ??? ??? ????? ???? ????? ?????. ?? ??? ??? ??, ????? ? ??? ????, ?? ??? ??? ?????? ? ?? ? ?? ?????.

injava, thefinalkeywordpreventsavariable'svalue'svalueffrombeingchangedafterassignment, butitsbehaviordiffersforprimitivesandobjectreences.forprimitivevariables, asinfinalintmax_speed = 100; wherereassoncesanerror.forobjectref

??? ??? ?? ?? ??? ????? ? ???? ????? ???? ?? ???? ?? ???? ?????. ?? ??? ??? ????. ?? ?? ?? ??? ???? ???? ?? ?? ??? ??? ?? ?? ??? ??? ?????. ?? ??? ??? ????. ?? ??? ?? ??? ?? ?? ??? ?? ?? ??? ???? NewClass ()? ??? ?? ???? ????. ?? ??? ?? ??? ???? ?? ??? ?? ? ? ??? ?? ?? ??? ????? ????? ?????. ?? ??, ?? ?????? ?????, ??? ? ?? ????? ??? ?? ?????. ???? ?? ?? ??? ???? ?? ???? ?? ? ??? ???? ?? ??? ?? ?????? ?????. ???? ???? ??? ??, ?? ?? ? ?? ??? ????, ?? ?? ???? ?????.

??? ? ?? ??? ???? : ????? ?? ?. 1. int? ???? ???? ?? ?? ?? ? ??? ???? ?????. 2. ?? ? ???? (int) myDouble ??? ?? ?? ??? ?????. ?? ??? ??? ?? ??? ?? ??, ?? ?? ?? ???? ?? ??? ?? ???? ?? ?????. ???? ? ??? ??? ????. ?? ??? ??? ??? ??? ??? ?? ??? ??? ? ??? ?? ???? ??? ??? ??? ??? ? ??? ?? ??? ?? ??? ?? ?? ? ? ????. ?? ?? ??? ?? ??? ??? ??? ??? ? ??????.
